ath79: convert remaining mtd-mac-address cases to nvmem
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9533_qca_ap143.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca953x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/mtd/partitions/uimage.h>
8
9 / {
10 aliases {
11 led-boot = &led_wps;
12 led-failsafe = &led_wps;
13 led-running = &led_wps;
14 led-upgrade = &led_wps;
15 };
16
17 leds {
18 compatible = "gpio-leds";
19
20 wan {
21 label = "green:wan";
22 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
23 };
24
25 wlan {
26 label = "green:wlan";
27 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
28 linux,default-trigger = "phy0tpt";
29 };
30
31 lan1 {
32 label = "green:lan1";
33 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
34 };
35
36 lan2 {
37 label = "green:lan2";
38 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
39 };
40
41 lan3 {
42 label = "green:lan3";
43 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
44 };
45
46 lan4 {
47 label = "green:lan4";
48 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
49 };
50
51 led_wps: wps {
52 label = "green:wps";
53 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
54 };
55 };
56
57 keys {
58 compatible = "gpio-keys";
59
60 wps {
61 label = "WPS button";
62 linux,code = <KEY_WPS_BUTTON>;
63 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
64 debounce-interval = <60>;
65 };
66 };
67 };
68
69 &spi {
70 status = "okay";
71
72 flash@0 {
73 compatible = "jedec,spi-nor";
74 reg = <0>;
75 spi-max-frequency = <25000000>;
76
77 partitions: partitions {
78 compatible = "fixed-partitions";
79 #address-cells = <1>;
80 #size-cells = <1>;
81
82 partition@0 {
83 label = "u-boot";
84 reg = <0x000000 0x040000>;
85 read-only;
86 };
87
88 partition@40000 {
89 label = "u-boot-env";
90 reg = <0x040000 0x010000>;
91 read-only;
92 };
93 };
94 };
95 };
96
97 &eth0 {
98 status = "okay";
99
100 phy-handle = <&swphy4>;
101 };
102
103 &eth1 {
104 gmac-config {
105 device = <&gmac>;
106 };
107 };
108
109 &wmac {
110 status = "okay";
111 };
112
113 &usb0 {
114 status = "okay";
115 };
116
117 &usb_phy {
118 status = "okay";
119 };