Support for Power Button
qzed opened this issue · comments
It seems that the PMC8180A handles the power-button in some non-trivial way. This already seems to be implemented in pmc8180.dtsi
as:
&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 linux-surface/kernel@892c877.