ramips: move dts-v1 statement to top-level DTSI files
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / mt7620a_zbtlink_zbt-we826-e.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7620a_zbtlink_zbt-we826.dtsi"
4
5 / {
6 compatible = "zbtlink,zbt-we826-e", "zbtlink,zbt-we826", "ralink,mt7620a-soc";
7 model = "Zbtlink ZBT-WE826-E";
8
9 /delete-node/ leds;
10
11 leds {
12 compatible = "gpio-leds";
13
14 led_power: gsm {
15 label = "zbt-we826-e:blue:gsm";
16 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
17 };
18
19 signal {
20 label = "zbt-we826-e:green:signal";
21 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
22 };
23
24 sim {
25 label = "zbt-we826-e:red:sim";
26 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
27 };
28
29 air {
30 label = "zbt-we826-e:red:wifi";
31 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
32 };
33 };
34 };
35
36 &spi0 {
37 status = "okay";
38
39 flash@0 {
40 compatible = "jedec,spi-nor";
41 reg = <0>;
42 spi-max-frequency = <10000000>;
43
44 partitions {
45 compatible = "fixed-partitions";
46 #address-cells = <1>;
47 #size-cells = <1>;
48
49 partition@0 {
50 label = "u-boot";
51 reg = <0x0 0x30000>;
52 read-only;
53 };
54
55 partition@30000 {
56 label = "u-boot-env";
57 reg = <0x30000 0x10000>;
58 read-only;
59 };
60
61 factory: partition@40000 {
62 label = "factory";
63 reg = <0x40000 0x10000>;
64 read-only;
65 };
66
67 firmware: partition@50000 {
68 compatible = "denx,uimage";
69 label = "firmware";
70 reg = <0x50000 0x1fb0000>;
71 };
72 };
73 };
74 };
75
76 &state_default {
77 default {
78 groups = "i2c", "uartf", "wled";
79 function = "gpio";
80 };
81 };