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 compatible = "gpio-keys-polled";
16 poll-interval = <100>;
20 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
21 linux,code = <KEY_RFKILL>;
26 gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
27 linux,code = <KEY_RESTART>;
32 compatible = "gpio-leds";
35 label = "dch-m225:green:power";
36 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
40 label = "dch-m225:red:status";
41 gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
46 compatible = "simple-audio-card";
47 simple-audio-card,name = "Audio-I2S";
48 simple-audio-card,format = "i2s";
49 simple-audio-card,bitclock-master = <&dailink0_master>;
50 simple-audio-card,frame-master = <&dailink0_master>;
51 simple-audio-card,widgets =
52 "Headphone", "Headphones";
53 simple-audio-card,routing =
56 simple-audio-card,mclk-fs = <256>;
57 simple-audio-card,hp-det-gpio = <&gpio0 14 GPIO_ACTIVE_LOW>;
59 simple-audio-card,cpu {
63 dailink0_master: simple-audio-card,codec {
81 #sound-dai-cells = <0>;
82 compatible = "wlf,wm8960";
90 #sound-dai-cells = <0>;
92 pinctrl-names = "default";
93 pinctrl-0 = <&mdio_refclk_pins>;
100 #address-cells = <1>;
102 compatible = "jedec,spi-nor";
104 spi-max-frequency = <80000000>;
114 label = "u-boot-env";
115 reg = <0x30000 0x4000>;
119 factory: partition@34000 {
121 reg = <0x34000 0x4000>;
125 nvram: partition@38000 {
127 reg = <0x38000 0x8000>;
133 reg = <0x40000 0x10000>;
138 label = "upgrade_rec";
139 reg = <0x50000 0x100000>;
145 reg = <0x150000 0x6b0000>;
155 state_default: pinctrl0 {
157 ralink,group = "wdt", "rgmii1";
158 ralink,function = "gpio";
162 ralink,group = "uartf";
163 ralink,function = "gpio i2s";
169 mtd-mac-address = <&factory 0x4>;
173 ralink,port4 = "ephy";
177 ralink,mtd-eeprom = <&factory 0>;
178 pinctrl-names = "default";
179 pinctrl-0 = <&pa_pins>;