369e40731926f258390febacfa9a8f658cfb80ee
[openwrt/staging/ldir.git] / target / linux / ramips / dts / mt7620a_hiwifi_hc5x61.dtsi
1 #include "mt7620a.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "hiwifi,hc5x61", "ralink,mt7620a-soc";
8
9 chosen {
10 bootargs = "console=ttyS0,115200";
11 };
12
13 keys {
14 compatible = "gpio-keys";
15
16 reset {
17 label = "reset";
18 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
19 linux,code = <KEY_RESTART>;
20 };
21 };
22 };
23
24 &gpio3 {
25 status = "okay";
26 };
27
28 &spi0 {
29 status = "okay";
30
31 flash@0 {
32 compatible = "jedec,spi-nor";
33 reg = <0>;
34 spi-max-frequency = <10000000>;
35
36 partitions {
37 compatible = "fixed-partitions";
38 #address-cells = <1>;
39 #size-cells = <1>;
40
41 partition@0 {
42 label = "u-boot";
43 reg = <0x0 0x30000>;
44 read-only;
45 };
46
47 partition@30000 {
48 label = "hw_panic";
49 reg = <0x30000 0x10000>;
50 read-only;
51 };
52
53 factory: partition@40000 {
54 label = "factory";
55 reg = <0x40000 0x10000>;
56 read-only;
57 };
58
59 partition@50000 {
60 compatible = "denx,uimage";
61 label = "firmware";
62 reg = <0x50000 0xf70000>;
63 };
64
65 partition@fc0000 {
66 label = "oem";
67 reg = <0xfc0000 0x20000>;
68 read-only;
69 };
70
71 bdinfo: partition@fe0000 {
72 label = "bdinfo";
73 reg = <0xfe0000 0x10000>;
74 read-only;
75 };
76
77 partition@ff0000 {
78 label = "backup";
79 reg = <0xff0000 0x10000>;
80 read-only;
81 };
82 };
83 };
84 };
85
86 &ethernet {
87 mtd-mac-address = <&factory 0x4>;
88
89 mediatek,portmap = "wllll";
90 };
91
92 &sdhci {
93 status = "okay";
94 };
95
96 &wmac {
97 ralink,mtd-eeprom = <&factory 0x0>;
98 };
99
100 &state_default {
101 gpio {
102 groups = "uartf", "wled";
103 function = "gpio";
104 };
105 };