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 "qca953x.dtsi"
9 compatible = "teltonika,rut300", "teltonika,rut30x", "qca,qca9531";
10 model = "TELTONIKA RUT300";
13 label-mac-device = ð1;
15 led-failsafe = &led_wan;
16 led-running = &led_wan;
17 led-upgrade = &led_wan;
22 compatible = "gpio-leds";
23 pinctrl-names = "default";
24 pinctrl-0 = <&pmx_leds_switch>, <&jtag_disable_pins>;
28 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
32 label = "yellow:lan1";
33 gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
37 label = "yellow:lan2";
38 gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
42 label = "yellow:lan3";
43 gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
47 label = "yellow:lan4";
48 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
53 compatible = "gpio-keys";
57 linux,code = <KEY_RESTART>;
58 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
68 compatible = "jedec,spi-nor";
70 spi-max-frequency = <25000000>;
73 compatible = "fixed-partitions";
79 reg = <0x000000 0x020000>;
83 config: partition@20000 {
85 reg = <0x020000 0x010000>;
91 reg = <0x030000 0x010000>;
96 compatible = "denx,uimage";
98 reg = <0x040000 0xf30000>;
103 reg = <0xf70000 0x090000>;
122 compatible = "nvmem-cells";
123 #address-cells = <1>;
126 macaddr_config_0: macaddr@0 {
133 phy-handle = <&swphy0>;
135 nvmem-cells = <&macaddr_config_0>;
136 nvmem-cell-names = "mac-address";
137 mac-address-increment = <1>;
141 phy-handle = <&swphy4>;
142 nvmem-cells = <&macaddr_config_0>;
143 nvmem-cell-names = "mac-address";
147 switch-phy-swap = <1>;
152 pmx_leds_switch: leds_switch {
153 // switch port LEDs on GPIO 0~4
154 pinctrl-single,bits = <0x0 0x00000000 0xffffffff>,
155 <0x4 0x00000000 0x000000ff>;