Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit db2d348e authored by Guru Das Srinagesh's avatar Guru Das Srinagesh
Browse files

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
parent 268424ea
Loading
Loading
Loading
Loading
+23 −6
Original line number Diff line number Diff line
@@ -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>;
	...
}