ramips: fix dtc warnings
[openwrt/openwrt.git] / target / linux / ramips / dts / PSG1218.dtsi
1 #include "mt7620a.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "phicomm,psg1218", "ralink,mt7620a-soc";
8
9 gpio-keys-polled {
10 compatible = "gpio-keys-polled";
11 poll-interval = <20>;
12
13 reset {
14 label = "reset";
15 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
16 linux,code = <KEY_RESTART>;
17 };
18 };
19 };
20
21 &gpio0 {
22 status = "okay";
23 };
24
25 &spi0 {
26 status = "okay";
27
28 m25p80@0 {
29 #address-cells = <1>;
30 #size-cells = <1>;
31 compatible = "jedec,spi-nor";
32 reg = <0>;
33 spi-max-frequency = <10000000>;
34
35 partition@0 {
36 label = "u-boot";
37 reg = <0x0 0x30000>;
38 read-only;
39 };
40
41 partition@20000 {
42 label = "u-boot-env";
43 reg = <0x30000 0x10000>;
44 read-only;
45 };
46
47 factory: partition@30000 {
48 label = "factory";
49 reg = <0x40000 0x10000>;
50 read-only;
51 };
52
53 partition@40000 {
54 label = "firmware";
55 reg = <0x50000 0x7b0000>;
56 };
57 };
58 };
59
60 &pcie {
61 status = "okay";
62 };
63
64 &pcie0 {
65 mt76@0,0 {
66 reg = <0x0000 0 0 0 0>;
67 mediatek,mtd-eeprom = <&factory 0x8000>;
68 ieee80211-freq-limit = <5000000 6000000>;
69 };
70 };
71
72 &wmac {
73 ralink,mtd-eeprom = <&factory 0>;
74 };