Re: [PATCH] dt-bindings: Fix 'reg' size issues in zynqmp examples

2020-10-04 Thread Vinod Koul
On 28-09-20, 10:59, Rob Herring wrote:
> The default sizes in examples for 'reg' are 1 cell each. Fix the
> incorrect sizes in zynqmp examples:
> 
> Documentation/devicetree/bindings/dma/xilinx/xlnx,zynqmp-dpdma.example.dt.yaml:
>  example-0: dma-controller@fd4c:reg:0: [0, 4249616384, 0, 4096] is too 
> long
>   From schema: 
> /usr/local/lib/python3.8/dist-packages/dtschema/schemas/reg.yaml
> Documentation/devicetree/bindings/display/xlnx/xlnx,zynqmp-dpsub.example.dt.yaml:
>  example-0: display@fd4a:reg:0: [0, 4249485312, 0, 4096] is too long
>   From schema: 
> /usr/local/lib/python3.8/dist-packages/dtschema/schemas/reg.yaml
> Documentation/devicetree/bindings/display/xlnx/xlnx,zynqmp-dpsub.example.dt.yaml:
>  example-0: display@fd4a:reg:1: [0, 4249526272, 0, 4096] is too long
>   From schema: 
> /usr/local/lib/python3.8/dist-packages/dtschema/schemas/reg.yaml
> Documentation/devicetree/bindings/display/xlnx/xlnx,zynqmp-dpsub.example.dt.yaml:
>  example-0: display@fd4a:reg:2: [0, 4249530368, 0, 4096] is too long
>   From schema: 
> /usr/local/lib/python3.8/dist-packages/dtschema/schemas/reg.yaml
> Documentation/devicetree/bindings/display/xlnx/xlnx,zynqmp-dpsub.example.dt.yaml:
>  example-0: display@fd4a:reg:3: [0, 4249534464, 0, 4096] is too long
>   From schema: 
> /usr/local/lib/python3.8/dist-packages/dtschema/schemas/reg.yaml

Applied, thanks

-- 
~Vinod
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


Re: [PATCH] dt-bindings: Fix 'reg' size issues in zynqmp examples

2020-09-30 Thread Michal Simek



On 29. 09. 20 16:55, Rob Herring wrote:
> On Tue, Sep 29, 2020 at 1:55 AM Michal Simek  wrote:
>>
>> Hi Rob,
>>
>> On 28. 09. 20 17:59, Rob Herring wrote:
>>> The default sizes in examples for 'reg' are 1 cell each. Fix the
>>> incorrect sizes in zynqmp examples:
>>>
>>> Documentation/devicetree/bindings/dma/xilinx/xlnx,zynqmp-dpdma.example.dt.yaml:
>>>  example-0: dma-controller@fd4c:reg:0: [0, 4249616384, 0, 4096] is too 
>>> long
>>>   From schema: 
>>> /usr/local/lib/python3.8/dist-packages/dtschema/schemas/reg.yaml
>>> Documentation/devicetree/bindings/display/xlnx/xlnx,zynqmp-dpsub.example.dt.yaml:
>>>  example-0: display@fd4a:reg:0: [0, 4249485312, 0, 4096] is too long
>>>   From schema: 
>>> /usr/local/lib/python3.8/dist-packages/dtschema/schemas/reg.yaml
>>> Documentation/devicetree/bindings/display/xlnx/xlnx,zynqmp-dpsub.example.dt.yaml:
>>>  example-0: display@fd4a:reg:1: [0, 4249526272, 0, 4096] is too long
>>>   From schema: 
>>> /usr/local/lib/python3.8/dist-packages/dtschema/schemas/reg.yaml
>>> Documentation/devicetree/bindings/display/xlnx/xlnx,zynqmp-dpsub.example.dt.yaml:
>>>  example-0: display@fd4a:reg:2: [0, 4249530368, 0, 4096] is too long
>>>   From schema: 
>>> /usr/local/lib/python3.8/dist-packages/dtschema/schemas/reg.yaml
>>> Documentation/devicetree/bindings/display/xlnx/xlnx,zynqmp-dpsub.example.dt.yaml:
>>>  example-0: display@fd4a:reg:3: [0, 4249534464, 0, 4096] is too long
>>>   From schema: 
>>> /usr/local/lib/python3.8/dist-packages/dtschema/schemas/reg.yaml
>>>
>>> Cc: Hyun Kwon 
>>> Cc: Laurent Pinchart 
>>> Cc: Michal Simek 
>>> Cc: Vinod Koul 
>>> Cc: dri-devel@lists.freedesktop.org
>>> Cc: dmaeng...@vger.kernel.org
>>> Signed-off-by: Rob Herring 
>>> ---
>>>  .../bindings/display/xlnx/xlnx,zynqmp-dpsub.yaml  | 8 
>>>  .../devicetree/bindings/dma/xilinx/xlnx,zynqmp-dpdma.yaml | 2 +-
>>>  2 files changed, 5 insertions(+), 5 deletions(-)
>>>
>>> diff --git 
>>> a/Documentation/devicetree/bindings/display/xlnx/xlnx,zynqmp-dpsub.yaml 
>>> b/Documentation/devicetree/bindings/display/xlnx/xlnx,zynqmp-dpsub.yaml
>>> index 52a939cade3b..7b9d468c3e52 100644
>>> --- a/Documentation/devicetree/bindings/display/xlnx/xlnx,zynqmp-dpsub.yaml
>>> +++ b/Documentation/devicetree/bindings/display/xlnx/xlnx,zynqmp-dpsub.yaml
>>> @@ -145,10 +145,10 @@ examples:
>>>
>>>  display@fd4a {
>>>  compatible = "xlnx,zynqmp-dpsub-1.7";
>>> -reg = <0x0 0xfd4a 0x0 0x1000>,
>>> -  <0x0 0xfd4aa000 0x0 0x1000>,
>>> -  <0x0 0xfd4ab000 0x0 0x1000>,
>>> -  <0x0 0xfd4ac000 0x0 0x1000>;
>>> +reg = <0xfd4a 0x1000>,
>>> +  <0xfd4aa000 0x1000>,
>>> +  <0xfd4ab000 0x1000>,
>>> +  <0xfd4ac000 0x1000>;
>>>  reg-names = "dp", "blend", "av_buf", "aud";
>>>  interrupts = <0 119 4>;
>>>  interrupt-parent = <>;
>>> diff --git 
>>> a/Documentation/devicetree/bindings/dma/xilinx/xlnx,zynqmp-dpdma.yaml 
>>> b/Documentation/devicetree/bindings/dma/xilinx/xlnx,zynqmp-dpdma.yaml
>>> index 5de510f8c88c..2a595b18ff6c 100644
>>> --- a/Documentation/devicetree/bindings/dma/xilinx/xlnx,zynqmp-dpdma.yaml
>>> +++ b/Documentation/devicetree/bindings/dma/xilinx/xlnx,zynqmp-dpdma.yaml
>>> @@ -57,7 +57,7 @@ examples:
>>>
>>>  dma: dma-controller@fd4c {
>>>compatible = "xlnx,zynqmp-dpdma";
>>> -  reg = <0x0 0xfd4c 0x0 0x1000>;
>>> +  reg = <0xfd4c 0x1000>;
>>>interrupts = ;
>>>interrupt-parent = <>;
>>>clocks = <_clk>;
>>>
>>
>> I would prefer to keep 64bit version.
>> I use this style.
> 
> I prefer to keep the examples simple. The address size is outside the
> scope of the binding.

ok.

Acked-by: Michal Simek 

Thanks,
Michal

___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


Re: [PATCH] dt-bindings: Fix 'reg' size issues in zynqmp examples

2020-09-29 Thread Rob Herring
On Tue, Sep 29, 2020 at 1:55 AM Michal Simek  wrote:
>
> Hi Rob,
>
> On 28. 09. 20 17:59, Rob Herring wrote:
> > The default sizes in examples for 'reg' are 1 cell each. Fix the
> > incorrect sizes in zynqmp examples:
> >
> > Documentation/devicetree/bindings/dma/xilinx/xlnx,zynqmp-dpdma.example.dt.yaml:
> >  example-0: dma-controller@fd4c:reg:0: [0, 4249616384, 0, 4096] is too 
> > long
> >   From schema: 
> > /usr/local/lib/python3.8/dist-packages/dtschema/schemas/reg.yaml
> > Documentation/devicetree/bindings/display/xlnx/xlnx,zynqmp-dpsub.example.dt.yaml:
> >  example-0: display@fd4a:reg:0: [0, 4249485312, 0, 4096] is too long
> >   From schema: 
> > /usr/local/lib/python3.8/dist-packages/dtschema/schemas/reg.yaml
> > Documentation/devicetree/bindings/display/xlnx/xlnx,zynqmp-dpsub.example.dt.yaml:
> >  example-0: display@fd4a:reg:1: [0, 4249526272, 0, 4096] is too long
> >   From schema: 
> > /usr/local/lib/python3.8/dist-packages/dtschema/schemas/reg.yaml
> > Documentation/devicetree/bindings/display/xlnx/xlnx,zynqmp-dpsub.example.dt.yaml:
> >  example-0: display@fd4a:reg:2: [0, 4249530368, 0, 4096] is too long
> >   From schema: 
> > /usr/local/lib/python3.8/dist-packages/dtschema/schemas/reg.yaml
> > Documentation/devicetree/bindings/display/xlnx/xlnx,zynqmp-dpsub.example.dt.yaml:
> >  example-0: display@fd4a:reg:3: [0, 4249534464, 0, 4096] is too long
> >   From schema: 
> > /usr/local/lib/python3.8/dist-packages/dtschema/schemas/reg.yaml
> >
> > Cc: Hyun Kwon 
> > Cc: Laurent Pinchart 
> > Cc: Michal Simek 
> > Cc: Vinod Koul 
> > Cc: dri-devel@lists.freedesktop.org
> > Cc: dmaeng...@vger.kernel.org
> > Signed-off-by: Rob Herring 
> > ---
> >  .../bindings/display/xlnx/xlnx,zynqmp-dpsub.yaml  | 8 
> >  .../devicetree/bindings/dma/xilinx/xlnx,zynqmp-dpdma.yaml | 2 +-
> >  2 files changed, 5 insertions(+), 5 deletions(-)
> >
> > diff --git 
> > a/Documentation/devicetree/bindings/display/xlnx/xlnx,zynqmp-dpsub.yaml 
> > b/Documentation/devicetree/bindings/display/xlnx/xlnx,zynqmp-dpsub.yaml
> > index 52a939cade3b..7b9d468c3e52 100644
> > --- a/Documentation/devicetree/bindings/display/xlnx/xlnx,zynqmp-dpsub.yaml
> > +++ b/Documentation/devicetree/bindings/display/xlnx/xlnx,zynqmp-dpsub.yaml
> > @@ -145,10 +145,10 @@ examples:
> >
> >  display@fd4a {
> >  compatible = "xlnx,zynqmp-dpsub-1.7";
> > -reg = <0x0 0xfd4a 0x0 0x1000>,
> > -  <0x0 0xfd4aa000 0x0 0x1000>,
> > -  <0x0 0xfd4ab000 0x0 0x1000>,
> > -  <0x0 0xfd4ac000 0x0 0x1000>;
> > +reg = <0xfd4a 0x1000>,
> > +  <0xfd4aa000 0x1000>,
> > +  <0xfd4ab000 0x1000>,
> > +  <0xfd4ac000 0x1000>;
> >  reg-names = "dp", "blend", "av_buf", "aud";
> >  interrupts = <0 119 4>;
> >  interrupt-parent = <>;
> > diff --git 
> > a/Documentation/devicetree/bindings/dma/xilinx/xlnx,zynqmp-dpdma.yaml 
> > b/Documentation/devicetree/bindings/dma/xilinx/xlnx,zynqmp-dpdma.yaml
> > index 5de510f8c88c..2a595b18ff6c 100644
> > --- a/Documentation/devicetree/bindings/dma/xilinx/xlnx,zynqmp-dpdma.yaml
> > +++ b/Documentation/devicetree/bindings/dma/xilinx/xlnx,zynqmp-dpdma.yaml
> > @@ -57,7 +57,7 @@ examples:
> >
> >  dma: dma-controller@fd4c {
> >compatible = "xlnx,zynqmp-dpdma";
> > -  reg = <0x0 0xfd4c 0x0 0x1000>;
> > +  reg = <0xfd4c 0x1000>;
> >interrupts = ;
> >interrupt-parent = <>;
> >clocks = <_clk>;
> >
>
> I would prefer to keep 64bit version.
> I use this style.

I prefer to keep the examples simple. The address size is outside the
scope of the binding.

Rob
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


Re: [PATCH] dt-bindings: Fix 'reg' size issues in zynqmp examples

2020-09-29 Thread Michal Simek
Hi Rob,

On 28. 09. 20 17:59, Rob Herring wrote:
> The default sizes in examples for 'reg' are 1 cell each. Fix the
> incorrect sizes in zynqmp examples:
> 
> Documentation/devicetree/bindings/dma/xilinx/xlnx,zynqmp-dpdma.example.dt.yaml:
>  example-0: dma-controller@fd4c:reg:0: [0, 4249616384, 0, 4096] is too 
> long
>   From schema: 
> /usr/local/lib/python3.8/dist-packages/dtschema/schemas/reg.yaml
> Documentation/devicetree/bindings/display/xlnx/xlnx,zynqmp-dpsub.example.dt.yaml:
>  example-0: display@fd4a:reg:0: [0, 4249485312, 0, 4096] is too long
>   From schema: 
> /usr/local/lib/python3.8/dist-packages/dtschema/schemas/reg.yaml
> Documentation/devicetree/bindings/display/xlnx/xlnx,zynqmp-dpsub.example.dt.yaml:
>  example-0: display@fd4a:reg:1: [0, 4249526272, 0, 4096] is too long
>   From schema: 
> /usr/local/lib/python3.8/dist-packages/dtschema/schemas/reg.yaml
> Documentation/devicetree/bindings/display/xlnx/xlnx,zynqmp-dpsub.example.dt.yaml:
>  example-0: display@fd4a:reg:2: [0, 4249530368, 0, 4096] is too long
>   From schema: 
> /usr/local/lib/python3.8/dist-packages/dtschema/schemas/reg.yaml
> Documentation/devicetree/bindings/display/xlnx/xlnx,zynqmp-dpsub.example.dt.yaml:
>  example-0: display@fd4a:reg:3: [0, 4249534464, 0, 4096] is too long
>   From schema: 
> /usr/local/lib/python3.8/dist-packages/dtschema/schemas/reg.yaml
> 
> Cc: Hyun Kwon 
> Cc: Laurent Pinchart 
> Cc: Michal Simek 
> Cc: Vinod Koul 
> Cc: dri-devel@lists.freedesktop.org
> Cc: dmaeng...@vger.kernel.org
> Signed-off-by: Rob Herring 
> ---
>  .../bindings/display/xlnx/xlnx,zynqmp-dpsub.yaml  | 8 
>  .../devicetree/bindings/dma/xilinx/xlnx,zynqmp-dpdma.yaml | 2 +-
>  2 files changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git 
> a/Documentation/devicetree/bindings/display/xlnx/xlnx,zynqmp-dpsub.yaml 
> b/Documentation/devicetree/bindings/display/xlnx/xlnx,zynqmp-dpsub.yaml
> index 52a939cade3b..7b9d468c3e52 100644
> --- a/Documentation/devicetree/bindings/display/xlnx/xlnx,zynqmp-dpsub.yaml
> +++ b/Documentation/devicetree/bindings/display/xlnx/xlnx,zynqmp-dpsub.yaml
> @@ -145,10 +145,10 @@ examples:
>  
>  display@fd4a {
>  compatible = "xlnx,zynqmp-dpsub-1.7";
> -reg = <0x0 0xfd4a 0x0 0x1000>,
> -  <0x0 0xfd4aa000 0x0 0x1000>,
> -  <0x0 0xfd4ab000 0x0 0x1000>,
> -  <0x0 0xfd4ac000 0x0 0x1000>;
> +reg = <0xfd4a 0x1000>,
> +  <0xfd4aa000 0x1000>,
> +  <0xfd4ab000 0x1000>,
> +  <0xfd4ac000 0x1000>;
>  reg-names = "dp", "blend", "av_buf", "aud";
>  interrupts = <0 119 4>;
>  interrupt-parent = <>;
> diff --git 
> a/Documentation/devicetree/bindings/dma/xilinx/xlnx,zynqmp-dpdma.yaml 
> b/Documentation/devicetree/bindings/dma/xilinx/xlnx,zynqmp-dpdma.yaml
> index 5de510f8c88c..2a595b18ff6c 100644
> --- a/Documentation/devicetree/bindings/dma/xilinx/xlnx,zynqmp-dpdma.yaml
> +++ b/Documentation/devicetree/bindings/dma/xilinx/xlnx,zynqmp-dpdma.yaml
> @@ -57,7 +57,7 @@ examples:
>  
>  dma: dma-controller@fd4c {
>compatible = "xlnx,zynqmp-dpdma";
> -  reg = <0x0 0xfd4c 0x0 0x1000>;
> +  reg = <0xfd4c 0x1000>;
>interrupts = ;
>interrupt-parent = <>;
>clocks = <_clk>;
> 

I would prefer to keep 64bit version.
I use this style.

bus {
  #address-cells = <2>;
  #size-cells = <2>;
   ...
};

Thanks,
Michal
___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[PATCH] dt-bindings: Fix 'reg' size issues in zynqmp examples

2020-09-28 Thread Rob Herring
The default sizes in examples for 'reg' are 1 cell each. Fix the
incorrect sizes in zynqmp examples:

Documentation/devicetree/bindings/dma/xilinx/xlnx,zynqmp-dpdma.example.dt.yaml: 
example-0: dma-controller@fd4c:reg:0: [0, 4249616384, 0, 4096] is too long
From schema: 
/usr/local/lib/python3.8/dist-packages/dtschema/schemas/reg.yaml
Documentation/devicetree/bindings/display/xlnx/xlnx,zynqmp-dpsub.example.dt.yaml:
 example-0: display@fd4a:reg:0: [0, 4249485312, 0, 4096] is too long
From schema: 
/usr/local/lib/python3.8/dist-packages/dtschema/schemas/reg.yaml
Documentation/devicetree/bindings/display/xlnx/xlnx,zynqmp-dpsub.example.dt.yaml:
 example-0: display@fd4a:reg:1: [0, 4249526272, 0, 4096] is too long
From schema: 
/usr/local/lib/python3.8/dist-packages/dtschema/schemas/reg.yaml
Documentation/devicetree/bindings/display/xlnx/xlnx,zynqmp-dpsub.example.dt.yaml:
 example-0: display@fd4a:reg:2: [0, 4249530368, 0, 4096] is too long
From schema: 
/usr/local/lib/python3.8/dist-packages/dtschema/schemas/reg.yaml
Documentation/devicetree/bindings/display/xlnx/xlnx,zynqmp-dpsub.example.dt.yaml:
 example-0: display@fd4a:reg:3: [0, 4249534464, 0, 4096] is too long
From schema: 
/usr/local/lib/python3.8/dist-packages/dtschema/schemas/reg.yaml

Cc: Hyun Kwon 
Cc: Laurent Pinchart 
Cc: Michal Simek 
Cc: Vinod Koul 
Cc: dri-devel@lists.freedesktop.org
Cc: dmaeng...@vger.kernel.org
Signed-off-by: Rob Herring 
---
 .../bindings/display/xlnx/xlnx,zynqmp-dpsub.yaml  | 8 
 .../devicetree/bindings/dma/xilinx/xlnx,zynqmp-dpdma.yaml | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git 
a/Documentation/devicetree/bindings/display/xlnx/xlnx,zynqmp-dpsub.yaml 
b/Documentation/devicetree/bindings/display/xlnx/xlnx,zynqmp-dpsub.yaml
index 52a939cade3b..7b9d468c3e52 100644
--- a/Documentation/devicetree/bindings/display/xlnx/xlnx,zynqmp-dpsub.yaml
+++ b/Documentation/devicetree/bindings/display/xlnx/xlnx,zynqmp-dpsub.yaml
@@ -145,10 +145,10 @@ examples:
 
 display@fd4a {
 compatible = "xlnx,zynqmp-dpsub-1.7";
-reg = <0x0 0xfd4a 0x0 0x1000>,
-  <0x0 0xfd4aa000 0x0 0x1000>,
-  <0x0 0xfd4ab000 0x0 0x1000>,
-  <0x0 0xfd4ac000 0x0 0x1000>;
+reg = <0xfd4a 0x1000>,
+  <0xfd4aa000 0x1000>,
+  <0xfd4ab000 0x1000>,
+  <0xfd4ac000 0x1000>;
 reg-names = "dp", "blend", "av_buf", "aud";
 interrupts = <0 119 4>;
 interrupt-parent = <>;
diff --git 
a/Documentation/devicetree/bindings/dma/xilinx/xlnx,zynqmp-dpdma.yaml 
b/Documentation/devicetree/bindings/dma/xilinx/xlnx,zynqmp-dpdma.yaml
index 5de510f8c88c..2a595b18ff6c 100644
--- a/Documentation/devicetree/bindings/dma/xilinx/xlnx,zynqmp-dpdma.yaml
+++ b/Documentation/devicetree/bindings/dma/xilinx/xlnx,zynqmp-dpdma.yaml
@@ -57,7 +57,7 @@ examples:
 
 dma: dma-controller@fd4c {
   compatible = "xlnx,zynqmp-dpdma";
-  reg = <0x0 0xfd4c 0x0 0x1000>;
+  reg = <0xfd4c 0x1000>;
   interrupts = ;
   interrupt-parent = <>;
   clocks = <_clk>;
-- 
2.25.1

___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel