Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp5242842rwl; Wed, 28 Dec 2022 15:34:32 -0800 (PST) X-Google-Smtp-Source: AMrXdXvIwOpgmK1woogwoFBPDHUp3SlIuPNyvjrw+3STVSs3M6+Vd8w7Rp3nYMj9xw+sRfV2Gmwd X-Received: by 2002:aa7:9210:0:b0:577:8bae:29a7 with SMTP id 16-20020aa79210000000b005778bae29a7mr26922628pfo.33.1672270472582; Wed, 28 Dec 2022 15:34:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672270472; cv=none; d=google.com; s=arc-20160816; b=f8LgfaZcjKpD9uPXePrOdTyVoimEndo0i7R/VOp1DFfhVAhu8P7PXQOPcz50g/1XeK AahA+IyRzg6j91TPUsSNDalXYcVUHXcDPNOn0MSxzRWLvkVjGi/dkd1n+sOKTfKEfZSm lEL2yOoplM9t+N/UhP9C4zgUWYBplrbnkZWDTWYNaGX3PhAy8IYHnimHtLcRk4k+3SQ5 GgIi5bhJdGszi1/LR+cnXHNJDnBeInpOwyN2N1/Q2WriYAbN7W6uO4DOZqjKwUWhD0/v NpHs+kMwRYMiy2o9A3p29KDLPt+K1ehPu1qm2c8X/SVD3Yt5+h8aRvcANIM+zskF8JZS PvoQ== 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=bnwXtxtZQ++ScmeiVxdbM78TDcRPmg2/b/0YYcIzaw8=; b=oPiT5Mk9LceEBeiG540/k4+/GC0p2sEqd6fxINUDsjoCi/uhbXWerJhBEZxYvNGsjV o4H+cO3OoUmO6C4y5NrcyUBfjyHsCD+XC7qhuckOu8IEddwfXFi7rBL4DusIimaSS9IR QhcbWRwdH53nKR6TOxg644Ur+fgxLKIpVE3U4y+gCFTOBX9bWUCa0xHoy69NqFiC47Db 1IApsfqcyMPmENLhYIeUfElyu+tIiExXxNLmKvirRdgFNhgXU/CkmBhwya5EIziFzRmF EM++jXhQenHYGZGfcVTBE+PdxksH7QHc7VYBRAMyDDcQpvYwL54hnAqLLsHuGyB2dnHO jlSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ansari.sh header.s=key1 header.b=kTygue64; 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 j9-20020a056a00130900b00566a131ea12si17441941pfu.289.2022.12.28.15.34.24; Wed, 28 Dec 2022 15:34:32 -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=kTygue64; 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 S231955AbiL1XFG (ORCPT + 62 others); Wed, 28 Dec 2022 18:05:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230467AbiL1XE5 (ORCPT ); Wed, 28 Dec 2022 18:04:57 -0500 Received: from out-81.mta0.migadu.com (out-81.mta0.migadu.com [91.218.175.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7ABC3B84A for ; Wed, 28 Dec 2022 15:04:55 -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=1672268693; 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=bnwXtxtZQ++ScmeiVxdbM78TDcRPmg2/b/0YYcIzaw8=; b=kTygue648B/G0atk2BgTloS8oNmvcb44roTikl5ZV1DQymOY61yiEQrV9WbGDhCljE1ZoQ bdZ2qrtervdVyBoyw9fL6Lt7cYujwNJU5V+LNIAuU+I+0j6qHlCO2uDlwdKd/D4Eksvm3p Cc0uGrpse4OKKsblo9pqA9Ts/up+GCI= 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 v2 2/4] ARM: dts: qcom: pm8226: add PON device node along with resin sub-node Date: Wed, 28 Dec 2022 23:04:17 +0000 Message-Id: <20221228230421.56250-3-rayyan@ansari.sh> In-Reply-To: <20221228230421.56250-1-rayyan@ansari.sh> References: <20221228230421.56250-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 a2092569970a..6af259218f63 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