Fresh pull from upstream
[librecmc/librecmc.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                 m25p,chunked-io = <32>;
58
59                 partition@0 {
60                         label = "u-boot";
61                         reg = <0x0 0x30000>;
62                         read-only;
63                 };
64
65                 partition@30000 {
66                         label = "u-boot-env";
67                         reg = <0x30000 0x10000>;
68                         read-only;
69                 };
70
71                 factory: partition@40000 {
72                         label = "factory";
73                         reg = <0x40000 0x10000>;
74                         read-only;
75                 };
76
77                 firmware: partition@50000 {
78                         label = "firmware";
79                 };
80         };
81 };
82
83 &pcie {
84         status = "okay";
85
86         pcie0 {
87                 wifi@14c3,7603 {
88                         compatible = "pci14c3,7603";
89                         reg = <0x0000 0 0 0 0>;
90                         mediatek,mtd-eeprom = <&factory 0x0000>;
91                         mediatek,5ghz = <0>;
92                 };
93         };
94
95         pcie1 {
96                 wifi@14c3,7662 {
97                         compatible = "pci14c3,7662";
98                         reg = <0x0000 0 0 0 0>;
99                         mediatek,mtd-eeprom = <&factory 0x8000>;
100                         mediatek,2ghz = <0>;
101                 };
102         };
103 };
104
105 &ethernet {
106         mtd-mac-address = <&factory 0xe000>;
107 };
108
109 &pinctrl {
110         state_default: pinctrl0 {
111                 gpio {
112                         ralink,group = "wdt", "rgmii2", "wdt rst", "jtag", "mdio";
113                         ralink,function = "gpio";
114                 };
115         };
116 };