ramips: fix dtc warnings
[openwrt/openwrt.git] / target / linux / ramips / dts / MR-102N.dts
1 /dts-v1/;
2
3 #include "rt3050.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "aximcom,mr-102n", "ralink,rt3052-soc";
10 model = "AXIMCom MR-102N";
11
12 aliases {
13 led-status = &led_status;
14 };
15
16 cfi@1f000000 {
17 compatible = "cfi-flash";
18 reg = <0x1f000000 0x800000>;
19 bank-width = <2>;
20 device-width = <2>;
21 #address-cells = <1>;
22 #size-cells = <1>;
23
24 partition@0 {
25 label = "u-boot";
26 reg = <0x0 0x30000>;
27 read-only;
28 };
29
30 partition@30000 {
31 label = "u-boot-env";
32 reg = <0x30000 0x10000>;
33 read-only;
34 };
35
36 factory: partition@40000 {
37 label = "factory";
38 reg = <0x40000 0x10000>;
39 read-only;
40 };
41
42 partition@50000 {
43 label = "firmware";
44 reg = <0x50000 0x790000>;
45 };
46
47 partition@7e0000 {
48 label = "nvram";
49 reg = <0x7e0000 0x10000>;
50 };
51
52 partition@7f0000 {
53 label = "nvram_backup";
54 reg = <0x7f0000 0x10000>;
55 };
56 };
57
58 gpio-leds {
59 compatible = "gpio-leds";
60
61 usb {
62 label = "mr-102n:green:usb";
63 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
64 };
65
66 led_status: status {
67 label = "mr-102n:amber:status";
68 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
69 };
70
71 wlan {
72 label = "mr-102n:green:wlan";
73 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
74 };
75 };
76
77 gpio-keys-polled {
78 compatible = "gpio-keys-polled";
79 poll-interval = <20>;
80
81 reset {
82 label = "reset";
83 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
84 linux,code = <KEY_RESTART>;
85 };
86
87 wps {
88 label = "wps";
89 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
90 linux,code = <KEY_WPS_BUTTON>;
91 };
92 };
93 };
94
95 &pinctrl {
96 state_default: pinctrl0 {
97 gpio {
98 ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
99 ralink,function = "gpio";
100 };
101 };
102 };
103
104 &ethernet {
105 mtd-mac-address = <&factory 0x4>;
106 };
107
108 &esw {
109 status = "okay";
110 #mediatek,portmap = <0x3e>;
111 mediatek,portmap = <0x2f>;
112 };
113
114 &wmac {
115 ralink,mtd-eeprom = <&factory 0>;
116 };
117
118
119 &otg {
120 status = "okay";
121 };