Commit 23e63345 authored by Alban Bedel's avatar Alban Bedel Committed by Thierry Reding
Browse files

ARM: tegra: tamonten: add the base board regulators



Currently the Tamonten DTS define a fixed regulator for the 5V supply.
However this regulator is in fact on the base board. Fix this by
properly defining the regulators found on the base boards.

Signed-off-by: default avatarAlban Bedel <alban.bedel@avionic-design.de>
Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
parent 6d0a067f
Loading
Loading
Loading
Loading
+41 −0
Original line number Diff line number Diff line
@@ -64,4 +64,45 @@
			 <&tegra_car TEGRA20_CLK_CDEV1>;
		clock-names = "pll_a", "pll_a_out0", "mclk";
	};

	regulators {
		vcc_24v_reg: regulator@100 {
			compatible = "regulator-fixed";
			reg = <100>;
			regulator-name = "vcc_24v";
			regulator-min-microvolt = <24000000>;
			regulator-max-microvolt = <24000000>;
			regulator-always-on;
		};

		vdd_5v0_reg: regulator@101 {
			compatible = "regulator-fixed";
			reg = <101>;
			regulator-name = "vdd_5v0";
			vin-supply = <&vcc_24v_reg>;
			regulator-min-microvolt = <5000000>;
			regulator-max-microvolt = <5000000>;
			regulator-always-on;
		};

		vdd_3v3_reg: regulator@102 {
			compatible = "regulator-fixed";
			reg = <102>;
			regulator-name = "vdd_3v3";
			vin-supply = <&vcc_24v_reg>;
			regulator-min-microvolt = <3300000>;
			regulator-max-microvolt = <3300000>;
			regulator-always-on;
		};

		vdd_1v8_reg: regulator@103 {
			compatible = "regulator-fixed";
			reg = <103>;
			regulator-name = "vdd_1v8";
			vin-supply = <&vdd_3v3_reg>;
			regulator-min-microvolt = <1800000>;
			regulator-max-microvolt = <1800000>;
			regulator-always-on;
		};
	};
};
+41 −0
Original line number Diff line number Diff line
@@ -58,4 +58,45 @@
			 <&tegra_car TEGRA20_CLK_CDEV1>;
		clock-names = "pll_a", "pll_a_out0", "mclk";
	};

	regulators {
		vcc_24v_reg: regulator@100 {
			compatible = "regulator-fixed";
			reg = <100>;
			regulator-name = "vcc_24v";
			regulator-min-microvolt = <24000000>;
			regulator-max-microvolt = <24000000>;
			regulator-always-on;
		};

		vdd_5v0_reg: regulator@101 {
			compatible = "regulator-fixed";
			reg = <101>;
			regulator-name = "vdd_5v0";
			vin-supply = <&vcc_24v_reg>;
			regulator-min-microvolt = <5000000>;
			regulator-max-microvolt = <5000000>;
			regulator-always-on;
		};

		vdd_3v3_reg: regulator@102 {
			compatible = "regulator-fixed";
			reg = <102>;
			regulator-name = "vdd_3v3";
			vin-supply = <&vcc_24v_reg>;
			regulator-min-microvolt = <3300000>;
			regulator-max-microvolt = <3300000>;
			regulator-always-on;
		};

		vdd_1v8_reg: regulator@103 {
			compatible = "regulator-fixed";
			reg = <103>;
			regulator-name = "vdd_1v8";
			vin-supply = <&vdd_3v3_reg>;
			regulator-min-microvolt = <1800000>;
			regulator-max-microvolt = <1800000>;
			regulator-always-on;
		};
	};
};
+1 −9
Original line number Diff line number Diff line
@@ -334,6 +334,7 @@
			#gpio-cells = <2>;
			gpio-controller;

			/* vdd_5v0_reg must be provided by the base board */
			sys-supply = <&vdd_5v0_reg>;
			vin-sm0-supply = <&sys_reg>;
			vin-sm1-supply = <&sys_reg>;
@@ -511,15 +512,6 @@
		#address-cells = <1>;
		#size-cells = <0>;

		vdd_5v0_reg: regulator@0 {
			compatible = "regulator-fixed";
			reg = <0>;
			regulator-name = "vdd_5v0";
			regulator-min-microvolt = <5000000>;
			regulator-max-microvolt = <5000000>;
			regulator-always-on;
		};

		pci_vdd_reg: regulator@1 {
			compatible = "regulator-fixed";
			reg = <1>;
+41 −0
Original line number Diff line number Diff line
@@ -67,4 +67,45 @@
			 <&tegra_car TEGRA20_CLK_CDEV1>;
		clock-names = "pll_a", "pll_a_out0", "mclk";
	};

	regulators {
		vcc_24v_reg: regulator@100 {
			compatible = "regulator-fixed";
			reg = <100>;
			regulator-name = "vcc_24v";
			regulator-min-microvolt = <24000000>;
			regulator-max-microvolt = <24000000>;
			regulator-always-on;
		};

		vdd_5v0_reg: regulator@101 {
			compatible = "regulator-fixed";
			reg = <101>;
			regulator-name = "vdd_5v0";
			vin-supply = <&vcc_24v_reg>;
			regulator-min-microvolt = <5000000>;
			regulator-max-microvolt = <5000000>;
			regulator-always-on;
		};

		vdd_3v3_reg: regulator@102 {
			compatible = "regulator-fixed";
			reg = <102>;
			regulator-name = "vdd_3v3";
			vin-supply = <&vcc_24v_reg>;
			regulator-min-microvolt = <3300000>;
			regulator-max-microvolt = <3300000>;
			regulator-always-on;
		};

		vdd_1v8_reg: regulator@103 {
			compatible = "regulator-fixed";
			reg = <103>;
			regulator-name = "vdd_1v8";
			vin-supply = <&vdd_3v3_reg>;
			regulator-min-microvolt = <1800000>;
			regulator-max-microvolt = <1800000>;
			regulator-always-on;
		};
	};
};