Fresh pull from upstream
[librecmc/librecmc.git] / target / linux / ramips / dts / DAP-1350.dts
1 /dts-v1/;
2
3 #include "rt3050.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8         compatible = "DAP-1350", "ralink,rt3052-soc";
9         model = "D-Link DAP-1350";
10
11         chosen {
12                 bootargs = "console=ttyS0,115200";
13         };
14
15         cfi@1f000000 {
16                 compatible = "cfi-flash";
17                 reg = <0x1f000000 0x800000>;
18                 bank-width = <2>;
19                 device-width = <2>;
20                 #address-cells = <1>;
21                 #size-cells = <1>;
22
23                 partition@0 {
24                         label = "u-boot";
25                         reg = <0x0 0x30000>;
26                         read-only;
27                 };
28
29                 devdata: partition@30000 {
30                         label = "devdata";
31                         reg = <0x30000 0x10000>;
32                         read-only;
33                 };
34
35                 partition@40000 {
36                         label = "devconf";
37                         reg = <0x40000 0x30000>;
38                         read-only;
39                 };
40
41                 partition@70000 {
42                         label = "devlang";
43                         reg = <0x70000 0x40000>;
44                         read-only;
45                 };
46
47                 partition@b0000 {
48                         label = "firmware";
49                         reg = <0xb0000 0x750000>;
50                 };
51         };
52
53         gpio-leds {
54                 compatible = "gpio-leds";
55
56                 power {
57                         label = "dap-1350:blue:power";
58                         gpios = <&gpio0 8 1>;
59                 };
60
61                 power2 {
62                         label = "dap-1350:red:power";
63                         gpios = <&gpio0 9 1>;
64                 };
65
66                 wps {
67                         label = "dap-1350:blue:wps";
68                         gpios = <&gpio0 14 1>;
69                 };
70         };
71
72         gpio-keys-polled {
73                 compatible = "gpio-keys-polled";
74                 #address-cells = <1>;
75                 #size-cells = <0>;
76                 poll-interval = <20>;
77
78                 reset {
79                         label = "reset";
80                         gpios = <&gpio0 10 1>;
81                         linux,code = <KEY_RESTART>;
82                 };
83
84                 wps {
85                         label = "wps";
86                         gpios = <&gpio0 0 1>;
87                         linux,code = <KEY_WPS_BUTTON>;
88                 };
89
90                 rt {
91                         label = "rt";
92                         gpios = <&gpio0 11 1>;
93                         linux,code = <BTN_0>;
94                 };
95
96                 ap {
97                         label = "ap";
98                         gpios = <&gpio0 7 1>;
99                         linux,code = <BTN_1>;
100                 };
101         };
102 };
103
104 &pinctrl {
105         state_default: pinctrl0 {
106                 gpio {
107                         ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
108                         ralink,function = "gpio";
109                 };
110         };
111 };
112
113 &ethernet {
114         mtd-mac-address = <&devdata 0x2e>;
115 };
116
117 &esw {
118         mediatek,portmap = <0x2f>;
119 };
120
121 &wmac {
122         ralink,mtd-eeprom = <&devdata 0>;
123 };
124
125 &otg {
126         status = "okay";
127 };