ramips: mt7620: power up ephy port 4
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / DIR-810L.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 = "dlink,dir-810l", "ralink,mt7620a-soc";
10 model = "D-Link DIR-810L";
11
12 gpio-keys-polled {
13 compatible = "gpio-keys-polled";
14 #address-cells = <1>;
15 #size-cells = <0>;
16 poll-interval = <20>;
17
18 reset {
19 label = "reset";
20 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
21 linux,code = <BTN_0>;
22 };
23
24 wps {
25 label = "wps";
26 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
27 linux,code = <BTN_0>;
28 };
29 };
30
31 gpio-leds {
32 compatible = "gpio-leds";
33
34 power {
35 label = "dir-810l:green:power";
36 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
37 };
38
39 wan {
40 label = "dir-810l:orange:wan";
41 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
42 };
43
44 status {
45 label = "dir-810l:orange:power";
46 gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
47 };
48 };
49 };
50
51 &spi0 {
52 status = "okay";
53
54 m25p80@0 {
55 #address-cells = <1>;
56 #size-cells = <1>;
57 compatible = "jedec,spi-nor";
58 reg = <0>;
59 spi-max-frequency = <10000000>;
60
61 partition@0 {
62 label = "u-boot";
63 reg = <0x0 0x30000>;
64 read-only;
65 };
66
67 partition@30000 {
68 label = "u-boot-env";
69 reg = <0x30000 0x10000>;
70 read-only;
71 };
72
73 factory: partition@40000 {
74 label = "factory";
75 reg = <0x40000 0x10000>;
76 read-only;
77 };
78
79 factory5g: partition@50000 {
80 label = "factory5g";
81 reg = <0x50000 0x10000>;
82 read-only;
83 };
84
85 partition@60000 {
86 label = "Wolf_Config";
87 reg = <0x60000 0x10000>;
88 read-only;
89 };
90
91 partition@70000 {
92 label = "MyDlink";
93 reg = <0x70000 0x80000>;
94 read-only;
95 };
96
97 partition@e0000 {
98 label = "Jffs2";
99 reg = <0xe0000 0x80000>;
100 read-only;
101 };
102
103 partition@170000 {
104 label = "firmware";
105 reg = <0x170000 0x690000>;
106 };
107 };
108 };
109
110 &pinctrl {
111 state_default: pinctrl0 {
112 gpio {
113 ralink,group = "mdio", "rgmii1", "i2c", "wled", "uartf";
114 ralink,function = "gpio";
115 };
116 };
117 };
118
119 &ethernet {
120 mtd-mac-address = <&factory 0x28>;
121 mediatek,portmap = "llllw";
122 };
123
124 &gsw {
125 mediatek,port4 = "ephy";
126 pinctrl-names = "default";
127 pinctrl-0 = <&ephy_pins>;
128 };
129
130 &pcie {
131 status = "okay";
132 };
133
134 &wmac {
135 ralink,mtd-eeprom = <&factory 0>;
136 };