ramips: cleanup SPI flash device tree properties usage
[openwrt/openwrt.git] / target / linux / ramips / dts / MZK-750DHP.dts
1 /dts-v1/;
2
3 #include "mt7620a.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "ralink,mt7620a-soc";
9 model = "Planex MZK-750DHP";
10
11 gpio-leds {
12 compatible = "gpio-leds";
13
14 wps {
15 label = "mzk-750dhp:green:wps";
16 gpios = <&gpio2 15 1>;
17 };
18
19 power {
20 label = "mzk-750dhp:green:power";
21 gpios = <&gpio1 15 1>;
22 };
23
24 wlan5g {
25 label = "mzk-750dhp:green:wlan5g";
26 gpios = <&gpio1 14 1>;
27 };
28 };
29
30 gpio-keys-polled {
31 compatible = "gpio-keys-polled";
32 #address-cells = <1>;
33 #size-cells = <0>;
34 poll-interval = <20>;
35
36 s1 {
37 label = "reset";
38 gpios = <&gpio0 1 1>;
39 linux,code = <KEY_RESTART>;
40 };
41
42 s2 {
43 label = "wps";
44 gpios = <&gpio2 19 1>;
45 linux,code = <KEY_WPS_BUTTON>;
46 };
47 };
48 };
49
50 &gpio1 {
51 status = "okay";
52 };
53
54 &gpio2 {
55 status = "okay";
56 };
57
58 &spi0 {
59 status = "okay";
60
61 m25p80@0 {
62 #address-cells = <1>;
63 #size-cells = <1>;
64 compatible = "jedec,spi-nor";
65 reg = <0>;
66 spi-max-frequency = <10000000>;
67
68 partition@0 {
69 label = "u-boot";
70 reg = <0x0 0x30000>;
71 read-only;
72 };
73
74 partition@30000 {
75 label = "u-boot-env";
76 reg = <0x30000 0x10000>;
77 read-only;
78 };
79
80 factory: partition@40000 {
81 label = "factory";
82 reg = <0x40000 0x10000>;
83 read-only;
84 };
85
86 partition@50000 {
87 label = "firmware";
88 reg = <0x50000 0x7b0000>;
89 };
90 };
91 };
92
93 &pinctrl {
94 state_default: pinctrl0 {
95 gpio {
96 ralink,group = "i2c", "spi refclk", "rgmii1", "nd_sd";
97 ralink,function = "gpio";
98 };
99 };
100 };
101
102 &ethernet {
103 pinctrl-names = "default";
104 pinctrl-0 = <&ephy_pins>;
105 mtd-mac-address = <&factory 0x4>;
106 mediatek,portmap = "llllw";
107 };
108
109 &gsw {
110 mediatek,port4 = "ephy";
111 };
112
113 &wmac {
114 ralink,mtd-eeprom = <&factory 0>;
115 };
116
117 &pcie {
118 status = "okay";
119
120 pcie-bridge {
121 mt76@0,0 {
122 reg = <0x0000 0 0 0 0>;
123 device_type = "pci";
124 mediatek,mtd-eeprom = <&factory 0x8000>;
125 };
126 };
127 };