1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "ar9344_teltonika_rut9xx.dtsi"
6 model = "Teltonika RUT955";
7 compatible = "teltonika,rut955", "teltonika,rut9xx", "qca,ar9344";
10 led-boot = &led_system_green;
11 led-failsafe = &led_system_red;
12 led-running = &led_system_green;
13 led-upgrade = &led_system_red;
17 compatible = "gpio-leds";
20 label = "rut955:green:signal0";
21 gpios = <&gpio_ext 0 GPIO_ACTIVE_HIGH>;
25 label = "rut955:green:signal1";
26 gpios = <&gpio_ext 1 GPIO_ACTIVE_HIGH>;
30 label = "rut955:green:signal2";
31 gpios = <&gpio_ext 2 GPIO_ACTIVE_HIGH>;
35 label = "rut955:green:signal3";
36 gpios = <&gpio_ext 3 GPIO_ACTIVE_HIGH>;
40 label = "rut955:green:signal4";
41 gpios = <&gpio_ext 4 GPIO_ACTIVE_HIGH>;
44 led_system_red: system_red {
45 label = "rut955:red:system";
46 gpios = <&gpio_ext 5 GPIO_ACTIVE_HIGH>;
49 led_system_green: system_green {
50 label = "rut955:green:system";
51 gpios = <&gpio_ext 6 GPIO_ACTIVE_HIGH>;
58 pinctrl-names = "default";
59 pinctrl-0 = <&jtag_disable_pins>;
61 gpio-line-names = "RS485_D", "led_wan", "DIN3", "mmc_cs",
62 "ext_sck", "", "", "",
64 "ext_mosi", "led_lan2", "led_lan1", "",
65 "i2c_scl", "i2c_sda", "", "DIN2",
66 "ext_cs", "DIN1", "led_lan3", "",
72 gpios = <4 GPIO_ACTIVE_HIGH>;
74 line-name = "rut955:ext:sck";
79 gpios = <12 GPIO_ACTIVE_HIGH>;
81 line-name = "rut955:ext:mosi";
86 gpios = <20 GPIO_ACTIVE_HIGH>;
88 line-name = "rut955:ext:cs";
93 gpios = <3 GPIO_ACTIVE_HIGH>;
95 line-name = "rut955:mmc:cs";
100 gpios = <18 GPIO_ACTIVE_HIGH>;
102 line-name = "rut955:uart1:td";
107 gpios = <11 GPIO_ACTIVE_LOW>;
109 line-name = "rut955:uart1:rd";
114 gpios = <1 GPIO_ACTIVE_HIGH>;
116 line-name = "rut955:led:wan";
121 gpios = <13 GPIO_ACTIVE_HIGH>;
123 line-name = "rut955:led:lan2";
128 gpios = <14 GPIO_ACTIVE_HIGH>;
130 line-name = "rut955:led:lan1";
135 gpios = <22 GPIO_ACTIVE_HIGH>;
137 line-name = "rut955:led:lan3";
145 pinctrl-names = "default";
146 pinctrl-0 = <&pmx_spi>, <&pmx_spi_ext>;
148 gpio_ext: gpio_ext@2 {
149 compatible = "fairchild,74hc595";
153 registers-number = <2>;
154 spi-max-frequency = <10000000>;
155 gpio-line-names = "signal_bar0", "signal_bar1", "signal_bar2", "signal_bar3",
156 "signal_bar4", "status_red", "status_green", "sim_sel",
157 "DOUT1", "DOUT2", "modem_vbus", "modem_rst",
158 "DOUT3", "RS485_R", "SDCS", "HWRST";
163 dtr-gpios = <&gpio_ext 13 GPIO_ACTIVE_HIGH>;
169 phy-handle = <&swphy4>;
171 mtd-mac-address = <&config 0x0>;
172 mtd-mac-address-increment = <1>;
178 mtd-mac-address = <&config 0x0>;
182 pinctrl-names = "default";
183 pinctrl-0 = <&pmx_leds_switch>;
187 pmx_spi_ext: spi_ext {
188 // 2nd SCK on GPIO 4, 2nd MOSI on GPIO 12, SPI_CS2 on GPIO 20
189 pinctrl-single,bits = <0x4 0x0a 0xff>,