ramips: move dts-v1 statement to top-level DTSI files
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / mt7620a_planex_cs-qr10.dts
1 #include "mt7620a.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "planex,cs-qr10", "ralink,mt7620a-soc";
8 model = "Planex CS-QR10";
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 leds {
18 compatible = "gpio-leds";
19
20 led_power: power {
21 label = "cs-qr10:red:power";
22 gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
23 };
24 };
25
26 keys {
27 compatible = "gpio-keys";
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 flash@0 {
73 compatible = "jedec,spi-nor";
74 reg = <0>;
75 spi-max-frequency = <10000000>;
76
77 partitions {
78 compatible = "fixed-partitions";
79 #address-cells = <1>;
80 #size-cells = <1>;
81
82 partition@0 {
83 label = "u-boot";
84 reg = <0x0 0x30000>;
85 read-only;
86 };
87
88 partition@30000 {
89 label = "u-boot-env";
90 reg = <0x30000 0x10000>;
91 read-only;
92 };
93
94 factory: partition@40000 {
95 label = "factory";
96 reg = <0x40000 0x10000>;
97 read-only;
98 };
99
100 partition@50000 {
101 compatible = "denx,uimage";
102 label = "firmware";
103 reg = <0x50000 0x7b0000>;
104 };
105 };
106 };
107 };
108
109 &pcm {
110 status = "okay";
111 };
112
113 &gdma {
114 status = "okay";
115 };
116
117 &state_default {
118 gpio {
119 groups = "spi refclk", "rgmii1";
120 function = "gpio";
121 };
122 wdt {
123 groups = "wdt";
124 function = "wdt refclk";
125 };
126 };
127
128 &ethernet {
129 pinctrl-names = "default";
130 pinctrl-0 = <&ephy_pins>;
131
132 mtd-mac-address = <&factory 0x4>;
133
134 mediatek,portmap = "llllw";
135 };
136
137 &gsw {
138 ralink,port4 = "ephy";
139 };
140
141 &sdhci {
142 status = "okay";
143 };
144
145 &ehci {
146 status = "okay";
147 };
148
149 &ohci {
150 status = "okay";
151 };
152
153 &wmac {
154 ralink,mtd-eeprom = <&factory 0x0>;
155 };