From b505c1c18865a98f0de647e6123ecd3e39481250 Mon Sep 17 00:00:00 2001 From: Zhen Kong Date: Tue, 29 Oct 2019 12:55:06 -0700 Subject: [PATCH] bindings: Add device-tree bindings for tz_log driver Add device-tree bindings documentation to describe the properties for tz_log driver. Change-Id: I01f484b9eed8d78bac74c56680e371e824967206 --- bindings/firmware/qcom/tz-log.txt | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 bindings/firmware/qcom/tz-log.txt diff --git a/bindings/firmware/qcom/tz-log.txt b/bindings/firmware/qcom/tz-log.txt new file mode 100644 index 00000000..4ef7b39d --- /dev/null +++ b/bindings/firmware/qcom/tz-log.txt @@ -0,0 +1,25 @@ +* TZLOG (Trust Zone Log) + +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). + +Required properties: +- compatible : Should be "qcom,tz-log" +- reg : Offset and size of the register set for the device + +Optional properties: +- qcom,hyplog-enabled : (boolean) indicates if driver supports HYP logger service. +- hyplog-address-offset : Register offset to get the HYP log base address. +- hyplog-size-offset : Register offset to get the HYP log size parameter. + +Example: + + qcom,tz-log@146bf720 { + compatible = "qcom,tz-log"; + reg = <0x146bf720, 0x3000>; + qcom,hyplog-enabled; + hyplog-address-offset = 0x410; + hyplog-size-offset = 0x414; + }; +