mediatek: mt7988a: sync dts compatible string
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9330_glinet_gl-ar150.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6
7 #include "ar9330.dtsi"
8
9 / {
10 model = "GL.iNet GL-AR150";
11 compatible = "glinet,gl-ar150", "qca,ar9330";
12
13 aliases {
14 serial0 = &uart;
15 led-boot = &led_power;
16 led-failsafe = &led_power;
17 led-running = &led_power;
18 led-upgrade = &led_power;
19 label-mac-device = &eth0;
20 };
21
22 leds {
23 compatible = "gpio-leds";
24
25 wlan {
26 label = "gl-ar150:orange:wlan";
27 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
28 linux,default-trigger = "phy0tpt";
29 };
30
31 configurable {
32 label = "gl-ar150:green:configurable";
33 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
34 };
35
36 led_power: power {
37 label = "gl-ar150:green:power";
38 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
39 default-state = "on";
40 };
41 };
42
43 keys {
44 compatible = "gpio-keys";
45
46 manual {
47 label = "manual";
48 linux,code = <BTN_7>;
49 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
50 };
51
52 auto {
53 label = "auto";
54 linux,code = <BTN_8>;
55 gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
56 };
57
58 reset {
59 label = "reset";
60 linux,code = <KEY_RESTART>;
61 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
62 };
63 };
64 };
65
66 &uart {
67 status = "okay";
68 };
69
70 &usb {
71 dr_mode = "host";
72 status = "okay";
73 };
74
75 &usb_phy {
76 status = "okay";
77 gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
78 };
79
80 &spi {
81 status = "okay";
82
83 num-chipselects = <1>;
84
85 flash@0 {
86 compatible = "jedec,spi-nor";
87 spi-max-frequency = <50000000>;
88 reg = <0>;
89
90 partitions {
91 compatible = "fixed-partitions";
92 #address-cells = <1>;
93 #size-cells = <1>;
94
95 partition@0 {
96 label = "u-boot";
97 reg = <0x000000 0x040000>;
98 read-only;
99 };
100
101 partition@1 {
102 label = "u-boot-env";
103 reg = <0x040000 0x010000>;
104 };
105
106 partition@2 {
107 compatible = "denx,uimage";
108 label = "firmware";
109 reg = <0x050000 0xfa0000>;
110 };
111
112 art: partition@3 {
113 label = "art";
114 reg = <0xff0000 0x010000>;
115 read-only;
116 };
117 };
118 };
119 };
120
121 &eth0 {
122 status = "okay";
123
124 mtd-mac-address = <&art 0x0>;
125 };
126
127 &eth1 {
128 status = "okay";
129
130 mtd-mac-address = <&art 0x0>;
131
132 gmac-config {
133 device = <&gmac>;
134
135 switch-phy-addr-swap = <0>;
136 switch-phy-swap = <0>;
137 };
138 };
139
140 &wmac {
141 status = "okay";
142
143 mtd-cal-data = <&art 0x1000>;
144 mtd-mac-address = <&art 0x0>;
145 };