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