ramips: update DTS files to use jedec,spi-nor compatible string for m25p80 to fix...
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / DIR-620-D1.dts
1 /dts-v1/;
2
3 /include/ "rt3352.dtsi"
4
5 / {
6 compatible = "DIR-620-D1", "ralink,rt3352-soc";
7 model = "D-Link DIR-620 D1";
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", "mx25l6405d";
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 partition@50000 {
40 label = "firmware";
41 reg = <0x50000 0x7b0000>;
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 rgmii {
55 ralink,group = "rgmii";
56 ralink,function = "rgmii";
57 };
58
59 mdio {
60 ralink,group = "mdio";
61 ralink,function = "mdio";
62 };
63 };
64 };
65
66 ethernet@10100000 {
67 mtd-mac-address = <&factory 0x4>;
68 };
69
70 esw@10110000 {
71 mediatek,portmap = <0x2f>;
72 };
73
74 wmac@10180000 {
75 ralink,mtd-eeprom = <&factory 0>;
76 };
77
78 gpio-leds {
79 compatible = "gpio-leds";
80
81 status {
82 label = "dir-620-d1:green:status";
83 gpios = <&gpio0 9 1>;
84 };
85
86 wifi {
87 label = "dir-620-d1:green:wifi";
88 gpios = <&gpio0 17 1>;
89 };
90 };
91
92 gpio-keys-polled {
93 compatible = "gpio-keys-polled";
94 #address-cells = <1>;
95 #size-cells = <0>;
96 poll-interval = <20>;
97
98 reset_wps {
99 label = "reset_wps";
100 gpios = <&gpio0 7 1>;
101 linux,code = <0x198>;
102 };
103 };
104
105 ehci@101c0000 {
106 status = "okay";
107 };
108
109 ohci@101c1000 {
110 status = "okay";
111 };
112 };