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 label-mac-device = &gmac0;
14 device_type = "memory";
15 reg = <0x80000000 0x10000000>;
20 mdio_pins: mdio_pinmux {
33 i2c_0_pins: i2c_0_pinmux {
35 pins = "gpio58", "gpio59";
36 function = "blsp_i2c0";
43 compatible = "gpio-keys";
48 linux,code = <KEY_RESTART>;
53 compatible = "gpio-export";
57 gpio-export,name = "gpio_out";
58 gpio-export,output = <0>;
59 gpio-export,direction_may_change = <0>;
60 gpios = <&stm32_io 23 GPIO_ACTIVE_HIGH>;
64 gpio-export,name = "gpio_in";
65 gpio-export,input = <0>;
66 gpio-export,direction_may_change = <0>;
67 gpios = <&stm32_io 24 GPIO_ACTIVE_LOW>;
75 pinctrl-0 = <&i2c_0_pins>;
76 pinctrl-names = "default";
77 clock-frequency = <400000>;
80 compatible = "tlt,stm32v1";
82 #interrupt-cells = <2>;
85 interrupt-parent = <&tlmm>;
92 cs-gpios = <&tlmm 54 0>, <&tlmm 63 0>;
97 * Factory U-boot looks in 0:BOOTCONFIG partition for active
98 * partitions settings and mangles the partition config so
99 * 0:QSEE/0:QSEE_1, 0:CDT/0:CDT_1 and 0:APPSBL/0:APPSBL_1 pairs
100 * can be swaped. It isn't a problem but we never can be sure where
101 * OFW put factory images. "n25q128a11" is required for proper nor
102 * recognition in u-boot.
104 compatible = "jedec,spi-nor", "n25q128a11";
105 #address-cells = <1>;
108 spi-max-frequency = <24000000>;
111 compatible = "fixed-partitions";
112 #address-cells = <1>;
123 reg = <0x40000 0x20000>;
128 label = "0:BOOTCONFIG";
129 reg = <0x60000 0x20000>;
134 label = "0:BOOTCONFIG1";
135 reg = <0x80000 0x20000>;
141 reg = <0xa0000 0x60000>;
147 reg = <0x100000 0x60000>;
153 reg = <0x160000 0x10000>;
159 reg = <0x170000 0x10000>;
164 label = "0:DDRPARAMS";
165 reg = <0x180000 0x10000>;
170 label = "0:APPSBLENV";
171 reg = <0x190000 0x10000>;
177 reg = <0x1a0000 0xa0000>;
182 label = "0:APPSBL_1";
183 reg = <0x240000 0xa0000>;
189 reg = <0x2e0000 0x10000>;
193 config: partition@2f0000 {
195 reg = <0x2f0000 0x10000>;
200 label = "0:CONFIG_RW";
201 reg = <0x300000 0x10000>;
206 label = "0:EVENTSLOG";
207 reg = <0x310000 0x90000>;
215 * Factory U-boot looks in 0:BOOTCONFIG partition for active
216 * partitions settings and mangles the partition config so
217 * rootfs/rootfs_1 pairs can be swaped.
218 * It isn't a problem but we never can be sure where OFW put
219 * factory images. "spinand,mt29f" value is required for proper
220 * nand recognition in u-boot.
222 compatible = "spi-nand", "spinand,mt29f";
223 #address-cells = <1>;
226 spi-max-frequency = <24000000>;
229 compatible = "fixed-partitions";
230 #address-cells = <1>;
235 reg = <0x00000000 0x08000000>;
240 reg = <0x08000000 0x08000000>;
248 pinctrl-0 = <&mdio_pins>;
249 pinctrl-names = "default";
250 phy-reset-gpio = <&tlmm 62 0>;