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