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>;
43 label = "dch-m225:red:status";
44 gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
45 default-state = "off";
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 compatible = "jedec,spi-nor";
106 spi-max-frequency = <80000000>;
110 compatible = "fixed-partitions";
111 #address-cells = <1>;
121 label = "u-boot-env";
122 reg = <0x30000 0x4000>;
126 factory: partition@34000 {
128 reg = <0x34000 0x4000>;
132 nvram: partition@38000 {
134 reg = <0x38000 0x8000>;
140 reg = <0x40000 0x10000>;
145 label = "upgrade_rec";
146 reg = <0x50000 0x100000>;
152 reg = <0x150000 0x6b0000>;
163 state_default: pinctrl0 {
165 ralink,group = "wdt", "rgmii1";
166 ralink,function = "gpio";
170 ralink,group = "uartf";
171 ralink,function = "gpio i2s";
177 mtd-mac-address = <&factory 0x4>;
181 ralink,port4 = "ephy";
185 ralink,mtd-eeprom = <&factory 0>;
186 pinctrl-names = "default";
187 pinctrl-0 = <&pa_pins>;