StarFive Cryptographic Module
Schema identifier ($id): "http://devicetree.org/schemas/crypto/starfive,jh7110-crypto.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jia Jie Ho <jiajie.ho@starfivetech.com>", "William Qiu <william.qiu@starfivetech.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "starfive,jh7110-crypto", "starfive,jh8100-crypto"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Array item rules (items) #
Item 1
Hardware reference clock
Item 2
AHB reference clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"hclk"
Item 2
Exact value (
const):"ahb"
interrupts — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
SHA2 module irq
Item 2
SM3 module irq
resets — required here #
Maximum number of items (maxItems): 1
dmas — required here #
Array item rules (items) #
Item 1
TX DMA channel
Item 2
RX DMA channel
dma-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"tx"
Item 2
Exact value (
const):"rx"
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "resets", "dmas", "dma-names"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereExact value (
const):"starfive,jh7110-crypto"When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereMaximum number of items (
maxItems):1
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereExact value (
const):"starfive,jh8100-crypto"When the condition matches (
then) #Properties and child nodes (
properties)
interrupts— not listed as required hereMinimum number of items (
minItems):2
Examples (examples) #
crypto: crypto@16000000 {
compatible = "starfive,jh7110-crypto";
reg = <0x16000000 0x4000>;
clocks = <&clk 15>, <&clk 16>;
clock-names = "hclk", "ahb";
interrupts = <28>;
resets = <&reset 3>;
dmas = <&dma 1 2>,
<&dma 0 2>;
dma-names = "tx", "rx";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)