Message ID | 20230417145536.414490-1-brgl@bgdev.pl |
---|---|
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 b10csp2197980vqo; Mon, 17 Apr 2023 08:11:49 -0700 (PDT) X-Google-Smtp-Source: AKy350YV8JQnuzuC4thIFH2/AvE824U/qlO7jvP2h00i1GD/sLHeIuZdCUVxJW/Nns+NN5FGUaI5 X-Received: by 2002:a05:6a20:3d0d:b0:ef:70b:4305 with SMTP id y13-20020a056a203d0d00b000ef070b4305mr8869404pzi.36.1681744308856; Mon, 17 Apr 2023 08:11:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681744308; cv=none; d=google.com; s=arc-20160816; b=K50aSneIGE75HeyqwIKLXpHmN/xOCMUoh2uWE2cD0SPNBxWJ5xudGde5Jfy+1FXwGO e6m5sbw3/r932SUqZEBthRlgOWMe1bLPfb8SKXTNEAbAWGHKsRLTDsh/CY52kEi5XZN5 zyWiR5wf28btHH4uhPpU/CNp+fPfSdbtrwcQNgGjayA0avAmJCnB+rpCyJG8irFR2Zc5 7L0WsJ7HkqsJchJa2o/XVtCW93le3YVJI+1NmqTDRa3uQLXVjfLWjo+SGw/gyOBw5gh4 plpmfsxTfPp42ol94PYSZmdV5nLSoHzQXaoVIleTpnuWbqf5sc0Fu0laHTmBSZnkgJ27 GamQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=WYXjd3dFJZ9jr+MGGQSiH1V/fToahIVAv131sffor2E=; b=H9PTFOM8pNWrg985htf5W/lHPAmuK1wghNR2IjO5BHflLE7GWrnLoMg+QaDSxUBBds TRswm95EO/CMBYzO6CdHA/OH8toIcSifkeO6dybGgbMiDNpvIOmkn4EUTsqK7kEy+7kz XNsV+FB14PycdGxZT2NdAVld07DERoYZHKnFbHqd3AjRudN8yI7QTdKskkmSHkCyCnJO 2ccpL6Td4gP48q4XD+O95IuSyrCTtq1nV1VJOjJTZlQKaKKrqVvXvt+xJ1DOBXdXQXaz oSTXHUT2fnZ8A6a/5PVljlhf5a6C+DxC2AwkCxDSo9nZdj09HEUcRnNYH5E6l7QVx6qW H4Rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20221208.gappssmtp.com header.s=20221208 header.b=Zm2XgoDO; 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 d2-20020a63fd02000000b004ff6f80f6c5si8274035pgh.410.2023.04.17.08.11.34; Mon, 17 Apr 2023 08:11:48 -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=Zm2XgoDO; 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 S229958AbjDQO4O (ORCPT <rfc822;leviz.kernel.dev@gmail.com> + 99 others); Mon, 17 Apr 2023 10:56:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229504AbjDQO4L (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 17 Apr 2023 10:56:11 -0400 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1923FB758 for <linux-kernel@vger.kernel.org>; Mon, 17 Apr 2023 07:55:41 -0700 (PDT) Received: by mail-wm1-x32f.google.com with SMTP id d8-20020a05600c3ac800b003ee6e324b19so13241379wms.1 for <linux-kernel@vger.kernel.org>; Mon, 17 Apr 2023 07:55:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20221208.gappssmtp.com; s=20221208; t=1681743340; x=1684335340; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=WYXjd3dFJZ9jr+MGGQSiH1V/fToahIVAv131sffor2E=; b=Zm2XgoDOA75WQWE4pUBOyhAaKt4rChqJXPd2U4SDduyp7hzwaAQLaIcR20Jt2Lpgyf hIlQNQ0PTGSGxd4qXNZ528dmBs2In0QMGxSZQmi6ZJSxd6soU4VnYHqQKKD4VTPPJWJo 7BRcgWO4NCTlOhDpaxTEGc86JbBde6eXvQmXxotnI9t2KK9NsQD5mhiCFY3T0WzRG9fg UadOwpuTg06D3LK7lyxPsaP/nYiTYkaOqlNxiE/hKVevkyaHRNN9qmPRIWQnCaUugtLK 0wupbIfkOUYs4F9R5dghg/sL6LHpjLwYH/cJR2Xk7T0yj78/GeLNn4JZYbEgVHcQovyC Okxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681743340; x=1684335340; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=WYXjd3dFJZ9jr+MGGQSiH1V/fToahIVAv131sffor2E=; b=hK6cNxixIKYgBd0VyBqhSBwHPMyvOGEW172foo+t8Q36W5i2JQAGdpHkW+WBXQCg4g ui0zZioDhzZc7xcuaPYkn6lrJHc5nYdR1YpOYcVss+cHT21l+pF6vKU+1dyjSgIwpctJ 0/pJsGnIoaPd7X1Umps+FW6Q7apfrLpmQzcHFJeb3tmGdNikal/Q9Od8hoIkwe/69q/w dgSzoTQ5qeHS+0c56lKstTBJRROETR18DN8pGhaL9f8K1rYcDk372tPy0SqNiy+4Tq34 DZ9mjuzZ4P05yQTiTPVsUyQlY9H/pHsrWX1dTARQmOaW9Mw8/OELIYd1esptFc5QBQX3 J6DQ== X-Gm-Message-State: AAQBX9cr5IPJhhAAzPfI9qj9S+JWJrirVoJ9L7zpwuh4OAlGzqDSYp8P AS+k9vO8CvyQeuOENGaqTA1JoZnDns7tqn7n64Y= X-Received: by 2002:a05:600c:1d20:b0:3f1:76d9:c788 with SMTP id l32-20020a05600c1d2000b003f176d9c788mr766508wms.8.1681743339907; Mon, 17 Apr 2023 07:55:39 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:374a:ffae:fd26:4893]) by smtp.gmail.com with ESMTPSA id j15-20020a5d564f000000b002f7780eee10sm7998301wrw.59.2023.04.17.07.55.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Apr 2023 07:55:39 -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, Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Subject: [PATCH v2 0/3] arm64: qcom: fix the reboot reason handling on sa8775p Date: Mon, 17 Apr 2023 16:55:33 +0200 Message-Id: <20230417145536.414490-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 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, 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: <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?1763436720453558929?= X-GMAIL-MSGID: =?utf-8?q?1763436720453558929?= |
Series |
arm64: qcom: fix the reboot reason handling on sa8775p
|
|
Message
Bartosz Golaszewski
April 17, 2023, 2:55 p.m. UTC
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
SA8775P uses nvmem to pass the reboot reason magic value to the bootloader.
Remove the reboot modes from the PON node and introduce an SDAM node passed
to the nvmem-reboot-mode driver. While at it: convert the bindings for
nvmem-reboot-mode to YAML and enable it for arm64 in defconfig.
v1 -> v2:
- dropped the defconfig patch as it went upstream already
- in patch 1: explained better why we need to drop the reboot-modes from the
PON node
- fixed formatting and order of properties in dt-bindings
- fixed naming of nodes in device tree
Bartosz Golaszewski (1):
dt-bindings: power: reset: convert nvmem-reboot-mode bindings to YAML
Parikshit Pareek (2):
arm64: dts: qcom: sa8775p: pmic: remove the PON modes
arm64: dts: qcom: sa8775p: pmic: add the sdam_0 node
.../power/reset/nvmem-reboot-mode.txt | 26 ----------
.../power/reset/nvmem-reboot-mode.yaml | 52 +++++++++++++++++++
arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi | 23 +++++++-
3 files changed, 73 insertions(+), 28 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/power/reset/nvmem-reboot-mode.txt
create mode 100644 Documentation/devicetree/bindings/power/reset/nvmem-reboot-mode.yaml
Comments
On Mon, 17 Apr 2023 16:55:33 +0200, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> > > SA8775P uses nvmem to pass the reboot reason magic value to the bootloader. > Remove the reboot modes from the PON node and introduce an SDAM node passed > to the nvmem-reboot-mode driver. While at it: convert the bindings for > nvmem-reboot-mode to YAML and enable it for arm64 in defconfig. > > [...] Applied, thanks! [1/3] arm64: dts: qcom: sa8775p: pmic: remove the PON modes commit: 40d5835998705c28b985b1325114114c6007546e [3/3] arm64: dts: qcom: sa8775p: pmic: add the sdam_0 node commit: 6c92689a0a57b40c758a12c1ca668d6a36a805a6 Best regards,