817e527df85826c564758f02f83cdb2faed7425b
[openwrt/svn-archive/archive.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
40 gpio-leds {
41 compatible = "gpio-leds";
42 wifi {
43 label = "fonera20n:orange:wifi";
44 gpios = <&gpio0 7 1>;
45 };
46 power {
47 label = "fonera20n:green:power";
48 gpios = <&gpio0 9 1>;
49 };
50 usb {
51 label = "fonera20n:orange:usb";
52 gpios = <&gpio0 14 1>;
53 };
54 };
55
56 gpio-keys-polled {
57 compatible = "gpio-keys-polled";
58 #address-cells = <1>;
59 #size-cells = <0>;
60 poll-interval = <20>;
61 reset {
62 label = "reset";
63 gpios = <&gpio0 12 1>;
64 linux,code = <0x198>;
65 };
66 switch {
67 label = "switch";
68 gpios = <&gpio0 13 1>;
69 linux,code = <0x101>;
70 };
71 };
72
73 ethernet@10100000 {
74 status = "okay";
75 };
76
77 esw@10110000 {
78 status = "okay";
79 ralink,portmap = <0x2f>;
80
81 port@0 {
82 conpatible = "swconfig,port";
83 swconfig,segment = "lan";
84 swconfig,portmap = <0 4>;
85 };
86 port@1 {
87 conpatible = "swconfig,port";
88 swconfig,segment = "lan";
89 swconfig,portmap = <1 3>;
90 };
91 port@2 {
92 conpatible = "swconfig,port";
93 swconfig,segment = "lan";
94 swconfig,portmap = <2 2>;
95 };
96 port@3 {
97 conpatible = "swconfig,port";
98 swconfig,segment = "lan";
99 swconfig,portmap = <3 1>;
100 };
101 port@4 {
102 conpatible = "swconfig,port";
103 swconfig,segment = "lan";
104 swconfig,portmap = <4 0>;
105 };
106 };
107
108 wmac@10180000 {
109 status = "okay";
110 };
111
112 otg@101c0000 {
113 status = "okay";
114 };
115 };