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
This commit is contained in:
Guru Das Srinagesh 2020-03-18 21:28:02 -07:00
commit db2d348e29

View file

@ -15,20 +15,37 @@ REQUIRED PROPERTIES:
Value type: <stringlist>
Definition: must be "qcom,altmode-glink"
- qcom,altmode-name:
- #altmode-cells:
Usage: required
Value type: <string>
Definition: must be "altmode_N" where N is [0-9]
Value type: <u32>
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: <phandle>
Definition: must be <phandle_to_altmode_node, N> where N is port index
EXAMPLE of altmode client node definition:
altmode-client {
...
qcom,altmode-dev = <&altmode 0>;
...
}