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 hisilicon,hip0{6,7}-sec to DT schema

Convert the HiSilicon HIP06/7 Security Accelerator binding to DT schema
format. It's a straight forward conversion.

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
036454de b525ac4b

+134 -67
+134
Documentation/devicetree/bindings/crypto/hisilicon,hip06-sec.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/hisilicon,hip06-sec.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Hisilicon hip06/hip07 Security Accelerator 8 + 9 + maintainers: 10 + - Jonathan Cameron <Jonathan.Cameron@huawei.com> 11 + 12 + properties: 13 + compatible: 14 + enum: 15 + - hisilicon,hip06-sec 16 + - hisilicon,hip07-sec 17 + 18 + reg: 19 + items: 20 + - description: Registers for backend processing engines 21 + - description: Registers for common functionality 22 + - description: Registers for queue 0 23 + - description: Registers for queue 1 24 + - description: Registers for queue 2 25 + - description: Registers for queue 3 26 + - description: Registers for queue 4 27 + - description: Registers for queue 5 28 + - description: Registers for queue 6 29 + - description: Registers for queue 7 30 + - description: Registers for queue 8 31 + - description: Registers for queue 9 32 + - description: Registers for queue 10 33 + - description: Registers for queue 11 34 + - description: Registers for queue 12 35 + - description: Registers for queue 13 36 + - description: Registers for queue 14 37 + - description: Registers for queue 15 38 + 39 + interrupts: 40 + items: 41 + - description: SEC unit error queue interrupt 42 + - description: Completion interrupt for queue 0 43 + - description: Error interrupt for queue 0 44 + - description: Completion interrupt for queue 1 45 + - description: Error interrupt for queue 1 46 + - description: Completion interrupt for queue 2 47 + - description: Error interrupt for queue 2 48 + - description: Completion interrupt for queue 3 49 + - description: Error interrupt for queue 3 50 + - description: Completion interrupt for queue 4 51 + - description: Error interrupt for queue 4 52 + - description: Completion interrupt for queue 5 53 + - description: Error interrupt for queue 5 54 + - description: Completion interrupt for queue 6 55 + - description: Error interrupt for queue 6 56 + - description: Completion interrupt for queue 7 57 + - description: Error interrupt for queue 7 58 + - description: Completion interrupt for queue 8 59 + - description: Error interrupt for queue 8 60 + - description: Completion interrupt for queue 9 61 + - description: Error interrupt for queue 9 62 + - description: Completion interrupt for queue 10 63 + - description: Error interrupt for queue 10 64 + - description: Completion interrupt for queue 11 65 + - description: Error interrupt for queue 11 66 + - description: Completion interrupt for queue 12 67 + - description: Error interrupt for queue 12 68 + - description: Completion interrupt for queue 13 69 + - description: Error interrupt for queue 13 70 + - description: Completion interrupt for queue 14 71 + - description: Error interrupt for queue 14 72 + - description: Completion interrupt for queue 15 73 + - description: Error interrupt for queue 15 74 + 75 + dma-coherent: true 76 + 77 + iommus: 78 + maxItems: 1 79 + 80 + required: 81 + - compatible 82 + - reg 83 + - interrupts 84 + - dma-coherent 85 + 86 + additionalProperties: false 87 + 88 + examples: 89 + - | 90 + bus { 91 + #address-cells = <2>; 92 + #size-cells = <2>; 93 + 94 + crypto@400d2000000 { 95 + compatible = "hisilicon,hip07-sec"; 96 + reg = <0x400 0xd0000000 0x0 0x10000 97 + 0x400 0xd2000000 0x0 0x10000 98 + 0x400 0xd2010000 0x0 0x10000 99 + 0x400 0xd2020000 0x0 0x10000 100 + 0x400 0xd2030000 0x0 0x10000 101 + 0x400 0xd2040000 0x0 0x10000 102 + 0x400 0xd2050000 0x0 0x10000 103 + 0x400 0xd2060000 0x0 0x10000 104 + 0x400 0xd2070000 0x0 0x10000 105 + 0x400 0xd2080000 0x0 0x10000 106 + 0x400 0xd2090000 0x0 0x10000 107 + 0x400 0xd20a0000 0x0 0x10000 108 + 0x400 0xd20b0000 0x0 0x10000 109 + 0x400 0xd20c0000 0x0 0x10000 110 + 0x400 0xd20d0000 0x0 0x10000 111 + 0x400 0xd20e0000 0x0 0x10000 112 + 0x400 0xd20f0000 0x0 0x10000 113 + 0x400 0xd2100000 0x0 0x10000>; 114 + interrupts = <576 4>, 115 + <577 1>, <578 4>, 116 + <579 1>, <580 4>, 117 + <581 1>, <582 4>, 118 + <583 1>, <584 4>, 119 + <585 1>, <586 4>, 120 + <587 1>, <588 4>, 121 + <589 1>, <590 4>, 122 + <591 1>, <592 4>, 123 + <593 1>, <594 4>, 124 + <595 1>, <596 4>, 125 + <597 1>, <598 4>, 126 + <599 1>, <600 4>, 127 + <601 1>, <602 4>, 128 + <603 1>, <604 4>, 129 + <605 1>, <606 4>, 130 + <607 1>, <608 4>; 131 + dma-coherent; 132 + iommus = <&p1_smmu_alg_a 0x600>; 133 + }; 134 + };
-67
Documentation/devicetree/bindings/crypto/hisilicon,hip07-sec.txt
··· 1 - * Hisilicon hip07 Security Accelerator (SEC) 2 - 3 - Required properties: 4 - - compatible: Must contain one of 5 - - "hisilicon,hip06-sec" 6 - - "hisilicon,hip07-sec" 7 - - reg: Memory addresses and lengths of the memory regions through which 8 - this device is controlled. 9 - Region 0 has registers to control the backend processing engines. 10 - Region 1 has registers for functionality common to all queues. 11 - Regions 2-18 have registers for the 16 individual queues which are isolated 12 - both in hardware and within the driver. 13 - - interrupts: Interrupt specifiers. 14 - Refer to interrupt-controller/interrupts.txt for generic interrupt client node 15 - bindings. 16 - Interrupt 0 is for the SEC unit error queue. 17 - Interrupt 2N + 1 is the completion interrupt for queue N. 18 - Interrupt 2N + 2 is the error interrupt for queue N. 19 - - dma-coherent: The driver assumes coherent dma is possible. 20 - 21 - Optional properties: 22 - - iommus: The SEC units are behind smmu-v3 iommus. 23 - Refer to iommu/arm,smmu-v3.txt for more information. 24 - 25 - Example: 26 - 27 - p1_sec_a: crypto@400d2000000 { 28 - compatible = "hisilicon,hip07-sec"; 29 - reg = <0x400 0xd0000000 0x0 0x10000 30 - 0x400 0xd2000000 0x0 0x10000 31 - 0x400 0xd2010000 0x0 0x10000 32 - 0x400 0xd2020000 0x0 0x10000 33 - 0x400 0xd2030000 0x0 0x10000 34 - 0x400 0xd2040000 0x0 0x10000 35 - 0x400 0xd2050000 0x0 0x10000 36 - 0x400 0xd2060000 0x0 0x10000 37 - 0x400 0xd2070000 0x0 0x10000 38 - 0x400 0xd2080000 0x0 0x10000 39 - 0x400 0xd2090000 0x0 0x10000 40 - 0x400 0xd20a0000 0x0 0x10000 41 - 0x400 0xd20b0000 0x0 0x10000 42 - 0x400 0xd20c0000 0x0 0x10000 43 - 0x400 0xd20d0000 0x0 0x10000 44 - 0x400 0xd20e0000 0x0 0x10000 45 - 0x400 0xd20f0000 0x0 0x10000 46 - 0x400 0xd2100000 0x0 0x10000>; 47 - interrupt-parent = <&p1_mbigen_sec_a>; 48 - iommus = <&p1_smmu_alg_a 0x600>; 49 - dma-coherent; 50 - interrupts = <576 4>, 51 - <577 1>, <578 4>, 52 - <579 1>, <580 4>, 53 - <581 1>, <582 4>, 54 - <583 1>, <584 4>, 55 - <585 1>, <586 4>, 56 - <587 1>, <588 4>, 57 - <589 1>, <590 4>, 58 - <591 1>, <592 4>, 59 - <593 1>, <594 4>, 60 - <595 1>, <596 4>, 61 - <597 1>, <598 4>, 62 - <599 1>, <600 4>, 63 - <601 1>, <602 4>, 64 - <603 1>, <604 4>, 65 - <605 1>, <606 4>, 66 - <607 1>, <608 4>; 67 - };