ec6501d32297943d8fd04210a1ea68279481b70f
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / ARGUS_ATP52B.dts
1 /dts-v1/;
2
3 /include/ "rt3050.dtsi"
4
5 / {
6 compatible = "ARGUS_ATP52B", "ralink,rt3052-soc";
7 model = "Argus ATP-52B";
8
9 memorydetect {
10 ralink,memory = <0x0 0x200000 0x4000000>;
11 };
12
13 chosen {
14 bootargs = "mtdparts=1f000000.cfi:192k(bootloader)ro,64k(config),64k(factory),7808k@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 = "bootloader";
41 reg = <0x0 0x30000>;
42 read-only;
43 };
44
45 partition@30000 {
46 label = "config";
47 reg = <0x30000 0x10000>;
48 };
49
50 factory: partition@40000 {
51 label = "factory";
52 reg = <0x40000 0x10000>;
53 };
54
55 partition@50000 {
56 label = "firmware";
57 reg = <0x50000 0x7a0000>;
58 };
59 };
60
61 gpio-leds {
62 compatible = "gpio-leds";
63 run {
64 label = "argus-atp52b:green:run";
65 gpios = <&gpio0 9 1>;
66 };
67 net {
68 label = "argus-atp52b:amber:net";
69 gpios = <&gpio0 13 1>;
70 };
71 };
72
73 gpio-keys-polled {
74 compatible = "gpio-keys-polled";
75 #address-cells = <1>;
76 #size-cells = <0>;
77 poll-interval = <20>;
78 wps {
79 label = "wps";
80 gpios = <&gpio0 0 1>;
81 linux,code = <0x211>;
82 };
83 reset {
84 label = "reset";
85 gpios = <&gpio0 10 1>;
86 linux,code = <0x198>;
87 };
88 };
89
90 ethernet@10100000 {
91 status = "okay";
92 };
93
94 esw@10110000 {
95 status = "okay";
96 ralink,portmap = <0x3e>;
97 };
98
99 wmac@10180000 {
100 status = "okay";
101 };
102
103 otg@101c0000 {
104 status = "okay";
105 };
106 };