base-files: reduce IPv6 ULA prefix generation to a single call
[openwrt/staging/stintel.git] / target / linux / ipq40xx / files-6.1 / 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 function = LED_FUNCTION_POWER;
33 color = <LED_COLOR_ID_BLUE>;
34 };
35 };
36
37 gpio_export {
38 compatible = "gpio-export";
39 #size-cells = <0>;
40
41 gpio_modem_reset: modem {
42 gpio-export,name = "modem-reset";
43 gpio-export,output = <0>;
44 };
45 };
46
47 keys {
48 compatible = "gpio-keys";
49
50 key_reset: key-reset {
51 label = "reset";
52 linux,code = <KEY_RESTART>;
53 };
54
55 key_wps: key-wps {
56 label = "wps";
57 linux,code = <KEY_WPS_BUTTON>;
58 };
59 };
60
61 soc {
62 rng@22000 {
63 status = "okay";
64 };
65
66 tcsr@1949000 {
67 compatible = "qcom,tcsr";
68 reg = <0x1949000 0x100>;
69 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
70 };
71
72 tcsr@194b000 {
73 /* select hostmode */
74 compatible = "qcom,tcsr";
75 reg = <0x194b000 0x100>;
76 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
77 status = "okay";
78 };
79
80 ess_tcsr@1953000 {
81 compatible = "qcom,tcsr";
82 reg = <0x1953000 0x1000>;
83 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
84 };
85
86 tcsr@1957000 {
87 compatible = "qcom,tcsr";
88 reg = <0x1957000 0x100>;
89 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
90 };
91 };
92 };
93
94 &mdio {
95 status = "okay";
96 };
97
98 &watchdog {
99 status = "okay";
100 };
101
102 &blsp_dma {
103 status = "okay";
104 };
105
106 &usb2 {
107 status = "okay";
108 };
109
110 &usb3 {
111 status = "okay";
112 };
113
114 &blsp1_uart1 {
115 pinctrl-0 = <&serial_pins>;
116 pinctrl-names = "default";
117 status = "okay";
118 };
119
120 &crypto {
121 status = "okay";
122 };
123
124 &cryptobam {
125 status = "okay";
126 };
127
128 &gmac {
129 status = "okay";
130 nvmem-cell-names = "mac-address";
131 nvmem-cells = <&macaddr_mac_0 2>;
132 };
133
134 &switch {
135 status = "okay";
136 };
137
138 &swport2 {
139 status = "okay";
140
141 label = "lan1";
142 };
143
144 &swport3 {
145 status = "okay";
146
147 label = "lan2";
148 };
149
150 &swport4 {
151 status = "okay";
152
153 label = "lan3";
154 };
155
156 &swport5 {
157 status = "okay";
158
159 label = "lan4";
160 };
161
162 &qpic_bam {
163 status = "okay";
164 };
165
166 &usb2_hs_phy {
167 status = "okay";
168 };
169
170 &usb3_ss_phy {
171 status = "okay";
172 };
173
174 &usb3_hs_phy {
175 status = "okay";
176 };
177
178 &wifi0 {
179 status = "okay";
180 nvmem-cell-names = "pre-calibration", "mac-address";
181 nvmem-cells = <&precal_art_1000>, <&macaddr_mac_0 0>;
182 };
183
184 &wifi1 {
185 status = "okay";
186 nvmem-cell-names = "pre-calibration", "mac-address";
187 nvmem-cells = <&precal_art_5000>, <&macaddr_mac_0 1>;
188 };