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";
18 poll-interval = <100>;
22 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
23 linux,code = <KEY_RFKILL>;
28 gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
29 linux,code = <KEY_RESTART>;
34 compatible = "gpio-leds";
37 label = "dch-m225:green:power";
38 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
42 label = "dch-m225:red:status";
43 gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
48 compatible = "simple-audio-card";
49 simple-audio-card,name = "Audio-I2S";
50 simple-audio-card,format = "i2s";
51 simple-audio-card,bitclock-master = <&dailink0_master>;
52 simple-audio-card,frame-master = <&dailink0_master>;
53 simple-audio-card,widgets =
54 "Headphone", "Headphones";
55 simple-audio-card,routing =
58 simple-audio-card,mclk-fs = <256>;
59 simple-audio-card,hp-det-gpio = <&gpio0 14 GPIO_ACTIVE_LOW>;
61 simple-audio-card,cpu {
65 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>;
124 factory: partition@34000 {
126 reg = <0x34000 0x4000>;
130 nvram: partition@38000 {
132 reg = <0x38000 0x8000>;
138 reg = <0x40000 0x10000>;
143 label = "upgrade_rec";
144 reg = <0x50000 0x100000>;
150 reg = <0x150000 0x6b0000>;
161 state_default: pinctrl0 {
163 ralink,group = "wdt", "rgmii1";
164 ralink,function = "gpio";
168 ralink,group = "uartf";
169 ralink,function = "gpio i2s";
175 mtd-mac-address = <&factory 0x4>;
179 ralink,port4 = "ephy";
183 ralink,mtd-eeprom = <&factory 0>;
184 pinctrl-names = "default";
185 pinctrl-0 = <&pa_pins>;