ath79: add support for ELECOM WAB-I1750-PS
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9558_elecom_wab-i1750-ps.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca955x_elecom_wab.dtsi"
4
5 / {
6 compatible = "elecom,wab-i1750-ps", "qca,qca9558";
7 model = "ELECOM WAB-I1750-PS";
8
9 ahb {
10 apb {
11 /* "SERIAL" port (RJ-45) on the case */
12 uart1: uart@18500000 {
13 compatible = "qca,ar9330-uart";
14 reg = <0x18500000 0x14>;
15
16 pinctrl-names = "default";
17 pinctrl-0 = <&pmx_uart1_in_pins &pmx_uart1_out_pins
18 &jtag_disable_pins>;
19
20 interrupts = <6>;
21 interrupt-parent = <&miscintc>;
22
23 clocks = <&pll ATH79_CLK_UART1>;
24 clock-names = "uart";
25
26 /* QCA955x HS UART is not supported */
27 status = "disabled";
28 };
29 };
30 };
31 };
32
33 &gpio {
34 uart1-out {
35 gpio-hog;
36 gpios = <0 GPIO_ACTIVE_HIGH>, /* UART1_TD */
37 <2 GPIO_ACTIVE_HIGH>; /* UART1_RTS */
38 output-low;
39 };
40
41 uart1-in {
42 gpio-hog;
43 gpios = <1 GPIO_ACTIVE_HIGH>, /* UART1_RD */
44 <3 GPIO_ACTIVE_HIGH>; /* UART1_CTS */
45 input;
46 };
47 };
48
49 &pinmux {
50 pmx_uart1_out_pins: uart1-out-pins {
51 /*
52 * mux as uart1 output
53 *
54 * GPIO0: UART1_TD (sel:18)
55 * GPIO2: UART1_RTS (sel:19)
56 */
57 pinctrl-single,bits = <0x0 0x130012 0xff00ff>;
58 };
59
60 pmx_uart1_in_pins: uart1-in-pins {
61 /*
62 * mux as uart1 input
63 *
64 * GPIO1: UART1_RD
65 * GPIO3: UART1_CTS
66 */
67 pinctrl-single,bits = <0x3c 0x3010000 0xffff0000>;
68 };
69 };