Commit 180208ce authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Rob Herring
Browse files

dt-bindings: crypto: ccree: Convert to json-schema



Convert the Arm TrustZone CryptoCell cryptographic engine Device Tree
binding documentation to json-schema.

Document missing properties.
Update the example to match reality.

Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: default avatarRob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/ab361a862755e281f5fef67b3f678d66ae201781.1623413974.git.geert+renesas@glider.be
parent 1e32084c
Loading
Loading
Loading
Loading
+53 −0
Original line number Diff line number Diff line
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/crypto/arm,cryptocell.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Arm TrustZone CryptoCell cryptographic engine

maintainers:
  - Gilad Ben-Yossef <gilad@benyossef.com>

properties:
  compatible:
    enum:
      - arm,cryptocell-713-ree
      - arm,cryptocell-703-ree
      - arm,cryptocell-712-ree
      - arm,cryptocell-710-ree
      - arm,cryptocell-630p-ree

  reg:
    maxItems: 1

  interrupts:
    maxItems: 1

  clocks:
    maxItems: 1

  power-domains:
    maxItems: 1

  resets:
    maxItems: 1

  dma-coherent: true

required:
  - compatible
  - reg
  - interrupts

additionalProperties: false

examples:
  - |
    #include <dt-bindings/interrupt-controller/arm-gic.h>

    arm_cc712: crypto@80000000 {
            compatible = "arm,cryptocell-712-ree";
            reg = <0x80000000 0x10000>;
            interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>;
    };
+0 −25
Original line number Diff line number Diff line
Arm TrustZone CryptoCell cryptographic engine

Required properties:
- compatible: Should be one of -
   "arm,cryptocell-713-ree"
   "arm,cryptocell-703-ree"
   "arm,cryptocell-712-ree"
   "arm,cryptocell-710-ree"
   "arm,cryptocell-630p-ree"
- reg: Base physical address of the engine and length of memory mapped region.
- interrupts: Interrupt number for the device.

Optional properties:
- clocks: Reference to the crypto engine clock.
- dma-coherent: Present if dma operations are coherent.

Examples:

       arm_cc712: crypto@80000000 {
               compatible = "arm,cryptocell-712-ree";
               interrupt-parent = <&intc>;
               interrupts = < 0 30 4 >;
               reg = < 0x80000000 0x10000 >;

       };