// SPDX-License-Identifier: GPL-2.0+
// Copyright 2024 ASUS Corp.
/dts-v1/;

#include "ast2600-u-boot.dtsi"

/ {
	model = "AST2600 ASUS X4TF";
	compatible = "aspeed,ast2600-asus", "aspeed,ast2600";

	memory {
		device_type = "memory";
		reg = <0x80000000 0x20000000>;
	};

	chosen {
		stdout-path = &uart5;
	};

	aliases {
		spi0 = &fmc;
		ethernet0 = &mac2;
		ethernet1 = &mac3;
	};

	cpus {
		cpu@0 {
			clock-frequency = <800000000>;
		};

		cpu@1 {
			clock-frequency = <800000000>;
		};
	};
};

&uart5 {
	status = "okay";
};

&sdrammc {
	clock-frequency = <400000000>;
};

&wdt1 {
	status = "okay";
};

&wdt2 {
	status = "okay";
};

&wdt3 {
	status = "okay";
};

&mac2 {
	status = "okay";
	phy-mode = "rmii";
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_rmii3_default>;
};

&mac3 {
	status = "okay";
	phy-mode = "rmii";
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_rmii4_default>;
};

&fmc {
	status = "okay";

	flash@0 {
		compatible = "jedec,spi-nor", "macronix,mx66l2g45g";
		status = "okay";
		spi-max-frequency = <25000000>;
		spi-tx-bus-width = <2>;
		spi-rx-bus-width = <2>;
	};

	flash@1 {
		compatible = "spi-flash", "sst,w25q256";
		status = "okay";
		spi-max-frequency = <25000000>;
		spi-tx-bus-width = <4>;
		spi-rx-bus-width = <4>;
	};
};

&hace {
	status = "okay";
};

&i2c0 {
	status = "okay";
};

&i2c1 {
	status = "okay";
};

&i2c2 {
	status = "okay";
};

&i2c3 {
	status = "okay";
};

&i2c4 {
	status = "okay";
};

&i2c5 {
	status = "okay";
};

&i2c6 {
	status = "okay";
};

&i2c7 {
	status = "okay";
};

&i2c8 {
	status = "okay";
};

&i2c9 {
	status = "okay";
};

&i2c10 {
	status = "okay";
};

&i2c11 {
	status = "okay";
};

&i2c12 {
	status = "disabled";
};

&i2c13 {
	status = "disabled";
};

&i2c14 {
	status = "okay";
};

&i2c15 {
	status = "okay";
};

&display_port {
	status = "okay";
};
