ramips: fix dtc warnings
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / HC5962.dts
1 /dts-v1/;
2
3 #include "mt7621.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "hiwifi,hc5962", "mediatek,mt7621-soc";
10 model = "HiWiFi HC5962";
11
12 aliases {
13 led-status = &led_status;
14 };
15
16 memory@0 {
17 device_type = "memory";
18 reg = <0x0 0x10000000>;
19 };
20
21 chosen {
22 bootargs = "console=ttyS0,115200";
23 };
24
25 gpio-leds {
26 compatible = "gpio-leds";
27
28 led_status: status {
29 label = "hc5962:white:status";
30 gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
31 };
32
33 system {
34 label = "hc5962:red:system";
35 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
36 };
37 };
38
39 gpio-keys-polled {
40 compatible = "gpio-keys-polled";
41 poll-interval = <20>;
42
43 reset {
44 label = "reset";
45 gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>;
46 linux,code = <KEY_RESTART>;
47 };
48 };
49 };
50
51 &nand {
52 status = "okay";
53
54 partition@0 {
55 label = "u-boot";
56 reg = <0x0 0x80000>;
57 read-only;
58 };
59
60 partition@80000 {
61 label = "debug";
62 reg = <0x80000 0x80000>;
63 read-only;
64 };
65
66 factory: partition@100000 {
67 label = "factory";
68 reg = <0x100000 0x40000>;
69 read-only;
70 };
71
72 partition@140000 {
73 label = "kernel";
74 reg = <0x140000 0x200000>;
75 };
76
77 partition@340000 {
78 label = "ubi";
79 reg = <0x340000 0x1E00000>;
80 };
81
82 partition@2140000 {
83 label = "hw_panic";
84 reg = <0x2140000 0x80000>;
85 read-only;
86 };
87
88 partition@21c0000 {
89 label = "bdinfo";
90 reg = <0x21c0000 0x80000>;
91 read-only;
92 };
93
94 partition@2240000 {
95 label = "backup";
96 reg = <0x2240000 0x80000>;
97 read-only;
98 };
99
100 partition@22c0000 {
101 label = "overly";
102 reg = <0x22c0000 0x1000000>;
103 };
104
105 partition@32c0000 {
106 label = "firmware_backup";
107 reg = <0x32c0000 0x2000000>;
108 };
109
110 partition@52c0000 {
111 label = "oem";
112 reg = <0x52c0000 0x200000>;
113 };
114
115 partition@54c0000 {
116 label = "opt";
117 reg = <0x54c0000 0x2ac0000>;
118 };
119 };
120
121 &pcie {
122 status = "okay";
123 };
124
125 &pcie0 {
126 mt76@0,0 {
127 reg = <0x0000 0 0 0 0>;
128 mediatek,mtd-eeprom = <&factory 0x0000>;
129 ieee80211-freq-limit = <2400000 2500000>;
130 };
131 };
132
133 &pcie1 {
134 mt76@0,0 {
135 reg = <0x0000 0 0 0 0>;
136 mediatek,mtd-eeprom = <&factory 0x8000>;
137 ieee80211-freq-limit = <5000000 6000000>;
138 };
139 };
140
141 &pinctrl {
142 state_default: pinctrl0 {
143 gpio {
144 ralink,group = "uart3", "jtag";
145 ralink,function = "gpio";
146 };
147 };
148 };