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