lkml.org 
[lkml]   [2019]   [Nov]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH V2 1/2] dt-bindings: syscon: Add syscon-names to refer to syscon easily
On Wed, Nov 20, 2019 at 4:44 PM Orson Zhai <orson.zhai@unisoc.com> 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

\
 
 \ /
  Last update: 2019-11-21 16:01    [W:0.123 / U:0.344 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site