ramips: move compatible for Ubiquiti Edgerouter X to DTS file
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / mt7621_zbtlink_zbt-we3526.dts
1 /dts-v1/;
2
3 #include "mt7621.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "zbtlink,zbt-we3526", "mediatek,mt7621-soc";
10 model = "Zbtlink ZBT-WE3526";
11
12 chosen {
13 bootargs = "console=ttyS0,115200";
14 };
15
16 palmbus: palmbus@1E000000 {
17 i2c@900 {
18 status = "okay";
19 };
20 };
21
22 keys {
23 compatible = "gpio-keys";
24
25 reset {
26 label = "reset";
27 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
28 linux,code = <KEY_RESTART>;
29 };
30 };
31 };
32
33 &sdhci {
34 status = "okay";
35 };
36
37 &spi0 {
38 status = "okay";
39
40 m25p80@0 {
41 compatible = "jedec,spi-nor";
42 reg = <0>;
43 spi-max-frequency = <10000000>;
44
45 partitions {
46 compatible = "fixed-partitions";
47 #address-cells = <1>;
48 #size-cells = <1>;
49
50 partition@0 {
51 label = "u-boot";
52 reg = <0x0 0x30000>;
53 read-only;
54 };
55
56 partition@30000 {
57 label = "u-boot-env";
58 reg = <0x30000 0x10000>;
59 read-only;
60 };
61
62 factory: partition@40000 {
63 label = "factory";
64 reg = <0x40000 0x10000>;
65 read-only;
66 };
67
68 firmware: partition@50000 {
69 compatible = "denx,uimage";
70 label = "firmware";
71 reg = <0x50000 0xfb0000>;
72 };
73 };
74 };
75 };
76
77 &pcie {
78 status = "okay";
79 };
80
81 &pcie0 {
82 wifi@0,0 {
83 compatible = "pci14c3,7662";
84 reg = <0x0000 0 0 0 0>;
85 mediatek,mtd-eeprom = <&factory 0x8000>;
86 ieee80211-freq-limit = <5000000 6000000>;
87
88 led {
89 led-sources = <2>;
90 };
91 };
92 };
93
94 &pcie1 {
95 wifi@0,0 {
96 compatible = "pci14c3,7603";
97 reg = <0x0000 0 0 0 0>;
98 mediatek,mtd-eeprom = <&factory 0x0000>;
99 };
100 };
101
102 &ethernet {
103 mtd-mac-address = <&factory 0xe000>;
104 };
105
106 &state_default {
107 gpio {
108 ralink,group = "wdt";
109 ralink,function = "gpio";
110 };
111 };