ramips: fix PSG1218 LEDs
[oweals/openwrt.git] / target / linux / ramips / dts / 3G-6200NL.dts
1 /dts-v1/;
2
3 #include "rt3050.dtsi"
4
5 / {
6         compatible = "3G-6200NL", "ralink,rt3050-soc";
7         model = "Edimax 3g-6200nl";
8
9         cfi@1f000000 {
10                 compatible = "cfi-flash";
11                 reg = <0x1f000000 0x800000>;
12                 bank-width = <2>;
13                 device-width = <2>;
14                 #address-cells = <1>;
15                 #size-cells = <1>;
16
17                 partition@0 {
18                         label = "u-boot";
19                         reg = <0x0 0x30000>;
20                         read-only;
21                 };
22
23                 partition@30000 {
24                         label = "u-boot-env";
25                         reg = <0x30000 0x10000>;
26                         read-only;
27                 };
28
29                 factory: partition@40000 {
30                         label = "factory";
31                         reg = <0x40000 0x10000>;
32                         read-only;
33                 };
34
35                 partition@3e0000 {
36                         label = "cimage";
37                         reg = <0x3e0000 0x20000>;
38                         read-only;
39                 };
40
41                 partition@50000 {
42                         label = "firmware";
43                         reg = <0x50000 0x390000>;
44                 };
45         };
46
47         gpio-leds {
48                 compatible = "gpio-leds";
49
50                 internet {
51                         label = "3g-6200nl:green:internet";
52                         gpios = <&gpio0 9 1>;
53                 };
54
55                 wlan {
56                         label = "3g-6200nl:green:wlan";
57                         gpios = <&gpio0 14 1>;
58                 };
59         };
60
61         gpio-keys-polled {
62                 compatible = "gpio-keys-polled";
63                 #address-cells = <1>;
64                 #size-cells = <0>;
65                 poll-interval = <20>;
66
67                 reset {
68                         label = "reset";
69                         gpios = <&gpio0 12 1>;
70                         linux,code = <0x198>;
71                 };
72         };
73 };
74
75 &pinctrl {
76         state_default: pinctrl0 {
77                 gpio {
78                         ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
79                         ralink,function = "gpio";
80                 };
81         };
82 };
83
84 &ethernet {
85         mtd-mac-address = <&factory 0x4>;
86 };
87
88 &esw {
89         mediatek,portdisable = <0x37>;
90 };
91
92 &wmac {
93         ralink,mtd-eeprom = <&factory 0>;
94 };
95
96 &otg {
97         status = "okay";
98 };