Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp1067796rwj; Fri, 23 Dec 2022 12:05:04 -0800 (PST) X-Google-Smtp-Source: AMrXdXsZNL5ntacWLW1EKw7dKnpSLGS7HKFLHemtXq9NdjEMY2tK59OyyXer8A1NAXxNvydyRuJC X-Received: by 2002:a17:906:5202:b0:7e4:1794:9031 with SMTP id g2-20020a170906520200b007e417949031mr8712938ejm.54.1671825904581; Fri, 23 Dec 2022 12:05:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671825904; cv=none; d=google.com; s=arc-20160816; b=m6SgDvbtIA1Vc+8aOA8BtWbRkf80QqTEuVNPVZyKOPuBFGW6dPDnXg3ODqGMVod7tC WqbzmfZxsClfuIz6CUSULQRTV4vvl3Sa5jkyHSCLc7QLr7EDSi6RhsGcM5aJkJLCBn9l VIjapQmfzCzGjfrwtUBpHA+j00aziAkgmEQH+Sxw2Me2IZpl5bcL5Yfebc9DKMm47zx6 oBW+yKYryOtzkgGIWHKsFntsF01zmY9VkMr2lLvGWk3jXMfUkSUwkjqo7mrNksH0VkkL LYKK0hKKCCFxWmaUx0xmB5lA2YCbvhHLSLqbhiLAXDVNWkHhHUqeBMMRt5GK3mesYaco vGBQ== 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 :dkim-signature; bh=X8r3L9P3xaG7CLBnwwcER20pBXHLK0wxZbBvnqI6mPA=; b=eF1CZMKeGW+GEc4gKSBEtVzSWDGUk61FFGK39e1u2N4kpIFsnOIDvgPQ1JMG8dBLns 5QZ5kutGr1EhFmVixs7qwAZa5hUZSMa29pwhpiK/d5v4AQgPByBVOt2HwZ7lj3kZdH5b tHtE1Xvhhg/bcIWQMl2nnzqDzzXCbBQeVwl8zU1/Lxfzf5BGgLlBUYSGHJaCcOBWvTgP pThyfRVsX05h3ewVwuRjVDyhA8t1jcJw8+i6d/1XOTIp6pQSu5UXVrLAR4hmldrzBSMm sgJzx4CJo0MoujZjv/mkClE+agwsl2TQrkP1bFm7DFXyhbMmJEItWo6Sv6nRJ9IHKq7C vSLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ansari.sh header.s=key1 header.b=EzIKIyIr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ansari.sh Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id wu11-20020a170906eecb00b007c0b56b90f5si3258590ejb.307.2022.12.23.12.04.49; Fri, 23 Dec 2022 12:05:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ansari.sh header.s=key1 header.b=EzIKIyIr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ansari.sh Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232973AbiLWTmL (ORCPT + 64 others); 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: 8bit X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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-pm8226.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 @@ -10,12 +11,25 @@ pm8226_0: pm8226@0 { #address-cells = <1>; #size-cells = <0>; - pwrkey@800 { - compatible = "qcom,pm8941-pwrkey"; + pon@800 { + compatible = "qcom,pm8916-pon"; reg = <0x800>; - interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>; - debounce = <15625>; - bias-pull-up; + + pwrkey { + compatible = "qcom,pm8941-pwrkey"; + interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>; + debounce = <15625>; + bias-pull-up; + linux,code = ; + }; + + pm8226_resin: resin { + compatible = "qcom,pm8941-resin"; + interrupts = <0x0 0x8 1 IRQ_TYPE_EDGE_BOTH>; + debounce = <15625>; + bias-pull-up; + status = "disabled"; + }; }; smbb: charger@1000 { -- 2.39.0