ramips: disable NAND device in mt7621.dtsi to fix boot errors on many devices
[oweals/openwrt.git] / target / linux / ramips / dts / DIR-610-A1.dts
1 /dts-v1/;
2
3 /include/ "rt5350.dtsi"
4
5 / {
6         compatible = "DIR-610-A1", "ralink,rt5350-soc";
7         model = "D-Link DIR-610 A1";
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                                 devdata: partition@30000 {
28                                         label = "devdata";
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                                 partition@50000 {
40                                         label = "firmware";
41                                         reg = <0x50000 0x3b0000>;
42                                 };
43                         };
44                 };
45         };
46
47         pinctrl {
48                 state_default: pinctrl0 {
49                         gpio {
50                                 ralink,group = "i2c", "jtag", "uartf";
51                                 ralink,function = "gpio";
52                         };
53                 };
54         };
55
56         ethernet@10100000 {
57                 mtd-mac-address = <&devdata 0x4004>;
58         };
59
60         esw@10110000 {
61                 status = "okay";
62                 mediatek,portmap = <0x2f>;
63                 mediatek,led_polarity = <0x17>;
64         };
65
66         wmac@10180000 {
67                 status = "okay";
68                 ralink,led-polarity = <1>;
69                 ralink,mtd-eeprom = <&devdata 0x4000>;
70         };
71
72         gpio-leds {
73                 compatible = "gpio-leds";
74
75                 status {
76                         label = "dir-610-a1:green:status";
77                         gpios = <&gpio0 9 1>;
78                 };
79
80                 wps {
81                         label = "dir-610-a1:green:wps";
82                         gpios = <&gpio0 13 1>;
83                 };
84         };
85
86         gpio-keys-polled {
87                 compatible = "gpio-keys-polled";
88                 #address-cells = <1>;
89                 #size-cells = <0>;
90                 poll-interval = <20>;
91
92                 reset {
93                         label = "reset";
94                         gpios = <&gpio0 10 1>;
95                         linux,code = <0x198>;
96                 };
97
98                 wps {
99                         label = "wps";
100                         gpios = <&gpio0 0 1>;
101                         linux,code = <0x211>;
102                 };
103         };
104 };