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

Commit 24e44f04 authored by Ram Prakash Gupta's avatar Ram Prakash Gupta
Browse files

ARM: dts: msm: add dt entry to control scaling based on temperature



At lower temperatures (<-40degree), SDHC DLL is failing to lock on
RadagastAU target which is leading to CRC issues with SD card in
SDR104 mode.
As workaround to this hardware issue, software is avoiding running
SD card in SDR104 mode at lower temperatures.
Adding dt entries to sdhci node for getting temperature sensor ids
and threshold values for supporting temperature based clock scaling.

Change-Id: I1b3877ba47090a6f9cd3321bfc5e97fd3de99372
Signed-off-by: default avatarRam Prakash Gupta <rampraka@codeaurora.org>
parent 595eeed3
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -113,6 +113,18 @@ In the following, <supply> can be vdd (flash core voltage) or vdd-io (I/O voltag
	- qcom,wakeup-on-idle: if configured, the mmcqd thread will call
	  set_wake_up_idle(), thereby voting for it to be called on idle CPUs.

	- qcom,late-sdhci-msm: if configured, the sdhci probe will be called in
	  late_init() call context and probe will be delayed.

	- qcom,tsens-id: temperature sensor id which is closest to SDC host controller.

	- qcom,disable_scaling_threshold_temp: temperature value at which scaling is
	  disabled if the temperature falls below this temperature.

	- qcom,enable_scaling_threshold_temp: temperature value at which scaling is
	  enabled, when the scaling is disabled, if temperature rises above this
	  temperature.

Example:

	aliases {
+9 −0
Original line number Diff line number Diff line
@@ -69,11 +69,20 @@
	};
};

&sdhc_1 {
	qcom,tsens-id = <0>;
};

&sdhc_2 {
	compatible = "qcom,late-sdhci-msm";

	cd-gpios = <&tlmm 38 GPIO_ACTIVE_LOW>;
	pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on_sbc>;
	pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off
			&sdc2_cd_on_sbc>;
	qcom,tsens-id = <10>;
	qcom,disable_scaling_threshold_temp = <(-15)>;
	qcom,enable_scaling_threshold_temp = <(-5)>;
};

&i2c_7 {