ramips: fix WHR-600D eeprom dt property
[openwrt/openwrt.git] / target / linux / ramips / dts / 3G-6200NL.dts
1 /dts-v1/;
2
3 #include "rt3050.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "3G-6200NL", "ralink,rt3050-soc";
9 model = "Edimax 3g-6200nl";
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@3e0000 {
38 label = "cimage";
39 reg = <0x3e0000 0x20000>;
40 read-only;
41 };
42
43 partition@50000 {
44 label = "firmware";
45 reg = <0x50000 0x390000>;
46 };
47 };
48
49 gpio-leds {
50 compatible = "gpio-leds";
51
52 internet {
53 label = "3g-6200nl:green:internet";
54 gpios = <&gpio0 9 1>;
55 };
56
57 wlan {
58 label = "3g-6200nl:green:wlan";
59 gpios = <&gpio0 14 1>;
60 };
61 };
62
63 gpio-keys-polled {
64 compatible = "gpio-keys-polled";
65 #address-cells = <1>;
66 #size-cells = <0>;
67 poll-interval = <20>;
68
69 reset {
70 label = "reset";
71 gpios = <&gpio0 12 1>;
72 linux,code = <KEY_RESTART>;
73 };
74 };
75 };
76
77 &pinctrl {
78 state_default: pinctrl0 {
79 gpio {
80 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
81 ralink,function = "gpio";
82 };
83 };
84 };
85
86 &ethernet {
87 mtd-mac-address = <&factory 0x4>;
88 };
89
90 &esw {
91 mediatek,portdisable = <0x37>;
92 };
93
94 &wmac {
95 ralink,mtd-eeprom = <&factory 0>;
96 };
97
98 &otg {
99 status = "okay";
100 };