06be27cb8c358d8c46b8664ce5b19c86ec28f60e
[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         palmbus@10000000 {
14                 sysc@0 {
15                         ralink,pinmux = "i2c", "spi", "uartlite", "jtag", "mdio", "sdram", "rgmii";
16                         ralink,uartmux = "gpio";
17                         ralink,wdtmux = <1>;
18                 };
19
20                 gpio0: gpio@600 {
21                         status = "okay";
22                 };
23
24         };
25
26         cfi@1f000000 {
27                 compatible = "cfi-flash";
28                 reg = <0x1f000000 0x800000>;
29
30                 bank-width = <2>;
31                 device-width = <2>;
32                 #address-cells = <1>;
33                 #size-cells = <1>;
34
35                 partition@0 {
36                         label = "bootloader";
37                         reg = <0x0 0x30000>;
38                         read-only;
39                 };
40
41                 partition@30000 {
42                         label = "config";
43                         reg = <0x30000 0x10000>;
44                 };
45
46                 factory: partition@40000 {
47                         label = "factory";
48                         reg = <0x40000 0x10000>;
49                 };
50
51                 partition@50000 {
52                         label = "firmware";
53                         reg = <0x50000 0x7a0000>;
54                 };
55         };
56
57         gpio-leds {
58                 compatible = "gpio-leds";
59                 run {
60                         label = "argus-atp52b:green:run";
61                         gpios = <&gpio0 9 1>;
62                 };
63                 net {
64                         label = "argus-atp52b:amber:net";
65                         gpios = <&gpio0 13 1>;
66                 };
67         };
68
69         gpio-keys-polled {
70                 compatible = "gpio-keys-polled";
71                 #address-cells = <1>;
72                 #size-cells = <0>;
73                 poll-interval = <20>;
74                 wps {
75                         label = "wps";
76                         gpios = <&gpio0 0 1>;
77                         linux,code = <0x211>;
78                 };
79                 reset {
80                         label = "reset";
81                         gpios = <&gpio0 10 1>;
82                         linux,code = <0x198>;
83                 };
84         };
85
86         ethernet@10100000 {
87                 status = "okay";
88         };
89
90         esw@10110000 {
91                 status = "okay";
92                 ralink,portmap = <0x3e>;
93         };
94
95         wmac@10180000 {
96                 status = "okay";
97         };
98
99         otg@101c0000 {
100                 status = "okay";
101         };
102 };