treewide: convert mtd-mac-address-increment* to generic implementation
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9531_alfa-network_r36a.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 R36A";
7 compatible = "alfa-network,r36a", "qca,qca9531";
8
9 aliases {
10 led-boot = &led_status;
11 led-failsafe = &led_status;
12 led-running = &led_status;
13 led-upgrade = &led_status;
14 };
15
16 leds {
17 compatible = "gpio-leds";
18
19 pinctrl-names = "default";
20 pinctrl-0 = <&enable_gpio4 &enable_gpio16>;
21
22 lan {
23 label = "blue:lan";
24 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
25 };
26
27 led_status: status {
28 label = "blue:status";
29 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
30 };
31
32 usb {
33 label = "blue:usb";
34 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
35 trigger-sources = <&hub_port0>;
36 linux,default-trigger = "usbport";
37 };
38
39 wan {
40 label = "blue:wan";
41 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
42 };
43
44 wlan {
45 label = "blue:wlan";
46 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
47 linux,default-trigger = "phy0tpt";
48 };
49 };
50 };
51
52 &eth0 {
53 mtd-mac-address = <&art 0x1002>;
54 mac-address-increment = <(-2)>;
55 };
56
57 &eth1 {
58 /* Workaround: keep the Ethernet interfaces order/mapping correct
59 * (GMAC0 -> eth0, GMAC1 -> eth1, same as in old ar71xx target) */
60 compatible = "qca,qca9530-eth", "syscon", "simple-mfd";
61
62 mtd-mac-address = <&art 0x1002>;
63 mac-address-increment = <(-1)>;
64 };
65
66 &gpio_export {
67 usb-power {
68 gpio-export,name = "usb-power";
69 gpio-export,output = <1>;
70 gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
71 };
72 };
73
74 &keys {
75 rfkill {
76 label = "rfkill";
77 linux,code = <KEY_RFKILL>;
78 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
79 debounce-interval = <60>;
80 };
81 };