ath79: cleanup and enable uart1 on ELECOM WAB-I1750-PS
[openwrt/staging/mans0n.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
10 &gpio {
11 uart1-out {
12 gpio-hog;
13 gpios = <0 GPIO_ACTIVE_HIGH>, /* UART1_TD */
14 <2 GPIO_ACTIVE_HIGH>; /* UART1_RTS */
15 output-low;
16 };
17
18 uart1-in {
19 gpio-hog;
20 gpios = <1 GPIO_ACTIVE_HIGH>, /* UART1_RD */
21 <3 GPIO_ACTIVE_HIGH>; /* UART1_CTS */
22 input;
23 };
24 };
25
26 &pinmux {
27 pmx_uart1_out_pins: uart1-out-pins {
28 /*
29 * mux as uart1 output
30 *
31 * GPIO0: UART1_TD (sel:18)
32 * GPIO2: UART1_RTS (sel:19)
33 */
34 pinctrl-single,bits = <0x0 0x130012 0xff00ff>;
35 };
36
37 pmx_uart1_in_pins: uart1-in-pins {
38 /*
39 * mux as uart1 input
40 *
41 * GPIO1: UART1_RD
42 * GPIO3: UART1_CTS
43 */
44 pinctrl-single,bits = <0x3c 0x3010000 0xffff0000>;
45 };
46 };
47
48 /* "SERIAL" port (RJ-45) on the case */
49 &uart1 {
50 pinctrl-names = "default";
51 pinctrl-0 = <&pmx_uart1_in_pins &pmx_uart1_out_pins
52 &jtag_disable_pins>;
53 status = "okay";
54 };