ramips: DTS rework
[openwrt/staging/dedeckeh.git] / target / linux / ramips / dts / WL-330N3G.dts
1 /dts-v1/;
2
3 #include "rt3050.dtsi"
4
5 / {
6 compatible = "WL-330N3G", "ralink,rt3050-soc";
7 model = "Asus WL-330N3G";
8
9 gpio-leds {
10 compatible = "gpio-leds";
11
12 3g {
13 label = "wl-330n3g:blue:3g";
14 gpios = <&gpio0 9 1>;
15 };
16
17 3g2 {
18 label = "wl-330n3g:red:3g";
19 gpios = <&gpio0 13 1>;
20 };
21
22 power {
23 label = "wl-330n3g:blue:power";
24 gpios = <&gpio0 11 1>;
25 };
26 };
27
28 gpio-keys-polled {
29 compatible = "gpio-keys-polled";
30 #address-cells = <1>;
31 #size-cells = <0>;
32 poll-interval = <20>;
33
34 reset {
35 label = "reset";
36 gpios = <&gpio0 10 1>;
37 linux,code = <0x198>;
38 };
39
40 wps {
41 label = "wps";
42 gpios = <&gpio0 0 1>;
43 linux,code = <0x198>;
44 };
45 };
46 };
47
48 &spi0 {
49 status = "okay";
50
51 m25p80@0 {
52 #address-cells = <1>;
53 #size-cells = <1>;
54 compatible = "jedec,spi-nor";
55 reg = <0 0>;
56 linux,modalias = "m25p80", "mx25l3205d";
57 spi-max-frequency = <10000000>;
58
59 partition@0 {
60 label = "u-boot";
61 reg = <0x0 0x30000>;
62 read-only;
63 };
64
65 partition@30000 {
66 label = "u-boot-env";
67 reg = <0x30000 0x10000>;
68 read-only;
69 };
70
71 factory: partition@40000 {
72 label = "factory";
73 reg = <0x40000 0x10000>;
74 read-only;
75 };
76
77 partition@50000 {
78 label = "firmware";
79 reg = <0x50000 0x3b0000>;
80 };
81 };
82 };
83
84 &pinctrl {
85 state_default: pinctrl0 {
86 gpio {
87 ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
88 ralink,function = "gpio";
89 };
90 };
91 };
92
93 &ethernet {
94 mtd-mac-address = <&factory 0x4>;
95 };
96
97 &esw {
98 mediatek,portmap = <0x3e>;
99 };
100
101 &wmac {
102 ralink,mtd-eeprom = <&factory 0>;
103 };
104
105 &otg {
106 status = "okay";
107 };