summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/tty/serial/renesas,sci-serial.txt
blob: 6ad1adfd4577e0ad9551b39c7a09b1a63863a8f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
* Renesas SH-Mobile Serial Communication Interface

Required properties:
- compatible : Should be "renesas,sci-<port type>-uart", where <port type> may be
  SCI, SCIF, IRDA, SCIFA or SCIFB.
- reg : Address and length of the register set for the device
- interrupts : Should contain the following IRQs: ERI, RXI, TXI and BRI.
- cell-index : The device id.
- renesas,scscr : Should contain a bitfield used by the Serial Control Register.
  b7 = SCSCR_TIE
  b6 = SCSCR_RIE
  b5 = SCSCR_TE
  b4 = SCSCR_RE
  b3 = SCSCR_REIE
  b2 = SCSCR_TOIE
  b1 = SCSCR_CKE1
  b0 = SCSCR_CKE0
- renesas,scbrr-algo-id : Algorithm ID for the Bit Rate Register
  1 = SCBRR_ALGO_1 ((clk + 16 * bps) / (16 * bps) - 1)
  2 = SCBRR_ALGO_2 ((clk + 16 * bps) / (32 * bps) - 1)
  3 = SCBRR_ALGO_3 (((clk * 2) + 16 * bps) / (16 * bps) - 1)
  4 = SCBRR_ALGO_4 (((clk * 2) + 16 * bps) / (32 * bps) - 1)
  5 = SCBRR_ALGO_5 (((clk * 1000 / 32) / bps) - 1)

Optional properties:
- renesas,autoconf : Set if device is capable of auto configuration
- renesas,regtype : Overwrite the register layout. In most cases you can rely
  on auto-probing (omit this property or set to 0) but some legacy devices
  use a non-default register layout. Possible layouts are
  0 = SCIx_PROBE_REGTYPE (default)
  1 = SCIx_SCI_REGTYPE
  2 = SCIx_IRDA_REGTYPE
  3 = SCIx_SCIFA_REGTYPE
  4 = SCIx_SCIFB_REGTYPE
  5 = SCIx_SH2_SCIF_FIFODATA_REGTYPE
  6 = SCIx_SH3_SCIF_REGTYPE
  7 = SCIx_SH4_SCIF_REGTYPE
  8 = SCIx_SH4_SCIF_NO_SCSPTR_REGTYPE
  9 = SCIx_SH4_SCIF_FIFODATA_REGTYPE
 10 = SCIx_SH7705_SCIF_REGTYPE


Example:
	sci@0xe6c50000 {
		compatible = "renesas,sci-SCIFA-uart";
		interrupt-parent = <&intca>;
		reg = <0xe6c50000 0x100>;
		interrupts = <0x0c20>, <0x0c20>, <0x0c20>, <0x0c20>;
		cell-index = <1>;
		renesas,scscr = <0x30>;
		renesas,scbrr-algo-id = <4>;
		renesas,autoconf;
	};