Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2553364pxb; Sun, 28 Feb 2021 05:13:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJy6ayFTsScXtMPz729wU1dazsbT9givKUYNbK+xs8OUSAUARVqdyETqEDj7ilxFyUrRjfVq X-Received: by 2002:a17:906:15cc:: with SMTP id l12mr11758595ejd.280.1614517998966; Sun, 28 Feb 2021 05:13:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614517998; cv=none; d=google.com; s=arc-20160816; b=c9qoUrs+APq/qThPMyrVDytLGDURNmw5rA4FQQ9HRdXP8kSZ+fTxKJOov1SfGb80hL CaFkVX+PbVHopUpr08WQ0i/X6H9njEnn8m7ZQMpqR2Inu7agJVqKS6wUwzw/6Q4r9Ykf 8Nb/KTOSPp73R0YF+sX4Ftrx3xvsXXkwrabTmBPjhWEw5MYcJLDKtQuqLFLUCitDDF5V XFsXmkwzkTo2etEZSYuj3Lwr+Y1KnSHg4Y9m+3mQDnH4T+qxgkyyz3dIMgvdqjN1Xoeg MtAySbQ3XEb7uqTVzTbpuqI0io6r7ckHzn9jW7oSKHFmRYUYsav/+vhlYLShr8AucVe7 Ig3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=nIA595qgNqEq8uWc0FNX2QD+Ew+4jT9hX7yY3aLdZAU=; b=kerQ9cZrYZppVFb7Ul88vAPqORdwiLAN4z03LgXs4SWU7cRWIDVxxMeIHy4UjXuTLb AgTFF9orlEqVk+Gj9At2xPt5XEx7Sg6Uj3Z6PajVk7uvH5YY34YW1ibY6YIKnq+5kkdU GpO66ftPDj9x3DX8KxNM/PZNIgduXGpBG1vRM+rXC6zCZlQAjTizj2ASpfFB07UqynwV Ao953Ig4JI2kENhtb9Q08Ufbhp4dgVQWCAYZ8bZed8WOMVMRKzHMVovU/2XoHTMN0na8 ANQsQTwzW3nyPsBfXhG39hHcGCZNMHg0WBM+divs97d5D6+kxri5t2ZZ1zW0iKwU9qlV 1xOA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g7si9297089edh.31.2021.02.28.05.12.56; Sun, 28 Feb 2021 05:13:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230444AbhB1NL6 (ORCPT + 99 others); Sun, 28 Feb 2021 08:11:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230480AbhB1NK1 (ORCPT ); Sun, 28 Feb 2021 08:10:27 -0500 Received: from m-r1.th.seeweb.it (m-r1.th.seeweb.it [IPv6:2001:4b7a:2000:18::170]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B157C06178B; Sun, 28 Feb 2021 05:08:59 -0800 (PST) Received: from localhost.localdomain (abab236.neoplus.adsl.tpnet.pl [83.6.165.236]) by m-r1.th.seeweb.it (Postfix) with ESMTPA id 06C5D1F571; Sun, 28 Feb 2021 14:08:56 +0100 (CET) From: Konrad Dybcio To: phone-devel@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, martin.botka@somainline.org, angelogioacchino.delregno@somainline.org, marijn.suijten@somainline.org, Konrad Dybcio , Andy Gross , Bjorn Andersson , Rob Herring , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 08/11] arm64: dts: qcom: pm8994: Add RESIN node Date: Sun, 28 Feb 2021 14:08:26 +0100 Message-Id: <20210228130831.203765-8-konrad.dybcio@somainline.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210228130831.203765-1-konrad.dybcio@somainline.org> References: <20210228130831.203765-1-konrad.dybcio@somainline.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a RESIN node to support RESIN-connected buttons on some devices. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi | 19 +++++-------------- arch/arm64/boot/dts/qcom/pm8994.dtsi | 8 +++++++- 2 files changed, 12 insertions(+), 15 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi b/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi index e6ef76971c31..d2a5fb0c8df1 100644 --- a/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi +++ b/arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi @@ -249,6 +249,11 @@ &mmcc { vdd-gfx-supply = <&vdd_gfx>; }; +&pm8994_resin { + status = "okay"; + linux,code = ; +}; + &tlmm { gpio-line-names = "[SPI0_DOUT]", /* GPIO_0, BLSP1_SPI_MOSI, LSEC pin 14 */ @@ -1030,20 +1035,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 c3876c82c874..ad19016df047 100644 --- a/arch/arm64/boot/dts/qcom/pm8994.dtsi +++ b/arch/arm64/boot/dts/qcom/pm8994.dtsi @@ -45,7 +45,6 @@ rtc@6000 { pm8994_pon: pon@800 { compatible = "qcom,pm8916-pon"; - reg = <0x800>; mode-bootloader = <0x2>; mode-recovery = <0x1>; @@ -58,6 +57,13 @@ pwrkey { linux,code = ; }; + pm8994_resin: resin { + compatible = "qcom,pm8941-resin"; + interrupts = <0x0 0x8 1 IRQ_TYPE_EDGE_BOTH>; + debounce = <15625>; + bias-pull-up; + status = "disabled"; + }; }; pm8994_temp: temp-alarm@2400 { -- 2.30.1