From patchwork Fri Jun 9 02:25:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 690982 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 CD980C7EE37 for ; Fri, 9 Jun 2023 02:26:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236588AbjFIC0E (ORCPT ); Thu, 8 Jun 2023 22:26:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238527AbjFIC0B (ORCPT ); Thu, 8 Jun 2023 22:26:01 -0400 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2CC8830F6 for ; Thu, 8 Jun 2023 19:25:57 -0700 (PDT) Received: by mail-lj1-x230.google.com with SMTP id 38308e7fff4ca-2af189d323fso29855231fa.1 for ; Thu, 08 Jun 2023 19:25:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686277555; x=1688869555; 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=8Mt31W0jI1fuVf091MA0W1WwuRBTHflHVK1TxVNzvWs=; b=opSjeVIuJExti4vaP6E7Qp+ENucVYRriMH5sayaSwFNxgDvOt7mI5kpb38B5HjDcRd ftGBOyKZPJpAgV2lrrWN1W/LB9dEXC5HnlmGLjOdNbJB70Itlt9XR4dJrsDfWtCmnP2K +q9LGemZ2/EXlEYt5rj53jFT/PmnTAFme2iiErjObKhdUi2w2mbyGiq3kaxZM1qKs12T Eexxlx18kIQkPUoFAF4KNYWTMME8Ocdffdp1Q063N1uB33EycLGs7cZ76fUMpi9vcTzU +8HdQ6thZDz62V2GFVp8IX23LQBODQNKee649en6tvwmOLj5Iw6kR/FsrAYUbPGsPq01 sJiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686277555; x=1688869555; 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=8Mt31W0jI1fuVf091MA0W1WwuRBTHflHVK1TxVNzvWs=; b=GFvT1nxuByAQ9AbARbBlyNEcIyo2Il7BUH/GmVtK5RVthcmCBEXoygUovQ+/5MYOCg DDJ3mPY3W2SdET6caqexKo2M95kV8CBF6oS+G1JqQ63wG6+7q4SdNj8WiuGNbUNscVB+ Lv2Gx5o/35+aI5BKVlpqL12SL6UVwzzTvFFR7kE0N9SX+sp3a03Z05lZsa7S6xzomtwh qHdGZ2axQdZ8ohHpZFYcbPpl3cTl6VYqjKKwSXjprBX5JDudA3VJJu1UrQk1CFsbwDob +5q35C1bT/akpgNb3TLxVCTHWvR5usQ6GFRglrSDdPWBE38mhMJdGhFmrHERmZas5Yh0 mSLg== X-Gm-Message-State: AC+VfDyVmg8SeiHHLd15azsYick9dvx46BOufGKMmaC8T1CuRkogI0PA OmUlHx6q2Gb0E13v7hugr16XIA== X-Google-Smtp-Source: ACHHUZ6LkESUcNJ+wXQNZjYvIm0Jk2PXzLAfJ47h8zWMYPGSf0m4XTwMmy1a11UjUNoTHOCQKFeBMg== X-Received: by 2002:a2e:a366:0:b0:2a8:ea26:5c72 with SMTP id i6-20020a2ea366000000b002a8ea265c72mr1473656ljn.8.1686277555442; Thu, 08 Jun 2023 19:25:55 -0700 (PDT) Received: from lothlorien.lan (dzdqv0yyyyyyyyyyybm5y-3.rev.dnainternet.fi. [2001:14ba:a0db:1f00::ab2]) by smtp.gmail.com with ESMTPSA id x20-20020a2e9dd4000000b002b21089f747sm167429ljj.89.2023.06.08.19.25.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Jun 2023 19:25:54 -0700 (PDT) From: Dmitry Baryshkov To: Sebastian Reichel , Rob Herring , Krzysztof Kozlowski , Conor Dooley , 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 v4 1/4] dt-bindings: power: reset: qcom-pon: define pm8941-pon Date: Fri, 9 Jun 2023 05:25:50 +0300 Message-Id: <20230609022553.1775844-2-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230609022553.1775844-1-dmitry.baryshkov@linaro.org> References: <20230609022553.1775844-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org On PM8941 pon doesn't store the reset reason. However we still need the wrapping node for pwrkey and resin nodes. Add bindings for pm8941-pon device. Signed-off-by: Dmitry Baryshkov --- .../bindings/power/reset/qcom,pon.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Documentation/devicetree/bindings/power/reset/qcom,pon.yaml b/Documentation/devicetree/bindings/power/reset/qcom,pon.yaml index 0b1eca734d3b..5e460128b0d1 100644 --- a/Documentation/devicetree/bindings/power/reset/qcom,pon.yaml +++ b/Documentation/devicetree/bindings/power/reset/qcom,pon.yaml @@ -19,6 +19,7 @@ properties: compatible: enum: - qcom,pm8916-pon + - qcom,pm8941-pon - qcom,pms405-pon - qcom,pm8998-pon - qcom,pmk8350-pon @@ -74,6 +75,21 @@ allOf: reg-names: items: - const: pon + + # Special case for pm8941, which doesn't store reset mode + - if: + properties: + compatible: + contains: + const: qcom,pm8941-pon + then: + properties: + reg: + maxItems: 1 + reg-names: + items: + - const: pon + - if: properties: compatible: From patchwork Fri Jun 9 02:25:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 691442 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 8879CC7EE25 for ; Fri, 9 Jun 2023 02:26:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237660AbjFIC0F (ORCPT ); Thu, 8 Jun 2023 22:26:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42730 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229830AbjFIC0D (ORCPT ); Thu, 8 Jun 2023 22:26:03 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1857230FB for ; Thu, 8 Jun 2023 19:25:58 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-4f63006b4e3so1624398e87.1 for ; Thu, 08 Jun 2023 19:25:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686277556; x=1688869556; 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=XVVVClRGQ3W+a4D62JgYgRZeO7k7GdsG/nIGFO07NhE=; b=xhBPcRUkznKGI8r3ED9YzjcP+y04kjYXrbivO5gwy4sIY24nWyPFank2HZbZBdWb8s 84/QAL3QxZgECeHEoUQ1KEoldTHwWeeBRYJO9spoIaKPySpiLaWq+uI9tVIWDyf0fZsI hbIruYiDlCiI4YvvBpFxS4abBk4jNJ5xDOLKS9JUoDGUxDo6WO+WaOlI9bF+9cOYZiFz wgAHuOtKNSImbXyBuILjuXuu8Lx+p60HE9fhw0FXDCc3sTxIbmmyaXh8rQuGv0o+sCRK 78sEAgxZVgkfSbqYl73DmHu4yMZ3JW9lIc0uqayT2EllvBXl9iaC/bjzkU2k/YBZPPQp MkJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686277556; x=1688869556; 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=XVVVClRGQ3W+a4D62JgYgRZeO7k7GdsG/nIGFO07NhE=; b=bNUh0YzkmXERZyOxCm/73lYO5wJcJ4BEVNG4tkl3Ptwzv61BH6ulz2gZr4BmLcqhEi BrIypviAZrGxAGJi76PhKPTTloBh+vXmNbVaVA2/lcMzGE0aCl9M9MTmtRvnDdSFvf7q qc+6jnHUtTjxZ39U8JgiTYJbipBnh44gD23vw2rVHRy7z3EyeMGPGAtXMDlyqkE12HSD tq4+CIzPXKdE291FsnE7I2njn3rwNIH10XoOJ8E1szJiJcU9G64AsIG/Jgp8GsDpFu+D 6dp0lUhjtUCKc8M/lG+s8oxcMxq5H5YYi/mriq+FqdNp9eU3PGGQ6fNbMqDNt+dhdIOk IeLg== X-Gm-Message-State: AC+VfDzjhS4A97/GIW++7PfPQ0rsVXZvcZNtOJNkI9Wa5RhkLKaxljY4 ksQcoCofPR8oW2LLMZODdjtbjw== X-Google-Smtp-Source: ACHHUZ4dYPSYnbv1DroYWYIlkuvy4q/dGxMKVISUXy9G1lUnZR352dzZvsXgcDt+PHKSZxk0YiFqLQ== X-Received: by 2002:a2e:3515:0:b0:2ad:ad0b:d0fb with SMTP id z21-20020a2e3515000000b002adad0bd0fbmr161896ljz.30.1686277556311; Thu, 08 Jun 2023 19:25:56 -0700 (PDT) Received: from lothlorien.lan (dzdqv0yyyyyyyyyyybm5y-3.rev.dnainternet.fi. [2001:14ba:a0db:1f00::ab2]) by smtp.gmail.com with ESMTPSA id x20-20020a2e9dd4000000b002b21089f747sm167429ljj.89.2023.06.08.19.25.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Jun 2023 19:25:55 -0700 (PDT) From: Dmitry Baryshkov To: Sebastian Reichel , Rob Herring , Krzysztof Kozlowski , Conor Dooley , 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 v4 2/4] power: reset: qcom-pon: add support for pm8941-pon Date: Fri, 9 Jun 2023 05:25:51 +0300 Message-Id: <20230609022553.1775844-3-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230609022553.1775844-1-dmitry.baryshkov@linaro.org> References: <20230609022553.1775844-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org For PM8941 we don't have a defined field to store the reset reason. Support wrapping pwrkey and resin, but without writing the reset reason. Reviewed-by: Konrad Dybcio Signed-off-by: Dmitry Baryshkov --- drivers/power/reset/qcom-pon.c | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/drivers/power/reset/qcom-pon.c b/drivers/power/reset/qcom-pon.c index ebdcfb28c4a0..1344b361a475 100644 --- a/drivers/power/reset/qcom-pon.c +++ b/drivers/power/reset/qcom-pon.c @@ -17,6 +17,8 @@ #define GEN1_REASON_SHIFT 2 #define GEN2_REASON_SHIFT 1 +#define NO_REASON_SHIFT 0 + struct pm8916_pon { struct device *dev; struct regmap *regmap; @@ -45,6 +47,7 @@ static int pm8916_reboot_mode_write(struct reboot_mode_driver *reboot, static int pm8916_pon_probe(struct platform_device *pdev) { struct pm8916_pon *pon; + long reason_shift; int error; pon = devm_kzalloc(&pdev->dev, sizeof(*pon), GFP_KERNEL); @@ -64,13 +67,17 @@ static int pm8916_pon_probe(struct platform_device *pdev) if (error) return error; - pon->reboot_mode.dev = &pdev->dev; - pon->reason_shift = (long)of_device_get_match_data(&pdev->dev); - pon->reboot_mode.write = pm8916_reboot_mode_write; - error = devm_reboot_mode_register(&pdev->dev, &pon->reboot_mode); - if (error) { - dev_err(&pdev->dev, "can't register reboot mode\n"); - return error; + reason_shift = (long)of_device_get_match_data(&pdev->dev); + + if (reason_shift != NO_REASON_SHIFT) { + pon->reboot_mode.dev = &pdev->dev; + pon->reason_shift = reason_shift; + pon->reboot_mode.write = pm8916_reboot_mode_write; + error = devm_reboot_mode_register(&pdev->dev, &pon->reboot_mode); + if (error) { + dev_err(&pdev->dev, "can't register reboot mode\n"); + return error; + } } platform_set_drvdata(pdev, pon); @@ -80,6 +87,7 @@ static int pm8916_pon_probe(struct platform_device *pdev) static const struct of_device_id pm8916_pon_id_table[] = { { .compatible = "qcom,pm8916-pon", .data = (void *)GEN1_REASON_SHIFT }, + { .compatible = "qcom,pm8941-pon", .data = (void *)NO_REASON_SHIFT }, { .compatible = "qcom,pms405-pon", .data = (void *)GEN1_REASON_SHIFT }, { .compatible = "qcom,pm8998-pon", .data = (void *)GEN2_REASON_SHIFT }, { .compatible = "qcom,pmk8350-pon", .data = (void *)GEN2_REASON_SHIFT }, From patchwork Fri Jun 9 02:25:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 690981 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 58F36C7EE37 for ; Fri, 9 Jun 2023 02:26:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237081AbjFIC0G (ORCPT ); Thu, 8 Jun 2023 22:26:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237408AbjFIC0F (ORCPT ); Thu, 8 Jun 2023 22:26:05 -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 F3D8330FE for ; Thu, 8 Jun 2023 19:25:58 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-4f620583bc2so1544228e87.1 for ; Thu, 08 Jun 2023 19:25:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686277557; x=1688869557; 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=N12gfFtx2uUrPiE+zEwFxqEuTlfoHWgM0ZbjtW5pSzo=; b=SVsN58Z0t+JlJ+I5tvxA4qNE///PF/a2ISpvmYGAOkppa0MWJk6bN6PUEE9lMMOqBr ZBtlFGZRqDBrYhxwxCW7ZciJCbih0GxhgFIgH+VPdalqgujoGDdJ5ezlXSSt9kEvCT4Q iUWoCUIkudi2n5hRHO2RruIIxZBB+wOafQW4G4lnmvPVld4z5qXARKKlGIJfOXq697jO 4v5QDfXN96ikPG03PX8AXnMVxS4flh5sUhhf1/vAmE/kvexYVFmqkXX7Wk+24rXHaTJl Rh/LfkTw//eG5jhNJl8SYzG+3+yfXEs90dWeeC/QP+Lm10xdnEGYSYHZ0ieSnQhzwfWL 79LA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686277557; x=1688869557; 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=N12gfFtx2uUrPiE+zEwFxqEuTlfoHWgM0ZbjtW5pSzo=; b=J1tjzrBzHXLc+fkElPito/PD7Qa/S623GZoXd2Ttd/IfL9EWsi6pgcmK+ZFxAy5Qv6 11e7w8KI7nayXEG9g8SMY2AL1OBWMg+ojQ79bnBXVS2KIEUiYKhkRkAmEuQVhHsXqTKH PMRQVDCLaxn6G90ZS6n4zwizMmJl6D6W30OFNvfU23j8crRwdNR7uYH+8bikhwZqcjgd xXl6uVrAnd2vyuSBuMskJaSa3Xh08siPlky1aWqajumRVvvf/cmX1Lhtv7ygQhbxNOnj GhUDSK2S6HB4T3FS/ZRmYvTgNAhZoxnWWmP2lCnfFOkARm5Hrj3AWyoINJbywBMngMIc W5SA== X-Gm-Message-State: AC+VfDyYHdMKku3zKVk5PVWHjXLQwtrRcOPZQb1zVUojvhtc2Kk5VwDQ c71depO3G6lpXb76wxXLOx85dQ== X-Google-Smtp-Source: ACHHUZ7OgnE6kLJ+gfqjJ7iKAmImzEnuOgACazcfTQmu6NFSD1RYTDk/CmxXUnJFA3veyhf1psZD3g== X-Received: by 2002:a2e:9792:0:b0:2b1:c0b9:61af with SMTP id y18-20020a2e9792000000b002b1c0b961afmr134973lji.52.1686277557108; Thu, 08 Jun 2023 19:25:57 -0700 (PDT) Received: from lothlorien.lan (dzdqv0yyyyyyyyyyybm5y-3.rev.dnainternet.fi. [2001:14ba:a0db:1f00::ab2]) by smtp.gmail.com with ESMTPSA id x20-20020a2e9dd4000000b002b21089f747sm167429ljj.89.2023.06.08.19.25.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Jun 2023 19:25:56 -0700 (PDT) From: Dmitry Baryshkov To: Sebastian Reichel , Rob Herring , Krzysztof Kozlowski , Conor Dooley , 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 v4 3/4] ARM: dts: qcom-pm8941: add resin support Date: Fri, 9 Jun 2023 05:25:52 +0300 Message-Id: <20230609022553.1775844-4-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230609022553.1775844-1-dmitry.baryshkov@linaro.org> References: <20230609022553.1775844-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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. Reviewed-by: Konrad Dybcio 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..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 { From patchwork Fri Jun 9 02:25:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 691441 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 B5271C87FDC for ; Fri, 9 Jun 2023 02:26:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237771AbjFIC0J (ORCPT ); Thu, 8 Jun 2023 22:26:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237668AbjFIC0G (ORCPT ); Thu, 8 Jun 2023 22:26:06 -0400 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 841F33583 for ; Thu, 8 Jun 2023 19:25:59 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-4f62b552751so1539497e87.3 for ; Thu, 08 Jun 2023 19:25:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686277558; x=1688869558; 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=Zx8vlVFOYPoBRf3/7QVPvJM9NkCsM7ZSm+3sIzim6r0=; b=OzqK4bRFx5xgl3jC8ZPEud/vcTiMIGNnjTfZW++y3Pk1VBMleSTBaL5YF+Mh5Kt4FO dJRNMA2bmp2uGj4Yk9y8lbUYFtjkGjaiLW6C+ms4v6uOK6Z2Kog7rr5XMb3WOZ7jGEGa UUSKq32plaQ/u7oSzfsLIWSLiaIlCyXukI+IOGENm2gwnZFO1LlPm6HfLzTclLM5oKRO Zc7Ih+ooLcz/YDewWz2kMJU9B8RMO/t0DW+XAppZFeyAfm1VjYitAx7lYAoJ+HgTjATb xchbPff2sQ3defShS51uJlGgrcShjiCa+8LcFK3iaaNLwj+OGsRUp1dSAXYCT9qi7UDY RRLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686277558; x=1688869558; 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=Zx8vlVFOYPoBRf3/7QVPvJM9NkCsM7ZSm+3sIzim6r0=; b=cnMtnIFI0055Fug/ay8FKMi5MCb7tvapJiZkh7o8FW42Ue4OcTrjalbFAmRVfyuuH8 bWV+g479iYzmo7uQir85uXfXq4yhrmjEx6fVrY3qSztUsBs2nzmqFia83akWtr8+aJPo Ihi6XjGc4Q9g5a1XkVol+k3tSlbWcTsEqBtv9gkSjvxzBKDaGqknXXY1soF5ATz3P5S1 0yISYymCt6nO5/z5fPbo8EITs6BTVSz0Yu+pKwh1rvmiVlIr5sA/LAc/XrjhKPY74pvR ZDgC4jXy6o0rmUi2Deql6dxUTnKiOwXJV9dirp/gwsegTVlliDfSyGWiMcNePOHyx2Lz 7wjQ== X-Gm-Message-State: AC+VfDzDTXTXzUN3rhH7i1EwjDchEMeS+G4U1zPoEaOG39Nsa9CFa6VY HR6KgxHQcn9m2OqZft0+t6sxwQ== X-Google-Smtp-Source: ACHHUZ6zikMFOOH6trhKWp1UILouE9b5IDWqCaPz1YHNv44N5d0uokEFyYvyPU0adE/+LDhw5QX+/g== X-Received: by 2002:a05:651c:20c:b0:2b1:fdcc:14e7 with SMTP id y12-20020a05651c020c00b002b1fdcc14e7mr130689ljn.35.1686277557845; Thu, 08 Jun 2023 19:25:57 -0700 (PDT) Received: from lothlorien.lan (dzdqv0yyyyyyyyyyybm5y-3.rev.dnainternet.fi. [2001:14ba:a0db:1f00::ab2]) by smtp.gmail.com with ESMTPSA id x20-20020a2e9dd4000000b002b21089f747sm167429ljj.89.2023.06.08.19.25.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Jun 2023 19:25:57 -0700 (PDT) From: Dmitry Baryshkov To: Sebastian Reichel , Rob Herring , Krzysztof Kozlowski , Conor Dooley , 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 v4 4/4] ARM: dts: qcom: apq8074-dragonboard: add resin Date: Fri, 9 Jun 2023 05:25:53 +0300 Message-Id: <20230609022553.1775844-5-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230609022553.1775844-1-dmitry.baryshkov@linaro.org> References: <20230609022553.1775844-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Add device nodes for resin (reset, volume-down) device node. Reviewed-by: Konrad Dybcio Signed-off-by: Dmitry Baryshkov --- arch/arm/boot/dts/qcom-apq8074-dragonboard.dts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/qcom-apq8074-dragonboard.dts b/arch/arm/boot/dts/qcom-apq8074-dragonboard.dts index 72f7e09a5bbf..34258cf84a23 100644 --- a/arch/arm/boot/dts/qcom-apq8074-dragonboard.dts +++ b/arch/arm/boot/dts/qcom-apq8074-dragonboard.dts @@ -90,6 +90,11 @@ &mdss { status = "okay"; }; +&pm8941_resin { + linux,code = ; + status = "okay"; +}; + &pm8941_wled { qcom,cs-out; qcom,switching-freq = <3200>;