From patchwork Wed May 31 01:42:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 687615 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 37904C7EE2C for ; Wed, 31 May 2023 01:42:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233217AbjEaBmz (ORCPT ); Tue, 30 May 2023 21:42:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231473AbjEaBmz (ORCPT ); Tue, 30 May 2023 21:42:55 -0400 Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B093711C for ; Tue, 30 May 2023 18:42:52 -0700 (PDT) Received: by mail-lf1-x12c.google.com with SMTP id 2adb3069b0e04-4f4b80bf93aso5876573e87.0 for ; Tue, 30 May 2023 18:42:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685497371; x=1688089371; 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=cXyNmP0KkrD7wf9D/UQ1p5UcmLHwwCnJ3NjK3osNVHQ=; b=mK2HIgxjS3bf92C00ctipk7hErkU+JnQDsX+hITDvG81CWYoc5P5wD3TEQOdldIBr0 OZBIwH3AZNNLsg5b91TEo9IvUgo0nPYg/5L1hC7vHFhQKdG9kDvBRqaWKvCoF/nQJouS y1G8hLX4ooPFWYB9bRv64VPFTErBOtS+hGqDUPjV/4/Ifbb9Ls0ZJuj2ZEfFd9Sa1LLi EQM2LcbH2e2f1nw87Cbn+wymcVolZf0XNn2VHuebcKT9Q5cpZkKmZn9vPXxtD1E4EuLv bcV1/JcX3mvGSs5zhVAZW6N6UhYquuesNkB8pVkduk/0sQU8gjn4s5NKZGkbSjFzGuOI 8IIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685497371; x=1688089371; 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=cXyNmP0KkrD7wf9D/UQ1p5UcmLHwwCnJ3NjK3osNVHQ=; b=J56MwGUJIZ9cQxGortoMjAqc1+DB7zNeClJsvJKSA8eVm65qKaKU7qTY15GIDWUX// BrZq0l723CR5NulQCfiqki/Nusau9m2ppOa9m9HRzYa1MZZ38LomW5/NfkMPoA5Rf/ma egt+TOELHjTxTtdIv+aO9BWOAg59Ojc1ns8MQi/7x3LHQntGJBeTp5i6OEpsvytN+RSQ q24oh1I5FzwnBQPh6Ywip09yv9Y1HH2tDBZ+N+ql3pnw36shiW7siOsbWNcdMOCk0I02 IQlRN/cdqocGhTicmtiCJbItdeIuLBtu56hD06fXlvP7V8eGr8fKEAPuq5+4i6PrtMu3 7eZA== X-Gm-Message-State: AC+VfDyMZHi4Z5mBJsPiVIypY2C3qVTqGF/jozYaqhoosb0aGzzkiD9P fxKm1kG9E0GHj504uSVPBA6qEg== X-Google-Smtp-Source: ACHHUZ6MS1kSFKwUjniTyaAkT2Nd+rRedjQYfRCTPELHn9/ABuKRlPnOo1J7hbBcFH4XL9ayjye3AA== X-Received: by 2002:ac2:5456:0:b0:4f3:a891:45c0 with SMTP id d22-20020ac25456000000b004f3a89145c0mr1983104lfn.61.1685497370935; Tue, 30 May 2023 18:42:50 -0700 (PDT) Received: from lothlorien.lan (dzdqv0yyyyyyyyyyybm5y-3.rev.dnainternet.fi. [2001:14ba:a0db:1f00::ab2]) by smtp.gmail.com with ESMTPSA id q20-20020ac25294000000b004f3945751b2sm515994lfm.43.2023.05.30.18.42.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 May 2023 18:42:50 -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 v3 1/4] dt-bindings: power: reset: qcom-pon: define pm8941-pon Date: Wed, 31 May 2023 04:42:45 +0300 Message-Id: <20230531014248.3824043-2-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230531014248.3824043-1-dmitry.baryshkov@linaro.org> References: <20230531014248.3824043-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@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 --- .../devicetree/bindings/power/reset/qcom,pon.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/power/reset/qcom,pon.yaml b/Documentation/devicetree/bindings/power/reset/qcom,pon.yaml index d96170eecbd2..eb3c88e501ef 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 @@ -56,13 +57,22 @@ required: unevaluatedProperties: false allOf: - - $ref: reboot-mode.yaml# + - if: + not: + properties: + compatible: + contains: + const: qcom,pm8941-pon + then: + $ref: reboot-mode.yaml# + - if: properties: compatible: contains: enum: - qcom,pm8916-pon + - qcom,pm8941-pon - qcom,pms405-pon - qcom,pm8998-pon then: From patchwork Wed May 31 01:42:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 688104 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 CE9A1C7EE39 for ; Wed, 31 May 2023 01:42:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233683AbjEaBm4 (ORCPT ); Tue, 30 May 2023 21:42:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233604AbjEaBmz (ORCPT ); Tue, 30 May 2023 21:42:55 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 782A311D for ; Tue, 30 May 2023 18:42:53 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-4f3a611b3ddso541851e87.0 for ; Tue, 30 May 2023 18:42:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685497372; x=1688089372; 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=vOiOxUgpdUx4sO3r01yIUuAfFsasVWnW6N6FiQslNJpkAzZn2R1A6lD9HRtqR+JBLW 3zYHVJIhSHROmwc9tI9JVKkcDRHyyaJgkqhKZ0VZiekQvjsxcrX8ghiK7Nmxhqie8HOz jnTAuTGW9XnuxWmy+Jni8p2YPAvYK7wKrIXJTzrAh/jgmV6/Qmz0nqGrVbIn19PPzYpn NoQcPZ5juDx53GiFfwD9VFG43SORhakvVb1aNClcH9T+ZJeFnl87Iux0dTPY8w5NaocD ZuiXO1FcM9IPu8CANRoP/f/Cs2s9IJyZtqmXXvC3dWFpPRxzck6fwE61o79dIsz8x2qp p05g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685497372; x=1688089372; 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=eEgfzQogMJy2hc8vNZx7G44SuWDil+2mLjR2XnJUSkX/NJPf/WwRKFiWFSNXB0NL/I oJ8q11b7DfPdpSKSefsy8V/luLOI3K3xiEIJ6xGrE3nropRYQAgtm8i/i7TH9I6ie8/n sbkV6z+EcWIYlW0GpfLKpuGTvyvOS9XNWyzMLsvcH+LA8AOO8328chP23jcQtY17VI4O 89EbimYATaYS9pOw5+NZGqOS3TgE/OttwBkcTXb6DQNGgiNJbrCcoWJb99fteg8GE34J ukJSmoTTZVcqliM5Cgwkmb8tvOP7LYlhIFC2mhn+P442FFPjB2dUApMXc2ePEHHMq4R2 j6Ow== X-Gm-Message-State: AC+VfDyujrncTQesWl/9ByqBT5l7f20bruyxMLiv8VlFeoy54nXhl/iO VuZP4fLX8x37MkpFgC7C+g96PQ== X-Google-Smtp-Source: ACHHUZ5xKHZHlSFAIUgV9MRQhU+bzS3GEljBXd1Ge5xA/wxIe7ClbRxK19Qjn5/oMZx7aDGwjkLbyg== X-Received: by 2002:ac2:5296:0:b0:4ed:d5ce:7dea with SMTP id q22-20020ac25296000000b004edd5ce7deamr1294562lfm.27.1685497371885; Tue, 30 May 2023 18:42:51 -0700 (PDT) Received: from lothlorien.lan (dzdqv0yyyyyyyyyyybm5y-3.rev.dnainternet.fi. [2001:14ba:a0db:1f00::ab2]) by smtp.gmail.com with ESMTPSA id q20-20020ac25294000000b004f3945751b2sm515994lfm.43.2023.05.30.18.42.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 May 2023 18:42:51 -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 v3 2/4] power: reset: qcom-pon: add support for pm8941-pon Date: Wed, 31 May 2023 04:42:46 +0300 Message-Id: <20230531014248.3824043-3-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230531014248.3824043-1-dmitry.baryshkov@linaro.org> References: <20230531014248.3824043-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@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 Wed May 31 01:42:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 687614 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 89454C83003 for ; Wed, 31 May 2023 01:42:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233617AbjEaBm5 (ORCPT ); Tue, 30 May 2023 21:42:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231558AbjEaBmz (ORCPT ); Tue, 30 May 2023 21:42:55 -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 6935E124 for ; Tue, 30 May 2023 18:42:54 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-4f4f757d575so562190e87.0 for ; Tue, 30 May 2023 18:42:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685497372; x=1688089372; 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=s40cckDoVbkyLiNx+I24Sv8hcbm0EfanQbMSWlF0Za2R/LeKdodwn/8zZ8Ug9QVTJu mIbfhcd/mckYqHp9rCw91uRxAoeX7MojU6hUBiYeGngr6FQKKuND1SusUuuGvm4Wmh7m Bb84yxQGxZTtYnwy8Zca/kLTkC3VJj3++lUcJgEO4T3KstqL785U6ziVNOKuFR++5Ycc gsQSnBlyWp5goB+ujA7juECNpLEkQy8JiSdLONspiwYjscDW/tTU/AKHYjT9ITK2fitS Y/mWOCFYbv3+lDgfH5KcBLtpi/51fi3XTTMR9tlYN0kLrOVWauZ/7jFCB9ZrFhMGVM74 3X3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685497372; x=1688089372; 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=eWDVYcO57bYOdVLeiFfEqHzWQ78ewL/u+SWHPMrWztxyOR2k2EBnrvOngU+XHm+S40 fZZygBmNgcLZ+nnKSh8i8xM9t0/mHX9S8wYJRn4WBa/QTLgXrzkyQ+X7QUNbk4Rqq2WY hh4Pmiv29hQPlCMaDzRp+Ygq3d998WCy69WbLiiEB2sKa2ux26TGg4Lk2F+tsGmiTUyZ xXUkBA2WrTvhRwcqiFaMAeNS/LY+x5rBryc/5d81rKSl78uuBBAE0+zbSPVuBcbFFcvF lYZRHvsU61yfG2ahu6Ij5wkDdcuyrFIPh85yXjPYgsITtTMCkHVDrAMhAnVjHonO/sTo 1W9g== X-Gm-Message-State: AC+VfDwCkC/lCYYLLFjzr8r+WJ6SlARURCBABd7v8E3nDQ8tFdWtsE4N rVN+7tEHJ28EflLWiaEuC1rc+g== X-Google-Smtp-Source: ACHHUZ4B7uyEA+PMOmmqXz5/TeRg0+k23G4/4d5E3EfVX5cES1J0OJdMClokWlam/MMqPqXPHxVWig== X-Received: by 2002:a05:6512:ad3:b0:4f1:3a46:b351 with SMTP id n19-20020a0565120ad300b004f13a46b351mr4504276lfu.4.1685497372822; Tue, 30 May 2023 18:42:52 -0700 (PDT) Received: from lothlorien.lan (dzdqv0yyyyyyyyyyybm5y-3.rev.dnainternet.fi. [2001:14ba:a0db:1f00::ab2]) by smtp.gmail.com with ESMTPSA id q20-20020ac25294000000b004f3945751b2sm515994lfm.43.2023.05.30.18.42.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 May 2023 18:42:52 -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 v3 3/4] ARM: dts: qcom-pm8941: add resin support Date: Wed, 31 May 2023 04:42:47 +0300 Message-Id: <20230531014248.3824043-4-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230531014248.3824043-1-dmitry.baryshkov@linaro.org> References: <20230531014248.3824043-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. 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 Wed May 31 01:42:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 688103 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 E4ECAC77B73 for ; Wed, 31 May 2023 01:42:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231558AbjEaBm6 (ORCPT ); Tue, 30 May 2023 21:42:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233509AbjEaBm4 (ORCPT ); Tue, 30 May 2023 21:42:56 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4792010B for ; Tue, 30 May 2023 18:42:55 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-4f3b9755961so5830038e87.0 for ; Tue, 30 May 2023 18:42:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685497373; x=1688089373; 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=ePONLKG6w8Sb9ucFxfluXQBvZKdoTzrtXA0KFPUr4P0=; b=o9cSS2QpT4Wsl9SR9B2SslD69sG9DYpVAE9i7hyhzarTk8AkclAH51cTCzfmX6ln4/ PTnNwSnTK3kesILZwZFPs2fxd/O4gxE6FR9zAOgnUiX/1/APaO7Y0rrs1Rw8/3Htdhwu d6PcQugcBh/entClYpOKT+yIhiivQ/kWlM1yX8l74Coeu8iTJ7mH91JJdytoE0rRPMlz EvJR51/pRjqRnSIDrk3neBCce8ZHKySuks1xpbRMn6UU4k/ipL9WHf/Kwbj3Fld/1SeE c0rC4QVURUgMugoZKLnSEL4y8upXUwC7Yf/I8LxZt6jfwgp/eY8sfKdowM0arOrltgqe nSTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685497373; x=1688089373; 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=ePONLKG6w8Sb9ucFxfluXQBvZKdoTzrtXA0KFPUr4P0=; b=i2AiNuerFNWzjFrVTry8GpBGEPl84siJ3bdxaHCyEq6CIcZ1uEWUvh4ZozTz4HHaS8 kLGhlPHN9sBRSzm0VR9AgKzFSm1oLFM3nQX8d/GWDhTRnBkgPW0pdcis85yDz1S3BvO9 mIhyjc4O0qMojYTwry4uJCfAriKTUO50X3tOKEXUaNAUNJCt0nowUxFnXi4p5/0hv9Vo U4x//JN5vIEqp3gZi49zWS/jm3J3dIRDT7zT1S6V0PAShuu+DTrSIEV/HVJmEWAvut4m yLWkHgH8ljWqlrku14wVE0SMfusSCbEdH9E5DXnx/3dar8sYKZ8uVaiEeqVqTl/Hjr3B 4rFQ== X-Gm-Message-State: AC+VfDzAT96lm5y5edzKlCyeOl3KnGi2oKOrzsCIiswzNLBZ3o2idrxB /Urjik3GlXJVacIabHK7niRtPQ== X-Google-Smtp-Source: ACHHUZ6rN08epjLFVRSdRe8/aHjgfq3mu6/vKJMLlFwJfB7csOoyfLgMXdNLW261Y5UZbe60d8+XWw== X-Received: by 2002:ac2:5292:0:b0:4f2:5c4b:e69b with SMTP id q18-20020ac25292000000b004f25c4be69bmr1948255lfm.67.1685497373704; Tue, 30 May 2023 18:42:53 -0700 (PDT) Received: from lothlorien.lan (dzdqv0yyyyyyyyyyybm5y-3.rev.dnainternet.fi. [2001:14ba:a0db:1f00::ab2]) by smtp.gmail.com with ESMTPSA id q20-20020ac25294000000b004f3945751b2sm515994lfm.43.2023.05.30.18.42.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 May 2023 18:42:53 -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 v3 4/4] ARM: dts: qcom: apq8074-dragonboard: add resin Date: Wed, 31 May 2023 04:42:48 +0300 Message-Id: <20230531014248.3824043-5-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230531014248.3824043-1-dmitry.baryshkov@linaro.org> References: <20230531014248.3824043-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@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 7f759b00524b..ce5eb56a5d1d 100644 --- a/arch/arm/boot/dts/qcom-apq8074-dragonboard.dts +++ b/arch/arm/boot/dts/qcom-apq8074-dragonboard.dts @@ -148,6 +148,11 @@ led@7 { }; }; +&pm8941_resin { + linux,code = ; + status = "okay"; +}; + &pm8941_wled { qcom,cs-out; qcom,switching-freq = <3200>;