From patchwork Mon Apr 17 14:55:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 673975 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 63E12C77B79 for ; Mon, 17 Apr 2023 14:56:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229892AbjDQO4N (ORCPT ); Mon, 17 Apr 2023 10:56:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229889AbjDQO4M (ORCPT ); Mon, 17 Apr 2023 10:56:12 -0400 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19703BB95 for ; Mon, 17 Apr 2023 07:55:41 -0700 (PDT) Received: by mail-wm1-x32b.google.com with SMTP id iw7-20020a05600c54c700b003f16fce55b5so2378458wmb.0 for ; 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=hf6/IcsAFFwugXEYZdpKxIb7qBW9xVhmjxsj9LL32CIxUjql+H2QWuuWSvTemMZazY VpLg4hs/LA4FH9tpewMxFuUJshFycN/gSvHf09CQDiEbk5q59w+7u1ldu7Cg35kDyI60 2thfKaXUBeRo7xWb4E4k4wPeURoAPmDyqkoiXGSH5Mg2f1ve5fyuiPd2cREkbCkx+Zbi a8DNv83VvPWi1O96TBiFZwuh1L1swCcdjNPEYavaehjQCpAHo3cYOvjj70h+RBcAZMv0 imNdLa9EbSAqG7L+tspZAPRCdFCEF2H8pKPiJP+F4l7Gck676IkGrtJt81lWRcv7dqyJ 6sCQ== X-Gm-Message-State: AAQBX9c8uL9WF025zIj8Cp7PePdqOJuMlGBkw3vealCTMZEFyGwpUoEi XjaG8AQ6qy4NLoY0hUbqkZK6tg== X-Google-Smtp-Source: AKy350YHd53wDWHSAIoI+eaEBU7aieJy/+jXCwJTxDQ9E371C+xJFImg+dYi6jM7Ob7gntTWWkvquQ== 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 To: Sebastian Reichel , Rob Herring , Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , Konrad Dybcio , Catalin Marinas , Will Deacon , Arnd Bergmann 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 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 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Bartosz Golaszewski 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 Reviewed-by: Konrad Dybcio