ramips: do not enable unused GPIO controllers
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620a_hiwifi_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 keys {
14 compatible = "gpio-keys";
15
16 reset {
17 label = "reset";
18 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
19 linux,code = <KEY_RESTART>;
20 };
21 };
22
23 gpio_export {
24 compatible = "gpio-export";
25 #size-cells = <0>;
26
27 usbpower {
28 gpio-export,name = "usbpower";
29 gpio-export,output = <1>;
30 gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
31 };
32 };
33 };
34
35 &sysc {
36 ralink,gpiomux = "i2c", "jtag";
37 ralink,uartmux = "gpio";
38 ralink,wdtmux = <1>;
39 };
40
41 &gpio3 {
42 status = "okay";
43 };
44
45 &spi0 {
46 status = "okay";
47
48 flash@0 {
49 compatible = "jedec,spi-nor";
50 reg = <0>;
51 spi-max-frequency = <10000000>;
52
53 partitions {
54 compatible = "fixed-partitions";
55 #address-cells = <1>;
56 #size-cells = <1>;
57
58 partition@0 {
59 label = "u-boot";
60 reg = <0x0 0x30000>;
61 read-only;
62 };
63
64 partition@30000 {
65 label = "u-boot-env";
66 reg = <0x30000 0x10000>;
67 read-only;
68 };
69
70 factory: partition@40000 {
71 label = "factory";
72 reg = <0x40000 0x10000>;
73 read-only;
74 };
75
76 partition@50000 {
77 compatible = "denx,uimage";
78 label = "firmware";
79 reg = <0x50000 0xf80000>;
80 };
81
82 partition@fd0000 {
83 label = "hwf_config";
84 reg = <0xfd0000 0x10000>;
85 read-only;
86 };
87
88 bdinfo: partition@fe0000 {
89 label = "bdinfo";
90 reg = <0xfe0000 0x10000>;
91 read-only;
92 };
93
94 partition@ff0000 {
95 label = "backup";
96 reg = <0xff0000 0x10000>;
97 read-only;
98 };
99 };
100 };
101 };
102
103 &ethernet {
104 pinctrl-names = "default";
105 pinctrl-0 = <&ephy_pins>;
106
107 mtd-mac-address = <&factory 0x4>;
108
109 mediatek,portmap = "wllll";
110 };
111
112 &sdhci {
113 status = "okay";
114 };
115
116 &wmac {
117 ralink,mtd-eeprom = <&factory 0x0>;
118 pinctrl-names = "default";
119 pinctrl-0 = <&pa_pins>;
120 };
121
122 &state_default {
123 gpio {
124 groups = "uartf", "wled";
125 function = "gpio";
126 };
127 };