Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame] | 1 | # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 | %YAML 1.2 |
| 3 | --- |
| 4 | $id: http://devicetree.org/schemas/crypto/cortina,sl3516-crypto.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: SL3516 cryptographic offloader driver |
| 8 | |
| 9 | maintainers: |
| 10 | - Corentin Labbe <clabbe@baylibre.com> |
| 11 | |
| 12 | properties: |
| 13 | compatible: |
| 14 | enum: |
| 15 | - cortina,sl3516-crypto |
| 16 | |
| 17 | reg: |
| 18 | maxItems: 1 |
| 19 | |
| 20 | interrupts: |
| 21 | maxItems: 1 |
| 22 | |
| 23 | clocks: |
| 24 | maxItems: 1 |
| 25 | |
| 26 | resets: |
| 27 | maxItems: 1 |
| 28 | |
| 29 | required: |
| 30 | - compatible |
| 31 | - reg |
| 32 | - interrupts |
| 33 | - clocks |
| 34 | - resets |
| 35 | |
| 36 | additionalProperties: false |
| 37 | |
| 38 | examples: |
| 39 | - | |
| 40 | #include <dt-bindings/interrupt-controller/irq.h> |
| 41 | #include <dt-bindings/clock/cortina,gemini-clock.h> |
| 42 | #include <dt-bindings/reset/cortina,gemini-reset.h> |
| 43 | |
| 44 | crypto@62000000 { |
| 45 | compatible = "cortina,sl3516-crypto"; |
| 46 | reg = <0x62000000 0x10000>; |
| 47 | interrupts = <7 IRQ_TYPE_EDGE_RISING>; |
| 48 | resets = <&syscon GEMINI_RESET_SECURITY>; |
| 49 | clocks = <&syscon GEMINI_CLK_GATE_SECURITY>; |
| 50 | }; |