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