[U-Boot] [PATCH] power: pmic/regulator: Add basic support for TPS65910

Felix Brack fb at ltec.ch
Tue Nov 28 14:08:50 UTC 2017


Hello Simon,

On 27.11.2017 18:16, Simon Glass wrote:
> However if you find that you really do need to blur the line between
> the regulator and the pmic, and share the pdata structure, it is not
> the end of the world. It seems wrong to me, so I'd like to avoid it if
> possible. We should have a good reason. The DT node structure is
> certainly a reason, but it does not seem a strong enough reason to me.
> 
In fact - after finishing v2 of this patch which I will post shortly -
it turns out that keeping PMIC and regulator strictly separated greatly
simplifies the code.
Even if power supplies are modeled as PMIC properties in the DT their
sole purpose is to define the supply for one or multiple regulators.
Storing them within the PMIC driver hence makes no sense. The PMIC
driver of v2 patch therefore doesn't even need a ofdata_to_platdata()
function.

many thanks, Felix


More information about the U-Boot mailing list