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