ath79: provide label MAC address
[openwrt/staging/stintel.git] / target / linux / ath79 / dts / qca9531_glinet_gl-ar750.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 "qca953x.dtsi"
8
9 / {
10 compatible = "glinet,gl-ar750", "qca,qca9531";
11 model = "GL.iNet GL-AR750";
12
13 aliases {
14 label-mac-device = &eth0;
15 };
16
17 keys {
18 compatible = "gpio-keys";
19
20 pinctrl-names = "default";
21 pinctrl-0 = <&jtag_disable_pins>;
22
23 reset {
24 label = "reset";
25 linux,code = <KEY_RESTART>;
26 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
27 };
28
29 mode {
30 label = "mode";
31 linux,code = <BTN_0>;
32 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
33 };
34 };
35
36 leds {
37 compatible = "gpio-leds";
38
39 power {
40 label = "gl-ar750:white:power";
41 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
42 default-state = "on";
43 };
44
45 wlan2g {
46 label = "gl-ar750:white:wlan2g";
47 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
48 linux,default-trigger = "phy1tpt";
49 };
50
51 wlan5g {
52 label = "gl-ar750:white:wlan5g";
53 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
54 linux,default-trigger = "phy0tpt";
55 };
56
57 };
58
59 i2c {
60 compatible = "i2c-gpio";
61
62 sda-gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
63 scl-gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
64 };
65
66
67 };
68
69 &pcie0 {
70 status = "okay";
71
72 wifi@0,0 {
73 compatible = "qcom,ath10k";
74 reg = <0 0 0 0 0>;
75 device_type = "pci";
76 };
77 };
78
79 &uart {
80 status = "okay";
81 };
82
83 &usb0 {
84 status = "okay";
85 };
86
87 &usb_phy {
88 status = "okay";
89 };
90
91 &spi {
92 status = "okay";
93 num-cs = <0>;
94
95 flash@0 {
96 compatible = "jedec,spi-nor";
97 reg = <0>;
98 spi-max-frequency = <25000000>;
99
100 partitions {
101 compatible = "fixed-partitions";
102 #address-cells = <1>;
103 #size-cells = <1>;
104
105 partition@0 {
106 label = "u-boot";
107 reg = <0x000000 0x040000>;
108 read-only;
109 };
110
111 partition@40000 {
112 label = "u-boot-env";
113 reg = <0x040000 0x010000>;
114 read-only;
115 };
116
117 art: partition@50000 {
118 label = "art";
119 reg = <0x050000 0x010000>;
120 read-only;
121 };
122
123 partition@60000 {
124 compatible = "denx,uimage";
125 label = "firmware";
126 reg = <0x060000 0xfa0000>;
127 };
128 };
129 };
130 };
131
132 &eth0 {
133 status = "okay";
134 mtd-mac-address = <&art 0x0>;
135 phy-handle = <&swphy4>;
136 };
137
138 &eth1 {
139 mtd-mac-address = <&art 0x0>;
140 mtd-mac-address-increment = <1>;
141 };
142
143 &wmac {
144 status = "okay";
145 mtd-cal-data = <&art 0x1000>;
146 };