diff mbox series

[2/5] dt-bindings: eeprom: at24: Add label property for AT24

Message ID 20200910134239.192030-3-jonathanh@nvidia.com
State Changes Requested
Headers show
Series Add support for custom names for AT24 EEPROMs | expand

Commit Message

Jon Hunter Sept. 10, 2020, 1:42 p.m. UTC
Add a label property for the AT24 EEPROM to allow a custom name to be
used for identifying the EEPROM on a board. This is useful when there
is more than one EEPROM present.

Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
---
 Documentation/devicetree/bindings/eeprom/at24.yaml | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Rob Herring Sept. 15, 2020, 8:25 p.m. UTC | #1
On Thu, Sep 10, 2020 at 02:42:36PM +0100, Jon Hunter wrote:
> Add a label property for the AT24 EEPROM to allow a custom name to be
> used for identifying the EEPROM on a board. This is useful when there
> is more than one EEPROM present.
> 
> Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
> ---
>  Documentation/devicetree/bindings/eeprom/at24.yaml | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/eeprom/at24.yaml b/Documentation/devicetree/bindings/eeprom/at24.yaml
> index 4cee72d53318..5c00d8a146b0 100644
> --- a/Documentation/devicetree/bindings/eeprom/at24.yaml
> +++ b/Documentation/devicetree/bindings/eeprom/at24.yaml
> @@ -114,6 +114,10 @@ properties:
>            - const: renesas,r1ex24128
>            - const: atmel,24c128
>  
> +  label:
> +    description: Descriptive name of the EEPROM.
> +    maxItems: 1

label is always a single string, so drop 'maxItems'.

> +
>    reg:
>      maxItems: 1
>  
> -- 
> 2.25.1
>
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/eeprom/at24.yaml b/Documentation/devicetree/bindings/eeprom/at24.yaml
index 4cee72d53318..5c00d8a146b0 100644
--- a/Documentation/devicetree/bindings/eeprom/at24.yaml
+++ b/Documentation/devicetree/bindings/eeprom/at24.yaml
@@ -114,6 +114,10 @@  properties:
           - const: renesas,r1ex24128
           - const: atmel,24c128
 
+  label:
+    description: Descriptive name of the EEPROM.
+    maxItems: 1
+
   reg:
     maxItems: 1