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 = "green:power";
38 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
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 {
80 #sound-dai-cells = <0>;
81 compatible = "wlf,wm8960";
89 #sound-dai-cells = <0>;
91 pinctrl-names = "default";
92 pinctrl-0 = <&mdio_refclk_pins>;
99 compatible = "jedec,spi-nor";
101 spi-max-frequency = <80000000>;
105 compatible = "fixed-partitions";
106 #address-cells = <1>;
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>;
146 compatible = "seama";
148 reg = <0x150000 0x6b0000>;
160 groups = "wdt", "rgmii1";
166 function = "gpio i2s";
171 nvmem-cells = <&macaddr_factory_4>;
172 nvmem-cell-names = "mac-address";
176 ralink,mtd-eeprom = <&factory 0x0>;
177 pinctrl-names = "default";
178 pinctrl-0 = <&pa_pins>;
182 compatible = "nvmem-cells";
183 #address-cells = <1>;
186 macaddr_factory_4: macaddr@4 {