ramips: cleanup SPI flash device tree properties usage
[lede.git] / target / linux / ramips / dts / DIR-620-D1.dts
1 /dts-v1/;
2
3 #include "rt3352.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8         compatible = "DIR-620-D1", "ralink,rt3352-soc";
9         model = "D-Link DIR-620 D1";
10
11         gpio-leds {
12                 compatible = "gpio-leds";
13
14                 status {
15                         label = "dir-620-d1:green:status";
16                         gpios = <&gpio0 9 1>;
17                 };
18
19                 wifi {
20                         label = "dir-620-d1:green:wifi";
21                         gpios = <&gpio0 17 1>;
22                 };
23         };
24
25         gpio-keys-polled {
26                 compatible = "gpio-keys-polled";
27                 #address-cells = <1>;
28                 #size-cells = <0>;
29                 poll-interval = <20>;
30
31                 reset_wps {
32                         label = "reset_wps";
33                         gpios = <&gpio0 7 1>;
34                         linux,code = <KEY_RESTART>;
35                 };
36         };
37 };
38
39 &spi0 {
40         status = "okay";
41
42         m25p80@0 {
43                 #address-cells = <1>;
44                 #size-cells = <1>;
45                 compatible = "jedec,spi-nor";
46                 reg = <0>;
47                 spi-max-frequency = <10000000>;
48
49                 partition@0 {
50                         label = "u-boot";
51                         reg = <0x0 0x30000>;
52                         read-only;
53                 };
54
55                 partition@30000 {
56                         label = "u-boot-env";
57                         reg = <0x30000 0x10000>;
58                         read-only;
59                 };
60
61                 factory: partition@40000 {
62                         label = "factory";
63                         reg = <0x40000 0x10000>;
64                         read-only;
65                 };
66
67                 partition@50000 {
68                         label = "firmware";
69                         reg = <0x50000 0x7b0000>;
70                 };
71         };
72 };
73
74 &pinctrl {
75         state_default: pinctrl0 {
76                 gpio {
77                         ralink,group = "i2c", "jtag", "uartf";
78                         ralink,function = "gpio";
79                 };
80
81                 rgmii {
82                         ralink,group = "rgmii";
83                         ralink,function = "rgmii";
84                 };
85
86                 mdio {
87                         ralink,group = "mdio";
88                         ralink,function = "mdio";
89                 };
90         };
91 };
92
93 &ethernet {
94         mtd-mac-address = <&factory 0x4>;
95 };
96
97 &esw {
98         mediatek,portmap = <0x2f>;
99 };
100
101 &wmac {
102         ralink,mtd-eeprom = <&factory 0>;
103 };
104
105 &ehci {
106         status = "okay";
107 };
108
109 &ohci {
110         status = "okay";
111 };