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 = "dlink,dch-m225", "ralink,mt7620a-soc";
9 model = "D-Link DCH-M225";
12 led-boot = &led_power;
13 led-failsafe = &led_power;
14 led-running = &led_power;
15 led-upgrade = &led_power;
19 compatible = "gpio-keys";
23 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
24 linux,code = <KEY_RFKILL>;
29 gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_RESTART>;
35 compatible = "gpio-leds";
38 function = LED_FUNCTION_POWER;
39 color = <LED_COLOR_ID_GREEN>;
40 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
45 function = LED_FUNCTION_STATUS;
46 color = <LED_COLOR_ID_RED>;
47 gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
52 compatible = "simple-audio-card";
53 simple-audio-card,name = "Audio-I2S";
54 simple-audio-card,format = "i2s";
55 simple-audio-card,bitclock-master = <&dailink0_master>;
56 simple-audio-card,frame-master = <&dailink0_master>;
57 simple-audio-card,widgets =
58 "Headphone", "Headphones";
59 simple-audio-card,routing =
62 simple-audio-card,mclk-fs = <256>;
63 simple-audio-card,hp-det-gpio = <&gpio0 14 GPIO_ACTIVE_LOW>;
65 simple-audio-card,cpu {
69 dailink0_master: simple-audio-card,codec {
83 #sound-dai-cells = <0>;
84 compatible = "wlf,wm8960";
92 #sound-dai-cells = <0>;
94 pinctrl-names = "default";
95 pinctrl-0 = <&mdio_refclk_pins>;
102 compatible = "jedec,spi-nor";
104 spi-max-frequency = <80000000>;
108 compatible = "fixed-partitions";
109 #address-cells = <1>;
119 label = "u-boot-env";
120 reg = <0x30000 0x4000>;
126 reg = <0x34000 0x4000>;
130 compatible = "fixed-layout";
131 #address-cells = <1>;
134 eeprom_factory_0: eeprom@0 {
138 macaddr_factory_4: macaddr@4 {
146 reg = <0x38000 0x8000>;
152 reg = <0x40000 0x10000>;
157 label = "upgrade_rec";
158 reg = <0x50000 0x100000>;
163 compatible = "seama";
165 reg = <0x150000 0x6b0000>;
177 groups = "wdt", "rgmii1";
183 function = "gpio i2s";
188 nvmem-cells = <&macaddr_factory_4>;
189 nvmem-cell-names = "mac-address";
193 pinctrl-names = "default", "pa_gpio";
194 pinctrl-0 = <&pa_pins>;
195 pinctrl-1 = <&pa_gpio_pins>;
196 nvmem-cells = <&eeprom_factory_0>;
197 nvmem-cell-names = "eeprom";