ramips: disable NAND device in mt7621.dtsi to fix boot errors on many devices
[oweals/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                 spi@b00 {
11                         status = "okay";
12
13                         m25p80@0 {
14                                 #address-cells = <1>;
15                                 #size-cells = <1>;
16                                 compatible = "jedec,spi-nor";
17                                 reg = <0 0>;
18                                 linux,modalias = "m25p80";
19                                 spi-max-frequency = <10000000>;
20
21                                 partition@0 {
22                                         label = "u-boot";
23                                         reg = <0x0 0x30000>;
24                                         read-only;
25                                 };
26
27                                 partition@30000 {
28                                         label = "u-boot-env";
29                                         reg = <0x30000 0x10000>;
30                                         read-only;
31                                 };
32
33                                 factory: partition@40000 {
34                                         label = "factory";
35                                         reg = <0x40000 0x10000>;
36                                         read-only;
37                                 };
38
39                                 factory5g: partition@50000 {
40                                         label = "factory5g";
41                                         reg = <0x50000 0x10000>;
42                                         read-only;
43                                 };
44
45                                 partition@60000 {
46                                         label = "Wolf_Config";
47                                         reg = <0x60000 0x10000>;
48                                         read-only;
49                                 };
50
51                                 partition@70000 {
52                                         label = "MyDlink";
53                                         reg = <0x70000 0x80000>;
54                                         read-only;
55                                 };
56
57                                 partition@e0000 {
58                                         label = "Jffs2";
59                                         reg = <0xe0000 0x80000>;
60                                         read-only;
61                                 };
62
63                                 partition@170000 {
64                                         label = "firmware";
65                                         reg = <0x170000 0x690000>;
66                                 };
67                         };
68                 };
69         };
70
71         pinctrl {
72                 state_default: pinctrl0 {
73                         gpio {
74                                 ralink,group = "mdio", "rgmii1", "i2c", "wled", "uartf";
75                                 ralink,function = "gpio";
76                         };
77                 };
78         };
79
80         ethernet@10100000 {
81                 mtd-mac-address = <&factory 0x28>;
82                 mediatek,portmap = "llllw";
83         };
84
85         gsw@10110000 {
86                 mediatek,port4 = "ephy";
87                 pinctrl-names = "default";
88                 pinctrl-0 = <&ephy_pins>;
89         };
90
91         pcie@10140000 {
92                 status = "okay";
93         };
94
95         wmac@10180000 {
96                 ralink,mtd-eeprom = <&factory 0>;
97         };
98
99         gpio-keys-polled {
100                 compatible = "gpio-keys-polled";
101                 #address-cells = <1>;
102                 #size-cells = <0>;
103                 poll-interval = <20>;
104
105                 reset {
106                         label = "reset";
107                         gpios = <&gpio0 1 1>;
108                         linux,code = <0x100>;
109                 };
110
111                 wps {
112                         label = "wps";
113                         gpios = <&gpio0 2 1>;
114                         linux,code = <0x100>;
115                 };
116         };
117
118         gpio-leds {
119                 compatible = "gpio-leds";
120
121                 power {
122                         label = "dir-810l:green:power";
123                         gpios = <&gpio0 9 0>;
124                 };
125
126                 wan {
127                         label = "dir-810l:orange:wan";
128                         gpios = <&gpio0 12 0>;
129                 };
130
131                 status {
132                         label = "dir-810l:orange:power";
133                         gpios = <&gpio0 13 0>;
134                 };
135         };
136 };