dt-bindings: gpio: gpio-pca9570: Add label property

Message ID a8396308c995959349fd40e61199853a9b711ece.1706783050.git.michal.simek@amd.com
State New
Headers
Series dt-bindings: gpio: gpio-pca9570: Add label property |

Commit Message

Michal Simek Feb. 1, 2024, 10:24 a.m. UTC
  Add a label property to allow a custom name to be used for identifying
a device on the board. This is useful when multiple devices are present on
the same board. Similar change was done by commit ffae65fb1ae4
("dt-bindings: spi: spi-cadence: Add label property") or by commit
a53faa6bfa3b ("dt-bindings: hwmon: ina2xx: Add label property").

Signed-off-by: Michal Simek <michal.simek@amd.com>
---

 Documentation/devicetree/bindings/gpio/gpio-pca9570.yaml | 3 +++
 1 file changed, 3 insertions(+)
  

Comments

Rob Herring Feb. 2, 2024, 8:25 p.m. UTC | #1
On Thu, 01 Feb 2024 11:24:20 +0100, Michal Simek wrote:
> Add a label property to allow a custom name to be used for identifying
> a device on the board. This is useful when multiple devices are present on
> the same board. Similar change was done by commit ffae65fb1ae4
> ("dt-bindings: spi: spi-cadence: Add label property") or by commit
> a53faa6bfa3b ("dt-bindings: hwmon: ina2xx: Add label property").
> 
> Signed-off-by: Michal Simek <michal.simek@amd.com>
> ---
> 
>  Documentation/devicetree/bindings/gpio/gpio-pca9570.yaml | 3 +++
>  1 file changed, 3 insertions(+)
> 

Acked-by: Rob Herring <robh@kernel.org>
  
Bartosz Golaszewski Feb. 5, 2024, 8:30 a.m. UTC | #2
On Thu, Feb 1, 2024 at 11:24 AM Michal Simek <michal.simek@amd.com> wrote:
>
> Add a label property to allow a custom name to be used for identifying
> a device on the board. This is useful when multiple devices are present on
> the same board. Similar change was done by commit ffae65fb1ae4
> ("dt-bindings: spi: spi-cadence: Add label property") or by commit
> a53faa6bfa3b ("dt-bindings: hwmon: ina2xx: Add label property").
>
> Signed-off-by: Michal Simek <michal.simek@amd.com>
> ---
>
>  Documentation/devicetree/bindings/gpio/gpio-pca9570.yaml | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/gpio/gpio-pca9570.yaml b/Documentation/devicetree/bindings/gpio/gpio-pca9570.yaml
> index 452f8972a965..6f73961001b7 100644
> --- a/Documentation/devicetree/bindings/gpio/gpio-pca9570.yaml
> +++ b/Documentation/devicetree/bindings/gpio/gpio-pca9570.yaml
> @@ -28,6 +28,9 @@ properties:
>      minItems: 4
>      maxItems: 8
>
> +  label:
> +    description: A descriptive name for this device.
> +
>  required:
>    - compatible
>    - reg
> --
> 2.36.1
>

Applied, thanks!

Bart
  

Patch

diff --git a/Documentation/devicetree/bindings/gpio/gpio-pca9570.yaml b/Documentation/devicetree/bindings/gpio/gpio-pca9570.yaml
index 452f8972a965..6f73961001b7 100644
--- a/Documentation/devicetree/bindings/gpio/gpio-pca9570.yaml
+++ b/Documentation/devicetree/bindings/gpio/gpio-pca9570.yaml
@@ -28,6 +28,9 @@  properties:
     minItems: 4
     maxItems: 8
 
+  label:
+    description: A descriptive name for this device.
+
 required:
   - compatible
   - reg