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

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

power: smb5: Support disabling of USB-PD via DT



Add DT property "qcom,usb-pd-disable" to disable USB-PD operation
entirely.

Change-Id: If8f402225b7f51feea87777b62b396a0e6bdc3e2
Signed-off-by: default avatarGuru Das Srinagesh <gurus@codeaurora.org>
parent da627679
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -354,6 +354,9 @@ static int smb5_parse_dt_misc(struct smb5 *chip, struct device_node *node)
	chg->sw_jeita_enabled = of_property_read_bool(node,
				"qcom,sw-jeita-enable");

	chg->pd_not_supported = of_property_read_bool(node,
				"qcom,usb-pd-disable");

	rc = of_property_read_u32(node, "qcom,wd-bark-time-secs",
					&chip->dt.wd_bark_time);
	if (rc < 0 || chip->dt.wd_bark_time < MIN_WD_BARK_TIME)