ramips: cleanup SPI flash device tree properties usage
[openwrt/staging/chunkeey.git] / target / linux / ramips / dts / CS-QR10.dts
1 /dts-v1/;
2
3 #include "mt7620a.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "ralink,mt7620a-soc";
9 model = "Planex CS-QR10";
10
11 sound {
12 compatible = "mediatek,mt7620-audio-wm8960";
13 model = "mt7620-wm8960";
14 i2s-controller = <&i2s>;
15 audio-routing =
16 "Ext Spk", "SPK_LP",
17 "Ext Spk", "SPK_LN",
18 "Ext Spk", "SPK_RP",
19 "Ext Spk", "SPK_RN";
20 };
21
22 gpio-leds {
23 compatible = "gpio-leds";
24
25 power {
26 label = "cs-qr10:red:power";
27 gpios = <&gpio1 4 1>;
28 };
29 };
30
31 gpio-keys-polled {
32 compatible = "gpio-keys-polled";
33 #address-cells = <1>;
34 #size-cells = <0>;
35 poll-interval = <20>;
36
37 s1 {
38 label = "reset";
39 gpios = <&gpio1 1 1>;
40 linux,code = <KEY_RESTART>;
41 };
42
43 s2 {
44 label = "wps";
45 gpios = <&gpio1 3 1>;
46 linux,code = <KEY_WPS_BUTTON>;
47 };
48 };
49 };
50
51 &gpio0 {
52 status = "okay";
53 };
54
55 &gpio1 {
56 status = "okay";
57 };
58
59 &gpio2 {
60 status = "okay";
61 };
62
63 &gpio3 {
64 status = "okay";
65 };
66
67 &i2c {
68 status = "okay";
69 };
70
71 &i2s {
72 status = "okay";
73 pinctrl-names = "default";
74 pinctrl-0 = <&pcm_i2s_pins>;
75 };
76
77 &spi0 {
78 status = "okay";
79
80 m25p80@0 {
81 #address-cells = <1>;
82 #size-cells = <1>;
83 compatible = "jedec,spi-nor";
84 reg = <0>;
85 spi-max-frequency = <10000000>;
86
87 partition@0 {
88 label = "u-boot";
89 reg = <0x0 0x30000>;
90 read-only;
91 };
92
93 partition@30000 {
94 label = "u-boot-env";
95 reg = <0x30000 0x10000>;
96 read-only;
97 };
98
99 factory: partition@40000 {
100 label = "factory";
101 reg = <0x40000 0x10000>;
102 read-only;
103 };
104
105 partition@50000 {
106 label = "firmware";
107 reg = <0x50000 0x7b0000>;
108 };
109 };
110 };
111
112 &pcm {
113 status = "okay";
114 };
115
116 &gdma {
117 status = "okay";
118 };
119
120 &pinctrl {
121 state_default: pinctrl0 {
122 gpio {
123 ralink,group = "spi refclk", "rgmii1";
124 ralink,function = "gpio";
125 };
126 wdt {
127 ralink,group = "wdt";
128 ralink,function = "wdt refclk";
129 };
130 };
131 };
132
133 &ethernet {
134 pinctrl-names = "default";
135 pinctrl-0 = <&ephy_pins>;
136 mtd-mac-address = <&factory 0x4>;
137 mediatek,portmap = "llllw";
138 };
139
140 &gsw {
141 ralink,port4 = "ephy";
142 };
143
144 &sdhci {
145 status = "okay";
146 };
147
148 &ehci {
149 status = "okay";
150 };
151
152 &ohci {
153 status = "okay";
154 };
155
156 &wmac {
157 ralink,mtd-eeprom = <&factory 0>;
158 };
159
160 &pcie {
161 status = "okay";
162 };