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