From patchwork Thu Apr 13 13:17:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 8132 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1030707vqo; Thu, 13 Apr 2023 06:21:48 -0700 (PDT) X-Google-Smtp-Source: AKy350aZjcRWxHByfyVUY+NfLAmU39FYY6EZBWKaTBOCZus+GB9+qa1p9XzvGuENWtCmDrHAgP+q X-Received: by 2002:a05:6a20:bb11:b0:ec:13de:f100 with SMTP id fc17-20020a056a20bb1100b000ec13def100mr2320842pzb.22.1681392108606; Thu, 13 Apr 2023 06:21:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681392108; cv=none; d=google.com; s=arc-20160816; b=y1cOFniQgraE1jlKruAg/NjtPCaLE5fWSiDYF49yciQZhy7NzuPwkR5nwBNVFdnM9U xIIwVi2DOpJ18AOkXqaAvlGVKar2LpHKlCWntgWNi5C1ujQBs0Q1mIXKO5TnK80OYUlR 60BBxasJhxv9g+vwids9On29RkhpFnTNDkL2hl3mpRTIEJUKWUubAAuqD6WKtYywcOBI wLBMhA1puysFvQDv3IcMMqRxtFdYTbX2a7hhWkc3Nz6W0c5+e7frVLiNtv6N21kzmlff qTmx+eOlxFDRj8zgmuOM309uw0mfStbAzsB2YLkwwOWbyOcfHncfYtkyaDiTJB4InY7n UwjQ== 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=Sor1o3lgx6pN6vl67a8PWbhrfGi3/hG81XlEFkcdfb0=; b=sC7MfiY9VrX/FqNIAB1jE+ppqFaweELYXfUTqdOJ/CaIENKTuHsjPV+q4BRVLWzQVo o1uqsqMfoIoQYl0HGl2wdeX5yjTjtrSJh9vvfs/4FDL3Hdm4FJuKse3s9cwOj/eXQhWZ l/aCzdBh+wkn9pWVESqf/4b3T2SOi2L9wqMM0DNrEmcEiLUawJihMpRi5TB8i7/2QCPy EpCcctK7nJ+iKl7loYQpI3WPez7AK5ujahz5ArBTH5M9Q+68A9j/Q39WELh/kZt2dtTM gsEsOeBEkkUGm5cw2l6AbQqoxKf4/ZZHSgO1zHS9uOcjlNeROLCIgJSRCrugk29yhwTS caEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20221208.gappssmtp.com header.s=20221208 header.b=Iqwvyv8W; 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 67-20020a630746000000b0050bee8d3e4bsi2257770pgh.691.2023.04.13.06.21.30; Thu, 13 Apr 2023 06:21: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=Iqwvyv8W; 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 S230458AbjDMNRW (ORCPT + 99 others); Thu, 13 Apr 2023 09:17:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229945AbjDMNRU (ORCPT ); Thu, 13 Apr 2023 09:17:20 -0400 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25F4E114 for ; Thu, 13 Apr 2023 06:17:18 -0700 (PDT) Received: by mail-wm1-x329.google.com with SMTP id v10so1828751wmn.5 for ; Thu, 13 Apr 2023 06:17:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20221208.gappssmtp.com; s=20221208; t=1681391836; x=1683983836; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Sor1o3lgx6pN6vl67a8PWbhrfGi3/hG81XlEFkcdfb0=; b=Iqwvyv8WgfS/XE0vS+/Khekvvz+atOqobe2B05VzD6c9V4XTNqYTbaNPLU3uSae11V x/vfpDhzg4pbnQmphl9Lo73JAQtNAb/rrjG7Js2FZK9kK7hHicKU3pP26s1qDEy31l2m rl8UQ6wvZbhIDbrwgAA2tMLt5GVhLqA92Wh0fbBZ4s7NJFhUKI53q9uspaR5VdQx3xI9 7CPiD/EuATButGBOdaWftY9nx0sfXsGTuGZ756GXuSyYNNpgAVerskDcVbTXmV53Mv7W F5uXlKEUbp5leKPi7slJbHbakGYxBa6cPZkcnwnwovHE0Zwy3NG+NkhOodwahqn497an ZxEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681391836; x=1683983836; 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=Sor1o3lgx6pN6vl67a8PWbhrfGi3/hG81XlEFkcdfb0=; b=Lf794mlDVZMEzT4C5XmfSClnsRgJI4h/Yt+1xph7B6O19bn8nXYBDumn5aL2Hf7G5u SLp/hZlskUcN+QVZ9vN29tiKkQs2LA2qpDMeujVKorKGZwe9iLSJVVDSyfKsRPEnjzHr lH/A5gXkcUS2UNUEu/d5oIOIrCzxoXH/X+sJNjCv94hDRLxpU7BR7uoJaF24wGjAE0cX aq5UbOkwVKJJj3/indEqUnLFkvb4nNV6pdsAm/yKZbVFxFzL0inemWXCRmukcoP0l6b+ sQrtPyvrT98DG9z6XHDPRre/G897654UIh88Y3fb0kmadPYou1miwo5pRX1IiHdsGy3T tGtw== X-Gm-Message-State: AAQBX9etOY1NawhyVNEW6uB4mnQVWhkpFUTETsVAh75guQP8458ze21f GnNXXomIlw1k5nlR42MThUW3Wg48Mv3bMmFrKfo= X-Received: by 2002:a7b:c8d4:0:b0:3ef:6aa1:9284 with SMTP id f20-20020a7bc8d4000000b003ef6aa19284mr1729418wml.29.1681391836605; Thu, 13 Apr 2023 06:17:16 -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.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Apr 2023 06:17:16 -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 0/4] arm64: qcom: fix the reboot reason handling on sa8775p Date: Thu, 13 Apr 2023 15:17:01 +0200 Message-Id: <20230413131705.3073911-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763067411649455013?= X-GMAIL-MSGID: =?utf-8?q?1763067411649455013?= 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. Bartosz Golaszewski (2): arm64: defconfig: enable building the nvmem-reboot-mode module 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 +++++++- arch/arm64/configs/defconfig | 1 + 4 files changed, 74 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