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