ramips: fix dtc warnings
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / ZBT-WG3526.dtsi
1 #include "mt7621.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "zbtlink,zbt-wg3526", "mediatek,mt7621-soc";
8
9 aliases {
10 led-status = &led_status;
11 };
12
13 memory@0 {
14 device_type = "memory";
15 reg = <0x0 0x1c000000>, <0x20000000 0x4000000>;
16 };
17
18 chosen {
19 bootargs = "console=ttyS0,115200";
20 };
21
22 palmbus: palmbus@1E000000 {
23 i2c@900 {
24 status = "okay";
25 };
26 };
27
28 gpio-keys-polled {
29 compatible = "gpio-keys-polled";
30 poll-interval = <20>;
31
32 reset {
33 label = "reset";
34 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
35 linux,code = <KEY_RESTART>;
36 };
37 };
38
39 gpio-leds {
40 compatible = "gpio-leds";
41
42 led_status: status {
43 label = "zbt-wg3526:green:status";
44 gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
45 };
46 };
47 };
48
49 &sdhci {
50 status = "okay";
51 };
52
53 &spi0 {
54 status = "okay";
55
56 m25p80@0 {
57 #address-cells = <1>;
58 #size-cells = <1>;
59 compatible = "jedec,spi-nor";
60 reg = <0>;
61 spi-max-frequency = <10000000>;
62 m25p,chunked-io = <32>;
63
64 partition@0 {
65 label = "u-boot";
66 reg = <0x0 0x30000>;
67 read-only;
68 };
69
70 partition@30000 {
71 label = "u-boot-env";
72 reg = <0x30000 0x10000>;
73 read-only;
74 };
75
76 factory: partition@40000 {
77 label = "factory";
78 reg = <0x40000 0x10000>;
79 read-only;
80 };
81
82 firmware: partition@50000 {
83 label = "firmware";
84 };
85 };
86 };
87
88 &pcie {
89 status = "okay";
90 };
91
92 &pcie0 {
93 wifi@0,0 {
94 compatible = "pci14c3,7603";
95 reg = <0x0000 0 0 0 0>;
96 mediatek,mtd-eeprom = <&factory 0x0000>;
97 };
98 };
99
100 &pcie1 {
101 wifi@0,0 {
102 compatible = "pci14c3,7662";
103 reg = <0x0000 0 0 0 0>;
104 mediatek,mtd-eeprom = <&factory 0x8000>;
105 ieee80211-freq-limit = <5000000 6000000>;
106 };
107 };
108
109 &ethernet {
110 mtd-mac-address = <&factory 0xe000>;
111 };
112
113 &pinctrl {
114 state_default: pinctrl0 {
115 gpio {
116 ralink,group = "wdt", "rgmii2", "jtag", "mdio";
117 ralink,function = "gpio";
118 };
119 };
120 };