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