3 #include "mt7620a.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 compatible = "dlink,dch-m225", "ralink,mt7620a-soc";
10 model = "D-Link DCH-M225";
13 led-status = &led_power;
17 compatible = "gpio-keys-polled";
20 poll-interval = <100>;
24 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
25 linux,code = <KEY_RFKILL>;
30 gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
31 linux,code = <KEY_RESTART>;
36 compatible = "gpio-leds";
39 label = "dch-m225:green:power";
40 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
44 label = "dch-m225:red:status";
45 gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
50 compatible = "simple-audio-card";
51 simple-audio-card,name = "Audio-I2S";
52 simple-audio-card,format = "i2s";
53 simple-audio-card,bitclock-master = <&dailink0_master>;
54 simple-audio-card,frame-master = <&dailink0_master>;
55 simple-audio-card,widgets =
56 "Headphone", "Headphones";
57 simple-audio-card,routing =
60 simple-audio-card,mclk-fs = <256>;
61 simple-audio-card,hp-det-gpio = <&gpio0 14 GPIO_ACTIVE_LOW>;
63 simple-audio-card,cpu {
67 dailink0_master: simple-audio-card,codec {
85 #sound-dai-cells = <0>;
86 compatible = "wlf,wm8960";
94 #sound-dai-cells = <0>;
96 pinctrl-names = "default";
97 pinctrl-0 = <&mdio_refclk_pins>;
104 #address-cells = <1>;
106 compatible = "jedec,spi-nor";
108 spi-max-frequency = <80000000>;
118 label = "u-boot-env";
119 reg = <0x30000 0x4000>;
123 factory: partition@34000 {
125 reg = <0x34000 0x4000>;
129 nvram: partition@38000 {
131 reg = <0x38000 0x8000>;
137 reg = <0x40000 0x10000>;
142 label = "upgrade_rec";
143 reg = <0x50000 0x100000>;
149 reg = <0x150000 0x6b0000>;
159 state_default: pinctrl0 {
161 ralink,group = "wdt", "rgmii1";
162 ralink,function = "gpio";
166 ralink,group = "uartf";
167 ralink,function = "gpio i2s";
173 mtd-mac-address = <&factory 0x4>;
177 ralink,port4 = "ephy";
181 ralink,mtd-eeprom = <&factory 0>;
182 pinctrl-names = "default";
183 pinctrl-0 = <&pa_pins>;