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";
59 color = <LED_COLOR_ID_GREEN>;
60 function = LED_FUNCTION_STATUS;
61 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>; // #GPIO38
66 color = <LED_COLOR_ID_GREEN>;
67 function = LED_FUNCTION_WLAN;
68 gpios = <&gpio3 0 GPIO_ACTIVE_HIGH>; // #GPIO72
90 compatible = "jedec,spi-nor";
92 spi-max-frequency = <48000000>;
95 compatible = "fixed-partitions";
107 reg = <0x30000 0x10000>;
110 factory: partition@40000 {
111 compatible = "nvmem-cells";
113 reg = <0x40000 0x10000>;
114 #address-cells = <1>;
118 eeprom_factory_0: eeprom@0 {
124 compatible = "denx,uimage";
126 reg = <0x50000 0x7a0000>;
131 reg = <0x7f0000 0x10000>;
136 reg = <0x0 0x800000>;
150 nvmem-cells = <&eeprom_factory_0>;
151 nvmem-cell-names = "eeprom";