Commit f5204ac4 authored by Dmitry Osipenko's avatar Dmitry Osipenko Committed by Thierry Reding
Browse files

ARM: tegra: Add EMC OPP properties to Tegra20 device-trees



Add EMC OPP DVFS tables and update board device-trees by removing
unsupported OPPs.

Signed-off-by: default avatarDmitry Osipenko <digetx@gmail.com>
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent b97967d7
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1468,3 +1468,8 @@ emc-table@300000 {
		};
	};
};

&emc_icc_dvfs_opp_table {
	/delete-node/ opp@666000000;
	/delete-node/ opp@760000000;
};
+4 −0
Original line number Diff line number Diff line
@@ -742,6 +742,10 @@ sound {
	};
};

&emc_icc_dvfs_opp_table {
	/delete-node/ opp@760000000;
};

&gpio {
	lan-reset-n {
		gpio-hog;
+4 −0
Original line number Diff line number Diff line
@@ -662,3 +662,7 @@ cpu@1 {
		};
	};
};

&emc_icc_dvfs_opp_table {
	/delete-node/ opp@760000000;
};
+109 −0
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0

/ {
	emc_icc_dvfs_opp_table: emc-dvfs-opp-table {
		compatible = "operating-points-v2";

		opp@36000000 {
			opp-microvolt = <950000 950000 1300000>;
			opp-hz = /bits/ 64 <36000000>;
			opp-supported-hw = <0x000F>;
		};

		opp@47500000 {
			opp-microvolt = <950000 950000 1300000>;
			opp-hz = /bits/ 64 <47500000>;
			opp-supported-hw = <0x000F>;
		};

		opp@50000000 {
			opp-microvolt = <950000 950000 1300000>;
			opp-hz = /bits/ 64 <50000000>;
			opp-supported-hw = <0x000F>;
		};

		opp@54000000 {
			opp-microvolt = <950000 950000 1300000>;
			opp-hz = /bits/ 64 <54000000>;
			opp-supported-hw = <0x000F>;
		};

		opp@57000000 {
			opp-microvolt = <950000 950000 1300000>;
			opp-hz = /bits/ 64 <57000000>;
			opp-supported-hw = <0x000F>;
		};

		opp@100000000 {
			opp-microvolt = <1000000 1000000 1300000>;
			opp-hz = /bits/ 64 <100000000>;
			opp-supported-hw = <0x000F>;
		};

		opp@108000000 {
			opp-microvolt = <1000000 1000000 1300000>;
			opp-hz = /bits/ 64 <108000000>;
			opp-supported-hw = <0x000F>;
		};

		opp@126666000 {
			opp-microvolt = <1000000 1000000 1300000>;
			opp-hz = /bits/ 64 <126666000>;
			opp-supported-hw = <0x000F>;
		};

		opp@150000000 {
			opp-microvolt = <1000000 1000000 1300000>;
			opp-hz = /bits/ 64 <150000000>;
			opp-supported-hw = <0x000F>;
		};

		opp@190000000 {
			opp-microvolt = <1000000 1000000 1300000>;
			opp-hz = /bits/ 64 <190000000>;
			opp-supported-hw = <0x000F>;
		};

		opp@216000000 {
			opp-microvolt = <1000000 1000000 1300000>;
			opp-hz = /bits/ 64 <216000000>;
			opp-supported-hw = <0x000F>;
		};

		opp@300000000 {
			opp-microvolt = <1000000 1000000 1300000>;
			opp-hz = /bits/ 64 <300000000>;
			opp-supported-hw = <0x000F>;
		};

		opp@333000000 {
			opp-microvolt = <1000000 1000000 1300000>;
			opp-hz = /bits/ 64 <333000000>;
			opp-supported-hw = <0x000F>;
		};

		opp@380000000 {
			opp-microvolt = <1100000 1100000 1300000>;
			opp-hz = /bits/ 64 <380000000>;
			opp-supported-hw = <0x000F>;
		};

		opp@600000000 {
			opp-microvolt = <1200000 1200000 1300000>;
			opp-hz = /bits/ 64 <600000000>;
			opp-supported-hw = <0x000F>;
		};

		opp@666000000 {
			opp-microvolt = <1200000 1200000 1300000>;
			opp-hz = /bits/ 64 <666000000>;
			opp-supported-hw = <0x000F>;
		};

		opp@760000000 {
			opp-microvolt = <1300000 1300000 1300000>;
			opp-hz = /bits/ 64 <760000000>;
			opp-supported-hw = <0x000F>;
		};
	};
};
+3 −0
Original line number Diff line number Diff line
@@ -6,6 +6,8 @@
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/soc/tegra-pmc.h>

#include "tegra20-peripherals-opp.dtsi"

/ {
	compatible = "nvidia,tegra20";
	interrupt-parent = <&lic>;
@@ -664,6 +666,7 @@ emc: memory-controller@7000f400 {
		#size-cells = <0>;
		#interconnect-cells = <0>;

		operating-points-v2 = <&emc_icc_dvfs_opp_table>;
		nvidia,memory-controller = <&mc>;
	};