Re: [PATCH 2/5] dt-bindings: media: sun6i: Add vcc-csi supply property

From: Rob Herring
Date: Wed Dec 19 2018 - 11:01:26 EST


On Mon, Dec 03, 2018 at 06:11:35PM +0800, Chen-Yu Tsai wrote:
> On Mon, Dec 3, 2018 at 6:08 PM Jagan Teki <jagan@xxxxxxxxxxxxxxxxxxxx> wrote:
> >
> > Most of the Allwinner A64 CSI controllers are supply with
> > VCC-PE pin. which need to supply for some of the boards to
> > trigger the power.
> >
> > So, document the supply property as vcc-csi so-that the required
> > board can eable it via device tree.
> >
> > Used vcc-csi instead of vcc-pe to have better naming convention
> > wrt other controller pin supplies.
>
> This is not related to the CSI controller. It belongs in the pin
> controller, but that has its own set of problems like possible
> circular dependencies.

That might be a better choice, but I think most platforms put the supply
in the module node. But that wouldn't work well if the module is not
used and you want to use the pins for GPIO or some other function. Maybe
we don't hit that property because most I/O supplies are always on.

Rob