ramips: drop redundant status for gpio/gpio0
[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 &gpio2 {
42 status = "okay";
43 };
44
45 &gpio3 {
46 status = "okay";
47 };
48
49 &spi0 {
50 status = "okay";
51
52 flash@0 {
53 compatible = "jedec,spi-nor";
54 reg = <0>;
55 spi-max-frequency = <10000000>;
56
57 partitions {
58 compatible = "fixed-partitions";
59 #address-cells = <1>;
60 #size-cells = <1>;
61
62 partition@0 {
63 label = "u-boot";
64 reg = <0x0 0x30000>;
65 read-only;
66 };
67
68 partition@30000 {
69 label = "u-boot-env";
70 reg = <0x30000 0x10000>;
71 read-only;
72 };
73
74 factory: partition@40000 {
75 label = "factory";
76 reg = <0x40000 0x10000>;
77 read-only;
78 };
79
80 partition@50000 {
81 compatible = "denx,uimage";
82 label = "firmware";
83 reg = <0x50000 0xf80000>;
84 };
85
86 partition@fd0000 {
87 label = "hwf_config";
88 reg = <0xfd0000 0x10000>;
89 read-only;
90 };
91
92 bdinfo: partition@fe0000 {
93 label = "bdinfo";
94 reg = <0xfe0000 0x10000>;
95 read-only;
96 };
97
98 partition@ff0000 {
99 label = "backup";
100 reg = <0xff0000 0x10000>;
101 read-only;
102 };
103 };
104 };
105 };
106
107 &ethernet {
108 pinctrl-names = "default";
109 pinctrl-0 = <&ephy_pins>;
110
111 mtd-mac-address = <&factory 0x4>;
112
113 mediatek,portmap = "wllll";
114 };
115
116 &sdhci {
117 status = "okay";
118 };
119
120 &wmac {
121 ralink,mtd-eeprom = <&factory 0x0>;
122 pinctrl-names = "default";
123 pinctrl-0 = <&pa_pins>;
124 };
125
126 &state_default {
127 gpio {
128 groups = "uartf", "wled";
129 function = "gpio";
130 };
131 };