diff mbox series

[v3,1/2] dt-bindings: serial: pl011: Add a reg-io-width parameter

Message ID 20220822130333.5353-2-shubhrajyoti.datta@amd.com
State Changes Requested, archived
Headers show
Series serial: pl011: Add xilinx uart | expand

Checks

Context Check Description
robh/checkpatch success
robh/patch-applied success
robh/dtbs-check warning build log
robh/dt-meta-schema success

Commit Message

Datta, Shubhrajyoti Aug. 22, 2022, 1:03 p.m. UTC
From: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>

Some of the implementations support only 32-bit accesses.
Add a parameter reg-io-width for such platforms.

Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
---
v3:
patch addition

 Documentation/devicetree/bindings/serial/pl011.yaml | 7 +++++++
 1 file changed, 7 insertions(+)

Comments

Krzysztof Kozlowski Aug. 23, 2022, 10:05 a.m. UTC | #1
On 22/08/2022 16:03, Shubhrajyoti Datta wrote:
> From: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
> 
> Some of the implementations support only 32-bit accesses.
> Add a parameter reg-io-width for such platforms.
> 
> Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
> ---
> v3:
> patch addition
> 
>  Documentation/devicetree/bindings/serial/pl011.yaml | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/serial/pl011.yaml b/Documentation/devicetree/bindings/serial/pl011.yaml
> index d8aed84abcd3..c8a4cbb178fe 100644
> --- a/Documentation/devicetree/bindings/serial/pl011.yaml
> +++ b/Documentation/devicetree/bindings/serial/pl011.yaml
> @@ -94,6 +94,13 @@ properties:
>    resets:
>      maxItems: 1
>  
> +  reg-io-width:
> +    description: |

No need for |

> +      The size (in bytes) of the IO accesses that should be performed
> +      on the device.
> +    $ref: /schemas/types.yaml#/definitions/uint32

This is a standard type, so no need for $ref

Best regards,
Krzysztof
Datta, Shubhrajyoti Aug. 23, 2022, 10:10 a.m. UTC | #2
[AMD Official Use Only - General]



> -----Original Message-----
> From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> Sent: Tuesday, August 23, 2022 3:35 PM
> To: Datta, Shubhrajyoti <shubhrajyoti.datta@amd.com>; linux-
> serial@vger.kernel.org
> Cc: git (AMD-Xilinx) <git@amd.com>; devicetree@vger.kernel.org;
> robh+dt@kernel.org; krzysztof.kozlowski+dt@linaro.org;
> gregkh@linuxfoundation.org; shubhrajyoti.datta@gmail.com
> Subject: Re: [PATCH v3 1/2] dt-bindings: serial: pl011: Add a reg-io-width
> parameter
> 
> [CAUTION: External Email]
> 
> On 22/08/2022 16:03, Shubhrajyoti Datta wrote:
> > From: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
> >
> > Some of the implementations support only 32-bit accesses.
> > Add a parameter reg-io-width for such platforms.
> >
> > Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
> > ---
> > v3:
> > patch addition
> >
> >  Documentation/devicetree/bindings/serial/pl011.yaml | 7 +++++++
> >  1 file changed, 7 insertions(+)
> >
> > diff --git a/Documentation/devicetree/bindings/serial/pl011.yaml
> b/Documentation/devicetree/bindings/serial/pl011.yaml
> > index d8aed84abcd3..c8a4cbb178fe 100644
> > --- a/Documentation/devicetree/bindings/serial/pl011.yaml
> > +++ b/Documentation/devicetree/bindings/serial/pl011.yaml
> > @@ -94,6 +94,13 @@ properties:
> >    resets:
> >      maxItems: 1
> >
> > +  reg-io-width:
> > +    description: |
> 
> No need for |
Will fix 

> 
> > +      The size (in bytes) of the IO accesses that should be performed
> > +      on the device.
> > +    $ref: /schemas/types.yaml#/definitions/uint32
> 
> This is a standard type, so no need for $ref
Will do.

> 
> Best regards,
> Krzysztof
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/serial/pl011.yaml b/Documentation/devicetree/bindings/serial/pl011.yaml
index d8aed84abcd3..c8a4cbb178fe 100644
--- a/Documentation/devicetree/bindings/serial/pl011.yaml
+++ b/Documentation/devicetree/bindings/serial/pl011.yaml
@@ -94,6 +94,13 @@  properties:
   resets:
     maxItems: 1
 
+  reg-io-width:
+    description: |
+      The size (in bytes) of the IO accesses that should be performed
+      on the device.
+    $ref: /schemas/types.yaml#/definitions/uint32
+    enum: [1, 4]
+
 required:
   - compatible
   - reg