add ofpart info to the devicetrees
[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 memorydetect {
10 ralink,memory = <0x0 0x200000 0x4000000>;
11 };
12
13 chosen {
14 bootargs = "console=ttyS0,57600 mtdparts=1f000000.cfi:192k(u-boot)ro,64k(u-boot-env)ro,64k(factory)ro,7872k@0x50000(firmware)";
15 };
16
17 palmbus@10000000 {
18 sysc@0 {
19 ralink,pinmux = "i2c", "spi", "uartlite", "jtag", "mdio", "sdram", "rgmii";
20 ralink,uartmux = "gpio";
21 ralink,wdtmux = <1>;
22 };
23
24 gpio0: gpio@600 {
25 status = "okay";
26 };
27
28 };
29
30 cfi@1f000000 {
31 compatible = "cfi-flash";
32 reg = <0x1f000000 0x800000>;
33
34 bank-width = <2>;
35 device-width = <2>;
36 #address-cells = <1>;
37 #size-cells = <1>;
38
39 partition@0 {
40 label = "u-boot";
41 reg = <0x0 0x30000>;
42 read-only;
43 };
44
45 partition@30000 {
46 label = "u-boot-env";
47 reg = <0x30000 0x10000>;
48 read-only;
49 };
50
51 factory: partition@40000 {
52 label = "factory";
53 reg = <0x40000 0x10000>;
54 read-only;
55 };
56
57 partition@50000 {
58 label = "firmware";
59 reg = <0x50000 0x7b0000>;
60 };
61 };
62
63 gpio-leds {
64 compatible = "gpio-leds";
65 wifi {
66 label = "fonera20n:orange:wifi";
67 gpios = <&gpio0 7 1>;
68 };
69 power {
70 label = "fonera20n:green:power";
71 gpios = <&gpio0 9 1>;
72 };
73 usb {
74 label = "fonera20n:orange:usb";
75 gpios = <&gpio0 14 1>;
76 };
77 };
78
79 gpio-keys-polled {
80 compatible = "gpio-keys-polled";
81 #address-cells = <1>;
82 #size-cells = <0>;
83 poll-interval = <20>;
84 reset {
85 label = "reset";
86 gpios = <&gpio0 12 1>;
87 linux,code = <0x198>;
88 };
89 switch {
90 label = "switch";
91 gpios = <&gpio0 13 1>;
92 linux,code = <0x101>;
93 };
94 };
95
96 ethernet@10100000 {
97 status = "okay";
98 };
99
100 esw@10110000 {
101 status = "okay";
102 ralink,portmap = <0x2f>;
103
104 port@0 {
105 conpatible = "swconfig,port";
106 swconfig,segment = "lan";
107 swconfig,portmap = <0 4>;
108 };
109 port@1 {
110 conpatible = "swconfig,port";
111 swconfig,segment = "lan";
112 swconfig,portmap = <1 3>;
113 };
114 port@2 {
115 conpatible = "swconfig,port";
116 swconfig,segment = "lan";
117 swconfig,portmap = <2 2>;
118 };
119 port@3 {
120 conpatible = "swconfig,port";
121 swconfig,segment = "lan";
122 swconfig,portmap = <3 1>;
123 };
124 port@4 {
125 conpatible = "swconfig,port";
126 swconfig,segment = "lan";
127 swconfig,portmap = <4 0>;
128 };
129 };
130
131 wmac@10180000 {
132 status = "okay";
133 };
134
135 otg@101c0000 {
136 status = "okay";
137 };
138 };