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>
6 #include <dt-bindings/leds/common.h>
7 #include "qca953x.dtsi"
10 compatible = "teltonika,rut300", "teltonika,rut30x", "qca,qca9531";
11 model = "TELTONIKA RUT300";
14 label-mac-device = ð1;
16 led-failsafe = &led_wan;
17 led-running = &led_wan;
18 led-upgrade = &led_wan;
23 compatible = "gpio-leds";
24 pinctrl-names = "default";
25 pinctrl-0 = <&pmx_leds_switch>, <&jtag_disable_pins>;
28 function = LED_FUNCTION_WAN;
29 color = <LED_COLOR_ID_YELLOW>;
30 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
34 label = "yellow:lan1";
35 gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
39 label = "yellow:lan2";
40 gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
44 label = "yellow:lan3";
45 gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
49 label = "yellow:lan4";
50 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
55 compatible = "gpio-keys";
59 linux,code = <KEY_RESTART>;
60 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
70 compatible = "jedec,spi-nor";
72 spi-max-frequency = <25000000>;
75 compatible = "fixed-partitions";
81 reg = <0x000000 0x020000>;
85 config: partition@20000 {
87 reg = <0x020000 0x010000>;
91 compatible = "fixed-layout";
95 macaddr_config_0: macaddr@0 {
96 compatible = "mac-base";
98 #nvmem-cell-cells = <1>;
105 reg = <0x030000 0x010000>;
110 compatible = "denx,uimage";
112 reg = <0x040000 0xf30000>;
117 reg = <0xf70000 0x090000>;
137 phy-handle = <&swphy0>;
139 nvmem-cells = <&macaddr_config_0 1>;
140 nvmem-cell-names = "mac-address";
144 phy-handle = <&swphy4>;
145 nvmem-cells = <&macaddr_config_0 0>;
146 nvmem-cell-names = "mac-address";
150 switch-phy-swap = <1>;
155 pmx_leds_switch: leds_switch {
156 // switch port LEDs on GPIO 0~4
157 pinctrl-single,bits = <0x0 0x00000000 0xffffffff>,
158 <0x4 0x00000000 0x000000ff>;