733cdeaf39f001853372194847770dfdd8f6c42a
[openwrt/staging/jow.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 = <80000000>;
35 m25p,fast-read;
36
37 partitions {
38 compatible = "fixed-partitions";
39 #address-cells = <1>;
40 #size-cells = <1>;
41
42 partition@0 {
43 label = "u-boot";
44 reg = <0x0 0x30000>;
45 read-only;
46 };
47
48 partition@30000 {
49 label = "hw_panic";
50 reg = <0x30000 0x10000>;
51 read-only;
52 };
53
54 factory: partition@40000 {
55 compatible = "nvmem-cells";
56 label = "factory";
57 reg = <0x40000 0x10000>;
58 #address-cells = <1>;
59 #size-cells = <1>;
60 read-only;
61
62 eeprom_factory_0: eeprom@0 {
63 reg = <0x0 0x200>;
64 };
65
66 eeprom_factory_8000: eeprom@8000 {
67 reg = <0x8000 0x200>;
68 };
69
70 macaddr_factory_4: macaddr@4 {
71 reg = <0x4 0x6>;
72 };
73 };
74
75 partition@50000 {
76 compatible = "denx,uimage";
77 label = "firmware";
78 reg = <0x50000 0xf70000>;
79 };
80
81 partition@fc0000 {
82 label = "oem";
83 reg = <0xfc0000 0x20000>;
84 read-only;
85 };
86
87 bdinfo: partition@fe0000 {
88 label = "bdinfo";
89 reg = <0xfe0000 0x10000>;
90 read-only;
91 };
92
93 partition@ff0000 {
94 label = "backup";
95 reg = <0xff0000 0x10000>;
96 read-only;
97 };
98 };
99 };
100 };
101
102 &ethernet {
103 nvmem-cells = <&macaddr_factory_4>;
104 nvmem-cell-names = "mac-address";
105
106 mediatek,portmap = "wllll";
107 };
108
109 &sdhci {
110 status = "okay";
111 };
112
113 &wmac {
114 nvmem-cells = <&eeprom_factory_0>;
115 nvmem-cell-names = "eeprom";
116 };
117
118 &state_default {
119 gpio {
120 groups = "uartf", "wled";
121 function = "gpio";
122 };
123 };