Message ID | 20230413131705.3073911-5-brgl@bgdev.pl |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1031882vqo; Thu, 13 Apr 2023 06:23:33 -0700 (PDT) X-Google-Smtp-Source: AKy350Zbd+yk7GlBSrMGeM4vY6bHjolPatyQvCG/JbHzpqdFn9ua/i6LQl/iv2pzyM7RP5xdGtjB X-Received: by 2002:a9d:7494:0:b0:6a3:60c7:696d with SMTP id t20-20020a9d7494000000b006a360c7696dmr992585otk.28.1681392212835; Thu, 13 Apr 2023 06:23:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681392212; cv=none; d=google.com; s=arc-20160816; b=CykT9vytfo0Qb6mpJFHnFuBWEVvbGI3o+pK69qbWxR2ulYsvMVg9JobCv3mOpqzPbw beV5c9OE7VqW6QnpzMVwJFWlHZUKWOkDKewb/xD5RGvPWA9JkztF6NoUxRppLL3af5XY OO4+wD/em0ku4wGLi0Uip2fbIQucYzft+2egHZ2VTGBp1d9z1HVb2dzD6QW7AM8ddJ55 yie3jUFCyhaO9d5XTO0mnXWHOglAsQN1GdWNdUk8p7IvL2lnfvVF919IA5wqB9fsIJzX FQXuujM/BL7rzsB8hs/eOQi+pYAUSLwqyb0JUsfDSxM65697/kYsR6+yayGWI4ZFp+zX rL+g== 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=T9pQrW38n6jH3lAaxTQPjhAzjBmtv9LEC6ladjD0geM=; b=LvHYp3qp0en9DE7Cn+PthWWeNPLg+uWpcAhaFz0L3NxpXVXb1qHh61oCgvDkhLaXQG kZdqtPzg4xDGkOXgc1l/3yL/zksOj4bRM7oFvegRarL69aERrq9BJVQNQR2kM4p16h0E sUVsIFCFMJ/LPqnB7dIQBtGXiIn2RqDeyfJwLhUVBDbhcG/Bdd+l9iAHSDovgZ9Q0dJ0 I4SusBPETjNUXCZx+YvALJ/dXKg6x/j2qA38Ar1nb38lBgvnsH7YQRSPKQjQf2ZRBEOS b34mRZ5iVgQF893ZLEguC+WNHJ5vFwAs7w+UpIWWIvZ8XWofcvS75UesY76mttWHN4sS vmxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20221208.gappssmtp.com header.s=20221208 header.b=S7JJaJQU; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m9-20020a0568301e6900b0069f7e4f8557si1742527otr.60.2023.04.13.06.23.18; Thu, 13 Apr 2023 06:23:32 -0700 (PDT) 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=pass header.i=@bgdev-pl.20221208.gappssmtp.com header.s=20221208 header.b=S7JJaJQU; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229935AbjDMNRe (ORCPT <rfc822;peter110.wang@gmail.com> + 99 others); Thu, 13 Apr 2023 09:17:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229945AbjDMNRX (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 13 Apr 2023 09:17:23 -0400 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C22E188 for <linux-kernel@vger.kernel.org>; Thu, 13 Apr 2023 06:17:22 -0700 (PDT) Received: by mail-wr1-x42a.google.com with SMTP id s2so10951213wra.7 for <linux-kernel@vger.kernel.org>; Thu, 13 Apr 2023 06:17:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20221208.gappssmtp.com; s=20221208; t=1681391840; x=1683983840; 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=T9pQrW38n6jH3lAaxTQPjhAzjBmtv9LEC6ladjD0geM=; b=S7JJaJQUgf3JJMM3lkyNLH6OBAtESwaKX10aoRHX2UHUKIe7kHl71MFD9fMexZwcVm js9oqmJK84FHyccqwePq0s81Xs5Llc99VqL3yJa89LysqOxb1TZ+o3XkJccAr7UM5kHg uYE3J2LaMLkTIOlZ25D49b24vuz3tJIRIxgV9XhWFJ75pXshAWWjwVgi91cKDUm/QrTP a6NajHr9w2FG23SQm9u5M7KCsaQRpXgGnKAgUi+Aq/dVSLzNFaWS/L3gwCXtc1mnvZCX bWuEGGuYFy4SoBkZ/rla4B0v5bSJLjOwo7OhIiJXgHBsDJ7e4xKuw4iYhYHaWO/va+B9 RYCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681391840; x=1683983840; 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=T9pQrW38n6jH3lAaxTQPjhAzjBmtv9LEC6ladjD0geM=; b=SPiJZiukY9qRtQ33a/lC0IlVdB/64XRJgNpJ8jKCh/CBEh3dDqG3KC47VmJkUYq4qk jbCPO4AzSa8T8vHqWUH04n3hN8QYX7DfZVrELUq2asuR4AUx3H8q6kgdUxKC0QOTqkpU 0otFFF9Q7GhiIx5TutkmNSwKIY112AuKohk5BzqE/K69T4uZbZskOoHIHW/hcnkcgbZC AD317s9uzlYI/Y1B9vUR2XW5cz8rnJBb8yPy2GeMfc3Nnalp4YRLMLjh7LxcykVhYeKJ SI4kQs88yUbZT/JtdUY2ti1WvvZV/6wBnny45x+Q2gsr/mEyrLeWn3CRjqvMjX0chRng WWWw== X-Gm-Message-State: AAQBX9fRCbN2P3w8ZR+Wq/rVyyKvx2hqFAETd+Ze8m4qoxx36ZR42+Wz sqHTeT1fj2VuxI//7bFEqcJctrD607GLiKh8iWU= X-Received: by 2002:adf:f04c:0:b0:2cf:e34c:a229 with SMTP id t12-20020adff04c000000b002cfe34ca229mr1797769wro.8.1681391840666; Thu, 13 Apr 2023 06:17:20 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:814c:fc8a:da02:39ad]) by smtp.gmail.com with ESMTPSA id v3-20020a1cf703000000b003f04646838esm1796400wmh.39.2023.04.13.06.17.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Apr 2023 06:17:20 -0700 (PDT) From: Bartosz Golaszewski <brgl@bgdev.pl> To: Sebastian Reichel <sre@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will@kernel.org>, Arnd Bergmann <arnd@arndb.de> Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Parikshit Pareek <quic_ppareek@quicinc.com>, Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Subject: [PATCH 4/4] arm64: dts: qcom: sa8775p: pmic: add the sdam_0 node Date: Thu, 13 Apr 2023 15:17:05 +0200 Message-Id: <20230413131705.3073911-5-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230413131705.3073911-1-brgl@bgdev.pl> References: <20230413131705.3073911-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763067520884408880?= X-GMAIL-MSGID: =?utf-8?q?1763067520884408880?= |
Series |
arm64: qcom: fix the reboot reason handling on sa8775p
|
|
Commit Message
Bartosz Golaszewski
April 13, 2023, 1:17 p.m. UTC
From: Parikshit Pareek <quic_ppareek@quicinc.com> Introduce sdam_0 node, which is to be used via nvmem for power on reasons during reboot. Add supported PoN reaons supported via sdam_0 node. Signed-off-by: Parikshit Pareek <quic_ppareek@quicinc.com> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> --- arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+)
Comments
On 13/04/2023 15:17, Bartosz Golaszewski wrote: > From: Parikshit Pareek <quic_ppareek@quicinc.com> > > Introduce sdam_0 node, which is to be used via nvmem for power on > reasons during reboot. Add supported PoN reaons supported via sdam_0 > node. > > Signed-off-by: Parikshit Pareek <quic_ppareek@quicinc.com> > Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> > --- > arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi | 21 +++++++++++++++++++++ > 1 file changed, 21 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi b/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi > index 5abdc239d3a6..49bf7b08f5b6 100644 > --- a/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi > +++ b/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi > @@ -88,6 +88,14 @@ trip1 { > }; > }; > }; > + > + reboot_reason { No underscores in node names. This is almost always called reboot-mode. Please, do not use downstream naming and conventions. > + compatible = "nvmem-reboot-mode"; > + nvmem-cells = <&reboot_reason>; > + nvmem-cell-names = "reboot-mode"; > + mode-recovery = <0x01>; > + mode-bootloader = <0x02>; > + }; > }; Best regards, Krzysztof
diff --git a/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi b/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi index 5abdc239d3a6..49bf7b08f5b6 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi +++ b/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi @@ -88,6 +88,14 @@ trip1 { }; }; }; + + reboot_reason { + compatible = "nvmem-reboot-mode"; + nvmem-cells = <&reboot_reason>; + nvmem-cell-names = "reboot-mode"; + mode-recovery = <0x01>; + mode-bootloader = <0x02>; + }; }; &spmi_bus { @@ -133,6 +141,19 @@ pmm8654au_0_gpios: gpio@8800 { interrupt-controller; #interrupt-cells = <2>; }; + + pmm8654au_0_sdam_0: nvram@7100 { + compatible = "qcom,spmi-sdam"; + reg = <0x7100>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0 0x7100 0x100>; + + reboot_reason: reboot-reason@48 { + reg = <0x48 0x1>; + bits = <1 7>; + }; + }; }; pmm8654au_1: pmic@2 {