ramips: dts: drop memory nodes
[oweals/openwrt.git] / target / linux / ramips / dts / mt7628an_hiwifi_hc5861b.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,hc5861b", "mediatek,mt7628an-soc";
10         model = "HiWiFi HC5861B";
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 = "hc5861b:green:system";
28                         gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
29                 };
30                 wlan2g {
31                         label = "hc5861b:green:wlan2g";
32                         gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
33                 };
34         };
35
36         keys {
37                 compatible = "gpio-keys-polled";
38                 poll-interval = <20>;
39
40                 reset {
41                         label = "reset";
42                         gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
43                         linux,code = <KEY_RESTART>;
44                 };
45         };
46 };
47
48 &pinctrl {
49         state_default: pinctrl0 {
50                 gpio {
51                         ralink,group = "refclk", "wdt", "wled_an";
52                         ralink,function = "gpio";
53                 };
54         };
55 };
56
57 &spi0 {
58         status = "okay";
59
60         flash@0 {
61                 compatible = "jedec,spi-nor";
62                 reg = <0>;
63                 spi-max-frequency = <10000000>;
64
65                 partitions {
66                         compatible = "fixed-partitions";
67                         #address-cells = <1>;
68                         #size-cells = <1>;
69
70                         partition@0 {
71                                 label = "u-boot";
72                                 reg = <0x0 0x30000>;
73                                 read-only;
74                         };
75
76                         partition@30000 {
77                                 label = "hw_panic";
78                                 reg = <0x30000 0x10000>;
79                                 read-only;
80                         };
81
82                         factory: partition@40000 {
83                                 label = "factory";
84                                 reg = <0x40000 0x10000>;
85                                 read-only;
86                         };
87
88                         partition@50000 {
89                                 compatible = "denx,uimage";
90                                 label = "firmware";
91                                 reg = <0x50000 0xf70000>;
92                         };
93
94                         partition@fc0000 {
95                                 label = "oem";
96                                 reg = <0xfc0000 0x20000>;
97                                 read-only;
98                         };
99
100                         bdinfo: partition@fe0000 {
101                                 label = "bdinfo";
102                                 reg = <0xfe0000 0x10000>;
103                                 read-only;
104                         };
105
106                         partition@ff0000 {
107                                 label = "backup";
108                                 reg = <0xff0000 0x10000>;
109                                 read-only;
110                         };
111                 };
112         };
113 };
114
115 &ethernet {
116         mtd-mac-address = <&factory 0x4>;
117 };
118
119 &wmac {
120         status = "okay";
121 };
122
123 &pcie {
124         status = "okay";
125 };
126
127 &pcie0 {
128         wifi@0,0 {
129                 reg = <0x0000 0 0 0 0>;
130                 mediatek,mtd-eeprom = <&factory 0x8000>;
131                 mtd-mac-address = <&factory 0x2e>;
132                 ieee80211-freq-limit = <5000000 6000000>;
133
134                 led {
135                         led-sources = <2>;
136                         led-active-low;
137                 };
138         };
139 };