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>
7 #include <dt-bindings/leds/common.h>
10 model = "Teltonika RUT230 v1";
11 compatible = "teltonika,rut230-v1", "qca,ar9331";
14 label-mac-device = ð1;
16 led-failsafe = &led_ss0;
17 led-upgrade = &led_ss0;
21 compatible = "gpio-keys";
25 linux,code = <KEY_RESTART>;
26 gpios = <&gpio 22 GPIO_ACTIVE_HIGH>;
27 debounce-interval = <60>;
33 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
34 debounce-interval = <60>;
40 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
41 debounce-interval = <60>;
46 compatible = "gpio-leds";
47 pinctrl-names = "default";
48 pinctrl-0 = <&switch_led_disable_pins>;
50 led_ss0: signal-strength-0 {
51 label = "green:signal-strength-0";
52 gpios = <&gpio 23 GPIO_ACTIVE_HIGH>;
56 label = "green:signal-strength-1";
57 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
61 label = "green:signal-strength-2";
62 gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
66 label = "green:signal-strength-3";
67 gpios = <&gpio 26 GPIO_ACTIVE_HIGH>;
71 label = "green:signal-strength4";
72 gpios = <&gpio 27 GPIO_ACTIVE_HIGH>;
77 gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
82 gpios = <&gpio 24 GPIO_ACTIVE_HIGH>;
86 function = LED_FUNCTION_LAN;
87 color = <LED_COLOR_ID_GREEN>;
88 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
89 /* GPIO 13 - ACTIVE HIGH for hwrev 0 */
93 function = LED_FUNCTION_WAN;
94 color = <LED_COLOR_ID_GREEN>;
95 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
96 /* GPIO 14 - ACTIVE HIGH for hwrev 0 */
99 /* 4G LED - GPIO21 ACTIVE_HIGH for RUT240 */
102 reg_usb_vbus: reg_usb_vbus {
103 compatible = "regulator-fixed";
104 regulator-name = "usb_vbus";
105 regulator-min-microvolt = <5000000>;
106 regulator-max-microvolt = <5000000>;
107 gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
115 nvmem-cells = <&macaddr_config_0 1>;
116 nvmem-cell-names = "mac-address";
122 nvmem-cells = <&macaddr_config_0 0>;
123 nvmem-cell-names = "mac-address";
130 compatible = "jedec,spi-nor";
132 spi-max-frequency = <30000000>;
135 compatible = "fixed-partitions";
136 #address-cells = <1>;
145 config: partition@20000 {
147 reg = <0x20000 0x10000>;
151 compatible = "fixed-layout";
152 #address-cells = <1>;
155 macaddr_config_0: macaddr@0 {
156 compatible = "mac-base";
158 #nvmem-cell-cells = <1>;
163 art: partition@30000 {
165 reg = <0x30000 0x10000>;
170 compatible = "tplink,firmware";
172 reg = <0x40000 0xf30000>;
177 reg = <0xf70000 0x90000>;
186 vbus-supply = <®_usb_vbus>;
194 gpios = <18 GPIO_ACTIVE_HIGH>;
195 line-name = "modem-power";
206 mtd-cal-data = <&art 0x1000>;
207 nvmem-cells = <&macaddr_config_0 2>;
208 nvmem-cell-names = "mac-address";