ramips: Archer C50 cleanup
[oweals/openwrt.git] / target / linux / ramips / dts / ZBT-WG3526.dts
1 /dts-v1/;
2
3 #include "mt7621.dtsi"
4
5 / {
6         compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
7         model = "ZBT-WG3526";
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 1>;
33                         linux,code = <0x198>;
34                 };
35         };
36
37         gpio-leds {
38                 compatible = "gpio-leds";
39
40                 status {
41                         label = "zbt-wg3526:green:status";
42                         gpios = <&gpio0 24 1>;
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                 linux,modalias = "m25p80";
60                 spi-max-frequency = <10000000>;
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                 partition@50000 {
81                         label = "firmware";
82                         reg = <0x50000 0xfb0000>;
83                 };
84         };
85 };
86
87 &pcie {
88         status = "okay";
89
90         pcie0 {
91                 mt76@0,0 {
92                         reg = <0x0000 0 0 0 0>;
93                         device_type = "pci";
94                         mediatek,mtd-eeprom = <&factory 0x0000>;
95                         mediatek,5ghz = <0>;
96                 };
97         };
98
99         pcie1 {
100                 mt76@1,0 {
101                         reg = <0x0000 0 0 0 0>;
102                         device_type = "pci";
103                         mediatek,mtd-eeprom = <&factory 0x8000>;
104                         mediatek,2ghz = <0>;
105                 };
106         };
107 };
108
109 &ethernet {
110         mtd-mac-address = <&factory 0xe000>;
111 };
112
113 &pinctrl {
114         state_default: pinctrl0 {
115                 gpio {
116                         ralink,group = "wdt", "rgmii2", "wdt rst", "jtag", "mdio";
117                         ralink,function = "gpio";
118                 };
119         };
120 };