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

Commit f1f31782 authored by Luca Weiss's avatar Luca Weiss
Browse files

arm64: dts: qcom: Remove unused smb1355

The SMB1355 is not used on FP3, so remove it from dts.

We still need to keep pmi632_ctm pinctrl enabled, as charger and camera
flash LED depend on this. Also for good measure keep the pmi632_sense
configuration to avoid unexpected surprises.

See also the following commits:
* 15d3c8f9 ("ARM: dts: msm: enable H/W thermal mitigation for PMI632 based platform")
* ca13a0ce ("ARM: dts: msm: Add PMI632 GPIO configuration for parallel-current sense")

Issue: FP3-A13#71
Change-Id: I841a2090af7b72082c8c9a19b2ba044f944190ba
parent f09b7a0e
Loading
Loading
Loading
Loading
+2 −59
Original line number Diff line number Diff line
@@ -28,22 +28,7 @@

};

&i2c_2 {
#address-cells = <1>;
#size-cells = <0>;

#include "smb1355.dtsi"
};

&pmi632_gpios {
	smb_en {
		smb_en_default: smb_en_default {
			pins = "gpio2";
			function = "func1";
			output-enable;
		};
	};

	pmi632_sense {
		/* GPIO 7 and 8 are external-sense pins for PMI632 */
		pmi632_sense_default: pmi632_sense_default {
@@ -63,49 +48,7 @@
	};
};

&tlmm {
	smb_int_default: smb_int_default {
		mux {
			pins = "gpio59";
			function = "gpio";
		};
		config {
			pins = "gpio59";
			drive-strength = <2>;
			bias-pull-up;
			input-enable;
		};
	};
};

&smb1355_0 {
	pinctrl-names = "default";
	pinctrl-0 = <&smb_int_default
		&smb_en_default &pmi632_sense_default &pmi632_ctm_default>;
	interrupt-parent = <&tlmm>;
	interrupts = <59 IRQ_TYPE_LEVEL_LOW>;
	smb1355_charger_0: qcom,smb1355-charger@1000 {
		status ="ok";
		/delete-property/ io-channels;
		/delete-property/ io-channels-names;
		qcom,parallel-mode = <1>;
		qcom,disable-ctm;
		qcom,hw-die-temp-mitigation;
	};
};

&smb1355_1 {
&pmi632_charger {
	pinctrl-names = "default";
	pinctrl-0 = <&smb_int_default
		&smb_en_default &pmi632_sense_default &pmi632_ctm_default>;
	interrupt-parent = <&tlmm>;
	interrupts = <59 IRQ_TYPE_LEVEL_LOW>;
	smb1355_charger_1: qcom,smb1355-charger@1000 {
		status ="ok";
		/delete-property/ io-channels;
		/delete-property/ io-channels-names;
		qcom,parallel-mode = <1>;
		qcom,disable-ctm;
		qcom,hw-die-temp-mitigation;
	};
	pinctrl-0 = <&pmi632_sense_default &pmi632_ctm_default>;
};