1 # SPDX-License-Identifier: GPL-2.0
2 # Copyright (C) 2008-2011 Freescale Semiconductor Inc.
5 $id: http://devicetree.org/schemas/crypto/fsl,sec-v4.0-mon.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
8 title: Freescale Secure Non-Volatile Storage (SNVS)
11 - '"Horia Geantă" <horia.geanta@nxp.com>'
12 - Pankaj Gupta <pankaj.gupta@nxp.com>
13 - Gaurav Jain <gaurav.jain@nxp.com>
16 Node defines address range and the associated interrupt for the SNVS function.
17 This function monitors security state information & reports security
18 violations. This also included rtc, system power off and ON/OFF key.
24 - const: fsl,sec-v4.0-mon
28 - const: fsl,sec-v5.0-mon
29 - const: fsl,sec-v4.0-mon
34 - const: fsl,sec-v5.0-mon
35 - const: fsl,sec-v4.0-mon
45 additionalProperties: false
47 Secure Non-Volatile Storage (SNVS) Low Power (LP) RTC Node
51 const: fsl,sec-v4.0-mon-rtc-lp
60 # VFxxx has only one. What is the 2nd one?
65 description: Parent node containing registers
66 $ref: /schemas/types.yaml#/definitions/phandle
69 description: LP register offset
70 $ref: /schemas/types.yaml#/definitions/uint32
80 additionalProperties: false
82 The snvs-pwrkey is designed to enable POWER key function which controlled
83 by SNVS ONOFF, the driver can report the status of POWER key and wakeup
84 system if pressed after system suspend.
88 const: fsl,sec-v4.0-pwrkey
100 description: Parent node containing registers
101 $ref: /schemas/types.yaml#/definitions/phandle
106 $ref: /schemas/types.yaml#/definitions/uint32
120 $ref: /schemas/nvmem/snvs-lpgpr.yaml#
124 The SNVS could drive signal to PMIC to turn off system power by setting
125 SNVS_LP LPCR register.
126 $ref: /schemas/power/reset/syscon-poweroff.yaml#
132 additionalProperties: false
136 #include <dt-bindings/interrupt-controller/arm-gic.h>
137 #include <dt-bindings/clock/imx7d-clock.h>
139 sec_mon: sec-mon@314000 {
140 compatible = "fsl,sec-v4.0-mon", "syscon", "simple-mfd";
141 reg = <0x314000 0x1000>;
144 compatible = "fsl,sec-v4.0-mon-rtc-lp";
147 clocks = <&clks IMX7D_SNVS_CLK>;
148 clock-names = "snvs-rtc";
149 interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>,
150 <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;
154 compatible = "fsl,sec-v4.0-pwrkey";
156 clocks = <&clks IMX7D_SNVS_CLK>;
157 clock-names = "snvs-pwrkey";
158 interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
159 linux,keycode = <116>; /* KEY_POWER */