brintos

brintos / linux-shallow public Read only

0
0
Text · 3.9 KiB · e879bc0 Raw
163 lines · yaml
1# SPDX-License-Identifier: GPL-2.02# Copyright (C) 2008-2011 Freescale Semiconductor Inc.3%YAML 1.24---5$id: http://devicetree.org/schemas/crypto/fsl,sec-v4.0-mon.yaml#6$schema: http://devicetree.org/meta-schemas/core.yaml#7 8title: Freescale Secure Non-Volatile Storage (SNVS)9 10maintainers:11  - '"Horia Geantă" <horia.geanta@nxp.com>'12  - Pankaj Gupta <pankaj.gupta@nxp.com>13  - Gaurav Jain <gaurav.jain@nxp.com>14 15description:16  Node defines address range and the associated interrupt for the SNVS function.17  This function monitors security state information & reports security18  violations. This also included rtc, system power off and ON/OFF key.19 20properties:21  compatible:22    oneOf:23      - items:24          - const: fsl,sec-v4.0-mon25          - const: syscon26          - const: simple-mfd27      - items:28          - const: fsl,sec-v5.0-mon29          - const: fsl,sec-v4.0-mon30      - items:31          - enum:32              - fsl,sec-v5.3-mon33              - fsl,sec-v5.4-mon34          - const: fsl,sec-v5.0-mon35          - const: fsl,sec-v4.0-mon36 37  reg:38    maxItems: 139 40  interrupts:41    maxItems: 242 43  snvs-rtc-lp:44    type: object45    additionalProperties: false46    description:47      Secure Non-Volatile Storage (SNVS) Low Power (LP) RTC Node48 49    properties:50      compatible:51        const: fsl,sec-v4.0-mon-rtc-lp52 53      clocks:54        maxItems: 155 56      clock-names:57        const: snvs-rtc58 59      interrupts:60        # VFxxx has only one. What is the 2nd one?61        minItems: 162        maxItems: 263 64      regmap:65        description: Parent node containing registers66        $ref: /schemas/types.yaml#/definitions/phandle67 68      offset:69        description: LP register offset70        $ref: /schemas/types.yaml#/definitions/uint3271        default: 0x3472 73    required:74      - compatible75      - interrupts76      - regmap77 78  snvs-powerkey:79    type: object80    additionalProperties: false81    description:82      The snvs-pwrkey is designed to enable POWER key function which controlled83      by SNVS ONOFF, the driver can report the status of POWER key and wakeup84      system if pressed after system suspend.85 86    properties:87      compatible:88        const: fsl,sec-v4.0-pwrkey89 90      clocks:91        maxItems: 192 93      clock-names:94        const: snvs-pwrkey95 96      interrupts:97        maxItems: 198 99      regmap:100        description: Parent node containing registers101        $ref: /schemas/types.yaml#/definitions/phandle102 103      wakeup-source: true104 105      linux,keycode:106        $ref: /schemas/types.yaml#/definitions/uint32107        default: 116108        deprecated: true109 110      linux,keycodes:111        maxItems: 1112        default: 116113 114    required:115      - compatible116      - interrupts117      - regmap118 119  snvs-lpgpr:120    $ref: /schemas/nvmem/snvs-lpgpr.yaml#121 122  snvs-poweroff:123    description:124      The SNVS could drive signal to PMIC to turn off system power by setting125      SNVS_LP LPCR register.126    $ref: /schemas/power/reset/syscon-poweroff.yaml#127 128required:129  - compatible130  - reg131 132additionalProperties: false133 134examples:135  - |136    #include <dt-bindings/interrupt-controller/arm-gic.h>137    #include <dt-bindings/clock/imx7d-clock.h>138 139    sec_mon: sec-mon@314000 {140        compatible = "fsl,sec-v4.0-mon", "syscon", "simple-mfd";141        reg = <0x314000 0x1000>;142 143        snvs-rtc-lp {144            compatible = "fsl,sec-v4.0-mon-rtc-lp";145            regmap = <&sec_mon>;146            offset = <0x34>;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>;151        };152 153        snvs-powerkey {154            compatible = "fsl,sec-v4.0-pwrkey";155            regmap = <&sec_mon>;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 */160            wakeup-source;161        };162    };163