Add resin as a child node of PON, and specify its key code on apq8096-db820c. Signed-off-by: Yassine Oudjana <y.oudjana@xxxxxxxxxxxxxx> --- arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi | 18 ++++-------------- arch/arm64/boot/dts/qcom/pm8994.dtsi | 6 ++++++ 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi b/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi index defcbd15edf9..8e129bcc20ba 100644 --- a/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi +++ b/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi @@ -951,6 +951,10 @@ dai@2 { }; }; +&resin { + linux,code = <KEY_VOLUMEDOWN>; +}; + &sound { compatible = "qcom,apq8096-sndcard"; model = "DB820c"; @@ -1026,20 +1030,6 @@ codec { }; }; -&spmi_bus { - pmic@0 { - pon@800 { - resin { - compatible = "qcom,pm8941-resin"; - interrupts = <0x0 0x8 1 IRQ_TYPE_EDGE_BOTH>; - debounce = <15625>; - bias-pull-up; - linux,code = <KEY_VOLUMEDOWN>; - }; - }; - }; -}; - &ufsphy { status = "okay"; diff --git a/arch/arm64/boot/dts/qcom/pm8994.dtsi b/arch/arm64/boot/dts/qcom/pm8994.dtsi index 5ffdf37d8e31..b4828188417e 100644 --- a/arch/arm64/boot/dts/qcom/pm8994.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8994.dtsi @@ -58,6 +58,12 @@ pwrkey { linux,code = <KEY_POWER>; }; + resin: resin { + compatible = "qcom,pm8941-resin"; + interrupts = <0x0 0x8 1 IRQ_TYPE_EDGE_BOTH>; + debounce = <15625>; + bias-pull-up; + }; }; pm8994_temp: temp-alarm@2400 { -- 2.30.0