ramips: move compatible for Ubiquiti Edgerouter X to DTS file
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / mt7620a_zbtlink_zbt-we826-e.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include "mt7620a_zbtlink_zbt-we826.dtsi"
5
6 / {
7 compatible = "zbtlink,zbt-we826-e", "zbtlink,zbt-we826", "ralink,mt7620a-soc";
8 model = "Zbtlink ZBT-WE826-E";
9
10 /delete-node/ leds;
11
12 leds {
13 compatible = "gpio-leds";
14
15 led_power: gsm {
16 label = "zbt-we826-e:blue:gsm";
17 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
18 };
19
20 signal {
21 label = "zbt-we826-e:green:signal";
22 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
23 };
24
25 sim {
26 label = "zbt-we826-e:red:sim";
27 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
28 };
29
30 air {
31 label = "zbt-we826-e:red:wifi";
32 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
33 };
34 };
35 };
36
37 &spi0 {
38 status = "okay";
39
40 flash@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 0x1fb0000>;
72 };
73 };
74 };
75 };
76
77 &state_default {
78 default {
79 ralink,group = "i2c", "uartf", "wled";
80 ralink,function = "gpio";
81 };
82 };