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