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