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

Commit 13d5b920 authored by Subbaraman Narayanamurthy's avatar Subbaraman Narayanamurthy
Browse files

dt-bindings: qpnp-qnovo5: Support configuring external FET control



As per the hardware recommendation, external FET should be
controlled through a GPIO upon charger removal. Add support for
this by allowing GPIO to be configured upon charger removal.

Change-Id: I9a8265cbec10de005b9ae94db56bafabf2659925
Signed-off-by: default avatarSubbaraman Narayanamurthy <subbaram@codeaurora.org>
parent f5f31790
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -30,6 +30,18 @@ Properties:
  Definition: Specifies the interrupt name for Qnovo5. There is only one
		interrupt named as "ptrain-done".

- pinctrl-N:
  Usage:      optional
  Value type: <phandle>
  Definition: Specifies the pinctrl configuration that needs to be applied
		when the charger is removed for controlling external FET.

- pinctrl-names:
  Usage:      optional
  Value type: <string>
  Definition: Specifies the names for pinctrl configurations defined above.
		Allowed names are "q_state1" and "q_state2".

Example:

qcom,qpnp-qnovo@b000 {
@@ -37,4 +49,7 @@ qcom,qpnp-qnovo@b000 {
	reg = <0xb000 0x100>;
	interrupts = <0x2 0xb0 0x1 IRQ_TYPE_NONE>;
	interrupt-names = "ptrain-done";
	pinctrl-names = "q_state1", "q_state2";
	pinctrl-0 = <&qnovo_fet_ctrl_state1>;
	pinctrl-1 = <&qnovo_fet_ctrl_state2>;
};