linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] dt-bindings: crypto: Convert MXS DCP to json-schema
@ 2020-08-05  2:43 Anson Huang
  2020-08-05  2:43 ` [PATCH 2/3] dt-bindings: crypto: Convert i.MX SCC " Anson Huang
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Anson Huang @ 2020-08-05  2:43 UTC (permalink / raw)
  To: herbert, davem, robh+dt, shawnguo, s.hauer, kernel, festevam,
	marex, s.trumtrar, linux-crypto, devicetree, linux-kernel,
	linux-arm-kernel
  Cc: Linux-imx

Convert the MXS DCP binding to DT schema format using json-schema.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
---
 .../devicetree/bindings/crypto/fsl-dcp.txt         | 18 --------
 .../devicetree/bindings/crypto/fsl-dcp.yaml        | 49 ++++++++++++++++++++++
 2 files changed, 49 insertions(+), 18 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/crypto/fsl-dcp.txt
 create mode 100644 Documentation/devicetree/bindings/crypto/fsl-dcp.yaml

diff --git a/Documentation/devicetree/bindings/crypto/fsl-dcp.txt b/Documentation/devicetree/bindings/crypto/fsl-dcp.txt
deleted file mode 100644
index 513499f..0000000
--- a/Documentation/devicetree/bindings/crypto/fsl-dcp.txt
+++ /dev/null
@@ -1,18 +0,0 @@
-Freescale DCP (Data Co-Processor) found on i.MX23/i.MX28 .
-
-Required properties:
-- compatible : Should be "fsl,<soc>-dcp"
-- reg : Should contain MXS DCP registers location and length
-- interrupts : Should contain MXS DCP interrupt numbers, VMI IRQ and DCP IRQ
-               must be supplied, optionally Secure IRQ can be present, but
-	       is currently not implemented and not used.
-- clocks : Clock reference (only required on some SOCs: 6ull and 6sll).
-- clock-names : Must be "dcp".
-
-Example:
-
-dcp: crypto@80028000 {
-	compatible = "fsl,imx28-dcp", "fsl,imx23-dcp";
-	reg = <0x80028000 0x2000>;
-	interrupts = <52 53>;
-};
diff --git a/Documentation/devicetree/bindings/crypto/fsl-dcp.yaml b/Documentation/devicetree/bindings/crypto/fsl-dcp.yaml
new file mode 100644
index 0000000..1ed86cd
--- /dev/null
+++ b/Documentation/devicetree/bindings/crypto/fsl-dcp.yaml
@@ -0,0 +1,49 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/crypto/fsl-dcp.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Freescale DCP (Data Co-Processor) found on i.MX23/i.MX28
+
+maintainers:
+  - Marek Vasut <marex@denx.de>
+
+properties:
+  compatible:
+    enum:
+      - fsl,imx23-dcp
+      - fsl,imx28-dcp
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    description: Should contain MXS DCP interrupt numbers, VMI IRQ and DCP IRQ
+      must be supplied, optionally Secure IRQ can be present, but is currently
+      not implemented and not used.
+    items:
+      - description: MXS DCP VMI interrupt
+      - description: MXS DCP DCP interrupt
+      - description: MXS DCP secure interrupt
+    minItems: 2
+    maxItems: 3
+
+  clocks:
+    maxItems: 1
+
+  clock-names:
+    const: dcp
+
+required:
+  - compatible
+  - reg
+  - interrupts
+
+examples:
+  - |
+    crypto@80028000 {
+        compatible = "fsl,imx23-dcp";
+        reg = <0x80028000 0x2000>;
+        interrupts = <53>, <54>;
+    };
-- 
2.7.4


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

* [PATCH 2/3] dt-bindings: crypto: Convert i.MX SCC to json-schema
  2020-08-05  2:43 [PATCH 1/3] dt-bindings: crypto: Convert MXS DCP to json-schema Anson Huang
@ 2020-08-05  2:43 ` Anson Huang
  2020-08-17 21:33   ` Rob Herring
  2020-08-05  2:43 ` [PATCH 3/3] dt-bindings: crypto: Convert i.MX sahara " Anson Huang
  2020-08-17 21:33 ` [PATCH 1/3] dt-bindings: crypto: Convert MXS DCP " Rob Herring
  2 siblings, 1 reply; 6+ messages in thread
From: Anson Huang @ 2020-08-05  2:43 UTC (permalink / raw)
  To: herbert, davem, robh+dt, shawnguo, s.hauer, kernel, festevam,
	marex, s.trumtrar, linux-crypto, devicetree, linux-kernel,
	linux-arm-kernel
  Cc: Linux-imx

Convert the i.MX SCC binding to DT schema format using json-schema.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
---
 .../devicetree/bindings/crypto/fsl-imx-scc.txt     | 21 ---------
 .../devicetree/bindings/crypto/fsl-imx-scc.yaml    | 52 ++++++++++++++++++++++
 2 files changed, 52 insertions(+), 21 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/crypto/fsl-imx-scc.txt
 create mode 100644 Documentation/devicetree/bindings/crypto/fsl-imx-scc.yaml

diff --git a/Documentation/devicetree/bindings/crypto/fsl-imx-scc.txt b/Documentation/devicetree/bindings/crypto/fsl-imx-scc.txt
deleted file mode 100644
index 7aad448..0000000
--- a/Documentation/devicetree/bindings/crypto/fsl-imx-scc.txt
+++ /dev/null
@@ -1,21 +0,0 @@
-Freescale Security Controller (SCC)
-
-Required properties:
-- compatible : Should be "fsl,imx25-scc".
-- reg : Should contain register location and length.
-- interrupts : Should contain interrupt numbers for SCM IRQ and SMN IRQ.
-- interrupt-names : Should specify the names "scm" and "smn" for the
-		    SCM IRQ and SMN IRQ.
-- clocks: Should contain the clock driving the SCC core.
-- clock-names: Should be set to "ipg".
-
-Example:
-
-	scc: crypto@53fac000 {
-		compatible = "fsl,imx25-scc";
-		reg = <0x53fac000 0x4000>;
-		clocks = <&clks 111>;
-		clock-names = "ipg";
-		interrupts = <49>, <50>;
-		interrupt-names = "scm", "smn";
-	};
diff --git a/Documentation/devicetree/bindings/crypto/fsl-imx-scc.yaml b/Documentation/devicetree/bindings/crypto/fsl-imx-scc.yaml
new file mode 100644
index 0000000..b259192
--- /dev/null
+++ b/Documentation/devicetree/bindings/crypto/fsl-imx-scc.yaml
@@ -0,0 +1,52 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/crypto/fsl-imx-scc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Freescale Security Controller (SCC)
+
+maintainers:
+  - Steffen Trumtrar <s.trumtrar@pengutronix.de>
+
+properties:
+  compatible:
+    const: fsl,imx25-scc
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    items:
+      - description: SCC SCM interrupt
+      - description: SCC SMN interrupt
+
+  interrupt-names:
+    items:
+      - const: scm
+      - const: smn
+
+  clocks:
+    maxItems: 1
+
+  clock-names:
+    const: ipg
+
+required:
+  - compatible
+  - reg
+  - interrupts
+  - interrupt-names
+  - clocks
+  - clock-names
+
+examples:
+  - |
+    crypto@53fac000 {
+        compatible = "fsl,imx25-scc";
+        reg = <0x53fac000 0x4000>;
+        clocks = <&clks 111>;
+        clock-names = "ipg";
+        interrupts = <49>, <50>;
+        interrupt-names = "scm", "smn";
+    };
-- 
2.7.4


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

* [PATCH 3/3] dt-bindings: crypto: Convert i.MX sahara to json-schema
  2020-08-05  2:43 [PATCH 1/3] dt-bindings: crypto: Convert MXS DCP to json-schema Anson Huang
  2020-08-05  2:43 ` [PATCH 2/3] dt-bindings: crypto: Convert i.MX SCC " Anson Huang
@ 2020-08-05  2:43 ` Anson Huang
  2020-08-17 21:34   ` Rob Herring
  2020-08-17 21:33 ` [PATCH 1/3] dt-bindings: crypto: Convert MXS DCP " Rob Herring
  2 siblings, 1 reply; 6+ messages in thread
From: Anson Huang @ 2020-08-05  2:43 UTC (permalink / raw)
  To: herbert, davem, robh+dt, shawnguo, s.hauer, kernel, festevam,
	marex, s.trumtrar, linux-crypto, devicetree, linux-kernel,
	linux-arm-kernel
  Cc: Linux-imx

Convert the i.MX sahara binding to DT schema format using json-schema.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
---
 .../devicetree/bindings/crypto/fsl-imx-sahara.txt  | 15 ----------
 .../devicetree/bindings/crypto/fsl-imx-sahara.yaml | 35 ++++++++++++++++++++++
 2 files changed, 35 insertions(+), 15 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/crypto/fsl-imx-sahara.txt
 create mode 100644 Documentation/devicetree/bindings/crypto/fsl-imx-sahara.yaml

diff --git a/Documentation/devicetree/bindings/crypto/fsl-imx-sahara.txt b/Documentation/devicetree/bindings/crypto/fsl-imx-sahara.txt
deleted file mode 100644
index db690b1..0000000
--- a/Documentation/devicetree/bindings/crypto/fsl-imx-sahara.txt
+++ /dev/null
@@ -1,15 +0,0 @@
-Freescale SAHARA Cryptographic Accelerator included in some i.MX chips.
-Currently only i.MX27 and i.MX53 are supported.
-
-Required properties:
-- compatible : Should be "fsl,<soc>-sahara"
-- reg : Should contain SAHARA registers location and length
-- interrupts : Should contain SAHARA interrupt number
-
-Example:
-
-sah: crypto@10025000 {
-	compatible = "fsl,imx27-sahara";
-	reg = <	0x10025000 0x800>;
-	interrupts = <75>;
-};
diff --git a/Documentation/devicetree/bindings/crypto/fsl-imx-sahara.yaml b/Documentation/devicetree/bindings/crypto/fsl-imx-sahara.yaml
new file mode 100644
index 0000000..3cabc6b
--- /dev/null
+++ b/Documentation/devicetree/bindings/crypto/fsl-imx-sahara.yaml
@@ -0,0 +1,35 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/crypto/fsl-imx-sahara.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Freescale SAHARA Cryptographic Accelerator included in some i.MX chips
+
+maintainers:
+  - Steffen Trumtrar <s.trumtrar@pengutronix.de>
+
+properties:
+  compatible:
+    enum:
+      - fsl,imx27-sahara
+      - fsl,imx53-sahara
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+  - interrupts
+
+examples:
+  - |
+    crypto@10025000 {
+        compatible = "fsl,imx27-sahara";
+        reg = < 0x10025000 0x800>;
+        interrupts = <75>;
+    };
-- 
2.7.4


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

* Re: [PATCH 1/3] dt-bindings: crypto: Convert MXS DCP to json-schema
  2020-08-05  2:43 [PATCH 1/3] dt-bindings: crypto: Convert MXS DCP to json-schema Anson Huang
  2020-08-05  2:43 ` [PATCH 2/3] dt-bindings: crypto: Convert i.MX SCC " Anson Huang
  2020-08-05  2:43 ` [PATCH 3/3] dt-bindings: crypto: Convert i.MX sahara " Anson Huang
@ 2020-08-17 21:33 ` Rob Herring
  2 siblings, 0 replies; 6+ messages in thread
From: Rob Herring @ 2020-08-17 21:33 UTC (permalink / raw)
  To: Anson Huang
  Cc: kernel, shawnguo, s.trumtrar, linux-arm-kernel, Linux-imx,
	linux-kernel, s.hauer, linux-crypto, robh+dt, davem, devicetree,
	marex, herbert, festevam

On Wed, 05 Aug 2020 10:43:28 +0800, Anson Huang wrote:
> Convert the MXS DCP binding to DT schema format using json-schema.
> 
> Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
> ---
>  .../devicetree/bindings/crypto/fsl-dcp.txt         | 18 --------
>  .../devicetree/bindings/crypto/fsl-dcp.yaml        | 49 ++++++++++++++++++++++
>  2 files changed, 49 insertions(+), 18 deletions(-)
>  delete mode 100644 Documentation/devicetree/bindings/crypto/fsl-dcp.txt
>  create mode 100644 Documentation/devicetree/bindings/crypto/fsl-dcp.yaml
> 

Applied, thanks!

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

* Re: [PATCH 2/3] dt-bindings: crypto: Convert i.MX SCC to json-schema
  2020-08-05  2:43 ` [PATCH 2/3] dt-bindings: crypto: Convert i.MX SCC " Anson Huang
@ 2020-08-17 21:33   ` Rob Herring
  0 siblings, 0 replies; 6+ messages in thread
From: Rob Herring @ 2020-08-17 21:33 UTC (permalink / raw)
  To: Anson Huang
  Cc: herbert, linux-kernel, festevam, s.trumtrar, devicetree,
	Linux-imx, shawnguo, davem, marex, linux-arm-kernel, s.hauer,
	robh+dt, kernel, linux-crypto

On Wed, 05 Aug 2020 10:43:29 +0800, Anson Huang wrote:
> Convert the i.MX SCC binding to DT schema format using json-schema.
> 
> Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
> ---
>  .../devicetree/bindings/crypto/fsl-imx-scc.txt     | 21 ---------
>  .../devicetree/bindings/crypto/fsl-imx-scc.yaml    | 52 ++++++++++++++++++++++
>  2 files changed, 52 insertions(+), 21 deletions(-)
>  delete mode 100644 Documentation/devicetree/bindings/crypto/fsl-imx-scc.txt
>  create mode 100644 Documentation/devicetree/bindings/crypto/fsl-imx-scc.yaml
> 

Applied, thanks!

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

* Re: [PATCH 3/3] dt-bindings: crypto: Convert i.MX sahara to json-schema
  2020-08-05  2:43 ` [PATCH 3/3] dt-bindings: crypto: Convert i.MX sahara " Anson Huang
@ 2020-08-17 21:34   ` Rob Herring
  0 siblings, 0 replies; 6+ messages in thread
From: Rob Herring @ 2020-08-17 21:34 UTC (permalink / raw)
  To: Anson Huang
  Cc: linux-crypto, davem, linux-arm-kernel, s.hauer, s.trumtrar,
	devicetree, robh+dt, shawnguo, Linux-imx, marex, linux-kernel,
	festevam, kernel, herbert

On Wed, 05 Aug 2020 10:43:30 +0800, Anson Huang wrote:
> Convert the i.MX sahara binding to DT schema format using json-schema.
> 
> Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
> ---
>  .../devicetree/bindings/crypto/fsl-imx-sahara.txt  | 15 ----------
>  .../devicetree/bindings/crypto/fsl-imx-sahara.yaml | 35 ++++++++++++++++++++++
>  2 files changed, 35 insertions(+), 15 deletions(-)
>  delete mode 100644 Documentation/devicetree/bindings/crypto/fsl-imx-sahara.txt
>  create mode 100644 Documentation/devicetree/bindings/crypto/fsl-imx-sahara.yaml
> 

Applied, thanks!

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

end of thread, other threads:[~2020-08-17 21:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-05  2:43 [PATCH 1/3] dt-bindings: crypto: Convert MXS DCP to json-schema Anson Huang
2020-08-05  2:43 ` [PATCH 2/3] dt-bindings: crypto: Convert i.MX SCC " Anson Huang
2020-08-17 21:33   ` Rob Herring
2020-08-05  2:43 ` [PATCH 3/3] dt-bindings: crypto: Convert i.MX sahara " Anson Huang
2020-08-17 21:34   ` Rob Herring
2020-08-17 21:33 ` [PATCH 1/3] dt-bindings: crypto: Convert MXS DCP " Rob Herring

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).