1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "qcom-ipq4019.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/soc/qcom,tcsr.h>
11 device_type = "memory";
12 reg = <0x80000000 0x10000000>;
16 serial0 = &blsp1_uart1;
20 stdout-path = "serial0:115200n8";
25 compatible = "qcom,tcsr";
26 reg = <0x1949000 0x100>;
27 qcom,wifi_glb_cfg = <TCSR_WIFI_GLB_CFG>;
33 compatible = "qcom,tcsr";
34 reg = <0x194b000 0x100>;
35 qcom,usb-hsphy-mode-select = <TCSR_USB_HSPHY_HOST_MODE>;
39 compatible = "qcom,tcsr";
40 reg = <0x1953000 0x1000>;
41 qcom,ess-interface-select = <TCSR_ESS_PSGMII>;
45 compatible = "qcom,tcsr";
46 reg = <0x1957000 0x100>;
47 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
51 compatible = "gpio-keys";
56 linux,code = <KEY_RESTART>;
79 serial_pins: serial_pinmux {
81 pins = "gpio60", "gpio61";
82 function = "blsp_uart0";
87 spi_0_pins: spi_0_pinmux {
89 function = "blsp_spi0";
90 pins = "gpio55", "gpio56", "gpio57";
97 pins = "gpio55", "gpio56", "gpio57";
98 drive-strength = <12>;
103 drive-strength = <2>;
109 mdio_pins: mdio_pinmux {
122 i2c_0_pins: i2c_0_pinmux {
124 pins = "gpio58", "gpio59";
125 function = "blsp_i2c0";
136 pinctrl-0 = <&serial_pins>;
137 pinctrl-names = "default";
142 pinctrl-0 = <&spi_0_pins>;
143 pinctrl-names = "default";
144 cs-gpios = <&tlmm 54 0>, <&tlmm 63 0>;
150 * Factory U-boot looks in 0:BOOTCONFIG partition for active
151 * partitions settings and mangles the partition config so
152 * 0:QSEE/0:QSEE_1, 0:CDT/0:CDT_1 and 0:APPSBL/0:APPSBL_1 pairs
153 * can be swaped. It isn't a problem but we never can be sure where
154 * OFW put factory images. "n25q128a11" is required for proper nor
155 * recognition in u-boot.
157 compatible = "jedec,spi-nor", "n25q128a11";
158 #address-cells = <1>;
161 spi-max-frequency = <24000000>;
164 compatible = "fixed-partitions";
165 #address-cells = <1>;
176 reg = <0x40000 0x20000>;
181 label = "0:BOOTCONFIG";
182 reg = <0x60000 0x20000>;
187 label = "0:BOOTCONFIG1";
188 reg = <0x80000 0x20000>;
194 reg = <0xa0000 0x60000>;
200 reg = <0x100000 0x60000>;
206 reg = <0x160000 0x10000>;
212 reg = <0x170000 0x10000>;
217 label = "0:DDRPARAMS";
218 reg = <0x180000 0x10000>;
223 label = "0:APPSBLENV";
224 reg = <0x190000 0x10000>;
230 reg = <0x1a0000 0xa0000>;
235 label = "0:APPSBL_1";
236 reg = <0x240000 0xa0000>;
242 reg = <0x2e0000 0x10000>;
246 config: partition@2f0000 {
248 reg = <0x2f0000 0x10000>;
253 label = "0:CONFIG_RW";
254 reg = <0x300000 0x10000>;
259 label = "0:EVENTSLOG";
260 reg = <0x310000 0x90000>;
268 * Factory U-boot looks in 0:BOOTCONFIG partition for active
269 * partitions settings and mangles the partition config so
270 * rootfs/rootfs_1 pairs can be swaped.
271 * It isn't a problem but we never can be sure where OFW put
272 * factory images. "spinand,mt29f" value is required for proper
273 * nand recognition in u-boot.
275 compatible = "spi-nand", "spinand,mt29f";
276 #address-cells = <1>;
279 spi-max-frequency = <24000000>;
282 compatible = "fixed-partitions";
283 #address-cells = <1>;
288 reg = <0x00000000 0x08000000>;
293 reg = <0x08000000 0x08000000>;
301 pinctrl-0 = <&mdio_pins>;
302 pinctrl-names = "default";
303 phy-reset-gpio = <&tlmm 62 0>;