// SPDX-License-Identifier: GPL-2.0+
/*
 * Copyright (C) 2017 Marek Behun <marek.behun@nic.cz>
 */

/ {
	aliases {
		i2c0 = &i2c0;
		i2c1 = &i2cmux;
		spi0 = &spi0;
	};
};

&i2c0 {
	u-boot,dm-pre-reloc;

	i2cmux: i2cmux@70 {
		u-boot,dm-pre-reloc;

		i2c@0 {
			u-boot,dm-pre-reloc;
		};

		i2c@1 {
			u-boot,dm-pre-reloc;
		};

		i2c@5 {
			u-boot,dm-pre-reloc;

			/* ATSHA204A at address 0x64 */
			atsha204a@64 {
				u-boot,dm-pre-reloc;
				compatible = "atmel,atsha204a";
				reg = <0x64>;
			};
		};
	};
};

&spi0 {
	u-boot,dm-pre-reloc;

	spi-nor@0 {
		u-boot,dm-pre-reloc;

		partitions {
			partition@0 {
				reg = <0x0 CONFIG_ENV_OFFSET>;
			};

			partition@f0000 {
				reg = <CONFIG_ENV_OFFSET CONFIG_ENV_SIZE>;
				label = "u-boot-env";
			};
		};
	};
};

&uart0 {
	u-boot,dm-pre-reloc;
};