ipq40xx: remove mac-address-increment
[openwrt/staging/hauke.git] / target / linux / ipq40xx / files / arch / arm / boot / dts / qcom-ipq4018-mf287_common.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 // Copyright (c) 2022, Pawel Dembicki <paweldembicki@gmail.com>.
3 // Copyright (c) 2022, Giammarco Marzano <stich86@gmail.com>.
4 // Copyright (c) 2023, Andreas Böhler <dev@aboehler.at>
5
6 #include "qcom-ipq4019.dtsi"
7 #include <dt-bindings/soc/qcom,tcsr.h>
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/input/input.h>
10 #include <dt-bindings/leds/common.h>
11
12 / {
13 aliases {
14 led-boot = &led_status;
15 led-failsafe = &led_status;
16 led-running = &led_status;
17 led-upgrade = &led_status;
18 };
19
20 chosen {
21 /*
22 * bootargs forced by u-boot bootipq command:
23 * 'ubi.mtd=rootfs root=mtd:ubi_rootfs rootfstype=squashfs rootwait'
24 */
25 bootargs-append = " root=/dev/ubiblock0_1";
26 };
27
28 leds {
29 compatible = "gpio-leds";
30
31 led_status: led-0 {
32 label = "blue:power";
33 function = LED_FUNCTION_POWER;
34 color = <LED_COLOR_ID_BLUE>;
35 };
36 };
37
38 gpio_export {
39 compatible = "gpio-export";
40 #size-cells = <0>;
41
42 gpio_modem_reset: modem {
43 gpio-export,name = "modem-reset";
44 gpio-export,output = <0>;
45 };
46 };
47
48 keys {
49 compatible = "gpio-keys";
50
51 key_reset: key-reset {
52 label = "reset";
53 linux,code = <KEY_RESTART>;
54 };
55
56 key_wps: key-wps {
57 label = "wps";
58 linux,code = <KEY_WPS_BUTTON>;
59 };
60 };
61
62 soc {
63 rng@22000 {
64 status = "okay";
65 };
66
67 tcsr@1949000 {
68 compatible = "qcom,tcsr";
69 reg = <0x1949000 0x100>;
70 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
71 };
72
73 tcsr@194b000 {
74 /* select hostmode */
75 compatible = "qcom,tcsr";
76 reg = <0x194b000 0x100>;
77 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
78 status = "okay";
79 };
80
81 ess_tcsr@1953000 {
82 compatible = "qcom,tcsr";
83 reg = <0x1953000 0x1000>;
84 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
85 };
86
87 tcsr@1957000 {
88 compatible = "qcom,tcsr";
89 reg = <0x1957000 0x100>;
90 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
91 };
92 };
93 };
94
95 &mdio {
96 status = "okay";
97 };
98
99 &watchdog {
100 status = "okay";
101 };
102
103 &blsp_dma {
104 status = "okay";
105 };
106
107 &usb2 {
108 status = "okay";
109 };
110
111 &usb3 {
112 status = "okay";
113 };
114
115 &blsp1_uart1 {
116 pinctrl-0 = <&serial_pins>;
117 pinctrl-names = "default";
118 status = "okay";
119 };
120
121 &crypto {
122 status = "okay";
123 };
124
125 &cryptobam {
126 status = "okay";
127 };
128
129 &gmac {
130 status = "okay";
131 nvmem-cell-names = "mac-address";
132 nvmem-cells = <&macaddr_mac_0 2>;
133 };
134
135 &switch {
136 status = "okay";
137 };
138
139 &swport2 {
140 status = "okay";
141
142 label = "lan1";
143 };
144
145 &swport3 {
146 status = "okay";
147
148 label = "lan2";
149 };
150
151 &swport4 {
152 status = "okay";
153
154 label = "lan3";
155 };
156
157 &swport5 {
158 status = "okay";
159
160 label = "lan4";
161 };
162
163 &qpic_bam {
164 status = "okay";
165 };
166
167 &usb2_hs_phy {
168 status = "okay";
169 };
170
171 &usb3_ss_phy {
172 status = "okay";
173 };
174
175 &usb3_hs_phy {
176 status = "okay";
177 };
178
179 &wifi0 {
180 status = "okay";
181 nvmem-cell-names = "pre-calibration", "mac-address";
182 nvmem-cells = <&precal_art_1000>, <&macaddr_mac_0 0>;
183 };
184
185 &wifi1 {
186 status = "okay";
187 nvmem-cell-names = "pre-calibration", "mac-address";
188 nvmem-cells = <&precal_art_5000>, <&macaddr_mac_0 1>;
189 };