1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
10 model = "Teltonika RUT955";
11 compatible = "teltonika,rut955", "qca,ar9344";
16 led-boot = &led_system_green;
17 led-failsafe = &led_system_red;
18 led-running = &led_system_green;
19 led-upgrade = &led_system_red;
20 label-mac-device = ð1;
24 compatible = "i2c-gpio";
25 scl-gpios = <&gpio 16 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
26 sda-gpios = <&gpio 17 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
31 compatible = "microchip,mcp3221";
37 compatible = "gpio-leds";
40 label = "rut955:green:signal1";
41 gpios = <&gpio_ext 0 GPIO_ACTIVE_HIGH>;
45 label = "rut955:green:signal2";
46 gpios = <&gpio_ext 1 GPIO_ACTIVE_HIGH>;
50 label = "rut955:green:signal3";
51 gpios = <&gpio_ext 2 GPIO_ACTIVE_HIGH>;
55 label = "rut955:green:signal4";
56 gpios = <&gpio_ext 3 GPIO_ACTIVE_HIGH>;
60 label = "rut955:green:signal5";
61 gpios = <&gpio_ext 4 GPIO_ACTIVE_HIGH>;
64 led_system_red: system_red {
65 label = "rut955:red:system";
66 gpios = <&gpio_ext 5 GPIO_ACTIVE_HIGH>;
69 led_system_green: system_green {
70 label = "rut955:green:system";
71 gpios = <&gpio_ext 6 GPIO_ACTIVE_HIGH>;
77 compatible = "gpio-keys";
81 linux,code = <KEY_RESTART>;
82 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
83 debounce-interval = <60>;
89 pinctrl-names = "default";
90 pinctrl-0 = <&jtag_disable_pins>;
92 gpio-line-names = "RS485_D", "led_wan", "DIN3", "mmc_cs",
93 "ext_sck", "", "", "",
95 "ext_mosi", "led_lan2", "led_lan1", "",
96 "i2c_scl", "i2c_sda", "", "DIN2",
97 "ext_cs", "DIN1", "led_lan3", "",
103 gpios = <4 GPIO_ACTIVE_HIGH>;
105 line-name = "rut955:ext:sck";
110 gpios = <12 GPIO_ACTIVE_HIGH>;
112 line-name = "rut955:ext:mosi";
117 gpios = <20 GPIO_ACTIVE_HIGH>;
119 line-name = "rut955:ext:cs";
124 gpios = <3 GPIO_ACTIVE_HIGH>;
126 line-name = "rut955:mmc:cs";
131 gpios = <18 GPIO_ACTIVE_HIGH>;
133 line-name = "rut955:uart1:td";
138 gpios = <11 GPIO_ACTIVE_LOW>;
140 line-name = "rut955:uart1:rd";
145 gpios = <1 GPIO_ACTIVE_HIGH>;
147 line-name = "rut955:led:wan";
152 gpios = <13 GPIO_ACTIVE_HIGH>;
154 line-name = "rut955:led:lan2";
159 gpios = <14 GPIO_ACTIVE_HIGH>;
161 line-name = "rut955:led:lan1";
166 gpios = <22 GPIO_ACTIVE_HIGH>;
168 line-name = "rut955:led:lan3";
173 clock-frequency = <40000000>;
183 pinctrl-names = "default";
184 pinctrl-0 = <&pmx_uart2>;
186 rts-gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
187 rs485-rts-active-low;
188 linux,rs485-enabled-at-boot-time;
195 pinctrl-names = "default";
196 pinctrl-0 = <&pmx_spi>;
199 compatible = "jedec,spi-nor";
201 spi-max-frequency = <25000000>;
204 compatible = "fixed-partitions";
205 #address-cells = <1>;
214 config: partition@20000 {
216 reg = <0x20000 0x10000>;
220 art: partition@30000 {
222 reg = <0x30000 0x10000>;
228 reg = <0x40000 0xf30000>;
229 compatible = "tplink,firmware";
234 reg = <0xf70000 0x90000>;
243 compatible = "mmc-spi-slot";
244 spi-max-frequency = <25000000>;
246 voltage-ranges = <3200 3400>;
250 gpio_ext: gpio_ext@2 {
251 compatible = "fairchild,74hc595";
255 registers-number = <2>;
256 spi-max-frequency = <10000000>;
257 gpio-line-names = "led_signal_bar1", "led_signal_bar2", "led_signal_bar3", "led_signal_bar4",
258 "led_signal_bar5", "led_status_red", "led_status_green", "sim_sel",
259 "DOUT1", "DOUT2", "modem_vbus", "modem_rst",
260 "DOUT3", "RS485_R", "SDCS", "HWRST";
265 #address-cells = <1>;
270 #address-cells = <1>;
275 compatible = "usb-a-connector";
280 label = "RS-232 serial adapter";
285 label = "internal wwan modem";
298 mtd-cal-data = <&art 0x1000>;
299 mtd-mac-address = <&config 0x0>;
300 mtd-mac-address-increment = <2>;
306 phy-handle = <&swphy4>;
308 mtd-mac-address = <&config 0x0>;
309 mtd-mac-address-increment = <1>;
315 mtd-mac-address = <&config 0x0>;
319 pinctrl-names = "default";
320 pinctrl-0 = <&pmx_leds_switch>;
325 // SPI_CS1 on GPIO 3, 2nd SCK on GPIO 4
326 // 2nd MOSI on GPIO 12, SPI_CS2 on GPIO 20
327 pinctrl-single,bits = <0x0 0x07000000 0xff000000>,
333 pmx_leds_switch: leds_switch {
334 // switch port LEDs on GPIO 1, GPIO 13, GPIO 14 and GPIO 22
335 pinctrl-single,bits = <0x0 0x00002d00 0x0000ff00>,
336 <0xc 0x002c2b00 0x00ffff00>,
337 <0x14 0x002a0000 0x00ff0000>;
341 // UART1_DTR on GPIO 0, UART1_RD on GPIO 11, UART1_TD on GPIO 18
342 pinctrl-single,bits = <0x0 0x0 0xff>,
343 <0x10 0x4f000000 0xff000000>,
344 <0x3c 0x000b0000 0x00ff0000>;