ramips: split ZBT-WG3526.dts into dtsi and dts files
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / ZBT-WG3526.dtsi
1 #include "mt7621.dtsi"
2
3 #include <dt-bindings/input/input.h>
4
5 / {
6 memory@0 {
7 device_type = "memory";
8 reg = <0x0 0x1c000000>, <0x20000000 0x4000000>;
9 };
10
11 chosen {
12 bootargs = "console=ttyS0,115200";
13 };
14
15 palmbus: palmbus@1E000000 {
16 i2c@900 {
17 status = "okay";
18 };
19 };
20
21 gpio-keys-polled {
22 compatible = "gpio-keys-polled";
23 #address-cells = <1>;
24 #size-cells = <0>;
25 poll-interval = <20>;
26
27 reset {
28 label = "reset";
29 gpios = <&gpio0 18 1>;
30 linux,code = <KEY_RESTART>;
31 };
32 };
33
34 gpio-leds {
35 compatible = "gpio-leds";
36
37 status_led: status {
38 gpios = <&gpio0 24 1>;
39 };
40 };
41 };
42
43 &sdhci {
44 status = "okay";
45 };
46
47 &spi0 {
48 status = "okay";
49
50 m25p80@0 {
51 #address-cells = <1>;
52 #size-cells = <1>;
53 compatible = "jedec,spi-nor";
54 reg = <0>;
55 linux,modalias = "m25p80";
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 mt76@0,0 {
87 reg = <0x0000 0 0 0 0>;
88 device_type = "pci";
89 mediatek,mtd-eeprom = <&factory 0x0000>;
90 mediatek,5ghz = <0>;
91 };
92 };
93
94 pcie1 {
95 mt76@1,0 {
96 reg = <0x0000 0 0 0 0>;
97 device_type = "pci";
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 };