RE: obtaining a regulator from a phandle

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thierry Reding wrote at Monday, March 05, 2012 8:22 AM:
> I'm working on getting DT support for PCIe on Tegra working. The Tegra PCIe
> controller needs a specific voltage supplied by a regulator on the board that
> I use (Harmony-compatible), so what I did was add DT support for the PMU
> (tps6586x) to provide the corresponding regulator:
...
> Within the device node of the PCIe controller, I reference the ldo0 regulator
> like so:
> 
> 	pcie@80000000 {
> 		pex-clk-supply = <&ldo0_reg>;
> 	};
> 
> This all works well, except there seems to be no API to obtain a regulator
> from the DT phandle.

regulator_get(pcie_dev, "pex-clk") should work.

Of course, the PCIe host on Tegra isn't yet a platform device, so would
have to be converted.

-- 
nvpublic

--
To unsubscribe from this list: send the line "unsubscribe linux-tegra" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [ARM Kernel]     [Linux ARM]     [Linux ARM MSM]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux