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