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