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>
13 compatible = "hnet,c108", "ralink,mt7620a-soc";
17 led-boot = &led_lan_green;
18 led-failsafe = &led_lan_green;
19 led-running = &led_lan_green;
20 led-upgrade = &led_lan_green;
24 bootargs = "console=ttyS0,115200";
28 compatible = "gpio-export";
32 gpio-export,name = "power_modem";
33 gpio-export,output = <1>;
34 gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>;
39 compatible = "gpio-leds";
42 label = "green:sdcard";
43 gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
47 label = "green:modem";
48 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
53 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
58 gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>;
61 led_lan_green: lan_green {
63 gpios = <&gpio2 4 GPIO_ACTIVE_HIGH>;
68 compatible = "gpio-keys";
72 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
73 linux,code = <KEY_RESTART>;
90 compatible = "jedec,spi-nor";
92 spi-max-frequency = <10000000>;
95 compatible = "fixed-partitions";
106 label = "u-boot-env";
107 reg = <0x30000 0x10000>;
111 factory: partition@40000 {
113 reg = <0x40000 0x10000>;
117 compatible = "fixed-layout";
118 #address-cells = <1>;
121 eeprom_factory_0: eeprom@0 {
125 macaddr_factory_28: macaddr@28 {
132 compatible = "denx,uimage";
134 reg = <0x50000 0xfb0000>;
153 nvmem-cells = <&macaddr_factory_28>;
154 nvmem-cell-names = "mac-address";
158 nvmem-cells = <&eeprom_factory_0>;
159 nvmem-cell-names = "eeprom";
164 groups = "i2c", "uartf", "spi refclk", "ephy";