/dts-v1/;

#include "ast2500-u-boot.dtsi"

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

	chosen {
		stdout-path = &uart5;
	};

	aliases {
		ethernet0 = &mac0;
		ethernet1 = &mac1;
	};
};

&uart5 {
	bootph-all;
	status = "okay";
};

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

&wdt1 {
	bootph-all;
	status = "okay";
};

&wdt2 {
	bootph-all;
	status = "okay";
};

&wdt3 {
	bootph-all;
	status = "okay";
};

&mac0 {
	status = "okay";

	phy-mode = "rgmii";

	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_mac1link_default &pinctrl_mdio1_default>;
};

&mac1 {
	status = "okay";

	phy-mode = "rgmii";

	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_mac2link_default &pinctrl_mdio2_default>;
};

&sdmmc {
	status = "okay";
};

&sdhci0 {
	status = "okay";

	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_sd1_default>;
};

&sdhci1 {
	status = "okay";

	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_sd2_default>;
};

&fmc {
	status = "okay";
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_fwspics1_default>;

	flash@0 {
		status = "okay";
		spi-max-frequency = <50000000>;
		spi-tx-bus-width = <2>;
		spi-rx-bus-width = <2>;
	};

	flash@1 {
		status = "okay";
		spi-max-frequency = <50000000>;
		spi-tx-bus-width = <2>;
		spi-rx-bus-width = <2>;
	};
};

&spi1 {
	status = "okay";
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_spi1cs1_default>;

	flash@0 {
		status = "okay";
		spi-max-frequency = <50000000>;
		spi-tx-bus-width = <2>;
		spi-rx-bus-width = <2>;
	};
};

&i2c3 {
        status = "okay";

        eeprom@50 {
                compatible = "atmel,24c08";
                reg = <0x50>;
                pagesize = <16>;
        };
};

&i2c7 {
	status = "okay";

        lm75@4d {
                compatible = "national,lm75";
                reg = <0x4d>;
        };
};

&sgpio {
	status = "okay";
	ngpios = <80>;
};
