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

dt-bindings: crypto: Convert Allwinner A10 Security Engine to a schema

The older Allwinner SoCs have a crypto engine that is supported in Linux,
with a matching Device Tree binding.

Now that we have the DT validation in place, let's convert the device tree
bindings for that controller over to a YAML schemas.

Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Maxime Ripard and committed by
Rob Herring
5f9040fd 31ca694e

+79 -23
+79
Documentation/devicetree/bindings/crypto/allwinner,sun4i-a10-crypto.yaml
··· 1 + # SPDX-License-Identifier: GPL-2.0 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/crypto/allwinner,sun4i-a10-crypto.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Allwinner A10 Security System Device Tree Bindings 8 + 9 + maintainers: 10 + - Chen-Yu Tsai <wens@csie.org> 11 + - Maxime Ripard <maxime.ripard@bootlin.com> 12 + 13 + properties: 14 + compatible: 15 + oneOf: 16 + - const: allwinner,sun4i-a10-crypto 17 + - items: 18 + - const: allwinner,sun5i-a13-crypto 19 + - const: allwinner,sun4i-a10-crypto 20 + - items: 21 + - const: allwinner,sun6i-a31-crypto 22 + - const: allwinner,sun4i-a10-crypto 23 + - items: 24 + - const: allwinner,sun7i-a20-crypto 25 + - const: allwinner,sun4i-a10-crypto 26 + 27 + reg: 28 + maxItems: 1 29 + 30 + interrupts: 31 + maxItems: 1 32 + 33 + clocks: 34 + items: 35 + - description: Bus Clock 36 + - description: Module Clock 37 + 38 + clock-names: 39 + items: 40 + - const: ahb 41 + - const: mod 42 + 43 + resets: 44 + maxItems: 1 45 + 46 + reset-names: 47 + const: ahb 48 + 49 + required: 50 + - compatible 51 + - reg 52 + - interrupts 53 + - clocks 54 + - clock-names 55 + 56 + if: 57 + properties: 58 + compatible: 59 + contains: 60 + const: allwinner,sun6i-a31-crypto 61 + 62 + then: 63 + required: 64 + - resets 65 + - reset-names 66 + 67 + additionalProperties: false 68 + 69 + examples: 70 + - | 71 + crypto: crypto-engine@1c15000 { 72 + compatible = "allwinner,sun4i-a10-crypto"; 73 + reg = <0x01c15000 0x1000>; 74 + interrupts = <86>; 75 + clocks = <&ahb_gates 5>, <&ss_clk>; 76 + clock-names = "ahb", "mod"; 77 + }; 78 + 79 + ...
-23
Documentation/devicetree/bindings/crypto/sun4i-ss.txt
··· 1 - * Allwinner Security System found on A20 SoC 2 - 3 - Required properties: 4 - - compatible : Should be "allwinner,sun4i-a10-crypto". 5 - - reg: Should contain the Security System register location and length. 6 - - interrupts: Should contain the IRQ line for the Security System. 7 - - clocks : List of clock specifiers, corresponding to ahb and ss. 8 - - clock-names : Name of the functional clock, should be 9 - * "ahb" : AHB gating clock 10 - * "mod" : SS controller clock 11 - 12 - Optional properties: 13 - - resets : phandle + reset specifier pair 14 - - reset-names : must contain "ahb" 15 - 16 - Example: 17 - crypto: crypto-engine@1c15000 { 18 - compatible = "allwinner,sun4i-a10-crypto"; 19 - reg = <0x01c15000 0x1000>; 20 - interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>; 21 - clocks = <&ahb_gates 5>, <&ss_clk>; 22 - clock-names = "ahb", "mod"; 23 - };