]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
dt-bindings: mfd: syscon: atmel,sama5d2-secumod: Convert to yaml
authorRyan Wanner <Ryan.Wanner@microchip.com>
Mon, 14 Apr 2025 21:41:24 +0000 (14:41 -0700)
committerLee Jones <lee@kernel.org>
Fri, 23 May 2025 07:48:15 +0000 (08:48 +0100)
Convert Microchip AT91 secumod to YAML format.

Signed-off-by: Ryan Wanner <Ryan.Wanner@microchip.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/a999a719a652ec834f1176d69a3e9b207cbd63e6.1744666011.git.Ryan.Wanner@microchip.com
Signed-off-by: Lee Jones <lee@kernel.org>
Documentation/devicetree/bindings/arm/atmel,sama5d2-secumod.yaml [new file with mode: 0644]
Documentation/devicetree/bindings/arm/atmel-sysregs.txt

diff --git a/Documentation/devicetree/bindings/arm/atmel,sama5d2-secumod.yaml b/Documentation/devicetree/bindings/arm/atmel,sama5d2-secumod.yaml
new file mode 100644 (file)
index 0000000..b1f766e
--- /dev/null
@@ -0,0 +1,48 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/arm/atmel,sama5d2-secumod.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Microchip AT91 Security Module (SECUMOD)
+
+maintainers:
+  - Nicolas Ferre <nicolas.ferre@microchip.com>
+
+description:
+  The Security Module also offers the PIOBU pins which can be used as GPIO pins.
+  Note that they maintain their voltage during Backup/Self-refresh.
+
+properties:
+  compatible:
+    oneOf:
+      - items:
+          - const: atmel,sama5d2-secumod
+          - const: syscon
+      - items:
+          - enum:
+              - microchip,sama7g5-secumod
+          - const: atmel,sama5d2-secumod
+          - const: syscon
+  reg:
+    maxItems: 1
+
+  gpio-controller: true
+
+  "#gpio-cells":
+    const: 2
+
+required:
+  - compatible
+  - reg
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    security-module@fc040000 {
+      compatible = "atmel,sama5d2-secumod", "syscon";
+      reg = <0xfc040000 0x100>;
+      gpio-controller;
+      #gpio-cells = <2>;
+    };
index d3821f651e7286be301b60a2e54365bcba1ffdce..5ce54f9befe62b2f43a83d5cb4a5b080267d9300 100644 (file)
@@ -46,28 +46,3 @@ Examples:
                reg = <0xffffe800 0x200>;
        };
 
-Security Module (SECUMOD)
-
-The Security Module macrocell provides all necessary secure functions to avoid
-voltage, temperature, frequency and mechanical attacks on the chip. It also
-embeds secure memories that can be scrambled.
-
-The Security Module also offers the PIOBU pins which can be used as GPIO pins.
-Note that they maintain their voltage during Backup/Self-refresh.
-
-required properties:
-- compatible: Should be "atmel,<chip>-secumod", "syscon".
-  <chip> can be "sama5d2".
-- reg: Should contain registers location and length
-- gpio-controller:     Marks the port as GPIO controller.
-- #gpio-cells:         There are 2. The pin number is the
-                       first, the second represents additional
-                       parameters such as GPIO_ACTIVE_HIGH/LOW.
-
-
-       secumod@fc040000 {
-               compatible = "atmel,sama5d2-secumod", "syscon";
-               reg = <0xfc040000 0x100>;
-               gpio-controller;
-               #gpio-cells = <2>;
-       };