1 #include "mt7620a.dtsi"
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/leds/common.h>
8 compatible = "ohyeah,oy-0001", "ralink,mt7620a-soc";
12 led-boot = &led_power;
13 led-failsafe = &led_power;
14 led-running = &led_power;
15 led-upgrade = &led_power;
19 bootargs = "console=ttyS0,115200";
23 compatible = "gpio-leds";
26 function = LED_FUNCTION_POWER;
27 color = <LED_COLOR_ID_GREEN>;
28 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
33 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
38 compatible = "gpio-keys";
42 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
43 linux,code = <KEY_RESTART>;
56 compatible = "jedec,spi-nor";
58 spi-max-frequency = <10000000>;
61 compatible = "fixed-partitions";
73 reg = <0x30000 0x10000>;
79 reg = <0x40000 0x10000>;
83 compatible = "fixed-layout";
87 eeprom_factory_0: eeprom@0 {
91 macaddr_factory_28: macaddr@28 {
98 compatible = "denx,uimage";
100 reg = <0x50000 0xfb0000>;
108 groups = "i2c", "uartf", "rgmii1", "rgmii2", "wled";
114 pinctrl-names = "default";
115 pinctrl-0 = <&ephy_pins>;
117 nvmem-cells = <&macaddr_factory_28>;
118 nvmem-cell-names = "mac-address";
120 mediatek,portmap = "llllw";
124 nvmem-cells = <&eeprom_factory_0>;
125 nvmem-cell-names = "eeprom";