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-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
20 compatible = "gpio-keys-polled";
21 poll-interval = <100>;
25 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
26 linux,code = <KEY_RFKILL>;
31 gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
32 linux,code = <KEY_RESTART>;
37 compatible = "gpio-leds";
40 label = "dch-m225:green:power";
41 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
46 label = "dch-m225:red:status";
47 gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
48 default-state = "off";
53 compatible = "simple-audio-card";
54 simple-audio-card,name = "Audio-I2S";
55 simple-audio-card,format = "i2s";
56 simple-audio-card,bitclock-master = <&dailink0_master>;
57 simple-audio-card,frame-master = <&dailink0_master>;
58 simple-audio-card,widgets =
59 "Headphone", "Headphones";
60 simple-audio-card,routing =
63 simple-audio-card,mclk-fs = <256>;
64 simple-audio-card,hp-det-gpio = <&gpio0 14 GPIO_ACTIVE_LOW>;
66 simple-audio-card,cpu {
70 dailink0_master: simple-audio-card,codec {
88 #sound-dai-cells = <0>;
89 compatible = "wlf,wm8960";
97 #sound-dai-cells = <0>;
99 pinctrl-names = "default";
100 pinctrl-0 = <&mdio_refclk_pins>;
107 compatible = "jedec,spi-nor";
109 spi-max-frequency = <80000000>;
113 compatible = "fixed-partitions";
114 #address-cells = <1>;
124 label = "u-boot-env";
125 reg = <0x30000 0x4000>;
129 factory: partition@34000 {
131 reg = <0x34000 0x4000>;
135 nvram: partition@38000 {
137 reg = <0x38000 0x8000>;
143 reg = <0x40000 0x10000>;
148 label = "upgrade_rec";
149 reg = <0x50000 0x100000>;
155 reg = <0x150000 0x6b0000>;
166 state_default: pinctrl0 {
168 ralink,group = "wdt", "rgmii1";
169 ralink,function = "gpio";
173 ralink,group = "uartf";
174 ralink,function = "gpio i2s";
180 mtd-mac-address = <&factory 0x4>;
184 ralink,port4 = "ephy";
188 ralink,mtd-eeprom = <&factory 0>;
189 pinctrl-names = "default";
190 pinctrl-0 = <&pa_pins>;