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