// SPDX-License-Identifier: (GPL-2.0-or-later OR MIT)
/*
 * Copyright (c) 2024-2026 TQ-Systems GmbH <u-boot@ew.tq-group.com>,
 * D-82229 Seefeld, Germany.
 * Author: Max Merchel
 */

/ {
	aliases {
		spi0 = &qspi;
	};

	config {
		u-boot,mmc-env-offset = <0x100000>;
		u-boot,mmc-env-offset-redundant = <0x110000>;
	};

	sysinfo: sysinfo {
		compatible = "tq,eeprom-sysinfo";
		nvmem-cells = <&module_info>;
		nvmem-cell-names = "device_info";
	};
};

&clks {
	bootph-pre-ram;
};

&flash0 {
	bootph-pre-ram;
};

&m24c64_50 {
	nvmem-layout {
		compatible = "fixed-layout";
		#address-cells = <1>;
		#size-cells = <1>;

		module_info: module-info@20 {
			reg = <0x20 0x60>;
		};
	};
};

&osc {
	bootph-pre-ram;
};

&pinctrl_pmic {
	bootph-pre-ram;
};

&pinctrl_qspi {
	bootph-pre-ram;
};

&pinctrl_usdhc2 {
	bootph-pre-ram;
};

&qspi {
	bootph-pre-ram;
};

&usdhc2 {
	bootph-pre-ram;
};
