Re: [PATCH V2 1/2] dt-bindings: syscon: Add syscon-names to refer to syscon easily

From: Arnd Bergmann
Date: Thu Nov 21 2019 - 09:59:55 EST


On Wed, Nov 20, 2019 at 4:44 PM Orson Zhai <orson.zhai@xxxxxxxxxx> wrote:
>
> +
> +Optional property:
> +- #.*-cells: Represents the number of arguments in single phandle in syscons
> + list. ".*" is vendor specific. If this property is not set, default value
> + will be 0.
> +
> +Examples:
> +
> +apb_regs: syscon@20008000 {
> + compatible = "sprd,apb-glb", "syscon";
> + reg = <0x20008000 0x100>;
> +};
> +
> +aon_regs: syscon@40008000 {
> + compatible = "sprd,aon-glb", "syscon";
> + reg = <0x40008000 0x100>;
> +};
> +
> +display@40500000 {
> + ...
> + #syscon-disp-cells = <2>;
> + syscons = <&ap_apb_regs 0x4 0xf00>, <&aon_regs 0x8 0x7>;
> + syscon-names = "enable", "power";
> +};


Hi Orson,

With the changes from the syscon nodes removed, it looks better
already, but I'd also like to not see the #.*-cells mentioned at
all, as there is not really a way to parse this automatically, or
make sense of the data without already knowing how many cells
there are.

Arnd