From: Cristian Ciocaltea <cristian.ciocaltea@gmail.com>
To: "Rob Herring" <robh+dt@kernel.org>,
"Wolfram Sang" <wsa@kernel.org>,
"Andreas Färber" <afaerber@suse.de>,
"Manivannan Sadhasivam" <manivannan.sadhasivam@linaro.org>
Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-actions@lists.infradead.org, linux-kernel@vger.kernel.org,
linux-i2c@vger.kernel.org
Subject: [PATCH v2 10/18] dt-bindings: i2c: owl: Convert Actions Semi Owl binding to a schema
Date: Fri, 20 Nov 2020 01:56:04 +0200 [thread overview]
Message-ID: <2521d2e63efcd125a4fe93ee55435f399157ab39.1605823502.git.cristian.ciocaltea@gmail.com> (raw)
In-Reply-To: <cover.1605823502.git.cristian.ciocaltea@gmail.com>
Convert the Actions Semi Owl I2C DT binding to a YAML schema for
enabling DT validation.
Additionally, add a new compatible string corresponding to the I2C
controller found in the S500 variant of the Actions Semi Owl SoCs
family.
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@gmail.com>
---
.../devicetree/bindings/i2c/i2c-owl.txt | 29 ---------
.../devicetree/bindings/i2c/i2c-owl.yaml | 62 +++++++++++++++++++
2 files changed, 62 insertions(+), 29 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/i2c/i2c-owl.txt
create mode 100644 Documentation/devicetree/bindings/i2c/i2c-owl.yaml
diff --git a/Documentation/devicetree/bindings/i2c/i2c-owl.txt b/Documentation/devicetree/bindings/i2c/i2c-owl.txt
deleted file mode 100644
index 54c05dbdb2e4..000000000000
--- a/Documentation/devicetree/bindings/i2c/i2c-owl.txt
+++ /dev/null
@@ -1,29 +0,0 @@
-Actions Semiconductor Owl I2C controller
-
-Required properties:
-
-- compatible : Should be one of the following:
- - "actions,s700-i2c" for S700 SoC
- - "actions,s900-i2c" for S900 SoC
-- reg : Offset and length of the register set for the device.
-- #address-cells : Should be 1.
-- #size-cells : Should be 0.
-- interrupts : A single interrupt specifier.
-- clocks : Phandle of the clock feeding the I2C controller.
-
-Optional properties:
-
-- clock-frequency : Desired I2C bus clock frequency in Hz. As only Normal and
- Fast modes are supported, possible values are 100000 and
- 400000.
-Examples:
-
- i2c0: i2c@e0170000 {
- compatible = "actions,s900-i2c";
- reg = <0 0xe0170000 0 0x1000>;
- #address-cells = <1>;
- #size-cells = <0>;
- interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
- clocks = <&clock CLK_I2C0>;
- clock-frequency = <100000>;
- };
diff --git a/Documentation/devicetree/bindings/i2c/i2c-owl.yaml b/Documentation/devicetree/bindings/i2c/i2c-owl.yaml
new file mode 100644
index 000000000000..d96908badf81
--- /dev/null
+++ b/Documentation/devicetree/bindings/i2c/i2c-owl.yaml
@@ -0,0 +1,62 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/i2c/i2c-owl.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Actions Semi Owl I2C Controller
+
+maintainers:
+ - Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
+
+description: |
+ This I2C controller is found in the Actions Semi Owl SoCs:
+ S500, S700 and S900.
+
+allOf:
+ - $ref: /schemas/i2c/i2c-controller.yaml#
+
+properties:
+ compatible:
+ enum:
+ - actions,s500-i2c # Actions Semi S500 compatible SoCs
+ - actions,s700-i2c # Actions Semi S700 compatible SoCs
+ - actions,s900-i2c # Actions Semi S900 compatible SoCs
+
+ reg:
+ maxItems: 1
+
+ interrupts:
+ maxItems: 1
+
+ clocks:
+ description: Phandle of the clock feeding the I2C controller.
+ minItems: 1
+
+ clock-frequency:
+ description: |
+ Desired I2C bus clock frequency in Hz. As only Standard and Fast
+ modes are supported, possible values are 100000 and 400000.
+ enum: [100000, 400000]
+
+required:
+ - compatible
+ - reg
+ - interrupts
+ - clocks
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/clock/actions,s900-cmu.h>
+ #include <dt-bindings/interrupt-controller/arm-gic.h>
+ i2c@e0170000 {
+ compatible = "actions,s900-i2c";
+ reg = <0xe0170000 0x1000>;
+ interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
+ clocks = <&cmu CLK_I2C0>;
+ clock-frequency = <100000>;
+ };
+
+...
--
2.29.2
next prev parent reply other threads:[~2020-11-19 23:56 UTC|newest]
Thread overview: 64+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-11-19 23:55 [PATCH v2 00/18] Add CMU/RMU/DMA/MMC/I2C support for Actions Semi S500 SoCs Cristian Ciocaltea
2020-11-19 23:55 ` [PATCH v2 01/18] arm: dts: owl-s500: Add Clock Management Unit Cristian Ciocaltea
2020-11-28 7:22 ` Manivannan Sadhasivam
2020-11-29 17:55 ` Cristian Ciocaltea
2020-11-19 23:55 ` [PATCH v2 02/18] arm: dts: owl-s500: Set CMU clocks for UARTs Cristian Ciocaltea
2020-11-28 7:25 ` Manivannan Sadhasivam
2020-11-29 18:09 ` Cristian Ciocaltea
2020-11-19 23:55 ` [PATCH v2 03/18] arm: dts: owl-s500: Add Reset controller Cristian Ciocaltea
2020-11-28 7:25 ` Manivannan Sadhasivam
2020-11-19 23:55 ` [PATCH v2 04/18] dt-bindings: dma: owl: Add compatible string for Actions Semi S500 SoC Cristian Ciocaltea
2020-11-28 7:29 ` Manivannan Sadhasivam
2020-11-28 7:29 ` Manivannan Sadhasivam
2020-11-29 18:15 ` Cristian Ciocaltea
2020-12-07 22:11 ` Rob Herring
2020-12-07 22:56 ` Cristian Ciocaltea
2020-11-19 23:55 ` [PATCH v2 05/18] dmaengine: owl: Add compatible for the Actions Semi S500 DMA controller Cristian Ciocaltea
2020-11-28 7:30 ` Manivannan Sadhasivam
2020-11-29 18:24 ` Cristian Ciocaltea
2020-12-05 6:08 ` Manivannan Sadhasivam
2020-11-19 23:56 ` [PATCH v2 06/18] arm: dts: owl-s500: Add " Cristian Ciocaltea
2020-11-28 7:31 ` Manivannan Sadhasivam
2020-11-19 23:56 ` [PATCH v2 07/18] arm: dts: owl-s500: Add pinctrl & GPIO support Cristian Ciocaltea
2020-11-28 7:32 ` Manivannan Sadhasivam
2020-11-19 23:56 ` [PATCH v2 08/18] dt-bindings: mmc: owl: Add compatible string for Actions Semi S500 SoC Cristian Ciocaltea
2020-11-24 14:25 ` Ulf Hansson
2020-11-19 23:56 ` [PATCH v2 09/18] arm: dts: owl-s500: Add MMC support Cristian Ciocaltea
2020-11-24 14:25 ` Ulf Hansson
2020-11-24 14:53 ` Cristian Ciocaltea
2020-11-28 7:33 ` Manivannan Sadhasivam
2020-11-19 23:56 ` Cristian Ciocaltea [this message]
2020-12-07 22:12 ` [PATCH v2 10/18] dt-bindings: i2c: owl: Convert Actions Semi Owl binding to a schema Rob Herring
2020-12-07 22:58 ` Cristian Ciocaltea
2020-12-09 20:22 ` Wolfram Sang
2020-11-19 23:56 ` [PATCH v2 11/18] MAINTAINERS: Update entry for Actions Semi Owl I2C binding Cristian Ciocaltea
2020-12-09 20:22 ` Wolfram Sang
2020-11-19 23:56 ` [PATCH v2 12/18] i2c: owl: Add compatible for the Actions Semi S500 I2C controller Cristian Ciocaltea
2020-11-28 7:19 ` Manivannan Sadhasivam
2020-11-28 7:34 ` Manivannan Sadhasivam
2020-12-09 20:23 ` Wolfram Sang
2020-11-19 23:56 ` [PATCH v2 13/18] arm: dts: owl-s500: Add I2C support Cristian Ciocaltea
2020-11-28 7:35 ` Manivannan Sadhasivam
2020-12-09 20:25 ` Wolfram Sang
2020-12-10 3:33 ` Manivannan Sadhasivam
2020-11-19 23:56 ` [PATCH v2 14/18] arm: dts: owl-s500: Add SIRQ controller Cristian Ciocaltea
2020-11-28 7:35 ` Manivannan Sadhasivam
2020-11-19 23:56 ` [PATCH v2 15/18] arm: dts: owl-s500-roseapplepi: Use UART clock from CMU Cristian Ciocaltea
2020-11-28 7:36 ` Manivannan Sadhasivam
2020-11-29 18:26 ` Cristian Ciocaltea
2020-11-19 23:56 ` [PATCH v2 16/18] arm: dts: owl-s500-roseapplepi: Add uSD support Cristian Ciocaltea
2020-11-28 7:38 ` Manivannan Sadhasivam
2020-11-29 18:35 ` Cristian Ciocaltea
2020-12-05 6:01 ` Manivannan Sadhasivam
2020-11-19 23:56 ` [PATCH v2 17/18] arm: dts: owl-s500-roseapplepi: Add I2C pinctrl configuration Cristian Ciocaltea
2020-11-28 7:41 ` Manivannan Sadhasivam
2020-11-29 19:35 ` Cristian Ciocaltea
2020-11-19 23:56 ` [PATCH v2 18/18] MAINTAINERS: Add linux-actions ML for Actions Semi Arch Cristian Ciocaltea
2020-11-28 7:43 ` Manivannan Sadhasivam
2020-11-29 19:48 ` Cristian Ciocaltea
2020-11-30 0:54 ` Andreas Färber
2020-12-05 5:54 ` Manivannan Sadhasivam
2020-12-28 10:43 ` Cristian Ciocaltea
2020-12-28 10:59 ` Manivannan Sadhasivam
2020-12-05 6:11 ` [PATCH v2 00/18] Add CMU/RMU/DMA/MMC/I2C support for Actions Semi S500 SoCs Manivannan Sadhasivam
2020-12-05 16:29 ` Cristian Ciocaltea
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2521d2e63efcd125a4fe93ee55435f399157ab39.1605823502.git.cristian.ciocaltea@gmail.com \
--to=cristian.ciocaltea@gmail.com \
--cc=afaerber@suse.de \
--cc=devicetree@vger.kernel.org \
--cc=linux-actions@lists.infradead.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-i2c@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=manivannan.sadhasivam@linaro.org \
--cc=robh+dt@kernel.org \
--cc=wsa@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).