This patch adds the documentation for the SECVIO driver.
Signed-off-by: Franck LENORMAND <franck.lenormand@nxp.com>
Signed-off-by: Vabhav Sharma <vabhav.sharma@nxp.com>
---
.../arm/freescale/fsl,scu-secvio.yaml | 35 +++++++++++++++++++
.../devicetree/bindings/firmware/fsl,scu.yaml | 10 ++++++
2 files changed, 45 insertions(+)
create mode 100644 Documentation/devicetree/bindings/arm/freescale/fsl,scu-secvio.yaml
diff --git a/Documentation/devicetree/bindings/arm/freescale/fsl,scu-secvio.yaml b/Documentation/devicetree/bindings/arm/freescale/fsl,scu-secvio.yaml
new file mode 100644
index 000000000000..30dc1e21f903
--- /dev/null
+++ b/Documentation/devicetree/bindings/arm/freescale/fsl,scu-secvio.yaml
@@ -0,0 +1,35 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/arm/freescale/fsl,scu-secvio.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: NXP i.MX Security Violation driver
+
+maintainers:
+ - Franck LENORMAND <franck.lenormand@nxp.com>
+
+description: |
+ Receive security violation from the SNVS via the SCU firmware. Allow to
+ register notifier for additional processing
+
+properties:
+ compatible:
+ enum:
+ - fsl,imx-sc-secvio
+
+ nvmem:
+ maxItems: 1
+
+required:
+ - compatible
+ - nvmem
+
+additionalProperties: false
+
+examples:
+ - |
+ secvio {
+ compatible = "fsl,imx-sc-secvio";
+ nvmem = <&ocotp>;
+ };
diff --git a/Documentation/devicetree/bindings/firmware/fsl,scu.yaml b/Documentation/devicetree/bindings/firmware/fsl,scu.yaml
index 557e524786c2..b40e127fdc88 100644
--- a/Documentation/devicetree/bindings/firmware/fsl,scu.yaml
+++ b/Documentation/devicetree/bindings/firmware/fsl,scu.yaml
@@ -129,6 +129,11 @@ properties:
RTC controller provided by the SCU
$ref: /schemas/rtc/fsl,scu-rtc.yaml
+ secvio:
+ description:
+ Receive security violation from the SNVS via the SCU firmware
+ $ref: /schemas/arm/freescale/fsl,scu-secvio.yaml
+
thermal-sensor:
description:
Thermal sensor provided by the SCU
@@ -197,6 +202,11 @@ examples:
compatible = "fsl,imx8qxp-sc-rtc";
};
+ secvio {
+ compatible = "fsl,imx-sc-secvio";
+ nvmem = <&ocotp>;
+ };
+
keys {
compatible = "fsl,imx8qxp-sc-key", "fsl,imx-sc-key";
linux,keycodes = <KEY_POWER>;
--
2.25.1
On 01/05/2024 07:32, Vabhav Sharma wrote: > This patch adds the documentation for the SECVIO driver. Please do not use "This commit/patch/change", but imperative mood. See longer explanation here: https://elixir.bootlin.com/linux/v5.17.1/source/Documentation/process/submitting-patches.rst#L95 Describe hardware, not driver. > > Signed-off-by: Franck LENORMAND <franck.lenormand@nxp.com> > Signed-off-by: Vabhav Sharma <vabhav.sharma@nxp.com> Please use scripts/get_maintainers.pl to get a list of necessary people and lists to CC. It might happen, that command when run on an older kernel, gives you outdated entries. Therefore please be sure you base your patches on recent Linux kernel. Tools like b4 or scripts/get_maintainer.pl provide you proper list of people, so fix your workflow. Tools might also fail if you work on some ancient tree (don't, instead use mainline), work on fork of kernel (don't, instead use mainline) or you ignore some maintainers (really don't). Just use b4 and everything should be fine, although remember about `b4 prep --auto-to-cc` if you added new patches to the patchset. You missed at least devicetree list (maybe more), so this won't be tested by automated tooling. Performing review on untested code might be a waste of time, thus I will skip this patch entirely till you follow the process allowing the patch to be tested. Please kindly resend and include all necessary To/Cc entries. Best regards, Krzysztof
© 2016 - 2025 Red Hat, Inc.