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

dt-bindings: crypto: Convert MXS DCP to json-schema

Convert the MXS DCP 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-1-git-send-email-Anson.Huang@nxp.com
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Anson Huang and committed by
Rob Herring
92ced918 92adc6bc

+51 -18
-18
Documentation/devicetree/bindings/crypto/fsl-dcp.txt
··· 1 - Freescale DCP (Data Co-Processor) found on i.MX23/i.MX28 . 2 - 3 - Required properties: 4 - - compatible : Should be "fsl,<soc>-dcp" 5 - - reg : Should contain MXS DCP registers location and length 6 - - interrupts : Should contain MXS DCP interrupt numbers, VMI IRQ and DCP IRQ 7 - must be supplied, optionally Secure IRQ can be present, but 8 - is currently not implemented and not used. 9 - - clocks : Clock reference (only required on some SOCs: 6ull and 6sll). 10 - - clock-names : Must be "dcp". 11 - 12 - Example: 13 - 14 - dcp: crypto@80028000 { 15 - compatible = "fsl,imx28-dcp", "fsl,imx23-dcp"; 16 - reg = <0x80028000 0x2000>; 17 - interrupts = <52 53>; 18 - };
+51
Documentation/devicetree/bindings/crypto/fsl-dcp.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-dcp.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Freescale DCP (Data Co-Processor) found on i.MX23/i.MX28 8 + 9 + maintainers: 10 + - Marek Vasut <marex@denx.de> 11 + 12 + properties: 13 + compatible: 14 + enum: 15 + - fsl,imx23-dcp 16 + - fsl,imx28-dcp 17 + 18 + reg: 19 + maxItems: 1 20 + 21 + interrupts: 22 + description: Should contain MXS DCP interrupt numbers, VMI IRQ and DCP IRQ 23 + must be supplied, optionally Secure IRQ can be present, but is currently 24 + not implemented and not used. 25 + items: 26 + - description: MXS DCP VMI interrupt 27 + - description: MXS DCP DCP interrupt 28 + - description: MXS DCP secure interrupt 29 + minItems: 2 30 + maxItems: 3 31 + 32 + clocks: 33 + maxItems: 1 34 + 35 + clock-names: 36 + const: dcp 37 + 38 + required: 39 + - compatible 40 + - reg 41 + - interrupts 42 + 43 + additionalProperties: false 44 + 45 + examples: 46 + - | 47 + crypto@80028000 { 48 + compatible = "fsl,imx23-dcp"; 49 + reg = <0x80028000 0x2000>; 50 + interrupts = <53>, <54>; 51 + };