From patchwork Mon May 8 16:04:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 680444 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 A3D7FC7EE33 for ; Mon, 8 May 2023 16:05:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232876AbjEHQFB (ORCPT ); Mon, 8 May 2023 12:05:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233033AbjEHQEy (ORCPT ); Mon, 8 May 2023 12:04:54 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D95459F1 for ; Mon, 8 May 2023 09:04:53 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-4f139de8cefso28658671e87.0 for ; Mon, 08 May 2023 09:04:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683561891; x=1686153891; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=xKq23YAf45bB0TY5A8OYCdd/tqcQK4TJNEhLnPPrGR8=; b=fMejH7OI3jTpCpUsJRMmUV4I00OHmD8ftPe30OWp84O+fa/MjW/fNXnoie1kAa7bZx 785wggFXlUGLB/ZJ4SrKzb9v6EQrqmHc3drrnMR4m5i6sHxODC7d+JsTIrwkqxBsYhTI J6/B0PVlAPr6pE5VfDE1CthunRXHeFruSfGOnb4i/91em2iStnAXFNYnJaDDV2xmc1Pl Mfyea7N03uveuhDaGlQeGOD/Nqdc2kfQq4rbcLRQ9fo1O8TO1Tr/MicR0GvkXlDZIn22 HlCTHAGyUVCl8HJqSS7gmIeaxZ/t64nV7mBMoRd3CfBGOPE7SR52jZbsEkx/WoyXyKAX 7lpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683561891; x=1686153891; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xKq23YAf45bB0TY5A8OYCdd/tqcQK4TJNEhLnPPrGR8=; b=MN0IZsG3cyTYMDYcIicJl7oOtJUeazOcEcQTACY5lQNZqtZPgUVTn7U4Jarv0LeHVx ccr6NJnREG1G+MV1a5RPiLa/vqc0vblgVgd39JEF6efu5FiwHtA7pe7H9xbFmILzrv5T Zyyo/EgX+pyvqWx+dyKe8tnzXutyZyfRyof7vW4GNVg/2KQ9Cvg6rqOK40Tak2yAAU3I 1iohDf7IoZ+BKDjnCtrOIKPjx513MnKA0owlVeWmV0klnxAoxYo7/1eOEKUpjBRwK2im 0uzCi0AypR3nA1TuZSHr1qlI6n8BOa8N61qYof5T4XMdMqbefioi2Q8pLZ7YPCs14+px Rq8w== X-Gm-Message-State: AC+VfDyC5NgNUw99TnjIyQFvPk73acQO73PSVhkeh/bJDrpnokCYsvdX IVz1Sy9IarthR1mapU7a4HXwXA== X-Google-Smtp-Source: ACHHUZ67HLlNh7sz9XqBc5R+t1LfTYoV3VXRMEklPkO33kY/pgfGyU1P2d6KcQIh8NcphpWz3SBL9w== X-Received: by 2002:a05:6512:2351:b0:4eb:412e:b06a with SMTP id p17-20020a056512235100b004eb412eb06amr4019579lfu.22.1683561891620; Mon, 08 May 2023 09:04:51 -0700 (PDT) Received: from lothlorien.lan (dzdqv0yyyyyyyyyyybm5y-3.rev.dnainternet.fi. [2001:14ba:a0db:1f00::ab2]) by smtp.gmail.com with ESMTPSA id h3-20020ac25963000000b004eff4ea8dd3sm32372lfp.76.2023.05.08.09.04.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 May 2023 09:04:50 -0700 (PDT) From: Dmitry Baryshkov To: Sebastian Reichel , Rob Herring , Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , Konrad Dybcio , Vinod Koul Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH v2 3/6] ARM: dts: qcom-pm8941: add resin support Date: Mon, 8 May 2023 19:04:43 +0300 Message-Id: <20230508160446.2374438-4-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230508160446.2374438-1-dmitry.baryshkov@linaro.org> References: <20230508160446.2374438-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Wrap existing pwrkey and new resin nodes into the new pon node to enable volume-down key support on platforms using pm8941 PMIC. Signed-off-by: Dmitry Baryshkov Reviewed-by: Konrad Dybcio --- arch/arm/boot/dts/qcom-pm8941.dtsi | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/arch/arm/boot/dts/qcom-pm8941.dtsi b/arch/arm/boot/dts/qcom-pm8941.dtsi index a821f0368a28..cf1fcf97fa88 100644 --- a/arch/arm/boot/dts/qcom-pm8941.dtsi +++ b/arch/arm/boot/dts/qcom-pm8941.dtsi @@ -19,12 +19,24 @@ rtc@6000 { interrupts = <0x0 0x61 0x1 IRQ_TYPE_EDGE_RISING>; }; - pwrkey@800 { - compatible = "qcom,pm8941-pwrkey"; + pon@800 { + compatible = "qcom,pm8941-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; + }; + + pm8941_resin: resin { + compatible = "qcom,pm8941-resin"; + interrupts = <0x0 0x8 1 IRQ_TYPE_EDGE_BOTH>; + debounce = <15625>; + bias-pull-up; + status = "disabled"; + }; }; usb_id: usb-detect@900 {