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