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>;
191 compatible = "nvmem-cells";
192 #address-cells = <1>;
195 precal_art_1000: precal@1000 {
196 reg = <0x1000 0x2f20>;
199 precal_art_5000: precal@5000 {
200 reg = <0x5000 0x2f20>;
204 config: partition@2f0000 {
206 reg = <0x2f0000 0x10000>;
208 compatible = "nvmem-cells";
209 #address-cells = <1>;
212 macaddr_config_0: macaddr@0 {
218 label = "0:CONFIG_RW";
219 reg = <0x300000 0x10000>;
224 label = "0:EVENTSLOG";
225 reg = <0x310000 0x90000>;
233 * Factory U-boot looks in 0:BOOTCONFIG partition for active
234 * partitions settings and mangles the partition config so
235 * rootfs/rootfs_1 pairs can be swaped.
236 * It isn't a problem but we never can be sure where OFW put
237 * factory images. "spinand,mt29f" value is required for proper
238 * nand recognition in u-boot.
240 compatible = "spi-nand", "spinand,mt29f";
241 #address-cells = <1>;
244 spi-max-frequency = <24000000>;
247 compatible = "fixed-partitions";
248 #address-cells = <1>;
253 reg = <0x00000000 0x08000000>;
258 reg = <0x08000000 0x08000000>;
266 pinctrl-0 = <&mdio_pins>;
267 pinctrl-names = "default";
268 phy-reset-gpio = <&tlmm 62 0>;
272 nvmem-cell-names = "pre-calibration", "mac-address";
273 nvmem-cells = <&precal_art_1000>, <&macaddr_config_0>;
274 mac-address-increment = <2>;
278 nvmem-cell-names = "pre-calibration", "mac-address";
279 nvmem-cells = <&precal_art_5000>, <&macaddr_config_0>;
280 mac-address-increment = <3>;