From db2d348e294366df5c0d07ec6826aa6618feb8e0 Mon Sep 17 00:00:00 2001 From: Guru Das Srinagesh Date: Wed, 18 Mar 2020 21:28:02 -0700 Subject: [PATCH] bindings: altmode-glink: Change device-client linkage Instead of linking the altmode device and client via a name string, use a phandle instead, and specify the port index of the client along with the phandle data as well. Change-Id: Ica5456ab7e808e99a92d0b91e59c73c7184aa826 --- bindings/soc/qcom/qcom,altmode-glink.txt | 29 +++++++++++++++++++----- 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/bindings/soc/qcom/qcom,altmode-glink.txt b/bindings/soc/qcom/qcom,altmode-glink.txt index 5cc46292e87c..0e1c2a951fb1 100644 --- a/bindings/soc/qcom/qcom,altmode-glink.txt +++ b/bindings/soc/qcom/qcom,altmode-glink.txt @@ -15,20 +15,37 @@ REQUIRED PROPERTIES: Value type: Definition: must be "qcom,altmode-glink" -- qcom,altmode-name: +- #altmode-cells: Usage: required - Value type: - Definition: must be "altmode_N" where N is [0-9] + Value type: + Definition: must be <1> -EXAMPLE: +EXAMPLE of altmode node definition: &soc { qcom,pmic_glink { ... - qcom,altmode { + altmode: qcom,altmode { compatible = "qcom,altmode-glink"; - qcom,altmode-name = "altmode_0"; + #altmode-cells = <1>; }; ... }; }; + +Altmode client bindings: + +REQUIRED PROPERTIES: + +- qcom,altmode-dev: + Usage: required + Value type: + Definition: must be where N is port index + +EXAMPLE of altmode client node definition: + +altmode-client { + ... + qcom,altmode-dev = <&altmode 0>; + ... +}