ath79: qca: remove mac-address-increment
[openwrt/staging/hauke.git] / target / linux / ath79 / dts / qca9531_comfast_cf-wr752ac-v1.dts
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
8 / {
9 compatible = "comfast,cf-wr752ac-v1", "qca,qca9531";
10 model = "COMFAST CF-WR752AC v1";
11
12 aliases {
13 serial0 = &uart;
14 led-boot = &led_lan;
15 led-failsafe = &led_lan;
16 led-upgrade = &led_lan;
17 };
18
19 leds {
20 compatible = "gpio-leds";
21
22 pinctrl-names = "default";
23 pinctrl-0 = <&jtag_disable_pins &pinmux_led_rssihigh &pinmux_led_rssilow>;
24
25 led_lan: lan {
26 label = "blue:lan";
27 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
28 };
29
30 rssihigh {
31 label = "green:rssihigh";
32 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
33 };
34
35 rssilow {
36 label = "red:rssilow";
37 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
38 };
39 };
40
41 keys {
42 compatible = "gpio-keys";
43
44 button {
45 label = "reset";
46 linux,code = <KEY_RESTART>;
47 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
48 debounce-interval = <60>;
49 };
50 };
51 };
52
53 &pinmux {
54 pinmux_led_rssihigh: pinmux_led_rssihigh {
55 pinctrl-single,bits = <0xc 0x0 0xff000000>;
56 };
57
58 pinmux_led_rssilow: pinmux_led_rssilow {
59 pinctrl-single,bits = <0x8 0x0 0xff000000>;
60 };
61 };
62
63 &pcie0 {
64 status = "okay";
65 };
66
67 &spi {
68 status = "okay";
69
70 flash@0 {
71 compatible = "jedec,spi-nor";
72 reg = <0>;
73 spi-max-frequency = <25000000>;
74
75 partitions {
76 compatible = "fixed-partitions";
77 #address-cells = <1>;
78 #size-cells = <1>;
79
80 partition@0 {
81 label = "u-boot";
82 reg = <0x000000 0x010000>;
83 read-only;
84 };
85
86 art: partition@10000 {
87 label = "art";
88 reg = <0x010000 0x010000>;
89 read-only;
90
91 nvmem-layout {
92 compatible = "fixed-layout";
93 #address-cells = <1>;
94 #size-cells = <1>;
95
96 macaddr_art_0: macaddr@0 {
97 compatible = "mac-base";
98 reg = <0x0 0x6>;
99 #nvmem-cell-cells = <1>;
100 };
101 };
102 };
103
104 partition@20000 {
105 compatible = "denx,uimage";
106 label = "firmware";
107 reg = <0x020000 0xfd0000>;
108 };
109
110 partition@ff0000 {
111 label = "nvram";
112 reg = <0xff0000 0x010000>;
113 read-only;
114 };
115 };
116 };
117 };
118
119 &eth0 {
120 status = "okay";
121
122 phy-handle = <&swphy4>;
123
124 nvmem-cells = <&macaddr_art_0 0>;
125 nvmem-cell-names = "mac-address";
126 };
127
128 &eth1 {
129 compatible = "syscon", "simple-mfd";
130 };
131
132 &wmac {
133 status = "okay";
134
135 mtd-cal-data = <&art 0x1000>;
136
137 nvmem-cells = <&macaddr_art_0 10>;
138 nvmem-cell-names = "mac-address";
139 };