0001 # SPDX-License-Identifier: GPL-2.0
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/crypto/allwinner,sun4i-a10-crypto.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Allwinner A10 Security System Device Tree Bindings
0008
0009 maintainers:
0010 - Chen-Yu Tsai <wens@csie.org>
0011 - Maxime Ripard <mripard@kernel.org>
0012
0013 properties:
0014 compatible:
0015 oneOf:
0016 - const: allwinner,sun4i-a10-crypto
0017 - items:
0018 - const: allwinner,sun5i-a13-crypto
0019 - const: allwinner,sun4i-a10-crypto
0020 - items:
0021 - const: allwinner,sun6i-a31-crypto
0022 - const: allwinner,sun4i-a10-crypto
0023 - items:
0024 - const: allwinner,sun7i-a20-crypto
0025 - const: allwinner,sun4i-a10-crypto
0026 - const: allwinner,sun8i-a33-crypto
0027 - items:
0028 - const: allwinner,sun8i-v3s-crypto
0029 - const: allwinner,sun8i-a33-crypto
0030
0031 reg:
0032 maxItems: 1
0033
0034 interrupts:
0035 maxItems: 1
0036
0037 clocks:
0038 items:
0039 - description: Bus Clock
0040 - description: Module Clock
0041
0042 clock-names:
0043 items:
0044 - const: ahb
0045 - const: mod
0046
0047 dmas:
0048 items:
0049 - description: RX DMA Channel
0050 - description: TX DMA Channel
0051
0052 dma-names:
0053 items:
0054 - const: rx
0055 - const: tx
0056
0057 resets:
0058 maxItems: 1
0059
0060 reset-names:
0061 const: ahb
0062
0063 required:
0064 - compatible
0065 - reg
0066 - interrupts
0067 - clocks
0068 - clock-names
0069
0070 if:
0071 properties:
0072 compatible:
0073 contains:
0074 enum:
0075 - allwinner,sun6i-a31-crypto
0076 - allwinner,sun8i-a33-crypto
0077
0078 then:
0079 required:
0080 - resets
0081 - reset-names
0082
0083 additionalProperties: false
0084
0085 examples:
0086 - |
0087 crypto: crypto-engine@1c15000 {
0088 compatible = "allwinner,sun4i-a10-crypto";
0089 reg = <0x01c15000 0x1000>;
0090 interrupts = <86>;
0091 clocks = <&ahb_gates 5>, <&ss_clk>;
0092 clock-names = "ahb", "mod";
0093 };
0094
0095 ...