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