From nobody Wed Sep 17 01:25:25 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6BA31C53210 for ; Fri, 23 Dec 2022 19:42:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232910AbiLWTl7 (ORCPT ); Fri, 23 Dec 2022 14:41:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232845AbiLWTly (ORCPT ); Fri, 23 Dec 2022 14:41:54 -0500 Received: from out-66.mta0.migadu.com (out-66.mta0.migadu.com [IPv6:2001:41d0:1004:224b::42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92C2220F4D for ; Fri, 23 Dec 2022 11:41:51 -0800 (PST) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ansari.sh; s=key1; t=1671824094; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=sEEj5Ej8/ePlR6ODry659RSCjAwiu7EXnRI2MiybwOQ=; b=PAoLkAZScyRpo8UeM95cH9S43hxxXS9MKVsd98aIcnhicSZTPydBA24N3uNHIo02AxFX4R bOI9HJ+hwMbHYps3rmGwS+QmGMpjDIeaw1aX44QHhx1qmIyhLaRGhdRaAt8xKt0PTtYfoa DfRP2sfhXqAs8yQ4eKBE5IDm5an0Dw0= From: Rayyan Ansari To: linux-arm-msm@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, Rayyan Ansari , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] ARM: dts: qcom: pm8226: sort includes alphabetically and nodes by address Date: Fri, 23 Dec 2022 19:34:01 +0000 Message-Id: <20221223193403.781355-2-rayyan@ansari.sh> In-Reply-To: <20221223193403.781355-1-rayyan@ansari.sh> References: <20221223193403.781355-1-rayyan@ansari.sh> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Sort the includes and nodes for consistency. Signed-off-by: Rayyan Ansari Reviewed-by: Luca Weiss --- arch/arm/boot/dts/qcom-pm8226.dtsi | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/arch/arm/boot/dts/qcom-pm8226.dtsi b/arch/arm/boot/dts/qcom-pm= 8226.dtsi index 9b7d9d04ded6..d99532ea70b2 100644 --- a/arch/arm/boot/dts/qcom-pm8226.dtsi +++ b/arch/arm/boot/dts/qcom-pm8226.dtsi @@ -1,7 +1,7 @@ // SPDX-License-Identifier: BSD-3-Clause +#include #include #include -#include =20 &spmi_bus { pm8226_0: pm8226@0 { @@ -41,13 +41,6 @@ smbb: charger@1000 { chg_otg: otg-vbus { }; }; =20 - rtc@6000 { - compatible =3D "qcom,pm8941-rtc"; - reg =3D <0x6000>, <0x6100>; - reg-names =3D "rtc", "alarm"; - interrupts =3D <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>; - }; - pm8226_vadc: adc@3100 { compatible =3D "qcom,spmi-vadc"; reg =3D <0x3100>; @@ -81,6 +74,13 @@ adc-chan@f { }; }; =20 + rtc@6000 { + compatible =3D "qcom,pm8941-rtc"; + reg =3D <0x6000>, <0x6100>; + reg-names =3D "rtc", "alarm"; + interrupts =3D <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>; + }; + pm8226_mpps: mpps@a000 { compatible =3D "qcom,pm8226-mpp", "qcom,spmi-mpp"; reg =3D <0xa000>; --=20 2.39.0 From nobody Wed Sep 17 01:25:25 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1F855C4332F for ; Fri, 23 Dec 2022 19:42:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232990AbiLWTmL (ORCPT ); Fri, 23 Dec 2022 14:42:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232862AbiLWTly (ORCPT ); Fri, 23 Dec 2022 14:41:54 -0500 Received: from out-185.mta0.migadu.com (out-185.mta0.migadu.com [IPv6:2001:41d0:1004:224b::b9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0F44205FA for ; Fri, 23 Dec 2022 11:41:51 -0800 (PST) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ansari.sh; s=key1; t=1671824095; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=X8r3L9P3xaG7CLBnwwcER20pBXHLK0wxZbBvnqI6mPA=; b=EzIKIyIrhWAMZf6k6DT0YswsV8W509+29rW6622nfIuoC+7nBT/fZq0Y8zUnTF244kFJ1/ LjOI3m9Ew4+eG1u/csBgesMSae2HqXrcMf8sS9z8tOTibkDlO8Z7icpsz6RjVOZ/KJitN+ C6GQHa3E5GC/nAdqOQv40JJlt6n4PjY= From: Rayyan Ansari To: linux-arm-msm@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, Rayyan Ansari , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/3] ARM: dts: qcom: pm8226: add PON device node along with resin sub-node Date: Fri, 23 Dec 2022 19:34:02 +0000 Message-Id: <20221223193403.781355-3-rayyan@ansari.sh> In-Reply-To: <20221223193403.781355-1-rayyan@ansari.sh> References: <20221223193403.781355-1-rayyan@ansari.sh> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" The PON (Power On) device in PM8226 supports both the power key and resin (reset input). The reset input is usually connected to a physical volume up/down button. Signed-off-by: Rayyan Ansari Reviewed-by: Luca Weiss --- arch/arm/boot/dts/qcom-pm8226.dtsi | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/arch/arm/boot/dts/qcom-pm8226.dtsi b/arch/arm/boot/dts/qcom-pm= 8226.dtsi index d99532ea70b2..403324a35cf5 100644 --- a/arch/arm/boot/dts/qcom-pm8226.dtsi +++ b/arch/arm/boot/dts/qcom-pm8226.dtsi @@ -1,5 +1,6 @@ // SPDX-License-Identifier: BSD-3-Clause #include +#include #include #include =20 @@ -10,12 +11,25 @@ pm8226_0: pm8226@0 { #address-cells =3D <1>; #size-cells =3D <0>; =20 - pwrkey@800 { - compatible =3D "qcom,pm8941-pwrkey"; + pon@800 { + compatible =3D "qcom,pm8916-pon"; reg =3D <0x800>; - interrupts =3D <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>; - debounce =3D <15625>; - bias-pull-up; + + pwrkey { + compatible =3D "qcom,pm8941-pwrkey"; + interrupts =3D <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>; + debounce =3D <15625>; + bias-pull-up; + linux,code =3D ; + }; + + pm8226_resin: resin { + compatible =3D "qcom,pm8941-resin"; + interrupts =3D <0x0 0x8 1 IRQ_TYPE_EDGE_BOTH>; + debounce =3D <15625>; + bias-pull-up; + status =3D "disabled"; + }; }; =20 smbb: charger@1000 { --=20 2.39.0 From nobody Wed Sep 17 01:25:25 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A034AC4332F for ; Fri, 23 Dec 2022 19:42:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231338AbiLWTmC (ORCPT ); Fri, 23 Dec 2022 14:42:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232720AbiLWTlx (ORCPT ); Fri, 23 Dec 2022 14:41:53 -0500 X-Greylist: delayed 417 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 23 Dec 2022 11:41:52 PST Received: from out-160.mta0.migadu.com (out-160.mta0.migadu.com [IPv6:2001:41d0:1004:224b::a0]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 707BA20BCB for ; Fri, 23 Dec 2022 11:41:51 -0800 (PST) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ansari.sh; s=key1; t=1671824095; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Cuo2mCxNwzlaaPMVGjwAgwxjj9yvcLc2q0fziXRbFVU=; b=NeIx+4APL6Bbg5KKboUjBG2eMNXJamoYBXirkOAWVHWdr5z58oL0yA1l2v/nNg/Vn43YVS VcEuaxYCoir6rAKF9EQk1ZNgSTPYJzQVmgHffQICsaZh/P1+KAxDQ5hDBWALfLdtUGUHxV K2WaUZukdiczgakdeTuyhv3d2vXkkwE= From: Rayyan Ansari To: linux-arm-msm@vger.kernel.org Cc: ~postmarketos/upstreaming@lists.sr.ht, Rayyan Ansari , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] ARM: dts: qcom: pm8226: add IADC node Date: Fri, 23 Dec 2022 19:34:03 +0000 Message-Id: <20221223193403.781355-4-rayyan@ansari.sh> In-Reply-To: <20221223193403.781355-1-rayyan@ansari.sh> References: <20221223193403.781355-1-rayyan@ansari.sh> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Add a node for the current ADC (IADC) found in PM8226. Signed-off-by: Rayyan Ansari --- arch/arm/boot/dts/qcom-pm8226.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/qcom-pm8226.dtsi b/arch/arm/boot/dts/qcom-pm= 8226.dtsi index 403324a35cf5..82470549f240 100644 --- a/arch/arm/boot/dts/qcom-pm8226.dtsi +++ b/arch/arm/boot/dts/qcom-pm8226.dtsi @@ -88,6 +88,12 @@ adc-chan@f { }; }; =20 + pm8226_iadc: iadc@3600 { + compatible =3D "qcom,spmi-iadc"; + reg =3D <0x3600>; + interrupts =3D <0x0 0x36 0x0 IRQ_TYPE_EDGE_RISING>; + }; + rtc@6000 { compatible =3D "qcom,pm8941-rtc"; reg =3D <0x6000>, <0x6100>; --=20 2.39.0