ramips: fix whitespace and comment issues in dts
[oweals/openwrt.git] / target / linux / ramips / dts / WRC-2533GST.dts
1 /dts-v1/;
2
3 #include "mt7621.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9         compatible = "elecom,wrc-2533gst", "mediatek,mt7621-soc";
10         model = "ELECOM WRC-2533GST";
11
12         aliases {
13                 led-status = &led_power_green;
14         };
15
16         memory@0 {
17                 device_type = "memory";
18                 reg = <0x0 0x8000000>;
19         };
20
21         chosen {
22                 bootargs = "console=ttyS0,57600";
23         };
24
25         gpio-leds {
26                 compatible = "gpio-leds";
27
28                 led_power_green: power_green {
29                         label = "wrc-2533gst:green:power";
30                         gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
31                 };
32
33                 power_blue {
34                         label = "wrc-2533gst:blue:power";
35                         gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
36                 };
37
38                 wps {
39                         label = "wrc-2533gst:red:wps";
40                         gpios = <&gpio0 15 GPIO_ACTIVE_HIGH>;
41                 };
42
43                 power_red {
44                         label = "wrc-2533gst:red:power";
45                         gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
46                 };
47         };
48
49         gpio-keys-polled {
50                 compatible = "gpio-keys-polled";
51                 poll-interval = <20>;
52
53                 reset {
54                         label = "reset";
55                         gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
56                         linux,code = <KEY_RESTART>;
57                 };
58
59                 wps {
60                         label = "wps";
61                         gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
62                         linux,code = <KEY_WPS_BUTTON>;
63                 };
64
65                 client {
66                         label = "client";
67                         gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
68                         linux,code = <BTN_0>;
69                         linux,input-type = <EV_SW>;
70                 };
71
72                 ap {
73                         label = "ap";
74                         gpios = <&gpio1 10 GPIO_ACTIVE_LOW>;
75                         linux,code = <BTN_0>;
76                         linux,input-type = <EV_SW>;
77                 };
78
79                 extender {
80                         label = "extender";
81                         gpios = <&gpio1 11 GPIO_ACTIVE_LOW>;
82                         linux,code = <BTN_0>;
83                         linux,input-type = <EV_SW>;
84                 };
85
86                 router {
87                         label = "router";
88                         gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
89                         linux,code = <BTN_0>;
90                         linux,input-type = <EV_SW>;
91                 };
92         };
93 };
94
95 &ethernet {
96         mtd-mac-address = <&factory 0xe000>;
97 };
98
99 &spi0 {
100         status = "okay";
101
102         m25p80@0 {
103                 #address-cells = <1>;
104                 #size-cells = <1>;
105                 compatible = "jedec,spi-nor";
106                 reg = <0>;
107                 spi-max-frequency = <10000000>;
108                 m25p,chunked-io = <32>;
109
110                 partition@0 {
111                         label = "u-boot";
112                         reg = <0x0 0x30000>;
113                         read-only;
114                 };
115
116                 partition@30000 {
117                         label = "u-boot-env";
118                         reg = <0x30000 0x10000>;
119                         read-only;
120                 };
121
122                 factory: partition@40000 {
123                         label = "factory";
124                         reg = <0x40000 0x10000>;
125                         read-only;
126                 };
127
128                 partition@50000 {
129                         label = "firmware";
130                         reg = <0x50000 0xb00000>;
131                 };
132
133                 partition@b50000 {
134                         label = "tm_pattern";
135                         reg = <0xb50000 0x380000>;
136                         read-only;
137                 };
138
139                 partition@ed0000 {
140                         label = "tm_key";
141                         reg = <0xed0000 0x80000>;
142                         read-only;
143                 };
144
145                 partition@f50000 {
146                         label = "art_block";
147                         reg = <0xf50000 0x30000>;
148                         read-only;
149                 };
150
151                 partition@f80000 {
152                         label = "user_data";
153                         reg = <0xf80000 0x80000>;
154                         read-only;
155                 };
156         };
157 };
158
159 &pinctrl {
160         state_default: pinctrl0 {
161                 gpio {
162                         ralink,group = "uart3", "jtag", "wdt", "sdhci";
163                         ralink,function = "gpio";
164                 };
165         };
166 };
167
168 &pcie {
169         status = "okay";
170         /* WRC-2533GST has MT7615 for 2.4/5 GHz wifi, but it's not supported */
171 };
172
173 &xhci {
174         status = "disabled";
175 };