ath79: convert mtd-mac-address to nvmem implementation
[openwrt/staging/mkresin.git] / target / linux / ath79 / dts / qca9531_alfa-network_pi-wifi4.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca9531_alfa-network_r36a.dtsi"
4
5 / {
6 model = "ALFA Network Pi-WiFi4";
7 compatible = "alfa-network,pi-wifi4", "qca,qca9531";
8
9 aliases {
10 led-boot = &led_usb;
11 led-failsafe = &led_usb;
12 led-upgrade = &led_usb;
13 };
14
15 leds {
16 compatible = "gpio-leds";
17
18 pinctrl-names = "default";
19 pinctrl-0 = <&enable_gpio4 &enable_gpio16>;
20
21 lan_data {
22 label = "orange:lan_data";
23 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
24 };
25
26 lan_link {
27 label = "green:lan_link";
28 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
29 };
30
31 led_usb: usb {
32 label = "green:usb";
33 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
34 linux,default-trigger = "usbport";
35 trigger-sources = <&gl850g_port1>, <&gl850g_port2>,
36 <&gl850g_port3>, <&gl850g_port4>;
37 };
38
39 wlan {
40 label = "blue:wlan";
41 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
42 linux,default-trigger = "phy0tpt";
43 };
44 };
45 };
46
47 &eth0 {
48 nvmem-cells = <&macaddr_art_1002>;
49 nvmem-cell-names = "mac-address";
50 mac-address-increment = <(-1)>;
51 };
52
53 &eth1 {
54 compatible = "syscon", "simple-mfd";
55 };
56
57 &gpio_export {
58 usb-power {
59 gpio-export,name = "usb-power";
60 gpio-export,output = <1>;
61 gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
62 };
63 };
64
65 &hub_port0 {
66 #address-cells = <1>;
67 #size-cells = <0>;
68
69 gl850g_port1: port@1 {
70 reg = <1>;
71 #trigger-source-cells = <0>;
72 };
73
74 gl850g_port2: port@2 {
75 reg = <2>;
76 #trigger-source-cells = <0>;
77 };
78
79 gl850g_port3: port@3 {
80 reg = <3>;
81 #trigger-source-cells = <0>;
82 };
83
84 gl850g_port4: port@4 {
85 reg = <4>;
86 #trigger-source-cells = <0>;
87 };
88 };
89
90 &art {
91 compatible = "nvmem-cells";
92 #address-cells = <1>;
93 #size-cells = <1>;
94
95 macaddr_art_1002: macaddr@1002 {
96 reg = <0x1002 0x6>;
97 };
98 };