I’m working on integrating a node into my custom hardware device tree to support the use of a TPS659114, I’ve been looking at a couple of other device trees as examples but still had some questions on what everything means.
My reference files are:
arch/arm/boot/dts/tegra30-cardhu.dtsi
arch/arm/boot/dts/tegra30-beaver.dts
1) My first question is with respect to the supplies:
vcc1-supply = <&vdd_ac_bat_reg>;
vcc2-supply = <&vdd_ac_bat_reg>;
…
The bindings documentation for the tps65910.txt state these are: “required if regulators are enabled”, which implies to me that I only need the xxxx-supply if I want the particular input to be enabled. However later in the same document it states: “Missing of these properties can cause the regulator registration fails”. So I’m not sure how to read that.. is it saying that if I’m missing one of the xxx-supply entries that my registration will fail? That seems contrary to how I read it the first time.
2) My second question is in reference to the xxx-supply parameters. They are being pointed to nodes in the device tree further down (outside the scope of the PMIC), example from the referenced device trees:
regulators {
compatible = "simple-bus";
#address-cells = <1>;
#size-cells = <0>;
vdd_5v_in_reg: regulator@0 {
compatible = "regulator-fixed";
reg = <0>;
regulator-name = "vdd_5v_in";
regulator-min-microvolt = <5000000>;
regulator-max-microvolt = <5000000>;
regulator-always-on;
};
Now what is this “regulators” node vs the “regulators” sub-node within the PMIC node? Is this one the “input” regulators or power supplies on the board and the regulators listed within the PMIC are the “outputs” from the PMIC itself?
3) Tied to these first two questions… in my specific design I’m inclined to think that I want a “5v always on” generic “input” regulator in my regulators node which is my supply to most of the VCCXs, but since my VCCIO is actually tied to ground I think I need to just remove the vccio-supply from the PMIC node all together:
Is this the correct way to handle such a design?
4) Looking at the tps65911 spec, as far as I can tell, the “vcc1” input then powers the “vdd1” output. “vcc3” input powers the “LDO6, LDO7, and LDO8” outputs.
If I have that correct, when what powers the VDDCtrl output?