xref: /freebsd/sys/contrib/device-tree/Bindings/serial/nxp,sc16is7xx.txt (revision aa1a8ff2d6dbc51ef058f46f3db5a8bb77967145)
1* NXP SC16IS7xx advanced Universal Asynchronous Receiver-Transmitter (UART)
2* i2c as bus
3
4Required properties:
5- compatible: Should be one of the following:
6  - "nxp,sc16is740" for NXP SC16IS740,
7  - "nxp,sc16is741" for NXP SC16IS741,
8  - "nxp,sc16is750" for NXP SC16IS750,
9  - "nxp,sc16is752" for NXP SC16IS752,
10  - "nxp,sc16is760" for NXP SC16IS760,
11  - "nxp,sc16is762" for NXP SC16IS762.
12- reg: I2C address of the SC16IS7xx device.
13- interrupts: Should contain the UART interrupt
14- clocks: Reference to the IC source clock.
15	OR (when there is no clock provider visible to the platform)
16- clock-frequency: The source clock frequency for the IC.
17
18Optional properties:
19- gpio-controller: Marks the device node as a GPIO controller.
20- #gpio-cells: Should be two. The first cell is the GPIO number and
21  the second cell is used to specify the GPIO polarity:
22    0 = active high,
23    1 = active low.
24- irda-mode-ports: An array that lists the indices of the port that
25		   should operate in IrDA mode.
26- nxp,modem-control-line-ports: An array that lists the indices of the port that
27				should have shared GPIO lines configured as
28				modem control lines.
29
30Example:
31        sc16is750: sc16is750@51 {
32                compatible = "nxp,sc16is750";
33                reg = <0x51>;
34                clocks = <&clk20m>;
35                interrupt-parent = <&gpio3>;
36                interrupts = <7 IRQ_TYPE_EDGE_FALLING>;
37                gpio-controller;
38                #gpio-cells = <2>;
39        };
40
41	sc16is752: sc16is752@53 {
42		compatible = "nxp,sc16is752";
43		reg = <0x53>;
44		clocks = <&clk20m>;
45		interrupt-parent = <&gpio3>;
46		interrupts = <7 IRQ_TYPE_EDGE_FALLING>;
47		nxp,modem-control-line-ports = <1>; /* Port 1 as modem control lines */
48		gpio-controller; /* Port 0 as GPIOs */
49		#gpio-cells = <2>;
50	};
51
52	sc16is752: sc16is752@54 {
53		compatible = "nxp,sc16is752";
54		reg = <0x54>;
55		clocks = <&clk20m>;
56		interrupt-parent = <&gpio3>;
57		interrupts = <7 IRQ_TYPE_EDGE_FALLING>;
58		nxp,modem-control-line-ports = <0 1>; /* Ports 0 and 1 as modem control lines */
59	};
60
61* spi as bus
62
63Required properties:
64- compatible: Should be one of the following:
65  - "nxp,sc16is740" for NXP SC16IS740,
66  - "nxp,sc16is741" for NXP SC16IS741,
67  - "nxp,sc16is750" for NXP SC16IS750,
68  - "nxp,sc16is752" for NXP SC16IS752,
69  - "nxp,sc16is760" for NXP SC16IS760,
70  - "nxp,sc16is762" for NXP SC16IS762.
71- reg: SPI chip select number.
72- interrupts: Specifies the interrupt source of the parent interrupt
73  controller. The format of the interrupt specifier depends on the
74  parent interrupt controller.
75- clocks: phandle to the IC source clock.
76
77Optional properties:
78- gpio-controller: Marks the device node as a GPIO controller.
79- #gpio-cells: Should be two. The first cell is the GPIO number and
80  the second cell is used to specify the GPIO polarity:
81    0 = active high,
82    1 = active low.
83- irda-mode-ports: An array that lists the indices of the port that
84		   should operate in IrDA mode.
85- nxp,modem-control-line-ports: An array that lists the indices of the port that
86				should have shared GPIO lines configured as
87				modem control lines.
88
89Example:
90	sc16is750: sc16is750@0 {
91		compatible = "nxp,sc16is750";
92		reg = <0>;
93		clocks = <&clk20m>;
94		interrupt-parent = <&gpio3>;
95		interrupts = <7 IRQ_TYPE_EDGE_FALLING>;
96		gpio-controller;
97		#gpio-cells = <2>;
98	};
99
100	sc16is752: sc16is752@1 {
101		compatible = "nxp,sc16is752";
102		reg = <1>;
103		clocks = <&clk20m>;
104		interrupt-parent = <&gpio3>;
105		interrupts = <7 IRQ_TYPE_EDGE_FALLING>;
106		nxp,modem-control-line-ports = <1>; /* Port 1 as modem control lines */
107		gpio-controller; /* Port 0 as GPIOs */
108		#gpio-cells = <2>;
109	};
110
111	sc16is752: sc16is752@2 {
112		compatible = "nxp,sc16is752";
113		reg = <2>;
114		clocks = <&clk20m>;
115		interrupt-parent = <&gpio3>;
116		interrupts = <7 IRQ_TYPE_EDGE_FALLING>;
117		nxp,modem-control-line-ports = <0 1>; /* Ports 0 and 1 as modem control lines */
118	};
119