ramips: fix hnat dtc warning
[openwrt/openwrt.git] / target / linux / ramips / dts / HC5661A.dts
1 /dts-v1/;
2
3 #include "mt7628an.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "hiwifi,hc5661a", "mediatek,mt7628an-soc";
10 model = "HiWiFi HC5661A";
11
12 aliases {
13 led-status = &led_system;
14 };
15
16 chosen {
17 bootargs = "console=ttyS0,115200";
18 };
19
20 memory@0 {
21 device_type = "memory";
22 reg = <0x0 0x8000000>;
23 };
24
25 sdhci@10130000 {
26 status = "okay";
27 };
28
29 gpio-leds {
30 compatible = "gpio-leds";
31
32 led_system: system {
33 label = "hc5661a:blue:system";
34 gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
35 };
36 internet {
37 label = "hc5661a:blue:internet";
38 gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
39 };
40 wlan2g {
41 label = "hc5661a:blue:wlan2g";
42 gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>;
43 };
44 };
45
46 gpio-keys {
47 compatible = "gpio-keys-polled";
48 #address-cells = <1>;
49 #size-cells = <0>;
50 poll-interval = <20>;
51
52 reset {
53 label = "reset";
54 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
55 linux,code = <KEY_RESTART>;
56 };
57 };
58 };
59
60 &pinctrl {
61 state_default: pinctrl0 {
62 gpio {
63 ralink,group = "i2c", "refclk", "wled_an";
64 ralink,function = "gpio";
65 };
66 };
67 };
68
69 &spi0 {
70 status = "okay";
71
72 m25p80@0 {
73 #address-cells = <1>;
74 #size-cells = <1>;
75 compatible = "jedec,spi-nor";
76 reg = <0>;
77 linux,modalias = "m25p80", "w25q128";
78 spi-max-frequency = <10000000>;
79 m25p,chunked-io = <32>;
80
81 partition@0 {
82 label = "u-boot";
83 reg = <0x0 0x30000>;
84 read-only;
85 };
86
87 partition@30000 {
88 label = "hw_panic";
89 reg = <0x30000 0x10000>;
90 read-only;
91 };
92
93 factory: partition@40000 {
94 label = "factory";
95 reg = <0x40000 0x10000>;
96 read-only;
97 };
98
99 partition@50000 {
100 label = "firmware";
101 reg = <0x50000 0xf70000>;
102 };
103
104 partition@fc0000 {
105 label = "oem";
106 reg = <0xfc0000 0x20000>;
107 read-only;
108 };
109
110 bdinfo: partition@fe0000 {
111 label = "bdinfo";
112 reg = <0xfe0000 0x10000>;
113 read-only;
114 };
115
116 partition@ff0000 {
117 label = "backup";
118 reg = <0xff0000 0x10000>;
119 read-only;
120 };
121 };
122 };
123
124 &ethernet {
125 mtd-mac-address = <&factory 0x4>;
126 mediatek,portmap = "wllll";
127 };
128
129 &wmac {
130 status = "okay";
131 };