Freescale Secure Non-Volatile Storage (SNVS)
Schema identifier ($id): "http://devicetree.org/schemas/crypto/fsl,sec-v4.0-mon.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "\"Horia Geantă\" <horia.geanta@nxp.com>", "Pankaj Gupta <pankaj.gupta@nxp.com>", "Gaurav Jain <gaurav.jain@nxp.com>"
Node defines address range and the associated interrupt for the SNVS function. This function monitors security state information & reports security violations. This also included rtc, system power off and ON/OFF key.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"fsl,sec-v4.0-mon"Item 2
Exact value (
const):"syscon"Item 3
Exact value (
const):"simple-mfd"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"fsl,sec-v5.0-mon"Item 2
Exact value (
const):"fsl,sec-v4.0-mon"
Rule 3
Array item rules (
items)Item 1
Allowed values (
enum):"fsl,sec-v5.3-mon","fsl,sec-v5.4-mon"Item 2
Exact value (
const):"fsl,sec-v5.0-mon"Item 3
Exact value (
const):"fsl,sec-v4.0-mon"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 2
snvs-rtc-lp — not listed as required here #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Secure Non-Volatile Storage (SNVS) Low Power (LP) RTC Node
Properties and child nodes (properties) #
compatible — required here
Exact value (const): "fsl,sec-v4.0-mon-rtc-lp"
clocks — not listed as required here
Maximum number of items (maxItems): 1
clock-names — not listed as required here
Exact value (const): "snvs-rtc"
interrupts — required here
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
regmap — required here
Parent node containing registers
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
offset — not listed as required here
LP register offset
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 52
Required in this object (required): "compatible", "interrupts", "regmap"
snvs-powerkey — not listed as required here #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
The snvs-pwrkey is designed to enable POWER key function which controlled by SNVS ONOFF, the driver can report the status of POWER key and wakeup system if pressed after system suspend.
Shared schema rule ($ref): /schemas/input/input.yaml
Properties and child nodes (properties) #
compatible — required here
Exact value (const): "fsl,sec-v4.0-pwrkey"
clocks — not listed as required here
Maximum number of items (maxItems): 1
clock-names — not listed as required here
Exact value (const): "snvs-pwrkey"
interrupts — required here
Maximum number of items (maxItems): 1
regmap — required here
Parent node containing registers
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
wakeup-source — not listed as required here
true — No constraints added by this property rule.
linux,keycode — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 116
Deprecated (deprecated): true
linux,keycodes — not listed as required here
Maximum number of items (maxItems): 1
Default value (default): 116
power-off-time-sec — not listed as required here
Allowed values (enum): 0, 5, 10, 15
Required in this object (required): "compatible", "interrupts", "regmap"
snvs-lpgpr — not listed as required here #
Shared schema rule ($ref): /schemas/nvmem/snvs-lpgpr.yaml#
snvs-poweroff — not listed as required here #
The SNVS could drive signal to PMIC to turn off system power by setting SNVS_LP LPCR register.
Shared schema rule ($ref): /schemas/power/reset/syscon-poweroff.yaml#
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/imx7d-clock.h>
sec_mon: sec-mon@314000 {
compatible = "fsl,sec-v4.0-mon", "syscon", "simple-mfd";
reg = <0x314000 0x1000>;
snvs-rtc-lp {
compatible = "fsl,sec-v4.0-mon-rtc-lp";
regmap = <&sec_mon>;
offset = <0x34>;
clocks = <&clks IMX7D_SNVS_CLK>;
clock-names = "snvs-rtc";
interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
};
snvs-powerkey {
compatible = "fsl,sec-v4.0-pwrkey";
regmap = <&sec_mon>;
clocks = <&clks IMX7D_SNVS_CLK>;
clock-names = "snvs-pwrkey";
interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
linux,keycode = <116>; /* KEY_POWER */
wakeup-source;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Line 2: Copyright (C) 2008-2011 Freescale Semiconductor Inc.
Line 60: VFxxx has only one. What is the 2nd one?