1f126890aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2f126890aSEmmanuel Vadot%YAML 1.2 3f126890aSEmmanuel Vadot--- 4f126890aSEmmanuel Vadot$id: http://devicetree.org/schemas/crypto/starfive,jh7110-crypto.yaml# 5f126890aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6f126890aSEmmanuel Vadot 7f126890aSEmmanuel Vadottitle: StarFive Cryptographic Module 8f126890aSEmmanuel Vadot 9f126890aSEmmanuel Vadotmaintainers: 10f126890aSEmmanuel Vadot - Jia Jie Ho <jiajie.ho@starfivetech.com> 11f126890aSEmmanuel Vadot - William Qiu <william.qiu@starfivetech.com> 12f126890aSEmmanuel Vadot 13f126890aSEmmanuel Vadotproperties: 14f126890aSEmmanuel Vadot compatible: 15*7d0873ebSEmmanuel Vadot enum: 16*7d0873ebSEmmanuel Vadot - starfive,jh7110-crypto 17*7d0873ebSEmmanuel Vadot - starfive,jh8100-crypto 18f126890aSEmmanuel Vadot 19f126890aSEmmanuel Vadot reg: 20f126890aSEmmanuel Vadot maxItems: 1 21f126890aSEmmanuel Vadot 22f126890aSEmmanuel Vadot clocks: 23f126890aSEmmanuel Vadot items: 24f126890aSEmmanuel Vadot - description: Hardware reference clock 25f126890aSEmmanuel Vadot - description: AHB reference clock 26f126890aSEmmanuel Vadot 27f126890aSEmmanuel Vadot clock-names: 28f126890aSEmmanuel Vadot items: 29f126890aSEmmanuel Vadot - const: hclk 30f126890aSEmmanuel Vadot - const: ahb 31f126890aSEmmanuel Vadot 32f126890aSEmmanuel Vadot interrupts: 33*7d0873ebSEmmanuel Vadot minItems: 1 34*7d0873ebSEmmanuel Vadot items: 35*7d0873ebSEmmanuel Vadot - description: SHA2 module irq 36*7d0873ebSEmmanuel Vadot - description: SM3 module irq 37f126890aSEmmanuel Vadot 38f126890aSEmmanuel Vadot resets: 39f126890aSEmmanuel Vadot maxItems: 1 40f126890aSEmmanuel Vadot 41f126890aSEmmanuel Vadot dmas: 42f126890aSEmmanuel Vadot items: 43f126890aSEmmanuel Vadot - description: TX DMA channel 44f126890aSEmmanuel Vadot - description: RX DMA channel 45f126890aSEmmanuel Vadot 46f126890aSEmmanuel Vadot dma-names: 47f126890aSEmmanuel Vadot items: 48f126890aSEmmanuel Vadot - const: tx 49f126890aSEmmanuel Vadot - const: rx 50f126890aSEmmanuel Vadot 51f126890aSEmmanuel Vadotrequired: 52f126890aSEmmanuel Vadot - compatible 53f126890aSEmmanuel Vadot - reg 54f126890aSEmmanuel Vadot - clocks 55f126890aSEmmanuel Vadot - clock-names 56f126890aSEmmanuel Vadot - resets 57f126890aSEmmanuel Vadot - dmas 58f126890aSEmmanuel Vadot - dma-names 59f126890aSEmmanuel Vadot 60f126890aSEmmanuel VadotadditionalProperties: false 61f126890aSEmmanuel Vadot 62*7d0873ebSEmmanuel VadotallOf: 63*7d0873ebSEmmanuel Vadot - if: 64*7d0873ebSEmmanuel Vadot properties: 65*7d0873ebSEmmanuel Vadot compatible: 66*7d0873ebSEmmanuel Vadot const: starfive,jh7110-crypto 67*7d0873ebSEmmanuel Vadot 68*7d0873ebSEmmanuel Vadot then: 69*7d0873ebSEmmanuel Vadot properties: 70*7d0873ebSEmmanuel Vadot interrupts: 71*7d0873ebSEmmanuel Vadot maxItems: 1 72*7d0873ebSEmmanuel Vadot 73*7d0873ebSEmmanuel Vadot - if: 74*7d0873ebSEmmanuel Vadot properties: 75*7d0873ebSEmmanuel Vadot compatible: 76*7d0873ebSEmmanuel Vadot const: starfive,jh8100-crypto 77*7d0873ebSEmmanuel Vadot 78*7d0873ebSEmmanuel Vadot then: 79*7d0873ebSEmmanuel Vadot properties: 80*7d0873ebSEmmanuel Vadot interrupts: 81*7d0873ebSEmmanuel Vadot minItems: 2 82*7d0873ebSEmmanuel Vadot 83f126890aSEmmanuel Vadotexamples: 84f126890aSEmmanuel Vadot - | 85f126890aSEmmanuel Vadot crypto: crypto@16000000 { 86f126890aSEmmanuel Vadot compatible = "starfive,jh7110-crypto"; 87f126890aSEmmanuel Vadot reg = <0x16000000 0x4000>; 88f126890aSEmmanuel Vadot clocks = <&clk 15>, <&clk 16>; 89f126890aSEmmanuel Vadot clock-names = "hclk", "ahb"; 90f126890aSEmmanuel Vadot interrupts = <28>; 91f126890aSEmmanuel Vadot resets = <&reset 3>; 92f126890aSEmmanuel Vadot dmas = <&dma 1 2>, 93f126890aSEmmanuel Vadot <&dma 0 2>; 94f126890aSEmmanuel Vadot dma-names = "tx", "rx"; 95f126890aSEmmanuel Vadot }; 96f126890aSEmmanuel Vadot... 97