Closed qzed closed 2 years ago
It seems that the PMC8180A handles the power-button in some non-trivial way. This already seems to be implemented in pmc8180.dtsi as:
pmc8180.dtsi
&spmi_bus { pmc8180_0: pmic@0 { compatible = "qcom,pm8150", "qcom,spmi-pmic"; reg = <0x0 SPMI_USID>; #address-cells = <1>; #size-cells = <0>; pon: power-on@800 { compatible = "qcom,pm8916-pon"; reg = <0x0800>; pwrkey { compatible = "qcom,pm8941-pwrkey"; interrupts = <0x0 0x8 0x0 IRQ_TYPE_EDGE_BOTH>; debounce = <15625>; bias-pull-up; linux,code = <KEY_POWER>; status = "disabled"; }; }; }; };
It is currently disabled by default. We should test whether this works.
Implemented in https://github.com/linux-surface/kernel/commit/892c8774c6e53ab46237cb8444aa22c7817563d7.
It seems that the PMC8180A handles the power-button in some non-trivial way. This already seems to be implemented in
pmc8180.dtsi
as:It is currently disabled by default. We should test whether this works.