From a64e56d31d3b6f44e7c8518c11a1b65cb725f7bf Mon Sep 17 00:00:00 2001 From: Manish Bhardwaj Date: Mon, 6 Nov 2023 19:06:31 +0000 Subject: [PATCH] nvidia: port vsc driver's device-tree binding files Bug 4231381 Change-Id: Ib26c24ce8fea89444d1d2d5313eec04f1505bb93 Signed-off-by: Manish Bhardwaj Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3011283 Reviewed-by: Suresh Venkatachalam Reviewed-by: Sandeep Trasi GVS: Gerrit_Virtual_Submit --- .../tegra-hv-oops-storage.txt | 27 +++++++++++++++++++ .../tegra_virt_storage/tegra-hv-storage.txt | 21 +++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 Documentation/devicetree/bindings/block/tegra_oops_virt_storage/tegra-hv-oops-storage.txt create mode 100644 Documentation/devicetree/bindings/block/tegra_virt_storage/tegra-hv-storage.txt diff --git a/Documentation/devicetree/bindings/block/tegra_oops_virt_storage/tegra-hv-oops-storage.txt b/Documentation/devicetree/bindings/block/tegra_oops_virt_storage/tegra-hv-oops-storage.txt new file mode 100644 index 00000000..4fbaa1c5 --- /dev/null +++ b/Documentation/devicetree/bindings/block/tegra_oops_virt_storage/tegra-hv-oops-storage.txt @@ -0,0 +1,27 @@ +Tegra Virtual Storage driver for OOPS partition + +Virtual Storage Driver is the front end driver that interfaces with +- the Storage Virtualization System for Tegra SOC OOPS partition and +- the pstore system for storing OOPS/panic logs + +Required Properties: +- compatible: should be "nvidia,tegra-hv-oops-storage" +- instance: to identify a specific instance of the device +- ivc: ivc channel to used for communication with Virtualization System +- mempool: mempool used for data transfers with Virtualization System +- pstore_max_reason: one of KMSG_DUMP_* values from kmsg_dump.h. Driver only + supports KMSG_DUMP_OOPS (value = 2) which allows PANIC and OOPS logs + to be stored. KMSG logs above this reason level will be ignored. +- pstore_kmsg_size: record size (should be block size aligned) for KMSG logs. + Default is 64KB. + +Example: + tegra_virt_storage31 { + compatible = "nvidia,tegra-hv-oops-storage"; + status = "okay"; + pstore_max_reason = <2>; + pstore_kmsg_size = <0x10000>; + instance = <31>; + ivc = <&tegra_hv 230>; + mempool = <69>; + }; diff --git a/Documentation/devicetree/bindings/block/tegra_virt_storage/tegra-hv-storage.txt b/Documentation/devicetree/bindings/block/tegra_virt_storage/tegra-hv-storage.txt new file mode 100644 index 00000000..8089ef67 --- /dev/null +++ b/Documentation/devicetree/bindings/block/tegra_virt_storage/tegra-hv-storage.txt @@ -0,0 +1,21 @@ +Tegra Virtual Storage driver + +Virtual Storage Driver is the front end driver that interfaces with the +Storage Virtualization System for Tegra SOC and provides a block device +interface + +Required Properties: +- compatible: should be "nvidia,tegra-hv-storage" +- instance: to identify a specific instance of the device +- ivc: ivc channel to used for communication with Virtualization System +- mempool: mempool used for data transfers with Virtualization System + +Example: + tegra_virt_storage0 { + compatible = "nvidia,tegra-hv-storage"; + instance = <0>; + ivc = <&tegra_hv 63>; + mempool = <10>; + status = "okay"; + }; +