Path: blob/main/sys/contrib/device-tree/Bindings/crypto/fsl,sec-v4.0-mon.yaml
48375 views
# SPDX-License-Identifier: GPL-2.01# Copyright (C) 2008-2011 Freescale Semiconductor Inc.2%YAML 1.23---4$id: http://devicetree.org/schemas/crypto/fsl,sec-v4.0-mon.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#67title: Freescale Secure Non-Volatile Storage (SNVS)89maintainers:10- '"Horia Geantă" <[email protected]>'11- Pankaj Gupta <pankaj.gupta@nxp.com>12- Gaurav Jain <gaurav.jain@nxp.com>1314description:15Node defines address range and the associated interrupt for the SNVS function.16This function monitors security state information & reports security17violations. This also included rtc, system power off and ON/OFF key.1819properties:20compatible:21oneOf:22- items:23- const: fsl,sec-v4.0-mon24- const: syscon25- const: simple-mfd26- items:27- const: fsl,sec-v5.0-mon28- const: fsl,sec-v4.0-mon29- items:30- enum:31- fsl,sec-v5.3-mon32- fsl,sec-v5.4-mon33- const: fsl,sec-v5.0-mon34- const: fsl,sec-v4.0-mon3536reg:37maxItems: 13839interrupts:40maxItems: 24142snvs-rtc-lp:43type: object44additionalProperties: false45description:46Secure Non-Volatile Storage (SNVS) Low Power (LP) RTC Node4748properties:49compatible:50const: fsl,sec-v4.0-mon-rtc-lp5152clocks:53maxItems: 15455clock-names:56const: snvs-rtc5758interrupts:59# VFxxx has only one. What is the 2nd one?60minItems: 161maxItems: 26263regmap:64description: Parent node containing registers65$ref: /schemas/types.yaml#/definitions/phandle6667offset:68description: LP register offset69$ref: /schemas/types.yaml#/definitions/uint3270default: 0x347172required:73- compatible74- interrupts75- regmap7677snvs-powerkey:78type: object79additionalProperties: false80description:81The snvs-pwrkey is designed to enable POWER key function which controlled82by SNVS ONOFF, the driver can report the status of POWER key and wakeup83system if pressed after system suspend.8485properties:86compatible:87const: fsl,sec-v4.0-pwrkey8889clocks:90maxItems: 19192clock-names:93const: snvs-pwrkey9495interrupts:96maxItems: 19798regmap:99description: Parent node containing registers100$ref: /schemas/types.yaml#/definitions/phandle101102wakeup-source: true103104linux,keycode:105$ref: /schemas/types.yaml#/definitions/uint32106default: 116107deprecated: true108109linux,keycodes:110maxItems: 1111default: 116112113required:114- compatible115- interrupts116- regmap117118snvs-lpgpr:119$ref: /schemas/nvmem/snvs-lpgpr.yaml#120121snvs-poweroff:122description:123The SNVS could drive signal to PMIC to turn off system power by setting124SNVS_LP LPCR register.125$ref: /schemas/power/reset/syscon-poweroff.yaml#126127required:128- compatible129- reg130131additionalProperties: false132133examples:134- |135#include <dt-bindings/interrupt-controller/arm-gic.h>136#include <dt-bindings/clock/imx7d-clock.h>137138sec_mon: sec-mon@314000 {139compatible = "fsl,sec-v4.0-mon", "syscon", "simple-mfd";140reg = <0x314000 0x1000>;141142snvs-rtc-lp {143compatible = "fsl,sec-v4.0-mon-rtc-lp";144regmap = <&sec_mon>;145offset = <0x34>;146clocks = <&clks IMX7D_SNVS_CLK>;147clock-names = "snvs-rtc";148interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>,149<GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>;150};151152snvs-powerkey {153compatible = "fsl,sec-v4.0-pwrkey";154regmap = <&sec_mon>;155clocks = <&clks IMX7D_SNVS_CLK>;156clock-names = "snvs-pwrkey";157interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;158linux,keycode = <116>; /* KEY_POWER */159wakeup-source;160};161};162163164