From d2d9ed22b61e1f2b57980dc338c597f2bb2e33bd Mon Sep 17 00:00:00 2001 From: Cong Zhang Date: Wed, 13 Mar 2024 18:35:42 +0800 Subject: [PATCH] dt-bindings: soc: qcom: Add child node of TLMM VM mem access Add child node for vm instance to specify VMID, label and gpio list for each VM. Change-Id: I4834623b176e997553aab462c60b3d6913840d9b Signed-off-by: Cong Zhang --- bindings/pinctrl/qcom,tlmm-vm-mem-access.yaml | 39 +++++++++++++++---- 1 file changed, 31 insertions(+), 8 deletions(-) diff --git a/bindings/pinctrl/qcom,tlmm-vm-mem-access.yaml b/bindings/pinctrl/qcom,tlmm-vm-mem-access.yaml index 54f745c1..a63efd52 100644 --- a/bindings/pinctrl/qcom,tlmm-vm-mem-access.yaml +++ b/bindings/pinctrl/qcom,tlmm-vm-mem-access.yaml @@ -1,12 +1,14 @@ # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) %YAML 1.2 --- +--- $id: http://devicetree.org/schemas/pinctrl/qcom,tlmm-vm-mem-access.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# -title: Qualcomm Technologies, Inc. TLMM VM memory access driver binding +title: Qualcomm Technologies, Inc. TLMM VM memory access driver maintainers: + - Murali Nalajala + - Cong Zhang description: |+ The driver facilitates initial memory access to TLMM VM driver. @@ -17,15 +19,36 @@ properties: qcom,master: description: Specify if this device is on the primary virtual machine. + type: boolean - tlmm-vm-gpio-list: - description: List of shared gpios. +patternProperties: + "^.*$": + type: object + description: child node representing a VM instance -example: + properties: + tlmm-vm-gpio-list: + description: List of shared gpios. + + qcom,vmid: + description: VMID for the VM instance + $ref: /schemas/types.yaml#/definitions/uint32 + + qcom,label: + description: Unique label for the VM instance + $ref: /schemas/types.yaml#/definitions/uint32 + +additionalProperties: false + +examples: - | tlmm-vm-mem-access { - compatible = "qcom,tlmm-vm-mem-access"; - qcom,master; - tlmm-vm-gpio-list = <&tlmm 0 0 &tlmm 1 0>; + compatible = "qcom,tlmm-vm-mem-access"; + qcom,master; + tuivm { + qcom,label = <0x01>; + qcom,vmid = <45>; + tlmm-vm-gpio-list = <&tlmm 1 0 &tlmm 2 0>; + }; }; ...