unbreak portmapping - typo fix
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / FONERA20N.dts
1 /dts-v1/;
2
3 /include/ "rt3050.dtsi"
4
5 / {
6 compatible = "FONERA20N", "ralink,rt3052-soc";
7 model = "La Fonera 2.0N";
8
9 palmbus@10000000 {
10 sysc@0 {
11 ralink,pinmux = "i2c", "spi", "uartlite", "jtag", "mdio", "sdram", "rgmii";
12 ralink,uartmux = "gpio";
13 ralink,wdtmux = <1>;
14 };
15
16 gpio0: gpio@600 {
17 status = "okay";
18 };
19
20 };
21
22 cfi@1f000000 {
23 compatible = "cfi-flash";
24 reg = <0x1f000000 0x800000>;
25
26 bank-width = <2>;
27 device-width = <2>;
28 #address-cells = <1>;
29 #size-cells = <1>;
30
31 partition@0 {
32 label = "u-boot";
33 reg = <0x0 0x30000>;
34 read-only;
35 };
36
37 partition@30000 {
38 label = "u-boot-env";
39 reg = <0x30000 0x10000>;
40 read-only;
41 };
42
43 factory: partition@40000 {
44 label = "factory";
45 reg = <0x40000 0x10000>;
46 read-only;
47 };
48
49 partition@50000 {
50 label = "firmware";
51 reg = <0x50000 0x7b0000>;
52 };
53 };
54
55 gpio-leds {
56 compatible = "gpio-leds";
57 wifi {
58 label = "fonera20n:orange:wifi";
59 gpios = <&gpio0 7 1>;
60 };
61 power {
62 label = "fonera20n:green:power";
63 gpios = <&gpio0 9 1>;
64 };
65 usb {
66 label = "fonera20n:orange:usb";
67 gpios = <&gpio0 14 1>;
68 };
69 };
70
71 gpio-keys-polled {
72 compatible = "gpio-keys-polled";
73 #address-cells = <1>;
74 #size-cells = <0>;
75 poll-interval = <20>;
76 reset {
77 label = "reset";
78 gpios = <&gpio0 12 1>;
79 linux,code = <0x198>;
80 };
81 switch {
82 label = "switch";
83 gpios = <&gpio0 13 1>;
84 linux,code = <0x101>;
85 };
86 };
87
88 ethernet@10100000 {
89 status = "okay";
90 };
91
92 esw@10110000 {
93 status = "okay";
94 ralink,portmap = <0x2f>;
95
96 port@0 {
97 compatible = "swconfig,port";
98 swconfig,segment = "lan";
99 swconfig,portmap = <0 4>;
100 };
101 port@1 {
102 compatible = "swconfig,port";
103 swconfig,segment = "lan";
104 swconfig,portmap = <1 3>;
105 };
106 port@2 {
107 compatible = "swconfig,port";
108 swconfig,segment = "lan";
109 swconfig,portmap = <2 2>;
110 };
111 port@3 {
112 compatible = "swconfig,port";
113 swconfig,segment = "lan";
114 swconfig,portmap = <3 1>;
115 };
116 port@4 {
117 compatible = "swconfig,port";
118 swconfig,segment = "wan";
119 swconfig,portmap = <4 0>;
120 };
121 };
122
123 wmac@10180000 {
124 status = "okay";
125 };
126
127 otg@101c0000 {
128 status = "okay";
129 };
130 };