Re: [PATCH net-next 1/8] dt-bindings: pse-pd: ti,tps23881: Add VDD and VPWR regulator supply
From: netdev-bot+sashiko
Date: Thu Dec 03 2026 - 09:21:48 EST
Thank you for your contribution! Sashiko AI review found 1 potential
issue(s) to consider.
Critical: 0 · High: 0 · Medium: 1 · Low: 0
If you believe none of the issues are legitimate, please reply to each
issue of Medium severity or higher and explain why the AI is wrong.
If any of them are legitimate and you plan to respin, please let patchwork
know by including "pw-bot: cr" as a separate line at the end of your reply
(one such reply per series is enough).
- [Medium] The binding adds a controller-level `vpwr-supply`
(ti,tps23881.yaml lines 36-37).
--
dt-bindings: pse-pd: ti,tps23881: Add VDD and VPWR regulator supply
This adds vdd-supply and vpwr-supply properties to the TPS23881 binding.
They describe the 3.3V VDD supply and the 54V VPWR supply of the chip.
> diff --git a/Documentation/devicetree/bindings/net/pse-pd/ti,tps23881.yaml b/Documentation/devicetree/bindings/net/pse-pd/ti,tps23881.yaml
> index 0b3803f647b7b..6e1438e5eb32a 100644
> --- a/Documentation/devicetree/bindings/net/pse-pd/ti,tps23881.yaml
> +++ b/Documentation/devicetree/bindings/net/pse-pd/ti,tps23881.yaml
> @@ -30,6 +30,12 @@ properties:
> reset-gpios:
> maxItems: 1
>
> + vdd-supply:
> + description: Regulator that provides 3.3V VDD power supply.
> +
> + vpwr-supply:
> + description: Regulator that provides 54V VPWR power supply.
[Severity: Medium]
Will this controller-level vpwr-supply get mixed up with the per-PI
vpwr-supply? pse-controller.yaml already defines a property with the same
name under pse-pis/pse-pi@N, and those PI nodes are children of this same
TPS23881 node.
The regulator core's DT lookup falls back between these two levels, so
each property can resolve to the other.
First case: the driver lookup picks up a PI's supply. Later in this
series, "net: pse-pd: tps23881: Add support for Vdd and Vpwr power
supply" adds this to tps23881_i2c_probe():
static const char * const regulators[] = { "vdd", "vpwr" };
...
ret = devm_regulator_bulk_get_enable(dev, ARRAY_SIZE(regulators),
regulators);
Take a DT with no controller-level vpwr-supply but with PI nodes that
carry vpwr-supply = <&vpwr1>. Existing DTs and this binding's own example
look like that. The lookup goes through of_get_regulator():
regnode = of_parse_phandle(node, prop_name, 0);
if (regnode)
return regnode;
regnode = of_get_child_regulator(dev->of_node, prop_name);
of_get_child_regulator() then searches the children recursively:
for_each_child_of_node(parent, child) {
regnode = of_parse_phandle(child, prop_name, 0);
if (regnode)
goto err_node_put;
regnode = of_get_child_regulator(child, prop_name);
...
The search goes channels -> channel@N -> pse-pis -> pse-pi@0 and returns
the first PI's &vpwr1 instead of a dummy regulator.
In that case the TPS23881 driver would enable that PI's supply and keep
it enabled through devm while the driver is bound. Probe would also
defer until that regulator registers.
Second case: PIs inherit the controller's supply. In
devm_pse_pi_regulator_register(), the PI regulator is registered with
the TPS23881 device as its parent:
rinit_data->supply_regulator = "vpwr";
rconfig.dev = pcdev->dev;
...
rconfig.of_node = pcdev->pi[id].np;
regulator_resolve_supply() looks in the PI node first and then falls
back to the parent device:
r = regulator_dt_lookup(&rdev->dev, rdev->supply_name);
if (!r)
r = regulator_dev_lookup(dev, rdev->supply_name);
A PI without its own vpwr-supply (it is optional in pse-controller.yaml)
would then be attached to the new chip-level VPWR rail. That changes the
supply-based PSE power-domain grouping.
Is that intended? If it is, should the binding say how the two
same-named properties interact? The example could also show both
properties together.
Could the consuming driver also avoid the child-node fallback, for
example by checking that vpwr-supply exists on the controller node
before requesting it?
> +
> channels:
> description: |
> Defines the 8 physical delivery channels on the controller that can
--
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261202-feat_tps23861-v1-0-7d8320369817%40bootlin.com