1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "qcom-ipq4019-ap.dk01.1.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
10 device_type = "memory";
11 reg = <0x80000000 0x10000000>;
16 mdio_pins: mdio_pinmux {
29 i2c_0_pins: i2c_0_pinmux {
31 pins = "gpio58", "gpio59";
32 function = "blsp_i2c0";
39 compatible = "gpio-keys";
44 linux,code = <KEY_RESTART>;
51 cs-gpios = <&tlmm 54 0>, <&tlmm 63 0>;
56 * Factory U-boot looks in 0:BOOTCONFIG partition for active
57 * partitions settings and mangles the partition config so
58 * 0:QSEE/0:QSEE_1, 0:CDT/0:CDT_1 and 0:APPSBL/0:APPSBL_1 pairs
59 * can be swaped. It isn't a problem but we never can be sure where
60 * OFW put factory images. "n25q128a11" is required for proper nor
61 * recognition in u-boot.
63 compatible = "jedec,spi-nor", "n25q128a11";
67 spi-max-frequency = <24000000>;
70 compatible = "fixed-partitions";
82 reg = <0x40000 0x20000>;
87 label = "0:BOOTCONFIG";
88 reg = <0x60000 0x20000>;
93 label = "0:BOOTCONFIG1";
94 reg = <0x80000 0x20000>;
100 reg = <0xa0000 0x60000>;
106 reg = <0x100000 0x60000>;
112 reg = <0x160000 0x10000>;
118 reg = <0x170000 0x10000>;
123 label = "0:DDRPARAMS";
124 reg = <0x180000 0x10000>;
129 label = "0:APPSBLENV";
130 reg = <0x190000 0x10000>;
136 reg = <0x1a0000 0xa0000>;
141 label = "0:APPSBL_1";
142 reg = <0x240000 0xa0000>;
148 reg = <0x2e0000 0x10000>;
152 config: partition@2f0000 {
154 reg = <0x2f0000 0x10000>;
159 label = "0:CONFIG_RW";
160 reg = <0x300000 0x10000>;
165 label = "0:EVENTSLOG";
166 reg = <0x310000 0x90000>;
174 * Factory U-boot looks in 0:BOOTCONFIG partition for active
175 * partitions settings and mangles the partition config so
176 * rootfs/rootfs_1 pairs can be swaped.
177 * It isn't a problem but we never can be sure where OFW put
178 * factory images. "spinand,mt29f" value is required for proper
179 * nand recognition in u-boot.
181 compatible = "spi-nand", "spinand,mt29f";
182 #address-cells = <1>;
185 spi-max-frequency = <24000000>;
188 compatible = "fixed-partitions";
189 #address-cells = <1>;
194 reg = <0x00000000 0x08000000>;
199 reg = <0x08000000 0x08000000>;
207 pinctrl-0 = <&mdio_pins>;
208 pinctrl-names = "default";
209 phy-reset-gpio = <&tlmm 62 0>;