Fresh pull from upstream
[librecmc/librecmc.git] / target / linux / ramips / dts / ATP-52B.dts
1 /dts-v1/;
2
3 #include "rt3050.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8         compatible = "ATP-52B", "ralink,rt3052-soc";
9         model = "Argus ATP-52B";
10
11         cfi@1f000000 {
12                 compatible = "cfi-flash";
13                 reg = <0x1f000000 0x800000>;
14                 bank-width = <2>;
15                 device-width = <2>;
16                 #address-cells = <1>;
17                 #size-cells = <1>;
18
19                 partition@0 {
20                         label = "bootloader";
21                         reg = <0x0 0x30000>;
22                         read-only;
23                 };
24
25                 partition@30000 {
26                         label = "config";
27                         reg = <0x30000 0x10000>;
28                 };
29
30                 factory: partition@40000 {
31                         label = "factory";
32                         reg = <0x40000 0x10000>;
33                 };
34
35                 partition@50000 {
36                         label = "firmware";
37                         reg = <0x50000 0x7a0000>;
38                 };
39         };
40
41         gpio-leds {
42                 compatible = "gpio-leds";
43
44                 run {
45                         label = "atp-52b:green:run";
46                         gpios = <&gpio0 9 1>;
47                 };
48
49                 net {
50                         label = "atp-52b:amber:net";
51                         gpios = <&gpio0 13 1>;
52                 };
53         };
54
55         gpio-keys-polled {
56                 compatible = "gpio-keys-polled";
57                 #address-cells = <1>;
58                 #size-cells = <0>;
59                 poll-interval = <20>;
60
61                 wps {
62                         label = "wps";
63                         gpios = <&gpio0 0 1>;
64                         linux,code = <KEY_WPS_BUTTON>;
65                 };
66
67                 reset {
68                         label = "reset";
69                         gpios = <&gpio0 10 1>;
70                         linux,code = <KEY_RESTART>;
71                 };
72         };
73 };
74
75 &pinctrl {
76         state_default: pinctrl0 {
77                 gpio {
78                         ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
79                         ralink,function = "gpio";
80                 };
81         };
82 };
83
84
85 &ethernet {
86         mtd-mac-address = <&factory 0x4>;
87 };
88
89 &esw {
90         mediatek,portmap = <0x3e>;
91 };
92
93 &wmac {
94         ralink,mtd-eeprom = <&factory 0>;
95 };
96
97 &otg {
98         status = "okay";
99 };