ramips: fix dtc warnings
[openwrt/openwrt.git] / target / linux / ramips / dts / WITI.dtsi
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 = "mqmaker,witi", "mediatek,mt7621-soc";
10
11 chosen {
12 bootargs = "console=ttyS0,57600";
13 };
14
15 palmbus: palmbus@1E000000 {
16 i2c@900 {
17 status = "okay";
18
19 pcf8563: rtc@51 {
20 status = "okay";
21 compatible = "nxp,pcf8563";
22 reg = <0x51>;
23 };
24 };
25 };
26
27 gpio-keys-polled {
28 compatible = "gpio-keys-polled";
29 poll-interval = <20>;
30
31 reset {
32 label = "reset";
33 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
34 linux,code = <KEY_RESTART>;
35 };
36 };
37 };
38
39 &sdhci {
40 status = "okay";
41 };
42
43 &spi0 {
44 status = "okay";
45
46 m25p80@0 {
47 #address-cells = <1>;
48 #size-cells = <1>;
49 compatible = "jedec,spi-nor";
50 reg = <0>;
51 spi-max-frequency = <10000000>;
52 m25p,chunked-io = <32>;
53
54 partition@0 {
55 label = "u-boot";
56 reg = <0x0 0x30000>;
57 read-only;
58 };
59
60 partition@30000 {
61 label = "u-boot-env";
62 reg = <0x30000 0x10000>;
63 read-only;
64 };
65
66 factory: partition@40000 {
67 label = "factory";
68 reg = <0x40000 0x10000>;
69 };
70
71 partition@50000 {
72 label = "firmware";
73 reg = <0x50000 0xfb0000>;
74 };
75 };
76 };
77
78 &pcie {
79 status = "okay";
80 };
81
82 &pcie0 {
83 mt76@0,0 {
84 reg = <0x0000 0 0 0 0>;
85 mediatek,mtd-eeprom = <&factory 0x8000>;
86 ieee80211-freq-limit = <5000000 6000000>;
87 mtd-mac-address = <&factory 0xe000>;
88 };
89 };
90
91 &pcie1 {
92 mt76@0,0 {
93 reg = <0x0000 0 0 0 0>;
94 mediatek,mtd-eeprom = <&factory 0x0000>;
95 ieee80211-freq-limit = <2400000 2500000>;
96 mtd-mac-address = <&factory 0xe000>;
97 };
98 };
99
100 &ethernet {
101 mtd-mac-address = <&factory 0xe000>;
102 };
103
104 &pinctrl {
105 state_default: pinctrl0 {
106 gpio {
107 ralink,group = "wdt", "rgmii2", "jtag", "mdio";
108 ralink,function = "gpio";
109 };
110 };
111 };