arm64: dts: qcom: glymur-crd: Enable pull-up bias for lid sensor
PATCH 1/1 arm64: dts: qcom: glymur-crd: Enable pull-up bias for lid sensor
Hall-effect sensor on Glymur CRD has a 10k ohm pull-up resistor Fix the hall-int-n-state node to enable the pull-up bias
--- arch/arm64/boot/dts/qcom/glymur-crd.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/qcom/glymur-crd.dtsi +1 -1
@@ -819,7 +819,7 @@ edp_reg_en: edp-reg-en-state { hall_int_n_default: hall-int-n-state { pins = "gpio92"; function = "gpio"; - bias-disable; + bias-pull-up; }; ec_int_n_default: ec-int-n-state {
---
base-commit: 7cfbf79c66c63e807ea452abf0546e6f6d6833a6
change-id: 20261118-lid_pull_up_fix-123aa8c6b744
Best regards,
Signature · 1 line
Pankaj Patil <[email protected]>
[email protected]
AI reviewThank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Medium] arm64: dts: qcom: glymur-crd: TLMM bias-pull-up contradicts external pull-up --
Thank you for your contribution! Sashiko AI review found 1 potential issue to consider:
- [Medium] arm64: dts: qcom: glymur-crd: TLMM bias-pull-up contradicts external pull-up
--
commit 33a3a23eacc897dad84afcf17e419a24de929c16
Author: Pankaj Patil <[email protected]>
arm64: dts: qcom: glymur-crd: Enable pull-up bias for lid sensor
This commit replaces bias-disable with bias-pull-up on gpio92 in the hall-int-n-state pinctrl node for the lid Hall-effect sensor on Glymur CRD.
arch/arm64/boot/dts/qcom/glymur-crd.dtsi edp_reg_en: edp-reg-en-state { · line 823
Quoted 11 lines
arch/arm64/boot/dts/qcom/glymur-crd.dtsi +1
-1@@ -819,7 +819,7 @@ edp_reg_en: edp-reg-en-state { hall_int_n_default: hall-int-n-state { pins = "gpio92"; function = "gpio"; - bias-disable; + bias-pull-up; };
[Severity: Medium]
Should hall_int_n_default enable bias-pull-up if the board already has an external 10k ohm pull-up resistor?
In msm_config_group_set(), bias-pull-up enables the SoC's internal TLMM pull-up resistor rather than describing an external board resistor. If an external 10k ohm pull-up is populated on gpio92, enabling the internal pull-up in parallel draws extra leakage current whenever the lid is closed and switch-lid (GPIO_ACTIVE_LOW) is held low; if the external resistor is unpopulated and the internal pull-up is needed, the commit message says the opposite.
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
Quoted 5 lines · Pankaj Patil
Hall-effect sensor on Glymur CRD has a 10k ohm pull-up resistor Fix the hall-int-n-state node to enable the pull-up bias
Fixes 627aab9bfe03 ("arm64: dts: qcom: glymur-crd: Enable LID sensor")Signed-off-by Pankaj Patil <[email protected]>
Quoted 27 lines · Pankaj Patil
Hall-effect sensor on Glymur CRD has a 10k ohm pull-up resistor Fix the hall-int-n-state node to enable the pull-up bias
Fixes 627aab9bfe03 ("arm64: dts: qcom: glymur-crd: Enable LID sensor")Signed-off-by Pankaj Patil <[email protected]>--- arch/arm64/boot/dts/qcom/glymur-crd.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm64/boot/dts/qcom/glymur-crd.dtsi +1
-2@@ -819,7 +819,7 @@ edp_reg_en: edp-reg-en-state { hall_int_n_default: hall-int-n-state { pins = "gpio92"; function = "gpio"; - bias-disable; + bias-pull-up; }; ec_int_n_default: ec-int-n-state { ---base-commit:
7cfbf79c66c63e807ea452abf0546e6f6d6833a6
change-id: 20261118-lid_pull_up_fix-123aa8c6b744
Quoted 4 lines
Best regards,
Signature · 1 line
Pankaj Patil <[email protected]>
Please drop this patch, the additional pull-up enabled did not fix the issue in it's entirety, we still the issue but the frequency of hitting the issue is reduced considerably and not consistent across multiple devices This patch is no longer applicable.