ramips: add support for dir810l and asus rp-n53
[openwrt.git] / target / linux / ramips / dts / DIR-810L.dts
1 /dts-v1/;
2
3 /include/ "mt7620a.dtsi"
4
5 / {
6         compatible = "dlink,dir-810l", "ralink,mt7620a-soc";
7         model = "D-Link DIR-810L";
8
9         palmbus@10000000 {
10                 sysc@0 {
11                         ralink,pinmux = "spi", "uartlite", "ephy";
12                         ralink,gpiomux = "jtag", "mdio", "rgmii1", "rgmii1", "i2c", "wled";
13                         ralink,uartmux = "gpio";
14                         ralink,wdtmux = <1>;
15                 };
16
17                 gpio0: gpio@600 {
18                         status = "okay";
19                 };
20
21                 spi@b00 {
22                         status = "okay";
23                 
24                         m25p80@0 {
25                                 #address-cells = <1>;
26                                 #size-cells = <1>;
27                                 compatible = "mx25l6405d";
28                                 reg = <0 0>;
29                                 linux,modalias = "m25p80";
30                                 spi-max-frequency = <10000000>;
31
32                                 partition@0 {
33                                         label = "u-boot";
34                                         reg = <0x0 0x30000>;
35                                         read-only;
36                                 };
37
38                                 partition@30000 {
39                                         label = "u-boot-env";
40                                         reg = <0x30000 0x10000>;
41                                         read-only;
42                                 };
43
44                                 factory: partition@40000 {
45                                         label = "factory";
46                                         reg = <0x40000 0x10000>;
47                                         read-only;
48                                 };
49
50                                 factory5g: partition@50000 {
51                                         label = "factory5g";
52                                         reg = <0x50000 0x10000>;
53                                         read-only;
54                                 };
55
56                                 partition@60000 {
57                                         label = "Wolf_Config";
58                                         reg = <0x60000 0x10000>;
59                                         read-only;
60                                 };
61
62                                 partition@70000 {
63                                         label = "MyDlink";
64                                         reg = <0x70000 0x80000>;
65                                         read-only;
66                                 };
67
68                                 partition@e0000 {
69                                         label = "Jffs2";
70                                         reg = <0xe0000 0x80000>;
71                                         read-only;
72                                 };
73
74                                 partition@170000 {
75                                         label = "firmware";
76                                         reg = <0x170000 0x690000>;
77                                 };
78                         };
79                 };
80         };
81
82         ethernet@10100000 {
83                 status = "okay";
84         };
85
86         gsw@10110000 {
87                 status = "okay";
88                 ralink,port4 = "ephy";
89         };
90
91         pcie@10140000 {
92                 status = "okay";
93         };
94
95         gpio-keys-polled {
96                 compatible = "gpio-keys-polled";
97                 #address-cells = <1>;
98                 #size-cells = <0>;
99                 poll-interval = <20>;
100                 reset {
101                         label = "reset";
102                         gpios = <&gpio0 1 1>;
103                         linux,code = <0x100>;
104                 };
105                 wps {
106                         label = "wps";
107                         gpios = <&gpio0 2 1>;
108                         linux,code = <0x100>;
109                 };
110         };
111
112         gpio-leds {
113                 compatible = "gpio-leds";
114                 power {
115                         label = "dlink:green:power";
116                         gpios = <&gpio0 9 0>;
117                 };
118                 internet {
119                         label = "asus:yellow:internet";
120                         gpios = <&gpio0 12 0>;
121                 };
122                 status {
123                         label = "asus:internet:status";
124                         gpios = <&gpio0 13 0>;
125                 };
126         };
127 };