Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: crypto: Convert Marvell CESA to DT schema

Convert the Marvell CESA binding to DT schema format. The
marvell-cesa.txt and mv_cesa.txt are duplicate bindings.

The clock properties are quite varied for each platform hence the
if/then schemas. The old binding was fairly accurate with reality.

The original binding didn't mention there is 1 interrupt per CESA
engine. Based on users, there's a maximum of 2 engines.

Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Rob Herring (Arm) and committed by
Herbert Xu
7d39f32c 7eff621c

+133 -76
+133
Documentation/devicetree/bindings/crypto/marvell,orion-crypto.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/crypto/marvell,orion-crypto.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Marvell Cryptographic Engines And Security Accelerator 8 + 9 + maintainers: 10 + - Andrew Lunn <andrew@lunn.ch> 11 + - Boris Brezillon <bbrezillon@kernel.org> 12 + 13 + description: | 14 + Marvell Cryptographic Engines And Security Accelerator 15 + 16 + properties: 17 + compatible: 18 + enum: 19 + - marvell,armada-370-crypto 20 + - marvell,armada-xp-crypto 21 + - marvell,armada-375-crypto 22 + - marvell,armada-38x-crypto 23 + - marvell,dove-crypto 24 + - marvell,kirkwood-crypto 25 + - marvell,orion-crypto 26 + 27 + reg: 28 + minItems: 1 29 + items: 30 + - description: Registers region 31 + - description: SRAM region 32 + deprecated: true 33 + 34 + reg-names: 35 + minItems: 1 36 + items: 37 + - const: regs 38 + - const: sram 39 + deprecated: true 40 + 41 + interrupts: 42 + description: One interrupt for each CESA engine 43 + minItems: 1 44 + maxItems: 2 45 + 46 + clocks: 47 + description: One or two clocks for each CESA engine 48 + minItems: 1 49 + maxItems: 4 50 + 51 + clock-names: 52 + minItems: 1 53 + items: 54 + - const: cesa0 55 + - const: cesa1 56 + - const: cesaz0 57 + - const: cesaz1 58 + 59 + marvell,crypto-srams: 60 + description: Phandle(s) to crypto SRAM. 61 + $ref: /schemas/types.yaml#/definitions/phandle-array 62 + minItems: 1 63 + maxItems: 2 64 + items: 65 + maxItems: 1 66 + 67 + marvell,crypto-sram-size: 68 + description: SRAM size reserved for crypto operations. 69 + $ref: /schemas/types.yaml#/definitions/uint32 70 + default: 0x800 71 + 72 + required: 73 + - compatible 74 + - reg 75 + - reg-names 76 + - interrupts 77 + - marvell,crypto-srams 78 + 79 + allOf: 80 + - if: 81 + not: 82 + properties: 83 + compatible: 84 + enum: 85 + - marvell,kirkwood-crypto 86 + - marvell,orion-crypto 87 + then: 88 + required: 89 + - clocks 90 + - if: 91 + properties: 92 + compatible: 93 + contains: 94 + enum: 95 + - marvell,armada-370-crypto 96 + - marvell,armada-375-crypto 97 + - marvell,armada-38x-crypto 98 + - marvell,armada-xp-crypto 99 + then: 100 + required: 101 + - clock-names 102 + - if: 103 + properties: 104 + compatible: 105 + contains: 106 + enum: 107 + - marvell,armada-375-crypto 108 + - marvell,armada-38x-crypto 109 + then: 110 + properties: 111 + clocks: 112 + minItems: 4 113 + clock-names: 114 + minItems: 4 115 + else: 116 + properties: 117 + clocks: 118 + maxItems: 2 119 + clock-names: 120 + maxItems: 2 121 + 122 + additionalProperties: false 123 + 124 + examples: 125 + - | 126 + crypto@30000 { 127 + compatible = "marvell,orion-crypto"; 128 + reg = <0x30000 0x10000>; 129 + reg-names = "regs"; 130 + interrupts = <22>; 131 + marvell,crypto-srams = <&crypto_sram>; 132 + marvell,crypto-sram-size = <0x600>; 133 + };
-44
Documentation/devicetree/bindings/crypto/marvell-cesa.txt
··· 1 - Marvell Cryptographic Engines And Security Accelerator 2 - 3 - Required properties: 4 - - compatible: should be one of the following string 5 - "marvell,orion-crypto" 6 - "marvell,kirkwood-crypto" 7 - "marvell,dove-crypto" 8 - "marvell,armada-370-crypto" 9 - "marvell,armada-xp-crypto" 10 - "marvell,armada-375-crypto" 11 - "marvell,armada-38x-crypto" 12 - - reg: base physical address of the engine and length of memory mapped 13 - region. Can also contain an entry for the SRAM attached to the CESA, 14 - but this representation is deprecated and marvell,crypto-srams should 15 - be used instead 16 - - reg-names: "regs". Can contain an "sram" entry, but this representation 17 - is deprecated and marvell,crypto-srams should be used instead 18 - - interrupts: interrupt number 19 - - clocks: reference to the crypto engines clocks. This property is not 20 - required for orion and kirkwood platforms 21 - - clock-names: "cesaX" and "cesazX", X should be replaced by the crypto engine 22 - id. 23 - This property is not required for the orion and kirkwoord 24 - platforms. 25 - "cesazX" clocks are not required on armada-370 platforms 26 - - marvell,crypto-srams: phandle to crypto SRAM definitions 27 - 28 - Optional properties: 29 - - marvell,crypto-sram-size: SRAM size reserved for crypto operations, if not 30 - specified the whole SRAM is used (2KB) 31 - 32 - 33 - Examples: 34 - 35 - crypto@90000 { 36 - compatible = "marvell,armada-xp-crypto"; 37 - reg = <0x90000 0x10000>; 38 - reg-names = "regs"; 39 - interrupts = <48>, <49>; 40 - clocks = <&gateclk 23>, <&gateclk 23>; 41 - clock-names = "cesa0", "cesa1"; 42 - marvell,crypto-srams = <&crypto_sram0>, <&crypto_sram1>; 43 - marvell,crypto-sram-size = <0x600>; 44 - };
-32
Documentation/devicetree/bindings/crypto/mv_cesa.txt
··· 1 - Marvell Cryptographic Engines And Security Accelerator 2 - 3 - Required properties: 4 - - compatible: should be one of the following string 5 - "marvell,orion-crypto" 6 - "marvell,kirkwood-crypto" 7 - "marvell,dove-crypto" 8 - - reg: base physical address of the engine and length of memory mapped 9 - region. Can also contain an entry for the SRAM attached to the CESA, 10 - but this representation is deprecated and marvell,crypto-srams should 11 - be used instead 12 - - reg-names: "regs". Can contain an "sram" entry, but this representation 13 - is deprecated and marvell,crypto-srams should be used instead 14 - - interrupts: interrupt number 15 - - clocks: reference to the crypto engines clocks. This property is only 16 - required for Dove platforms 17 - - marvell,crypto-srams: phandle to crypto SRAM definitions 18 - 19 - Optional properties: 20 - - marvell,crypto-sram-size: SRAM size reserved for crypto operations, if not 21 - specified the whole SRAM is used (2KB) 22 - 23 - Examples: 24 - 25 - crypto@30000 { 26 - compatible = "marvell,orion-crypto"; 27 - reg = <0x30000 0x10000>; 28 - reg-names = "regs"; 29 - interrupts = <22>; 30 - marvell,crypto-srams = <&crypto_sram>; 31 - marvell,crypto-sram-size = <0x600>; 32 - };