ramips: dts: Unify naming of gpio-keys nodes
[openwrt/staging/wigyori.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-boot = &led_system;
14 led-failsafe = &led_system;
15 led-running = &led_system;
16 led-upgrade = &led_system;
17 };
18
19 chosen {
20 bootargs = "console=ttyS0,115200";
21 };
22
23 memory@0 {
24 device_type = "memory";
25 reg = <0x0 0x8000000>;
26 };
27
28 gpio-leds {
29 compatible = "gpio-leds";
30
31 led_system: system {
32 label = "hc5661a:blue:system";
33 gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
34 };
35 internet {
36 label = "hc5661a:blue:internet";
37 gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
38 };
39 wlan2g {
40 label = "hc5661a:blue:wlan2g";
41 gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>;
42 };
43 };
44
45 keys {
46 compatible = "gpio-keys-polled";
47 poll-interval = <20>;
48
49 reset {
50 label = "reset";
51 gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
52 linux,code = <KEY_RESTART>;
53 };
54 };
55 };
56
57 &pinctrl {
58 state_default: pinctrl0 {
59 gpio {
60 ralink,group = "i2c", "refclk", "wled_an";
61 ralink,function = "gpio";
62 };
63 };
64 };
65
66 &spi0 {
67 status = "okay";
68
69 m25p80@0 {
70 compatible = "jedec,spi-nor";
71 reg = <0>;
72 linux,modalias = "m25p80", "w25q128";
73 spi-max-frequency = <10000000>;
74 m25p,chunked-io = <32>;
75
76 partitions {
77 compatible = "fixed-partitions";
78 #address-cells = <1>;
79 #size-cells = <1>;
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 compatible = "denx,uimage";
101 label = "firmware";
102 reg = <0x50000 0xf70000>;
103 };
104
105 partition@fc0000 {
106 label = "oem";
107 reg = <0xfc0000 0x20000>;
108 read-only;
109 };
110
111 bdinfo: partition@fe0000 {
112 label = "bdinfo";
113 reg = <0xfe0000 0x10000>;
114 read-only;
115 };
116
117 partition@ff0000 {
118 label = "backup";
119 reg = <0xff0000 0x10000>;
120 read-only;
121 };
122 };
123 };
124 };
125
126 &ethernet {
127 mtd-mac-address = <&factory 0x4>;
128 mediatek,portmap = "wllll";
129 };
130
131 &wmac {
132 status = "okay";
133 };