From 1a2b08bb0a08ea16da037ad900949e028a3766e2 Mon Sep 17 00:00:00 2001 From: Nitin LNU Date: Mon, 11 Sep 2023 23:44:28 +0530 Subject: [PATCH] dt-bindings: Add dt binding file for tzlog tz-log dt binding added for tzlog dtsi node. Change-Id: Ic8c0143ca6894f3c78960c03870517f6edff6318 Signed-off-by: Nitin LNU --- bindings/firmware/qcom,tz-log.yaml | 52 ++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 bindings/firmware/qcom,tz-log.yaml diff --git a/bindings/firmware/qcom,tz-log.yaml b/bindings/firmware/qcom,tz-log.yaml new file mode 100644 index 00000000..1e50d1a7 --- /dev/null +++ b/bindings/firmware/qcom,tz-log.yaml @@ -0,0 +1,52 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/qcom/sleepstate-smp2p.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: TZLOG (Trust Zone log) + +maintainers: + - Vikas Kumar Sharma + +description: | + The tz_log driver is a platform device driver that exposes a debugfs + interface for accessing and displaying diagnostic information + related to secure code (Trustzone/QSEE). + +properties: + compatible: + const: qcom,tz-log + + reg: + description: | + Offset and size of the register set for the device + + qcom,hyplog-enabled: + description: | + Indicates(boolean) if driver supports HYP logger service. + + hyplog-address-offset: + description: | + Register offset to get the HYP log base address. + $ref: /schemas/types.yaml#/definitions/uint32 + + hyplog-size-offset: + description: | + Register offset to get the HYP log size parameter. + $ref: /schemas/types.yaml#/definitions/uint32 + +required: + - compatible + +additionalProperties: false + +examples: + - | + qcom,tz-log@146bf720 { + compatible = "qcom,tz-log"; + reg = <0x146bf720, 0x3000>; + qcom,hyplog-enabled; + hyplog-address-offset = 0x410; + hyplog-size-offset = 0x414; + };