rpcd: iwinfo plugin fixes
[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                 gpio2: gpio@660 {
15                         status = "okay";
16                 };
17
18                 spi@b00 {
19                         status = "okay";
20
21                         m25p80@0 {
22                                 #address-cells = <1>;
23                                 #size-cells = <1>;
24                                 compatible = "jedec,spi-nor";
25                                 reg = <0 0>;
26                                 linux,modalias = "m25p80", "mx25l6405d";
27                                 spi-max-frequency = <10000000>;
28
29                                 partition@0 {
30                                         label = "u-boot";
31                                         reg = <0x0 0x30000>;
32                                         read-only;
33                                 };
34
35                                 partition@30000 {
36                                         label = "u-boot-env";
37                                         reg = <0x30000 0x10000>;
38                                         read-only;
39                                 };
40
41                                 factory: partition@40000 {
42                                         label = "factory";
43                                         reg = <0x40000 0x10000>;
44                                         read-only;
45                                 };
46
47                                 partition@50000 {
48                                         label = "firmware";
49                                         reg = <0x50000 0x7b0000>;
50                                 };
51                         };
52                 };
53         };
54
55         pinctrl {
56                 state_default: pinctrl0 {
57                         gpio {
58                                 ralink,group = "i2c", "spi refclk", "rgmii1", "nd_sd";
59                                 ralink,function = "gpio";
60                         };
61                 };
62         };
63
64         ethernet@10100000 {
65                 pinctrl-names = "default";
66                 pinctrl-0 = <&ephy_pins>;
67                 mtd-mac-address = <&factory 0x4>;
68                 mediatek,portmap = "llllw";
69         };
70
71         gsw@10110000 {
72                 mediatek,port4 = "ephy";
73         };
74
75         wmac@10180000 {
76                 ralink,mtd-eeprom = <&factory 0>;
77         };
78
79         pcie@10140000 {
80                 status = "okay";
81
82                 pcie-bridge {
83                         mt76@0,0 {
84                                 reg = <0x0000 0 0 0 0>;
85                                 device_type = "pci";
86                                 mediatek,mtd-eeprom = <&factory 0x8000>;
87                                 mediatek,2ghz = <0>;
88                         };
89                 };
90         };
91         
92         gpio-leds {
93                 compatible = "gpio-leds";
94
95                 wps {
96                         label = "mzk-750dhp:green:wps";
97                         gpios = <&gpio2 15 1>;
98                 };
99
100                 power {
101                         label = "mzk-750dhp:green:power";
102                         gpios = <&gpio1 15 1>;
103                 };
104
105                 wlan5g {
106                         label = "mzk-750dhp:green:wlan5g";
107                         gpios = <&gpio1 14 1>;
108                 };
109         };
110
111         gpio-keys-polled {
112                 compatible = "gpio-keys-polled";
113                 #address-cells = <1>;
114                 #size-cells = <0>;
115                 poll-interval = <20>;
116
117                 s1 {
118                         label = "reset";
119                         gpios = <&gpio0 1 1>;
120                         linux,code = <0x198>;
121                 };
122
123                 s2 {
124                         label = "wps";
125                         gpios = <&gpio2 19 1>;
126                         linux,code = <0x211>;
127                 };
128         };
129 };