ramips: remove default on userspace trigger for diag leds
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / DCH-M225.dts
1 /dts-v1/;
2
3 #include "mt7620a.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "dlink,dch-m225", "ralink,mt7620a-soc";
10 model = "D-Link DCH-M225";
11
12 aliases {
13 led-status = &led_power;
14 };
15
16 gpio-keys-polled {
17 compatible = "gpio-keys-polled";
18 poll-interval = <100>;
19
20 wps {
21 label = "wps";
22 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
23 linux,code = <KEY_RFKILL>;
24 };
25
26 reset {
27 label = "reset";
28 gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
29 linux,code = <KEY_RESTART>;
30 };
31 };
32
33 gpio-leds {
34 compatible = "gpio-leds";
35
36 led_power: power {
37 label = "dch-m225:green:power";
38 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
39 };
40
41 status {
42 label = "dch-m225:red:status";
43 gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
44 };
45 };
46
47 sound {
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 =
56 "Headphones", "HP_L",
57 "Headphones", "HP_R";
58 simple-audio-card,mclk-fs = <256>;
59 simple-audio-card,hp-det-gpio = <&gpio0 14 GPIO_ACTIVE_LOW>;
60
61 simple-audio-card,cpu {
62 sound-dai = <&i2s>;
63 };
64
65 dailink0_master: simple-audio-card,codec {
66 sound-dai = <&codec>;
67 };
68 };
69 };
70
71 &gpio0 {
72 status = "okay";
73 };
74
75 &gpio1 {
76 status = "okay";
77 };
78
79 &i2c {
80 status = "okay";
81
82 codec: wm8960@1a {
83 #sound-dai-cells = <0>;
84 compatible = "wlf,wm8960";
85 reg = <0x1a>;
86
87 wlf,shared-lrclk;
88 };
89 };
90
91 &i2s {
92 #sound-dai-cells = <0>;
93 status = "okay";
94 pinctrl-names = "default";
95 pinctrl-0 = <&mdio_refclk_pins>;
96 };
97
98 &spi0 {
99 status = "okay";
100
101 m25p80@0 {
102 compatible = "jedec,spi-nor";
103 reg = <0>;
104 spi-max-frequency = <80000000>;
105 m25p,fast-read;
106
107 partitions {
108 compatible = "fixed-partitions";
109 #address-cells = <1>;
110 #size-cells = <1>;
111
112 partition@0 {
113 label = "u-boot";
114 reg = <0x0 0x30000>;
115 read-only;
116 };
117
118 partition@30000 {
119 label = "u-boot-env";
120 reg = <0x30000 0x4000>;
121 read-only;
122 };
123
124 factory: partition@34000 {
125 label = "factory";
126 reg = <0x34000 0x4000>;
127 read-only;
128 };
129
130 nvram: partition@38000 {
131 label = "nvram";
132 reg = <0x38000 0x8000>;
133 read-only;
134 };
135
136 partition@40000 {
137 label = "devconf";
138 reg = <0x40000 0x10000>;
139 read-only;
140 };
141
142 partition@50000 {
143 label = "upgrade_rec";
144 reg = <0x50000 0x100000>;
145 read-only;
146 };
147
148 partition@150000 {
149 label = "firmware";
150 reg = <0x150000 0x6b0000>;
151 };
152 };
153 };
154 };
155
156 &gdma {
157 status = "okay";
158 };
159
160 &pinctrl {
161 state_default: pinctrl0 {
162 gpio {
163 ralink,group = "wdt", "rgmii1";
164 ralink,function = "gpio";
165 };
166
167 gpio_i2s {
168 ralink,group = "uartf";
169 ralink,function = "gpio i2s";
170 };
171 };
172 };
173
174 &ethernet {
175 mtd-mac-address = <&factory 0x4>;
176 };
177
178 &gsw {
179 ralink,port4 = "ephy";
180 };
181
182 &wmac {
183 ralink,mtd-eeprom = <&factory 0>;
184 pinctrl-names = "default";
185 pinctrl-0 = <&pa_pins>;
186 };