ramips: remove redundant status for USB controllers
[openwrt/openwrt.git] / target / linux / ramips / dts / rt5350_hame_mpr-a1.dts
1 #include "rt5350.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "hame,mpr-a1", "ralink,rt5350-soc";
8 model = "HAME MPR-A1";
9
10 aliases {
11 led-boot = &led_system;
12 led-failsafe = &led_system;
13 led-running = &led_system;
14 led-upgrade = &led_system;
15 };
16
17 leds {
18 compatible = "gpio-leds";
19
20 led_system: system {
21 label = "blue:system";
22 gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
23 };
24
25 power {
26 label = "red:power";
27 gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
28 };
29 };
30
31 keys {
32 compatible = "gpio-keys-polled";
33 poll-interval = <20>;
34
35 wps {
36 label = "reset";
37 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
38 linux,code = <KEY_RESTART>;
39 };
40 };
41
42 gpio_export {
43 compatible = "gpio-export";
44 #size-cells = <0>;
45
46 usb {
47 gpio-export,name = "usb";
48 gpio-export,output = <1>;
49 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
50 };
51
52 root_hub {
53 gpio-export,name = "root_hub";
54 gpio-export,output = <1>;
55 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
56 };
57 };
58 };
59
60 &spi0 {
61 status = "okay";
62
63 flash@0 {
64 compatible = "jedec,spi-nor";
65 reg = <0>;
66 spi-max-frequency = <10000000>;
67
68 partitions {
69 compatible = "fixed-partitions";
70 #address-cells = <1>;
71 #size-cells = <1>;
72
73 partition@0 {
74 label = "u-boot";
75 reg = <0x0 0x30000>;
76 read-only;
77 };
78
79 partition@30000 {
80 label = "u-boot-env";
81 reg = <0x30000 0x10000>;
82 read-only;
83 };
84
85 factory: partition@40000 {
86 label = "factory";
87 reg = <0x40000 0x10000>;
88 read-only;
89 };
90
91 partition@50000 {
92 compatible = "denx,uimage";
93 label = "firmware";
94 reg = <0x50000 0x3b0000>;
95 };
96 };
97 };
98 };
99
100 &gpio1 {
101 status = "okay";
102 };
103
104 &state_default {
105 gpio {
106 groups = "i2c", "jtag", "uartf", "led";
107 function = "gpio";
108 };
109 };
110
111 &ethernet {
112 mtd-mac-address = <&factory 0x4>;
113 };
114
115 &esw {
116 mediatek,portmap = <0x2f>;
117 };
118
119 &wmac {
120 ralink,mtd-eeprom = <&factory 0x0>;
121 };