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