ramips: mt7620: power up ephy port 4
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / MLWG2.dts
1 /dts-v1/;
2
3 #include "mt7620n.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "kingston,mlwg2", "ralink,mt7620n-soc";
10 model = "Kingston MLWG2";
11
12 gpio-leds {
13 compatible = "gpio-leds";
14
15 system {
16 label = "mlwg2:blue:system";
17 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
18 };
19
20 wifi {
21 label = "mlwg2:blue:wifi";
22 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
23 };
24 };
25
26 gpio-keys-polled {
27 compatible = "gpio-keys-polled";
28 #address-cells = <1>;
29 #size-cells = <0>;
30 poll-interval = <20>;
31
32 reset {
33 label = "reset";
34 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
35 linux,code = <KEY_RESTART>;
36 };
37
38 system {
39 label = "system";
40 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
41 linux,code = <KEY_RFKILL>;
42 };
43 };
44 };
45
46 &gpio0 {
47 status = "okay";
48 };
49
50 &gpio2 {
51 status = "okay";
52 };
53
54 &gpio3 {
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 0xf60000>;
89 };
90
91 partition@fb0000 {
92 label = "user-config";
93 reg = <0xfb0000 0x50000>;
94 };
95 };
96 };
97
98 &ehci {
99 status = "okay";
100 };
101
102 &ohci {
103 status = "okay";
104 };
105
106 &ethernet {
107 mtd-mac-address = <&factory 0x4>;
108 mediatek,portmap = "wllll";
109 };
110
111 &wmac {
112 ralink,mtd-eeprom = <&factory 0>;
113 };
114
115 &pinctrl {
116 state_default: pinctrl0 {
117 default {
118 ralink,group = "i2c", "ephy", "wled";
119 ralink,function = "gpio";
120 };
121 };
122 };