1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 model = "Teltonika RUT230 v1";
10 compatible = "teltonika,rut230-v1", "qca,ar9331";
13 label-mac-device = ð1;
15 led-failsafe = &led_ss0;
16 led-upgrade = &led_ss0;
20 compatible = "gpio-keys";
24 linux,code = <KEY_RESTART>;
25 gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
26 debounce-interval = <60>;
32 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
33 debounce-interval = <60>;
39 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
40 debounce-interval = <60>;
45 compatible = "gpio-leds";
46 pinctrl-names = "default";
47 pinctrl-0 = <&switch_led_disable_pins>;
49 led_ss0: signal-strength-0 {
50 label = "green:signal-strength-0";
51 gpios = <&gpio 23 GPIO_ACTIVE_HIGH>;
55 label = "green:signal-strength-1";
56 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
60 label = "green:signal-strength-2";
61 gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
65 label = "green:signal-strength-3";
66 gpios = <&gpio 26 GPIO_ACTIVE_HIGH>;
70 label = "green:signal-strength4";
71 gpios = <&gpio 27 GPIO_ACTIVE_HIGH>;
76 gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
81 gpios = <&gpio 24 GPIO_ACTIVE_HIGH>;
86 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
87 /* GPIO 13 - ACTIVE HIGH for hwrev 0 */
92 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
93 /* GPIO 14 - ACTIVE HIGH for hwrev 0 */
96 /* 4G LED - GPIO21 ACTIVE_HIGH for RUT240 */
99 reg_usb_vbus: reg_usb_vbus {
100 compatible = "regulator-fixed";
101 regulator-name = "usb_vbus";
102 regulator-min-microvolt = <5000000>;
103 regulator-max-microvolt = <5000000>;
104 gpio = <&gpio 19 GPIO_ACTIVE_HIGH>;
112 nvmem-cells = <&macaddr_config_0>;
113 nvmem-cell-names = "mac-address";
114 mac-address-increment = <1>;
120 nvmem-cells = <&macaddr_config_0>;
121 nvmem-cell-names = "mac-address";
128 compatible = "jedec,spi-nor";
130 spi-max-frequency = <30000000>;
133 compatible = "fixed-partitions";
134 #address-cells = <1>;
143 config: partition@20000 {
145 reg = <0x20000 0x10000>;
149 art: partition@30000 {
151 reg = <0x30000 0x10000>;
156 compatible = "tplink,firmware";
158 reg = <0x40000 0xf30000>;
163 reg = <0xf70000 0x90000>;
172 vbus-supply = <®_usb_vbus>;
180 gpios = <18 GPIO_ACTIVE_HIGH>;
181 line-name = "modem-power";
192 mtd-cal-data = <&art 0x1000>;
193 nvmem-cells = <&macaddr_config_0>;
194 nvmem-cell-names = "mac-address";
195 mac-address-increment = <2>;
199 compatible = "nvmem-cells";
200 #address-cells = <1>;
203 macaddr_config_0: macaddr@0 {