ramips: disable NAND device in mt7621.dtsi to fix boot errors on many devices
[oweals/openwrt.git] / target / linux / ramips / dts / DIR-645.dts
1 /dts-v1/;
2
3 /include/ "rt3883.dtsi"
4
5 / {
6         compatible = "DIR-645", "ralink,rt3883-soc";
7         model = "D-Link DIR-645";
8
9         palmbus@10000000 {
10                 gpio1: gpio@638 {
11                         status = "okay";
12                 };
13
14                 spi@b00 {
15                         status = "okay";
16
17                         m25p80@0 {
18                                 #address-cells = <1>;
19                                 #size-cells = <1>;
20                                 compatible = "jedec,spi-nor";
21                                 reg = <0 0>;
22                                 linux,modalias = "m25p80";
23                                 spi-max-frequency = <25000000>;
24
25                                 partition@0 {
26                                         label = "uboot";
27                                         reg = <0x0 0x30000>;
28                                         read-only;
29                                 };
30
31                                 partition@30000 {
32                                         label = "uboot-env";
33                                         reg = <0x30000 0x4000>;
34                                         read-only;
35                                 };
36
37                                 factory: partition@34000 {
38                                         label = "factory";
39                                         reg = <0x34000 0x4000>;
40                                         read-only;
41                                 };
42
43                                 partition@38000 {
44                                         label = "nvram";
45                                         reg = <0x38000 0x8000>;
46                                         read-only;
47                                 };
48
49                                 partition@40000 {
50                                         label = "devdata";
51                                         reg = <0x40000 0x10000>;
52                                 };
53
54                                 partition@50000 {
55                                         label = "firmware";
56                                         reg = <0x50000 0x7b0000>;
57                                 };
58                         };
59                 };
60         };
61
62         pinctrl {
63                 state_default: pinctrl0 {
64                         gpio {
65                                 ralink,group = "i2c", "jtag", "uartf";
66                                 ralink,function = "gpio";
67                         };
68                 };
69         };
70
71         ethernet@10100000 {
72                 mtd-mac-address = <&factory 0x4>;
73
74                 port@0 {
75                         mediatek,fixed-link = <1000 1 1 0>;
76                 };
77         };
78
79         wmac@10180000 {
80                 ralink,5ghz = <0>;
81                 ralink,mtd-eeprom = <&factory 0>;
82         };
83
84         ehci@101c0000 {
85                 status = "okay";
86         };
87
88         ohci@101c1000 {
89                 status = "okay";
90         };
91
92         rtl8367b {
93                 compatible = "realtek,rtl8367b";
94                 gpio-sda = <&gpio0 1 0>;
95                 gpio-sck = <&gpio0 2 0>;
96                 realtek,extif1 = <1 0 1 1 1 1 1 1 2>;
97         };
98
99         gpio-keys-polled {
100                 compatible = "gpio-keys-polled";
101                 #address-cells = <1>;
102                 #size-cells = <0>;
103                 poll-interval = <100>;
104
105                 reset {
106                         label = "reset";
107                         gpios = <&gpio0 9 0>;
108                         linux,code = <0x198>;
109                 };
110
111                 wps {
112                         label = "wps";
113                         gpios = <&gpio0 14 0>;
114                         linux,code = <0x211>;
115                 };
116         };
117
118         gpio-leds {
119                 compatible = "gpio-leds";
120
121                 inet {
122                         label = "dir-645:green:inet";
123                         gpios = <&gpio0 0 1>;
124                 };
125
126                 wps {
127                         label = "dir-645:green:wps";
128                         gpios = <&gpio1 2 0>;
129                 };
130         };
131
132         gpio_export {
133                 compatible = "gpio-export";
134                 #size-cells = <0>;
135
136                 usb {
137                         gpio-export,name = "usb";
138                         gpio-export,output = <1>;
139                         gpios = <&gpio1 6 0>;
140                 };
141         };
142 };