ramips: dts: drop memory nodes
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7628an_hiwifi_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 leds {
24 compatible = "gpio-leds";
25
26 led_system: system {
27 label = "hc5661a:blue:system";
28 gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
29 };
30 internet {
31 label = "hc5661a:blue:internet";
32 gpios = <&gpio0 1 GPIO_ACTIVE_HIGH>;
33 };
34 wlan2g {
35 label = "hc5661a:blue:wlan2g";
36 gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>;
37 };
38 };
39
40 keys {
41 compatible = "gpio-keys-polled";
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 compatible = "jedec,spi-nor";
66 reg = <0>;
67 linux,modalias = "m25p80", "w25q128";
68 spi-max-frequency = <10000000>;
69
70 partitions {
71 compatible = "fixed-partitions";
72 #address-cells = <1>;
73 #size-cells = <1>;
74
75 partition@0 {
76 label = "u-boot";
77 reg = <0x0 0x30000>;
78 read-only;
79 };
80
81 partition@30000 {
82 label = "hw_panic";
83 reg = <0x30000 0x10000>;
84 read-only;
85 };
86
87 factory: partition@40000 {
88 label = "factory";
89 reg = <0x40000 0x10000>;
90 read-only;
91 };
92
93 partition@50000 {
94 compatible = "denx,uimage";
95 label = "firmware";
96 reg = <0x50000 0xf70000>;
97 };
98
99 partition@fc0000 {
100 label = "oem";
101 reg = <0xfc0000 0x20000>;
102 read-only;
103 };
104
105 bdinfo: partition@fe0000 {
106 label = "bdinfo";
107 reg = <0xfe0000 0x10000>;
108 read-only;
109 };
110
111 partition@ff0000 {
112 label = "backup";
113 reg = <0xff0000 0x10000>;
114 read-only;
115 };
116 };
117 };
118 };
119
120 &ethernet {
121 mtd-mac-address = <&factory 0x4>;
122 mediatek,portmap = "wllll";
123 };
124
125 &wmac {
126 status = "okay";
127 };