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 #address-cells = <1>;
104 compatible = "jedec,spi-nor";
106 spi-max-frequency = <80000000>;
116 label = "u-boot-env";
117 reg = <0x30000 0x4000>;
121 factory: partition@34000 {
123 reg = <0x34000 0x4000>;
127 nvram: partition@38000 {
129 reg = <0x38000 0x8000>;
135 reg = <0x40000 0x10000>;
140 label = "upgrade_rec";
141 reg = <0x50000 0x100000>;
147 reg = <0x150000 0x6b0000>;
157 state_default: pinctrl0 {
159 ralink,group = "wdt", "rgmii1";
160 ralink,function = "gpio";
164 ralink,group = "uartf";
165 ralink,function = "gpio i2s";
171 mtd-mac-address = <&factory 0x4>;
175 ralink,port4 = "ephy";
179 ralink,mtd-eeprom = <&factory 0>;
180 pinctrl-names = "default";
181 pinctrl-0 = <&pa_pins>;