linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: i2c: Convert arm,i2c-versatile to DT schema
@ 2022-06-06 18:43 Rob Herring
  2022-06-07 12:16 ` Krzysztof Kozlowski
  2022-06-08 19:48 ` Wolfram Sang
  0 siblings, 2 replies; 3+ messages in thread
From: Rob Herring @ 2022-06-06 18:43 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Linus Walleij; +Cc: linux-i2c, devicetree, linux-kernel

Convert the arm,i2c-versatile binding to DT schema format.

Signed-off-by: Rob Herring <robh@kernel.org>
---
 .../bindings/i2c/arm,i2c-versatile.yaml       | 29 +++++++++++++++++++
 .../devicetree/bindings/i2c/i2c-versatile.txt | 10 -------
 MAINTAINERS                                   |  2 +-
 3 files changed, 30 insertions(+), 11 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/i2c/arm,i2c-versatile.yaml
 delete mode 100644 Documentation/devicetree/bindings/i2c/i2c-versatile.txt

diff --git a/Documentation/devicetree/bindings/i2c/arm,i2c-versatile.yaml b/Documentation/devicetree/bindings/i2c/arm,i2c-versatile.yaml
new file mode 100644
index 000000000000..e58465d1b0c8
--- /dev/null
+++ b/Documentation/devicetree/bindings/i2c/arm,i2c-versatile.yaml
@@ -0,0 +1,29 @@
+# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/i2c/arm,i2c-versatile.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: I2C Controller on ARM Ltd development platforms
+
+maintainers:
+  - Linus Walleij <linus.walleij@linaro.org>
+
+allOf:
+  - $ref: /schemas/i2c/i2c-controller.yaml#
+
+properties:
+  compatible:
+    const: arm,versatile-i2c
+
+  reg:
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+
+unevaluatedProperties: false
+
+...
+
diff --git a/Documentation/devicetree/bindings/i2c/i2c-versatile.txt b/Documentation/devicetree/bindings/i2c/i2c-versatile.txt
deleted file mode 100644
index 361d31c51b6f..000000000000
--- a/Documentation/devicetree/bindings/i2c/i2c-versatile.txt
+++ /dev/null
@@ -1,10 +0,0 @@
-i2c Controller on ARM Versatile platform:
-
-Required properties:
-- compatible : Must be "arm,versatile-i2c";
-- reg
-- #address-cells = <1>;
-- #size-cells = <0>;
-
-Optional properties:
-- Child nodes conforming to i2c bus binding
diff --git a/MAINTAINERS b/MAINTAINERS
index a6d3bd9d2a8d..ecc0907e312a 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -1520,7 +1520,7 @@ F:	Documentation/devicetree/bindings/arm/arm,versatile.yaml
 F:	Documentation/devicetree/bindings/arm/arm,vexpress-juno.yaml
 F:	Documentation/devicetree/bindings/auxdisplay/arm,versatile-lcd.yaml
 F:	Documentation/devicetree/bindings/clock/arm,syscon-icst.yaml
-F:	Documentation/devicetree/bindings/i2c/i2c-versatile.txt
+F:	Documentation/devicetree/bindings/i2c/arn,i2c-versatile.yaml
 F:	Documentation/devicetree/bindings/interrupt-controller/arm,versatile-fpga-irq.txt
 F:	Documentation/devicetree/bindings/mtd/mtd-physmap.yaml
 F:	arch/arm/boot/dts/arm-realview-*
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] dt-bindings: i2c: Convert arm,i2c-versatile to DT schema
  2022-06-06 18:43 [PATCH] dt-bindings: i2c: Convert arm,i2c-versatile to DT schema Rob Herring
@ 2022-06-07 12:16 ` Krzysztof Kozlowski
  2022-06-08 19:48 ` Wolfram Sang
  1 sibling, 0 replies; 3+ messages in thread
From: Krzysztof Kozlowski @ 2022-06-07 12:16 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Linus Walleij
  Cc: linux-i2c, devicetree, linux-kernel

On 06/06/2022 20:43, Rob Herring wrote:
> Convert the arm,i2c-versatile binding to DT schema format.
> 
> Signed-off-by: Rob Herring <robh@kernel.org>
> ---
>  .../bindings/i2c/arm,i2c-versatile.yaml       | 29 +++++++++++++++++++
>  .../devicetree/bindings/i2c/i2c-versatile.txt | 10 -------
>  MAINTAINERS                                   |  2 +-
>  3 files changed, 30 insertions(+), 11 deletions(-)
>  create mode 100644 Documentation/devicetree/bindings/i2c/arm,i2c-versatile.yaml
>  delete mode 100644 Documentation/devicetree/bindings/i2c/i2c-versatile.txt
> 
> diff --git a/Documentation/devicetree/bindings/i2c/arm,i2c-versatile.yaml b/Documentation/devicetree/bindings/i2c/arm,i2c-versatile.yaml
> new file mode 100644
> index 000000000000..e58465d1b0c8
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/i2c/arm,i2c-versatile.yaml
> @@ -0,0 +1,29 @@
> +# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/i2c/arm,i2c-versatile.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: I2C Controller on ARM Ltd development platforms
> +
> +maintainers:
> +  - Linus Walleij <linus.walleij@linaro.org>
> +
> +allOf:
> +  - $ref: /schemas/i2c/i2c-controller.yaml#
> +
> +properties:
> +  compatible:
> +    const: arm,versatile-i2c
> +
> +  reg:
> +    maxItems: 1
> +
> +required:
> +  - compatible
> +  - reg
> +
> +unevaluatedProperties: false
> +
> +...
> +
> diff --git a/Documentation/devicetree/bindings/i2c/i2c-versatile.txt b/Documentation/devicetree/bindings/i2c/i2c-versatile.txt
> deleted file mode 100644
> index 361d31c51b6f..000000000000
> --- a/Documentation/devicetree/bindings/i2c/i2c-versatile.txt
> +++ /dev/null
> @@ -1,10 +0,0 @@
> -i2c Controller on ARM Versatile platform:
> -
> -Required properties:
> -- compatible : Must be "arm,versatile-i2c";
> -- reg
> -- #address-cells = <1>;
> -- #size-cells = <0>;
> -
> -Optional properties:
> -- Child nodes conforming to i2c bus binding
> diff --git a/MAINTAINERS b/MAINTAINERS
> index a6d3bd9d2a8d..ecc0907e312a 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -1520,7 +1520,7 @@ F:	Documentation/devicetree/bindings/arm/arm,versatile.yaml
>  F:	Documentation/devicetree/bindings/arm/arm,vexpress-juno.yaml
>  F:	Documentation/devicetree/bindings/auxdisplay/arm,versatile-lcd.yaml
>  F:	Documentation/devicetree/bindings/clock/arm,syscon-icst.yaml
> -F:	Documentation/devicetree/bindings/i2c/i2c-versatile.txt
> +F:	Documentation/devicetree/bindings/i2c/arn,i2c-versatile.yaml

typo:
s/arn/arm/

With that:

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>


Best regards,
Krzysztof

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] dt-bindings: i2c: Convert arm,i2c-versatile to DT schema
  2022-06-06 18:43 [PATCH] dt-bindings: i2c: Convert arm,i2c-versatile to DT schema Rob Herring
  2022-06-07 12:16 ` Krzysztof Kozlowski
@ 2022-06-08 19:48 ` Wolfram Sang
  1 sibling, 0 replies; 3+ messages in thread
From: Wolfram Sang @ 2022-06-08 19:48 UTC (permalink / raw)
  To: Rob Herring
  Cc: Krzysztof Kozlowski, Linus Walleij, linux-i2c, devicetree, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 225 bytes --]

On Mon, Jun 06, 2022 at 01:43:39PM -0500, Rob Herring wrote:
> Convert the arm,i2c-versatile binding to DT schema format.
> 
> Signed-off-by: Rob Herring <robh@kernel.org>

Fixed typo and applied to for-next, thanks!


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-06-08 19:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-06 18:43 [PATCH] dt-bindings: i2c: Convert arm,i2c-versatile to DT schema Rob Herring
2022-06-07 12:16 ` Krzysztof Kozlowski
2022-06-08 19:48 ` Wolfram Sang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).