mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-21 06:33:41 +00:00
342f55eeb3
Register ttyS0 and ttyATH1 as Linux console on ELECOM WAB-I1750-PS. ttyS0 provides "SERVICE" port and internal pin header for debugging and recoverying by maker, ttyATH1 provides "SERIAL" port for configuration by users. Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
59 lines
1.1 KiB
Plaintext
59 lines
1.1 KiB
Plaintext
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
|
|
|
#include "qca955x_elecom_wab.dtsi"
|
|
|
|
/ {
|
|
compatible = "elecom,wab-i1750-ps", "qca,qca9558";
|
|
model = "ELECOM WAB-I1750-PS";
|
|
|
|
chosen {
|
|
bootargs = "console=ttyATH1,115200n8 console=ttyS0,115200n8";
|
|
};
|
|
};
|
|
|
|
&gpio {
|
|
uart1-out {
|
|
gpio-hog;
|
|
gpios = <0 GPIO_ACTIVE_HIGH>, /* UART1_TD */
|
|
<2 GPIO_ACTIVE_HIGH>; /* UART1_RTS */
|
|
output-low;
|
|
};
|
|
|
|
uart1-in {
|
|
gpio-hog;
|
|
gpios = <1 GPIO_ACTIVE_HIGH>, /* UART1_RD */
|
|
<3 GPIO_ACTIVE_HIGH>; /* UART1_CTS */
|
|
input;
|
|
};
|
|
};
|
|
|
|
&pinmux {
|
|
pmx_uart1_out_pins: uart1-out-pins {
|
|
/*
|
|
* mux as uart1 output
|
|
*
|
|
* GPIO0: UART1_TD (sel:18)
|
|
* GPIO2: UART1_RTS (sel:19)
|
|
*/
|
|
pinctrl-single,bits = <0x0 0x130012 0xff00ff>;
|
|
};
|
|
|
|
pmx_uart1_in_pins: uart1-in-pins {
|
|
/*
|
|
* mux as uart1 input
|
|
*
|
|
* GPIO1: UART1_RD
|
|
* GPIO3: UART1_CTS
|
|
*/
|
|
pinctrl-single,bits = <0x3c 0x3010000 0xffff0000>;
|
|
};
|
|
};
|
|
|
|
/* "SERIAL" port (RJ-45) on the case */
|
|
&uart1 {
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&pmx_uart1_in_pins &pmx_uart1_out_pins
|
|
&jtag_disable_pins>;
|
|
status = "okay";
|
|
};
|