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-lite-b", "ralink,rt5350-soc";
11 model = "ZyXEL Keenetic Lite 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_WPS;
31 color = <LED_COLOR_ID_GREEN>;
32 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
37 compatible = "gpio-keys";
41 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
42 linux,code = <KEY_WPS_BUTTON>;
47 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
48 linux,code = <KEY_RESTART>;
57 compatible = "jedec,spi-nor";
59 spi-max-frequency = <60000000>;
62 compatible = "fixed-partitions";
74 reg = <0x30000 0x10000>;
78 factory: partition@40000 {
80 reg = <0x40000 0x10000>;
84 compatible = "fixed-layout";
88 eeprom_factory_0: eeprom@0 {
92 macaddr_factory_28: macaddr@28 {
99 compatible = "denx,uimage";
101 reg = <0x50000 0x7b0000>;
115 nvmem-cells = <&macaddr_factory_28>;
116 nvmem-cell-names = "mac-address";
120 mediatek,portmap = <0x2f>;
121 mediatek,led_polarity = <0x17>;
125 ralink,led-polarity = <1>;
126 nvmem-cells = <&eeprom_factory_0>;
127 nvmem-cell-names = "eeprom";