xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/serial/nxp,sc16is7xx.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun* NXP SC16IS7xx advanced Universal Asynchronous Receiver-Transmitter (UART)
2*4882a593Smuzhiyun* i2c as bus
3*4882a593Smuzhiyun
4*4882a593SmuzhiyunRequired properties:
5*4882a593Smuzhiyun- compatible: Should be one of the following:
6*4882a593Smuzhiyun  - "nxp,sc16is740" for NXP SC16IS740,
7*4882a593Smuzhiyun  - "nxp,sc16is741" for NXP SC16IS741,
8*4882a593Smuzhiyun  - "nxp,sc16is750" for NXP SC16IS750,
9*4882a593Smuzhiyun  - "nxp,sc16is752" for NXP SC16IS752,
10*4882a593Smuzhiyun  - "nxp,sc16is760" for NXP SC16IS760,
11*4882a593Smuzhiyun  - "nxp,sc16is762" for NXP SC16IS762.
12*4882a593Smuzhiyun- reg: I2C address of the SC16IS7xx device.
13*4882a593Smuzhiyun- interrupts: Should contain the UART interrupt
14*4882a593Smuzhiyun- clocks: Reference to the IC source clock.
15*4882a593Smuzhiyun	OR (when there is no clock provider visible to the platform)
16*4882a593Smuzhiyun- clock-frequency: The source clock frequency for the IC.
17*4882a593Smuzhiyun
18*4882a593SmuzhiyunOptional properties:
19*4882a593Smuzhiyun- gpio-controller: Marks the device node as a GPIO controller.
20*4882a593Smuzhiyun- #gpio-cells: Should be two. The first cell is the GPIO number and
21*4882a593Smuzhiyun  the second cell is used to specify the GPIO polarity:
22*4882a593Smuzhiyun    0 = active high,
23*4882a593Smuzhiyun    1 = active low.
24*4882a593Smuzhiyun- irda-mode-ports: An array that lists the indices of the port that
25*4882a593Smuzhiyun		   should operate in IrDA mode.
26*4882a593Smuzhiyun
27*4882a593SmuzhiyunExample:
28*4882a593Smuzhiyun        sc16is750: sc16is750@51 {
29*4882a593Smuzhiyun                compatible = "nxp,sc16is750";
30*4882a593Smuzhiyun                reg = <0x51>;
31*4882a593Smuzhiyun                clocks = <&clk20m>;
32*4882a593Smuzhiyun                interrupt-parent = <&gpio3>;
33*4882a593Smuzhiyun                interrupts = <7 IRQ_TYPE_EDGE_FALLING>;
34*4882a593Smuzhiyun                gpio-controller;
35*4882a593Smuzhiyun                #gpio-cells = <2>;
36*4882a593Smuzhiyun        };
37*4882a593Smuzhiyun
38*4882a593Smuzhiyun* spi as bus
39*4882a593Smuzhiyun
40*4882a593SmuzhiyunRequired properties:
41*4882a593Smuzhiyun- compatible: Should be one of the following:
42*4882a593Smuzhiyun  - "nxp,sc16is740" for NXP SC16IS740,
43*4882a593Smuzhiyun  - "nxp,sc16is741" for NXP SC16IS741,
44*4882a593Smuzhiyun  - "nxp,sc16is750" for NXP SC16IS750,
45*4882a593Smuzhiyun  - "nxp,sc16is752" for NXP SC16IS752,
46*4882a593Smuzhiyun  - "nxp,sc16is760" for NXP SC16IS760,
47*4882a593Smuzhiyun  - "nxp,sc16is762" for NXP SC16IS762.
48*4882a593Smuzhiyun- reg: SPI chip select number.
49*4882a593Smuzhiyun- interrupts: Specifies the interrupt source of the parent interrupt
50*4882a593Smuzhiyun  controller. The format of the interrupt specifier depends on the
51*4882a593Smuzhiyun  parent interrupt controller.
52*4882a593Smuzhiyun- clocks: phandle to the IC source clock.
53*4882a593Smuzhiyun
54*4882a593SmuzhiyunOptional properties:
55*4882a593Smuzhiyun- gpio-controller: Marks the device node as a GPIO controller.
56*4882a593Smuzhiyun- #gpio-cells: Should be two. The first cell is the GPIO number and
57*4882a593Smuzhiyun  the second cell is used to specify the GPIO polarity:
58*4882a593Smuzhiyun    0 = active high,
59*4882a593Smuzhiyun    1 = active low.
60*4882a593Smuzhiyun- irda-mode-ports: An array that lists the indices of the port that
61*4882a593Smuzhiyun		   should operate in IrDA mode.
62*4882a593Smuzhiyun
63*4882a593SmuzhiyunExample:
64*4882a593Smuzhiyun	sc16is750: sc16is750@0 {
65*4882a593Smuzhiyun		compatible = "nxp,sc16is750";
66*4882a593Smuzhiyun		reg = <0>;
67*4882a593Smuzhiyun		clocks = <&clk20m>;
68*4882a593Smuzhiyun		interrupt-parent = <&gpio3>;
69*4882a593Smuzhiyun		interrupts = <7 IRQ_TYPE_EDGE_FALLING>;
70*4882a593Smuzhiyun		gpio-controller;
71*4882a593Smuzhiyun		#gpio-cells = <2>;
72*4882a593Smuzhiyun	};
73