541e1db617721da620ede2bcb41a4c2dcc38bbfc
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / UR-326N4G.dts
1 /dts-v1/;
2
3 /include/ "rt3050.dtsi"
4
5 / {
6 compatible = "UR-326N4G", "ralink,rt3052-soc";
7 model = "UR-326N4G Wireless N router";
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,3776k@0x50000(firmware)";
15 };
16
17 palmbus@10000000 {
18 sysc@0 {
19 ralink,pinmux = "i2c", "spi", "uartlite", "jtag", "sdram", "rgmii";
20 ralink,gpiomux = "mdio";
21 ralink,uartmux = "gpio";
22 ralink,wdtmux = <1>;
23 };
24
25 gpio0: gpio@600 {
26 status = "okay";
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 0x3b0000>;
60 };
61 };
62
63 ethernet@10100000 {
64 status = "okay";
65 };
66
67 esw@10110000 {
68 status = "okay";
69 ralink,portmap = <0x2f>;
70 };
71
72 gpio-leds {
73 compatible = "gpio-leds";
74 3g {
75 label = "ur326:green:3g";
76 gpios = <&gpio0 9 1>;
77 };
78 gateway {
79 label = "ur326:green:gateway";
80 gpios = <&gpio0 11 1>;
81 };
82 ap {
83 label = "ur326:green:ap";
84 gpios = <&gpio0 12 1>;
85 };
86 wps {
87 label = "ur326:green:wps";
88 gpios = <&gpio0 14 1>;
89 };
90 station {
91 label = "ur326:green:station";
92 gpios = <&gpio0 13 1>;
93 };
94 };
95
96 gpio-keys-polled {
97 compatible = "gpio-keys-polled";
98 #address-cells = <1>;
99 #size-cells = <0>;
100 poll-interval = <20>;
101 reset_wps {
102 label = "reset_wps";
103 gpios = <&gpio0 10 1>;
104 linux,code = <0x198>;
105 };
106 mode {
107 label = "mode";
108 gpios = <&gpio0 7 1>;
109 linux,code = <0x32>;
110 };
111 };
112
113 wmac@10180000 {
114 status = "okay";
115 };
116
117 otg@101c0000 {
118 status = "okay";
119 };
120 };