ramips: mt7620: power up ephy port 4
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / HC5X61.dtsi
1 #include "mt7620a.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "hiwifi,hc5x61", "ralink,mt7620a-soc";
8
9 chosen {
10 bootargs = "console=ttyS0,115200";
11 };
12
13 gpio-keys-polled {
14 compatible = "gpio-keys-polled";
15 #address-cells = <1>;
16 #size-cells = <0>;
17 poll-interval = <20>;
18
19 reset {
20 label = "reset";
21 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
22 linux,code = <KEY_RESTART>;
23 };
24 };
25
26 gpio_export {
27 compatible = "gpio-export";
28 #size-cells = <0>;
29
30 usbpower {
31 gpio-export,name = "usbpower";
32 gpio-export,output = <1>;
33 gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
34 };
35 };
36 };
37
38 &sysc {
39 ralink,gpiomux = "i2c", "jtag";
40 ralink,uartmux = "gpio";
41 ralink,wdtmux = <1>;
42 };
43
44 &gpio0 {
45 status = "okay";
46 };
47
48 &gpio2 {
49 status = "okay";
50 };
51
52 &gpio3 {
53 status = "okay";
54 };
55
56 &spi0 {
57 status = "okay";
58
59 m25p80@0 {
60 #address-cells = <1>;
61 #size-cells = <1>;
62 compatible = "jedec,spi-nor";
63 reg = <0>;
64 spi-max-frequency = <10000000>;
65
66 partition@0 {
67 label = "u-boot";
68 reg = <0x0 0x30000>;
69 };
70
71 partition@30000 {
72 label = "u-boot-env";
73 reg = <0x30000 0x10000>;
74 read-only;
75 };
76
77 factory: partition@40000 {
78 label = "factory";
79 reg = <0x40000 0x10000>;
80 };
81
82 partition@50000 {
83 label = "firmware";
84 reg = <0x50000 0xf80000>;
85 };
86
87 partition@fd0000 {
88 label = "hwf_config";
89 reg = <0xfd0000 0x10000>;
90 };
91
92 bdinfo: partition@fe0000 {
93 label = "bdinfo";
94 reg = <0xfe0000 0x10000>;
95 };
96
97 partition@ff0000 {
98 label = "backup";
99 reg = <0xff0000 0x10000>;
100 };
101 };
102 };
103
104 &ehci {
105 status = "okay";
106 };
107
108 &ohci {
109 status = "okay";
110 };
111
112 &ethernet {
113 pinctrl-names = "default";
114 pinctrl-0 = <&ephy_pins>;
115 mtd-mac-address = <&factory 0x4>;
116 mediatek,portmap = "wllll";
117 };
118
119 &sdhci {
120 status = "okay";
121 };
122
123 &wmac {
124 ralink,mtd-eeprom = <&factory 0>;
125 pinctrl-names = "default";
126 pinctrl-0 = <&pa_pins>;
127 };
128
129 &pcie {
130 status = "okay";
131 };
132
133 &pinctrl {
134 state_default: pinctrl0 {
135 gpio {
136 ralink,group = "uartf", "wled", "nd_sd";
137 ralink,function = "gpio";
138 };
139 };
140 };