1 // SPDX-License-Identifier: BSD-3-Clause
3 * Copyright(c) 2017 Kristian Evensen <kristian.evensen@gmail.com>.
7 #include "mt7620a.dtsi"
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/input/input.h>
11 #include <dt-bindings/leds/common.h>
14 compatible = "hnet,c108", "ralink,mt7620a-soc";
18 led-boot = &led_lan_green;
19 led-failsafe = &led_lan_green;
20 led-running = &led_lan_green;
21 led-upgrade = &led_lan_green;
25 bootargs = "console=ttyS0,115200";
29 compatible = "gpio-export";
33 gpio-export,name = "power_modem";
34 gpio-export,output = <1>;
35 gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>;
40 compatible = "gpio-leds";
43 label = "green:sdcard";
44 gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
48 label = "green:modem";
49 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
54 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
58 function = LED_FUNCTION_LAN;
59 color = <LED_COLOR_ID_RED>;
60 gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>;
63 led_lan_green: lan_green {
64 function = LED_FUNCTION_LAN;
65 color = <LED_COLOR_ID_GREEN>;
66 gpios = <&gpio2 4 GPIO_ACTIVE_HIGH>;
71 compatible = "gpio-keys";
75 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
76 linux,code = <KEY_RESTART>;
93 compatible = "jedec,spi-nor";
95 spi-max-frequency = <10000000>;
98 compatible = "fixed-partitions";
109 label = "u-boot-env";
110 reg = <0x30000 0x10000>;
116 reg = <0x40000 0x10000>;
120 compatible = "fixed-layout";
121 #address-cells = <1>;
124 eeprom_factory_0: eeprom@0 {
128 macaddr_factory_28: macaddr@28 {
135 compatible = "denx,uimage";
137 reg = <0x50000 0xfb0000>;
156 nvmem-cells = <&macaddr_factory_28>;
157 nvmem-cell-names = "mac-address";
161 nvmem-cells = <&eeprom_factory_0>;
162 nvmem-cell-names = "eeprom";
167 groups = "i2c", "uartf", "spi refclk", "ephy";