Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp1751092rwl; Mon, 26 Dec 2022 04:19:32 -0800 (PST) X-Google-Smtp-Source: AMrXdXtsCoJQIgxQBREohBbyEu3xCnsyhjIG6Ho0kVLKMonsD3UAzJ0H6os/ZnwrzAwXWMVwErt8 X-Received: by 2002:a17:902:ea02:b0:191:271f:477c with SMTP id s2-20020a170902ea0200b00191271f477cmr21449121plg.32.1672057172287; Mon, 26 Dec 2022 04:19:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672057172; cv=none; d=google.com; s=arc-20160816; b=hQ6ooxh/zDlaH/uxFrUqfUTBAylx/86dZyedOZ5anvzhGfXaKxURW5oZOSa4J8Xz8Z M7lWcQ35ldal3D/8lid3w+5AuoYPev8TBAzlTGttZQOZeV/u7gtw2JPmncLXnQQ9nL/T gY0iAetLclZN2ejX4gxTTQ6dOoafHJIaHSL30s6+uiklV3Ai5CP0812wFAX9Fkk07qpK 2bucf/gUIuMZhCkqOWeIPXfyUSnGE3/qNS9/4F8AwrperFGqI0SVeYj9zLbXKoy1arcR rjFasYPEV1R25o3zmhy+8fBuvtow3G6xol4RjGgL5T+shBSd3vaeu/+nDwmyjlyFTT6n qlnA== 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=8dhPQ0by7QwbbWcLwPzUnKNLDpipOdwqZLGDMap4qOk=; b=oL4fnwoJDKeac6PRiPvO2iOBaWwpAAFeELZCALBe9OQNFyDQSfYLN+q36BSQ574782 ar19jOH7WABkfqCETjKZEyIryoR1qb2tIHnjTRyESktPuDPQ3jidUAyJ5QyXZC1A4I2D KOYKahf/OaI557egQ0NVKA+wk2yq09OoWW3q6G1QDXw/frzsjvGxGkK75pC7q66nceix 59nb5tQKxUn9m9Oj55RJktMoB3NOoHoDGZB0reyik9XwUoKmZzB9oEjaP9WhJ7kL4vtM Irc0aiyZ2vDq6nYX+sSs69jNNdbgzdj43UdN8brIaV8p3AD51Aehqn77/4IEfEWPJE5h HkJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=Gbe6nzyN; 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=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 2-20020a631342000000b0043ca0a1f7dasi11272552pgt.674.2022.12.26.04.19.23; Mon, 26 Dec 2022 04:19: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=fail header.i=@z3ntu.xyz header.s=z3ntu header.b=Gbe6nzyN; 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=fail (p=NONE sp=NONE dis=NONE) header.from=z3ntu.xyz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231609AbiLZMLj (ORCPT + 66 others); Mon, 26 Dec 2022 07:11:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229448AbiLZMLh (ORCPT ); Mon, 26 Dec 2022 07:11:37 -0500 Received: from mail.z3ntu.xyz (mail.z3ntu.xyz [128.199.32.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B5E936267; Mon, 26 Dec 2022 04:11:36 -0800 (PST) Received: from g550jk.localnet (2a02-8388-6582-fe80-0000-0000-0000-0005.cable.dynamic.v6.surfer.at [IPv6:2a02:8388:6582:fe80::5]) by mail.z3ntu.xyz (Postfix) with ESMTPSA id 58158CA744; Mon, 26 Dec 2022 12:11:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=z3ntu.xyz; s=z3ntu; t=1672056694; bh=8CDMtK2iyxq7Bqsb86TN4s+3gkJfVCoTCT1ioWKEkAg=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=Gbe6nzyNpLNyOEEmvcd6a6rBbPncyEOwGq+JvzJgPth4XgypgnCIwhyZsOPwoZjrI NtkRoHq1DpCTspI2JXcU5KHRz97MXX/SZo8W7uboFATl3olqzfoS19AMoF9nO1BVMT 8jzPv3Lx+ynCCarpruPXkwc1MFaliii/lsp5V9bc= From: Luca Weiss To: linux-arm-msm@vger.kernel.org, ~postmarketos/upstreaming@lists.sr.ht 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, Rayyan Ansari Subject: Re: [PATCH 2/3] ARM: dts: qcom: pm8226: add PON device node along with resin sub-node Date: Mon, 26 Dec 2022 13:11:33 +0100 Message-ID: <5631229.DvuYhMxLoT@g550jk> In-Reply-To: <20221223193403.781355-3-rayyan@ansari.sh> References: <20221223193403.781355-1-rayyan@ansari.sh> <20221223193403.781355-3-rayyan@ansari.sh> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=0.5 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FROM_SUSPICIOUS_NTLD,SPF_HELO_NONE,SPF_PASS, T_PDS_OTHER_BAD_TLD,URIBL_BLACK autolearn=no 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 On Freitag, 23. Dezember 2022 20:34:02 CET Rayyan Ansari wrote: > 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-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 {