From patchwork Mon May 8 00:33:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 680464 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 62DD0C7EE2C for ; Mon, 8 May 2023 00:33:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232024AbjEHAdU (ORCPT ); Sun, 7 May 2023 20:33:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232060AbjEHAdR (ORCPT ); Sun, 7 May 2023 20:33:17 -0400 Received: from mail-lf1-x129.google.com (mail-lf1-x129.google.com [IPv6:2a00:1450:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 059D69034 for ; Sun, 7 May 2023 17:33:14 -0700 (PDT) Received: by mail-lf1-x129.google.com with SMTP id 2adb3069b0e04-4ec8133c59eso4426502e87.0 for ; Sun, 07 May 2023 17:33:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683505992; x=1686097992; 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=60+RN5IXt2QTmhFV4LWN/OmeuPm2E4Pe1J71Zr5me3w=; b=VRc/4nSOlsan7d95XurHx2XuEyg2u4WeTOOrMobCoystpLkzP7H4oOUHrAwulYkjT8 Ga6Tky/TcYzYOJvnoDyXB68K28tjtt3Pw2XOU0s+c6dqpD17Q6TcJooWMay/6yxKzqD4 pD4rjXO5GP4IdG8J8GE6pNBe9QCNC7Lz+O616dV+4hnV/2q08dFoaVczjDScxr6+CoGq yi0fhJl7rRiJEu6MQmkrhc7OY9ULn0kLipL1+TM/AgsraxVDEm9p/KfwucBQDalB4IzL 4nGmjARqWezxExK/KuPVH1ljHkrjeCFCG4eyAIZCpxZc+6pOrdwzWWj9VyOTfD2fKgGI yk6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683505992; x=1686097992; 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=60+RN5IXt2QTmhFV4LWN/OmeuPm2E4Pe1J71Zr5me3w=; b=DTNgMYcE+q3YIIgj+Drh3XkXdEzQzyEZ2PfSn+EXmcmouR2G4/BctxRXXJePgRO8oc D3K1MtNJZ+y9ENxPQFqO/exVxFUGAwq33aU4n7cR/nF7aydnRNdf3CExvY6O8QteKU2R rbOLQvw0KbxIoM6zWcvB/nD4WUiJOdI3+BYshFUeM21ky0FpO8K+nZTE5qxz415Wx8Qd Z0s6wUmRhlFJUAFU+MpVPAWEaHQ40lCMIaB8p24sfTjgsQNfYGxuafMu8fG8UD8pl86m nAFTyXZBxzgXrlrkQmSHTBPetwt+XdeSfoqFqhzcspBej9+Pn+zybpyevw5Ejwyy9wN+ oFaQ== X-Gm-Message-State: AC+VfDz/oySKSHG/1wQpIu5GhFMtVCTFXLYwWpTImLJAvvAO4IE5xUzq uOqB1w1fUP7+Z6Swd/+YT5ZqTZTxmbkAwfEmgWU= X-Google-Smtp-Source: ACHHUZ56IuHCb9krnV3H/zXiOep0NRvIJfd3WAi6IPzpjviYdMipBpeWAdBdOwYbLXyEEfklfQhRVQ== X-Received: by 2002:a19:ae06:0:b0:4db:3927:e2bc with SMTP id f6-20020a19ae06000000b004db3927e2bcmr1993106lfc.50.1683505992334; Sun, 07 May 2023 17:33:12 -0700 (PDT) Received: from lothlorien.lan (dzdqv0yyyyyyyyyyybm5y-3.rev.dnainternet.fi. [2001:14ba:a0db:1f00::ab2]) by smtp.gmail.com with ESMTPSA id m22-20020ac24256000000b004eca2b8b6bdsm1114807lfl.4.2023.05.07.17.33.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 May 2023 17:33:11 -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 3/6] ARM: dts: qcom-pm8941: add resin support Date: Mon, 8 May 2023 03:33:06 +0300 Message-Id: <20230508003309.2363787-4-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230508003309.2363787-1-dmitry.baryshkov@linaro.org> References: <20230508003309.2363787-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 --- 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..ce30946ccf58 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,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; + }; + + 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 {