1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include "ar9344_teltonika_rut9xx.dtsi"
7 model = "Teltonika RUT955";
8 compatible = "teltonika,rut955", "teltonika,rut9xx", "qca,ar9344";
11 led-boot = &led_system_green;
12 led-failsafe = &led_system_red;
13 led-running = &led_system_green;
14 led-upgrade = &led_system_red;
18 compatible = "gpio-leds";
21 label = "rut955:green:signal0";
22 gpios = <&gpio_ext 0 GPIO_ACTIVE_HIGH>;
26 label = "rut955:green:signal1";
27 gpios = <&gpio_ext 1 GPIO_ACTIVE_HIGH>;
31 label = "rut955:green:signal2";
32 gpios = <&gpio_ext 2 GPIO_ACTIVE_HIGH>;
36 label = "rut955:green:signal3";
37 gpios = <&gpio_ext 3 GPIO_ACTIVE_HIGH>;
41 label = "rut955:green:signal4";
42 gpios = <&gpio_ext 4 GPIO_ACTIVE_HIGH>;
45 led_system_red: system_red {
46 label = "rut955:red:system";
47 gpios = <&gpio_ext 5 GPIO_ACTIVE_HIGH>;
50 led_system_green: system_green {
51 label = "rut955:green:system";
52 gpios = <&gpio_ext 6 GPIO_ACTIVE_HIGH>;
59 pinctrl-names = "default";
60 pinctrl-0 = <&jtag_disable_pins>;
62 gpio-line-names = "RS485_D", "led_wan", "DIN3", "mmc_cs",
63 "ext_sck", "", "", "",
65 "ext_mosi", "led_lan2", "led_lan1", "",
66 "i2c_scl", "i2c_sda", "", "DIN2",
67 "ext_cs", "DIN1", "led_lan3", "",
73 gpios = <4 GPIO_ACTIVE_HIGH>;
75 line-name = "rut955:ext:sck";
80 gpios = <12 GPIO_ACTIVE_HIGH>;
82 line-name = "rut955:ext:mosi";
87 gpios = <20 GPIO_ACTIVE_HIGH>;
89 line-name = "rut955:ext:cs";
94 gpios = <3 GPIO_ACTIVE_HIGH>;
96 line-name = "rut955:mmc:cs";
101 gpios = <18 GPIO_ACTIVE_HIGH>;
103 line-name = "rut955:uart1:td";
108 gpios = <11 GPIO_ACTIVE_LOW>;
110 line-name = "rut955:uart1:rd";
115 gpios = <1 GPIO_ACTIVE_HIGH>;
117 line-name = "rut955:led:wan";
122 gpios = <13 GPIO_ACTIVE_HIGH>;
124 line-name = "rut955:led:lan2";
129 gpios = <14 GPIO_ACTIVE_HIGH>;
131 line-name = "rut955:led:lan1";
136 gpios = <22 GPIO_ACTIVE_HIGH>;
138 line-name = "rut955:led:lan3";
146 pinctrl-names = "default";
147 pinctrl-0 = <&pmx_spi>, <&pmx_spi_ext>;
149 gpio_ext: gpio_ext@2 {
150 compatible = "fairchild,74hc595";
154 registers-number = <2>;
155 spi-max-frequency = <10000000>;
156 gpio-line-names = "signal_bar0", "signal_bar1", "signal_bar2", "signal_bar3",
157 "signal_bar4", "status_red", "status_green", "sim_sel",
158 "DOUT1", "DOUT2", "modem_vbus", "modem_rst",
159 "DOUT3", "RS485_R", "SDCS", "HWRST";
164 dtr-gpios = <&gpio_ext 13 GPIO_ACTIVE_HIGH>;
170 phy-handle = <&swphy4>;
172 mtd-mac-address = <&config 0x0>;
173 mtd-mac-address-increment = <1>;
179 mtd-mac-address = <&config 0x0>;
183 pinctrl-names = "default";
184 pinctrl-0 = <&pmx_leds_switch>;
188 pmx_spi_ext: spi_ext {
189 // 2nd SCK on GPIO 4, 2nd MOSI on GPIO 12, SPI_CS2 on GPIO 20
190 pinctrl-single,bits = <0x4 0x0a 0xff>,