Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp5777716rwe; Tue, 18 Apr 2023 11:19:12 -0700 (PDT) X-Google-Smtp-Source: AKy350arLI4KVTtMaeaQIOmpyEnjPE69VetOufC/S/fAroCrLACkSo38ihSsVm1lbIMX+QO8kR5i X-Received: by 2002:a17:90a:72c8:b0:246:9bad:2354 with SMTP id l8-20020a17090a72c800b002469bad2354mr384163pjk.43.1681841952562; Tue, 18 Apr 2023 11:19:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681841952; cv=none; d=google.com; s=arc-20160816; b=AP2aT2SU+J7cwMJMWjn7/QM0NaoLKEMu3UlzLw/1rDJdnZEVSr8TSg2H+wHHwzAsWF yEZcaHaDEyOdFjVSyi01KT7gNzy2fMISiPIbFLpF1ViYwlBZDs0YCOKKapPCaR4qaA/A F9q1+qzXEBl97oy6htk9KVRwnWv7YlCdVdo4ZcHyLWPJy70xGdakdsHs+skYvXKs3vc3 EkzNdY66NzyFEPv1NI/T41ZMIgGJWkB/cB3QqgIH5i2rzQ+QLaiffLQTKkqGTvz9dVjy 8ycwgalq9NQXxEkNT5KZyCW3wVP2JikvnA8nzTWX9+izjPubCdnEAdkb46iWhKDxKlI1 FC/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=a2NJ2p6cE8nPnq4qyhSh+ydMCNdO89r7It+YsHhkzyo=; b=Ens1CAKQebpn9vMcUD9Wy2kMlIvQOU3rK4dqAfxzVCDwzX94NoAJSrD8u2EXrbP03m vpUWbqpLojDTKcZh2uS28NV2u3LLl1CWK1gPXms/zhRITaVd0lXonW2m/zi41aaVZa8m KGY+YI7m69py0FKYK8IpXJPnd6wj2X5Txk1UynsItoidU/0A4DoY/pzxyCTeofM0egpf W49UrYZGJ/Yssilwp7qwSi4m3t+Tm5YigVScxw29/9nC58rdI8LNc6znMEnv83qujUoz qXPiTkuzMos/L/koB1zuFDY6YMCO+grLQ+778HmbLwHkUpYd3p74bP5Y6xOjpBcf676S karg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hRRJ6JFV; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a21-20020a63e855000000b0050be9448847si15186257pgk.680.2023.04.18.11.18.58; Tue, 18 Apr 2023 11:19:12 -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=@redhat.com header.s=mimecast20190719 header.b=hRRJ6JFV; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232605AbjDRSMX (ORCPT + 99 others); Tue, 18 Apr 2023 14:12:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45660 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232585AbjDRSMW (ORCPT ); Tue, 18 Apr 2023 14:12:22 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 808789EF5 for ; Tue, 18 Apr 2023 11:11:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1681841491; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=a2NJ2p6cE8nPnq4qyhSh+ydMCNdO89r7It+YsHhkzyo=; b=hRRJ6JFVFO6tjMUJaOFSZwK5SxBVcL+2BpWHyDDL+9r19dmLC0RhMXtadIIbeufM3XR0Y9 ACTIsJTCE9hGktt2kWtx3tOa5knoHH/8j3a0Hcik6P6Iuad49fm1iuI/nlQgNCD94sS76v 8Jm7uXoRCT5mZ8GsJecyy0gmP5UERJ4= Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-586-9t8L-2fzMu-8qNRq44gxbg-1; Tue, 18 Apr 2023 14:11:24 -0400 X-MC-Unique: 9t8L-2fzMu-8qNRq44gxbg-1 Received: by mail-qt1-f198.google.com with SMTP id s42-20020a05622a1aaa00b003e99419b127so11496508qtc.17 for ; Tue, 18 Apr 2023 11:11:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681841484; x=1684433484; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=a2NJ2p6cE8nPnq4qyhSh+ydMCNdO89r7It+YsHhkzyo=; b=LWon9Tr5wmrHuIqH484KHiNEEWomIcwkTmKBU6SNzxkbUgXaKqA78ug9RIGriQBEtr JgvjcHBvxDVdvVKJEyAnEv6Oy0cadp1weAuhtY3RnwXLBGVl23x2haPByK8UEMGZWXtU ZU0oKVt53GzcEjIEBp7fKlwnvsWP1Oi7rjVNwfy5JUqMRYOlmRI0wdgIp20NtqMPxBw2 C1sIit3OD8O9hg2cB9C/SmHKSBmnSfvLTHRdJ3X4RpufLEw1L2YwHvGwGaeZKklyhrB0 3yRxA5TJJCY07MoLFTI7UnQWJH6Jqis3xfkQqRjRQLA+1XJLOzdU5HnKSnV711shB+Is CF0A== X-Gm-Message-State: AAQBX9fwR8vUKMmRNeitcZgYYiIYZ9GaHeTWqfNyLuEd71KaG3+AGz4L /bV5ZM5VgB9kNKtLuVXTwDT7j0Rt4Q/4nqUZNbomuu5tpMgj67VIB7OnixqNdnWmJtH/nMNGaEf bswB7GTtNWitX6LaQWP9pf1L/ X-Received: by 2002:a05:6214:508b:b0:5e0:7ecb:8ffb with SMTP id kk11-20020a056214508b00b005e07ecb8ffbmr23344899qvb.8.1681841484170; Tue, 18 Apr 2023 11:11:24 -0700 (PDT) X-Received: by 2002:a05:6214:508b:b0:5e0:7ecb:8ffb with SMTP id kk11-20020a056214508b00b005e07ecb8ffbmr23344854qvb.8.1681841483879; Tue, 18 Apr 2023 11:11:23 -0700 (PDT) Received: from localhost (pool-71-184-142-128.bstnma.fios.verizon.net. [71.184.142.128]) by smtp.gmail.com with ESMTPSA id kr24-20020a0562142b9800b005eee320b5d7sm3812683qvb.63.2023.04.18.11.11.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Apr 2023 11:11:23 -0700 (PDT) Date: Tue, 18 Apr 2023 14:11:26 -0400 From: Eric Chanudet To: Bartosz Golaszewski Cc: Sebastian Reichel , Rob Herring , Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , Konrad Dybcio , Catalin Marinas , Will Deacon , Arnd Bergmann , 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 , Bartosz Golaszewski Subject: Re: [PATCH v2 3/3] arm64: dts: qcom: sa8775p: pmic: add the sdam_0 node Message-ID: <20230418181126.yu7ym5acb3x5twex@echanude> References: <20230417145536.414490-1-brgl@bgdev.pl> <20230417145536.414490-4-brgl@bgdev.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230417145536.414490-4-brgl@bgdev.pl> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 17, 2023 at 04:55:36PM +0200, Bartosz Golaszewski wrote: > From: Parikshit Pareek > > 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 > Signed-off-by: Bartosz Golaszewski > --- > arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi | 21 +++++++++++++++++++++ > 1 file changed, 21 insertions(+) Tested-by: Eric Chanudet > > diff --git a/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi b/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi > index 5abdc239d3a6..3c3b6287cd27 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-mode { > + 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 { > -- > 2.37.2 > -- Eric Chanudet