]> git.karo-electronics.de Git - karo-tx-linux.git/blob - Documentation/devicetree/bindings/tty/serial/renesas,sci-serial.txt
Merge remote-tracking branch 'hid/for-next'
[karo-tx-linux.git] / Documentation / devicetree / bindings / tty / serial / renesas,sci-serial.txt
1 * Renesas SH-Mobile Serial Communication Interface
2
3 Required properties:
4 - compatible : Should be "renesas,sci-<port type>-uart", where <port type> may be
5   SCI, SCIF, IRDA, SCIFA or SCIFB.
6 - reg : Address and length of the register set for the device
7 - interrupts : Should contain the following IRQs: ERI, RXI, TXI and BRI.
8 - cell-index : The device id.
9 - renesas,scscr : Should contain a bitfield used by the Serial Control Register.
10   b7 = SCSCR_TIE
11   b6 = SCSCR_RIE
12   b5 = SCSCR_TE
13   b4 = SCSCR_RE
14   b3 = SCSCR_REIE
15   b2 = SCSCR_TOIE
16   b1 = SCSCR_CKE1
17   b0 = SCSCR_CKE0
18 - renesas,scbrr-algo-id : Algorithm ID for the Bit Rate Register
19   1 = SCBRR_ALGO_1 ((clk + 16 * bps) / (16 * bps) - 1)
20   2 = SCBRR_ALGO_2 ((clk + 16 * bps) / (32 * bps) - 1)
21   3 = SCBRR_ALGO_3 (((clk * 2) + 16 * bps) / (16 * bps) - 1)
22   4 = SCBRR_ALGO_4 (((clk * 2) + 16 * bps) / (32 * bps) - 1)
23   5 = SCBRR_ALGO_5 (((clk * 1000 / 32) / bps) - 1)
24
25 Optional properties:
26 - renesas,autoconf : Set if device is capable of auto configuration
27 - renesas,regtype : Overwrite the register layout. In most cases you can rely
28   on auto-probing (omit this property or set to 0) but some legacy devices
29   use a non-default register layout. Possible layouts are
30   0 = SCIx_PROBE_REGTYPE (default)
31   1 = SCIx_SCI_REGTYPE
32   2 = SCIx_IRDA_REGTYPE
33   3 = SCIx_SCIFA_REGTYPE
34   4 = SCIx_SCIFB_REGTYPE
35   5 = SCIx_SH2_SCIF_FIFODATA_REGTYPE
36   6 = SCIx_SH3_SCIF_REGTYPE
37   7 = SCIx_SH4_SCIF_REGTYPE
38   8 = SCIx_SH4_SCIF_NO_SCSPTR_REGTYPE
39   9 = SCIx_SH4_SCIF_FIFODATA_REGTYPE
40  10 = SCIx_SH7705_SCIF_REGTYPE
41
42
43 Example:
44         sci@0xe6c50000 {
45                 compatible = "renesas,sci-SCIFA-uart";
46                 interrupt-parent = <&intca>;
47                 reg = <0xe6c50000 0x100>;
48                 interrupts = <0x0c20>, <0x0c20>, <0x0c20>, <0x0c20>;
49                 cell-index = <1>;
50                 renesas,scscr = <0x30>;
51                 renesas,scbrr-algo-id = <4>;
52                 renesas,autoconf;
53         };