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