ramips: mt7620: power up ephy port 4
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / MicroWRT.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 = "microduino,microwrt", "ralink,mt7620a-soc";
10 model = "Microduino MicroWRT";
11
12 chosen {
13 bootargs = "console=ttyS0,115200";
14 };
15
16 gpio-keys-polled {
17 compatible = "gpio-keys-polled";
18 #address-cells = <1>;
19 #size-cells = <0>;
20 poll-interval = <20>;
21
22 reset {
23 label = "reset";
24 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
25 linux,code = <KEY_RESTART>;
26 };
27
28 wps {
29 label = "wps";
30 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
31 linux,code = <KEY_WPS_BUTTON>;
32 };
33 };
34 };
35
36 &gpio2 {
37 status = "okay";
38 };
39
40 &gpio3 {
41 status = "okay";
42 };
43
44 &spi0 {
45 status = "okay";
46
47 m25p80@0 {
48 #address-cells = <1>;
49 #size-cells = <1>;
50 compatible = "jedec,spi-nor";
51 reg = <0>;
52 spi-max-frequency = <10000000>;
53
54 partition@0 {
55 label = "u-boot";
56 reg = <0x0 0x20000>;
57 read-only;
58 };
59
60 partition@20000 {
61 label = "u-boot-env";
62 reg = <0x20000 0x10000>;
63 read-only;
64 };
65
66 factory: partition@30000 {
67 label = "factory";
68 reg = <0x30000 0x10000>;
69 read-only;
70 };
71
72 partition@40000 {
73 label = "firmware";
74 reg = <0x40000 0xfc0000>;
75 };
76 };
77 };
78
79 &ehci {
80 status = "okay";
81 };
82
83 &ohci {
84 status = "okay";
85 };
86
87 &pcie {
88 status = "okay";
89 };
90
91 &ethernet {
92 pinctrl-names = "default";
93 pinctrl-0 = <&ephy_pins>;
94 mtd-mac-address = <&factory 0x4>;
95 mediatek,portmap = "llllw";
96 };
97
98 &wmac {
99 ralink,mtd-eeprom = <&factory 0>;
100 };
101
102 &pinctrl {
103 state_default: pinctrl0 {
104 default {
105 ralink,group = "wled", "i2c", "wdt", "uartf";
106 ralink,function = "gpio";
107 };
108 };
109 };