df0b73be9506741f1456a4f2fa2e84a40d4ff29f
[openwrt/openwrt.git] / target / linux / ramips / dts / MZK-750DHP.dts
1 /dts-v1/;
2
3 /include/ "mt7620a.dtsi"
4
5 / {
6 compatible = "ralink,mt7620a-soc";
7 model = "Planex MZK-750DHP";
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", "mx25l6405d";
23 spi-max-frequency = <10000000>;
24
25 partition@0 {
26 label = "u-boot";
27 reg = <0x0 0x30000>;
28 read-only;
29 };
30
31 partition@30000 {
32 label = "u-boot-env";
33 reg = <0x30000 0x10000>;
34 read-only;
35 };
36
37 factory: partition@40000 {
38 label = "factory";
39 reg = <0x40000 0x10000>;
40 read-only;
41 };
42
43 partition@50000 {
44 label = "firmware";
45 reg = <0x50000 0x7b0000>;
46 };
47 };
48 };
49 };
50
51 pinctrl {
52 state_default: pinctrl0 {
53 gpio {
54 ralink,group = "i2c", "spi refclk", "rgmii1";
55 ralink,function = "gpio";
56 };
57 };
58 };
59
60 ethernet@10100000 {
61 pinctrl-names = "default";
62 pinctrl-0 = <&ephy_pins>;
63 mtd-mac-address = <&factory 0x4>;
64 mediatek,portmap = "llllw";
65 };
66
67 gsw@10110000 {
68 mediatek,port4 = "ephy";
69 };
70
71 wmac@10180000 {
72 ralink,mtd-eeprom = <&factory 0>;
73 };
74
75 pcie@10140000 {
76 status = "okay";
77 };
78
79 gpio-leds {
80 compatible = "gpio-leds";
81
82 wps {
83 label = "mzk-750dhp:green:wps";
84 gpios = <&gpio1 11 1>;
85 };
86
87 power {
88 label = "mzk-750dhp:green:power";
89 gpios = <&gpio1 15 1>;
90 };
91 };
92
93 gpio-keys-polled {
94 compatible = "gpio-keys-polled";
95 #address-cells = <1>;
96 #size-cells = <0>;
97 poll-interval = <20>;
98
99 s1 {
100 label = "reset";
101 gpios = <&gpio0 1 1>;
102 linux,code = <0x100>;
103 };
104
105 s2 {
106 label = "wps";
107 gpios = <&gpio0 2 1>;
108 linux,code = <0x211>;
109 };
110 };
111 };