Path: blob/master/Documentation/devicetree/bindings/crypto/allwinner,sun8i-ce.yaml
26308 views
# SPDX-License-Identifier: GPL-2.01%YAML 1.22---3$id: http://devicetree.org/schemas/crypto/allwinner,sun8i-ce.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Allwinner Crypto Engine driver78maintainers:9- Corentin Labbe <clabbe.montjoie@gmail.com>1011properties:12compatible:13enum:14- allwinner,sun8i-h3-crypto15- allwinner,sun8i-r40-crypto16- allwinner,sun20i-d1-crypto17- allwinner,sun50i-a64-crypto18- allwinner,sun50i-h5-crypto19- allwinner,sun50i-h6-crypto20- allwinner,sun50i-h616-crypto2122reg:23maxItems: 12425interrupts:26maxItems: 12728clocks:29items:30- description: Bus clock31- description: Module clock32- description: MBus clock33- description: TRNG clock (RC oscillator)34minItems: 23536clock-names:37items:38- const: bus39- const: mod40- const: ram41- const: trng42minItems: 24344resets:45maxItems: 14647if:48properties:49compatible:50enum:51- allwinner,sun20i-d1-crypto52- allwinner,sun50i-h616-crypto53then:54properties:55clocks:56minItems: 457clock-names:58minItems: 459else:60if:61properties:62compatible:63const: allwinner,sun50i-h6-crypto64then:65properties:66clocks:67minItems: 368maxItems: 369clock-names:70minItems: 371maxItems: 372else:73properties:74clocks:75maxItems: 276clock-names:77maxItems: 27879required:80- compatible81- reg82- interrupts83- clocks84- clock-names85- resets8687additionalProperties: false8889examples:90- |91#include <dt-bindings/interrupt-controller/arm-gic.h>92#include <dt-bindings/clock/sun50i-a64-ccu.h>93#include <dt-bindings/reset/sun50i-a64-ccu.h>9495crypto: crypto@1c15000 {96compatible = "allwinner,sun8i-h3-crypto";97reg = <0x01c15000 0x1000>;98interrupts = <GIC_SPI 94 IRQ_TYPE_LEVEL_HIGH>;99clocks = <&ccu CLK_BUS_CE>, <&ccu CLK_CE>;100clock-names = "bus", "mod";101resets = <&ccu RST_BUS_CE>;102};103104105