From patchwork Wed Feb 10 10:58:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yassine Oudjana X-Patchwork-Id: 380391 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BD2ADC433E0 for ; Wed, 10 Feb 2021 11:02:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 74FBB64E25 for ; Wed, 10 Feb 2021 11:02:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231326AbhBJLCD (ORCPT ); Wed, 10 Feb 2021 06:02:03 -0500 Received: from mail-03.mail-europe.com ([91.134.188.129]:39006 "EHLO mail-03.mail-europe.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231403AbhBJK75 (ORCPT ); Wed, 10 Feb 2021 05:59:57 -0500 Date: Wed, 10 Feb 2021 10:58:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1612954686; bh=GRRV1eBGqOks0+oMuJPFV2qf6WNyQkliy1bbSM1rdeM=; h=Date:To:From:Cc:Reply-To:Subject:From; b=bU5LjjP29E8rR5cjyhqZL57GnwCL7lv8a+ssDMDH09ITZxzvTvE7w6pbdRS0aqO/t QFfFeHqiZdtHSL3hK73E4yuSNTrnCUyOyg5yij6X1QvhUNprOOm1zQSj0AY0/9p+50 JE5LCOBeNOR9hoPKyPooBsGz/vEal5Zv8+sK7zPA= To: "linux-arm-msm@vger.kernel.org" From: Yassine Oudjana Cc: "agross@kernel.org" , Bjorn Andersson , "robh+dt@kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" Reply-To: Yassine Oudjana Subject: [PATCH v2] arm64: dts: qcom: pm8994: Add resin node to PON Message-ID: MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add resin as a child node of PON, and specify its key code on apq8096-db820c. Signed-off-by: Yassine Oudjana --- arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi | 18 ++++-------------- arch/arm64/boot/dts/qcom/pm8994.dtsi | 6 ++++++ 2 files changed, 10 insertions(+), 14 deletions(-) -- 2.30.0 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 = ; +}; + &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 = ; - }; - }; - }; -}; - &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 = ; }; + resin: resin { + compatible = "qcom,pm8941-resin"; + interrupts = <0x0 0x8 1 IRQ_TYPE_EDGE_BOTH>; + debounce = <15625>; + bias-pull-up; + }; }; pm8994_temp: temp-alarm@2400 {