ramips: fix whitespace and comment issues in dts
[oweals/openwrt.git] / target / linux / ramips / dts / WIZFI630A.dts
1 /dts-v1/;
2
3 #include "rt5350.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9         compatible = "wiznet,wizfi630a", "ralink,rt5350-soc";
10         model = "WIZnet WizFi630A";
11
12         aliases {
13                 led-status = &led_run;
14         };
15
16         chosen {
17                 bootargs = "console=ttyS1,115200";
18         };
19
20         gpio-leds {
21                 compatible = "gpio-leds";
22
23                 led_run: run {
24                         label = "wizfi630a::run";
25                         gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
26                 };
27
28                 wps {
29                         label = "wizfi630a::wps";
30                         gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
31                 };
32
33                 uart1 {
34                         label = "wizfi630a::uart1";
35                         gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
36                 };
37
38                 uart2 {
39                         label = "wizfi630a::uart2";
40                         gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
41                 };
42         };
43
44         gpio-keys-polled {
45                 compatible = "gpio-keys-polled";
46                 poll-interval = <20>;
47
48                 reset {
49                         label = "reset";
50                         gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
51                         linux,code = <KEY_RESTART>;
52                 };
53
54                 wps {
55                         label = "wps";
56                         gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
57                         linux,code = <KEY_WPS_BUTTON>;
58                 };
59
60                 scm1 {
61                         label = "SCM1";
62                         gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
63                         linux,code = <BTN_0>;
64                 };
65
66                 scm2 {
67                         label = "SCM2";
68                         gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
69                         linux,code = <BTN_1>;
70                 };
71         };
72 };
73
74 &gpio1 {
75         status = "okay";
76 };
77
78 &spi0 {
79         status = "okay";
80
81         m25p80@0 {
82                 #address-cells = <1>;
83                 #size-cells = <1>;
84                 compatible = "jedec,spi-nor";
85                 reg = <0>;
86                 spi-max-frequency = <10000000>;
87
88                 partition@0 {
89                         #size-cells = <1>;
90                         label = "uboot";
91                         reg = <0x0 0x30000>;
92                         read-only;
93                 };
94
95                 partition@30000 {
96                         #size-cells = <1>;
97                         label = "uboot-env";
98                         reg = <0x30000 0x10000>;
99                         read-only;
100                 };
101
102                 factory: partition@40000 {
103                         #size-cells = <1>;
104                         label = "factory";
105                         reg = <0x40000 0x10000>;
106                         read-only;
107                 };
108
109                 partition@50000 {
110                         #size-cells = <1>;
111                         label = "firmware";
112                         reg = <0x50000 0xfb0000>;
113                 };
114         };
115 };
116
117 &uart {
118         status = "okay";
119         pinctrl-names = "default";
120         pinctrl-0 = <&uartf_pins>;
121 };
122
123 &pinctrl {
124         state_default: pinctrl0 {
125                 gpio {
126                         ralink,group = "i2c", "jtag" ;
127                         ralink,function = "gpio";
128                 };
129         };
130 };
131
132 &ethernet {
133         mtd-mac-address = <&factory 0x4>;
134 };
135
136 &esw {
137         mediatek,portmap = <0x17>;
138 };
139
140 &wmac {
141         ralink,mtd-eeprom = <&factory 0>;
142 };
143
144 &ehci {
145         status = "okay";
146 };
147
148 &ohci {
149         status = "okay";
150 };