a28253d488ce3784e69d004ad8e72325cf841b57
[openwrt.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
40         gpio-leds {
41                 compatible = "gpio-leds";
42                 run {
43                         label = "argus-atp52b:green:run";
44                         gpios = <&gpio0 9 1>;
45                 };
46                 net {
47                         label = "argus-atp52b:amber:net";
48                         gpios = <&gpio0 13 1>;
49                 };
50         };
51
52         gpio-keys-polled {
53                 compatible = "gpio-keys-polled";
54                 #address-cells = <1>;
55                 #size-cells = <0>;
56                 poll-interval = <20>;
57                 wps {
58                         label = "wps";
59                         gpios = <&gpio0 0 1>;
60                         linux,code = <0x211>;
61                 };
62                 reset {
63                         label = "reset";
64                         gpios = <&gpio0 10 1>;
65                         linux,code = <0x198>;
66                 };
67         };
68
69         ethernet@10100000 {
70                 status = "okay";
71         };
72
73         esw@10110000 {
74                 status = "okay";
75                 ralink,portmap = <0x3e>;
76         };
77
78         wmac@10180000 {
79                 status = "okay";
80         };
81
82         otg@101c0000 {
83                 status = "okay";
84         };
85 };