Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: crypto: Convert i.MX SCC to json-schema

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

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Link: https://lore.kernel.org/r/1596595410-26921-2-git-send-email-Anson.Huang@nxp.com
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Anson Huang and committed by
Rob Herring
921ab310 92ced918

+54 -21
-21
Documentation/devicetree/bindings/crypto/fsl-imx-scc.txt
··· 1 - Freescale Security Controller (SCC) 2 - 3 - Required properties: 4 - - compatible : Should be "fsl,imx25-scc". 5 - - reg : Should contain register location and length. 6 - - interrupts : Should contain interrupt numbers for SCM IRQ and SMN IRQ. 7 - - interrupt-names : Should specify the names "scm" and "smn" for the 8 - SCM IRQ and SMN IRQ. 9 - - clocks: Should contain the clock driving the SCC core. 10 - - clock-names: Should be set to "ipg". 11 - 12 - Example: 13 - 14 - scc: crypto@53fac000 { 15 - compatible = "fsl,imx25-scc"; 16 - reg = <0x53fac000 0x4000>; 17 - clocks = <&clks 111>; 18 - clock-names = "ipg"; 19 - interrupts = <49>, <50>; 20 - interrupt-names = "scm", "smn"; 21 - };
+54
Documentation/devicetree/bindings/crypto/fsl-imx-scc.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/crypto/fsl-imx-scc.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Freescale Security Controller (SCC) 8 + 9 + maintainers: 10 + - Steffen Trumtrar <s.trumtrar@pengutronix.de> 11 + 12 + properties: 13 + compatible: 14 + const: fsl,imx25-scc 15 + 16 + reg: 17 + maxItems: 1 18 + 19 + interrupts: 20 + items: 21 + - description: SCC SCM interrupt 22 + - description: SCC SMN interrupt 23 + 24 + interrupt-names: 25 + items: 26 + - const: scm 27 + - const: smn 28 + 29 + clocks: 30 + maxItems: 1 31 + 32 + clock-names: 33 + const: ipg 34 + 35 + required: 36 + - compatible 37 + - reg 38 + - interrupts 39 + - interrupt-names 40 + - clocks 41 + - clock-names 42 + 43 + additionalProperties: false 44 + 45 + examples: 46 + - | 47 + crypto@53fac000 { 48 + compatible = "fsl,imx25-scc"; 49 + reg = <0x53fac000 0x4000>; 50 + clocks = <&clks 111>; 51 + clock-names = "ipg"; 52 + interrupts = <49>, <50>; 53 + interrupt-names = "scm", "smn"; 54 + };