ath79: improve common DTSI name for TP-Link Archer C5, C7 v1/v2
[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_wlan;
16 led-failsafe = &led_wlan;
17 led-upgrade = &led_wlan;
18 label-mac-device = &eth0;
19 };
20
21 leds {
22 compatible = "gpio-leds";
23
24 led_wlan: wlan {
25 label = "gl-ar150:orange:wlan";
26 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
27 linux,default-trigger = "phy0tpt";
28 };
29
30 lan {
31 label = "gl-ar150:green:lan";
32 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
33 };
34
35 wan {
36 label = "gl-ar150:green:wan";
37 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
38 };
39 };
40
41 keys {
42 compatible = "gpio-keys";
43
44 manual {
45 label = "manual";
46 linux,code = <BTN_7>;
47 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
48 };
49
50 auto {
51 label = "auto";
52 linux,code = <BTN_8>;
53 gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
54 };
55
56 reset {
57 label = "reset";
58 linux,code = <KEY_RESTART>;
59 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
60 };
61 };
62 };
63
64 &uart {
65 status = "okay";
66 };
67
68 &gpio {
69 status = "okay";
70 };
71
72 &usb {
73 dr_mode = "host";
74 status = "okay";
75 };
76
77 &usb_phy {
78 status = "okay";
79 gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
80 };
81
82 &spi {
83 status = "okay";
84
85 num-chipselects = <1>;
86
87 flash@0 {
88 compatible = "jedec,spi-nor";
89 spi-max-frequency = <104000000>;
90 reg = <0>;
91
92 partitions {
93 compatible = "fixed-partitions";
94 #address-cells = <1>;
95 #size-cells = <1>;
96
97 partition@0 {
98 label = "u-boot";
99 reg = <0x000000 0x040000>;
100 read-only;
101 };
102
103 partition@1 {
104 label = "u-boot-env";
105 reg = <0x040000 0x010000>;
106 };
107
108 partition@2 {
109 compatible = "denx,uimage";
110 label = "firmware";
111 reg = <0x050000 0xfa0000>;
112 };
113
114 art: partition@3 {
115 label = "art";
116 reg = <0xff0000 0x010000>;
117 read-only;
118 };
119 };
120 };
121 };
122
123 &eth0 {
124 status = "okay";
125
126 mtd-mac-address = <&art 0x0>;
127 };
128
129 &eth1 {
130 status = "okay";
131
132 mtd-mac-address = <&art 0x0>;
133
134 gmac-config {
135 device = <&gmac>;
136
137 switch-phy-addr-swap = <0>;
138 switch-phy-swap = <0>;
139 };
140 };
141
142 &wmac {
143 status = "okay";
144
145 mtd-cal-data = <&art 0x1000>;
146 mtd-mac-address = <&art 0x0>;
147 };