1 #include "mt7620a.dtsi"
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
7 compatible = "dlink,dch-m225", "ralink,mt7620a-soc";
8 model = "D-Link DCH-M225";
11 led-boot = &led_power;
12 led-failsafe = &led_power;
13 led-running = &led_power;
14 led-upgrade = &led_power;
18 compatible = "gpio-keys";
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>;
49 compatible = "simple-audio-card";
50 simple-audio-card,name = "Audio-I2S";
51 simple-audio-card,format = "i2s";
52 simple-audio-card,bitclock-master = <&dailink0_master>;
53 simple-audio-card,frame-master = <&dailink0_master>;
54 simple-audio-card,widgets =
55 "Headphone", "Headphones";
56 simple-audio-card,routing =
59 simple-audio-card,mclk-fs = <256>;
60 simple-audio-card,hp-det-gpio = <&gpio0 14 GPIO_ACTIVE_LOW>;
62 simple-audio-card,cpu {
66 dailink0_master: simple-audio-card,codec {
84 #sound-dai-cells = <0>;
85 compatible = "wlf,wm8960";
93 #sound-dai-cells = <0>;
95 pinctrl-names = "default";
96 pinctrl-0 = <&mdio_refclk_pins>;
103 compatible = "jedec,spi-nor";
105 spi-max-frequency = <80000000>;
109 compatible = "fixed-partitions";
110 #address-cells = <1>;
120 label = "u-boot-env";
121 reg = <0x30000 0x4000>;
125 factory: partition@34000 {
127 reg = <0x34000 0x4000>;
131 nvram: partition@38000 {
133 reg = <0x38000 0x8000>;
139 reg = <0x40000 0x10000>;
144 label = "upgrade_rec";
145 reg = <0x50000 0x100000>;
150 compatible = "seama";
152 reg = <0x150000 0x6b0000>;
164 groups = "wdt", "rgmii1";
170 function = "gpio i2s";
175 mtd-mac-address = <&factory 0x4>;
179 ralink,port4 = "ephy";
183 ralink,mtd-eeprom = <&factory 0x0>;
184 pinctrl-names = "default";
185 pinctrl-0 = <&pa_pins>;