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