1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "mt7620n.dtsi"
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-iii-a", "ralink,mt7620n-soc";
11 model = "ZyXEL Keenetic Lite III (rev. A)";
15 led-failsafe = &led_wan;
16 led-running = &led_wan;
17 led-upgrade = &led_wan;
21 compatible = "gpio-keys";
25 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; // #GPIO1
26 linux,code = <KEY_RESTART>;
31 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; // #GPIO2
32 linux,code = <KEY_WPS_BUTTON>;
37 gpios = <&gpio0 17 GPIO_ACTIVE_LOW>; // #GPIO17
43 gpios = <&gpio0 20 GPIO_ACTIVE_LOW>; // #GPIO20
49 gpios = <&gpio0 21 GPIO_ACTIVE_LOW>; // #GPIO21
55 compatible = "gpio-leds";
58 color = <LED_COLOR_ID_GREEN>;
59 function = LED_FUNCTION_STATUS;
60 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; // #GPIO38
64 color = <LED_COLOR_ID_GREEN>;
65 function = LED_FUNCTION_WLAN;
66 gpios = <&gpio3 0 GPIO_ACTIVE_HIGH>; // #GPIO72
88 compatible = "jedec,spi-nor";
90 spi-max-frequency = <48000000>;
93 compatible = "fixed-partitions";
105 reg = <0x30000 0x10000>;
110 reg = <0x40000 0x10000>;
114 compatible = "fixed-layout";
115 #address-cells = <1>;
118 eeprom_factory_0: eeprom@0 {
125 compatible = "denx,uimage";
127 reg = <0x50000 0x7a0000>;
132 reg = <0x7f0000 0x10000>;
137 reg = <0x0 0x800000>;
151 nvmem-cells = <&eeprom_factory_0>;
152 nvmem-cell-names = "eeprom";