1 // SPDX-License-Identifier: GPL-2.0-or-later
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
10 compatible = "zyxel,keenetic-4g-b", "ralink,rt5350-soc";
11 model = "ZyXEL Keenetic 4G Rev.B";
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
21 compatible = "gpio-leds";
24 function = LED_FUNCTION_POWER;
25 color = <LED_COLOR_ID_GREEN>;
26 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
30 function = LED_FUNCTION_USB;
31 color = <LED_COLOR_ID_GREEN>;
32 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
36 label = "green:reserved";
37 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
41 label = "green:internet";
42 gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
46 function = LED_FUNCTION_WLAN;
47 color = <LED_COLOR_ID_GREEN>;
48 gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
54 compatible = "gpio-keys";
58 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
59 linux,code = <KEY_WPS_BUTTON>;
64 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
65 linux,code = <KEY_RESTART>;
74 compatible = "jedec,spi-nor";
76 spi-max-frequency = <30000000>;
79 compatible = "fixed-partitions";
91 reg = <0x30000 0x10000>;
97 reg = <0x40000 0x10000>;
101 compatible = "fixed-layout";
102 #address-cells = <1>;
105 eeprom_factory_0: eeprom@0 {
109 macaddr_factory_28: macaddr@28 {
116 compatible = "denx,uimage";
118 reg = <0x50000 0x7b0000>;
132 nvmem-cells = <&macaddr_factory_28>;
133 nvmem-cell-names = "mac-address";
137 mediatek,portmap = <0x2f>;
138 mediatek,led_polarity = <0x17>;
142 ralink,led-polarity = <1>;
143 nvmem-cells = <&eeprom_factory_0>;
144 nvmem-cell-names = "eeprom";