From patchwork Thu Apr 13 13:17:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 82957 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1030966vqo; Thu, 13 Apr 2023 06:22:13 -0700 (PDT) X-Google-Smtp-Source: AKy350b7omkWu0PVR2SlVa1j313FKmAojNLh50LpBe9QDBLMpyPpZ7auTw6AqXnjruvoKGxxzrc9 X-Received: by 2002:a05:6808:6c5:b0:38b:5349:e112 with SMTP id m5-20020a05680806c500b0038b5349e112mr401083oih.46.1681392132751; Thu, 13 Apr 2023 06:22:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681392132; cv=none; d=google.com; s=arc-20160816; b=v0Glmy+1BPSd+FlIjOMWgWgd5GRQyY4KitsTJExrSLxF2eVHNtFS5+IhDv5v+GOqIo kfVYc9qCUG0gt3ORqqXq+8NTpP+MTi/w58xmQ3ShK/wG/AFkGhmq64uWxyXPbqFtQoeE opq7Y9xtImSlejfdn9HQcNFhtYQsBKpIh8ARHkpQKSBPPZ6gkUX42q+6xcrKMa20hRUQ 7fz7om3x3d1a72vmmuE8syvmtmdZkY49Bs7fRtJg75oxTpjrIF/Rp1MG47SNiegaTMAV Ipoe+CpNbiJe0L/p+HgF6CsQESpFRGkFosslpYBikiw3z3JX/e4lixCnIbcQupPrJZqc acTg== 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=aESHnUR1O/61n5/lfPsi3I+Fy8BChJQIQxTnoiWBoZM=; b=I7HttWKh5I1ErsUmTQ0nWACmgXeDamQUAUJPYxMe3wAPqYCAmb2zGbvGKTd5VE19i9 Kn1KQbcE6eqe3tFR/iWJ7boRBmI4DPybdx2UzKx7OBv6nijexjmANP6QUGPa199JGtYQ r+VYCe0O93ZKryOGOmAP5S83DMO1Y64wLmcZTlVvhogmaDr5vjSSkGXbIExLS11uctfF YySPXVn+0w8j1DnqVAHG475jW8ZVAFp36ff5GMSIfC3TZEnp+h2mWFLtQT6X7RpdQckA Fab9XOQGK+iNOXT3sPCyHLqBpO+ZtflDGitbDQ/3UOpOPf24SVZc8O1VSp6J6yDOUqB5 Vk4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20221208.gappssmtp.com header.s=20221208 header.b=NPDKRqRh; 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 c13-20020aca1c0d000000b0038b5a6e061bsi1559267oic.215.2023.04.13.06.21.59; Thu, 13 Apr 2023 06:22: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=@bgdev-pl.20221208.gappssmtp.com header.s=20221208 header.b=NPDKRqRh; 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 S230520AbjDMNRY (ORCPT + 99 others); Thu, 13 Apr 2023 09:17:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230392AbjDMNRV (ORCPT ); Thu, 13 Apr 2023 09:17:21 -0400 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1AE16194 for ; Thu, 13 Apr 2023 06:17:19 -0700 (PDT) Received: by mail-wm1-x334.google.com with SMTP id hg25-20020a05600c539900b003f05a99a841so15947164wmb.3 for ; Thu, 13 Apr 2023 06:17:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20221208.gappssmtp.com; s=20221208; t=1681391837; x=1683983837; 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=aESHnUR1O/61n5/lfPsi3I+Fy8BChJQIQxTnoiWBoZM=; b=NPDKRqRhXu9gB7ad0+HipO+LO7EdyiPdFBX+cbn+ldIWVtVPPCcFpHknPNruo3Ieh8 8jDqsJFjadsfs1LNgvOtQGADuxSTFi75F70ITZ1dh3zd6WvL1bCQIAH88bqfvzsCG5CW N/7uV3cxhXayOT7o225y4swYx/6OnLovSNig3tRePA9Bry8EVc59XaKjpeWQQgrWUWAC JREEs84Lh0H8EYlccci+RqxNyDumE/veGS6XuRwDAgT7mlf55btS9Jhw+l8TnnYjK0xb w2VUds0UzqLNlmWJwEmUzDLhNicsRolmmeKucRXMF+uONI/6xJwi/nf5EZWA5UdQSimO 1lGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681391837; x=1683983837; 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=aESHnUR1O/61n5/lfPsi3I+Fy8BChJQIQxTnoiWBoZM=; b=Y1cj6FrF/hNrBROjVevdcBRz0mEOrXR//msYRiehAxGoj6U1EYdsuopfoksRF5AcHJ HZp+ewqqwhJ/SD+Ux1iffmY+5PfLFB74Cx9e4risil1NIb7FgOLoITMp7RTAE7I3g2G+ bRP0YIg9pNEO/CfaVUM11aN6z/+wddWOYsmt0vOZUApaLV84TbwIsWUUSqQz0LI9YlxR V57szVTPSZkvtj9x4TTrtkho3DATD6nyJTjOdkWLRWCRO9i+xwszQRoVCnbXRzCagDjl a3e6ELwU9SMwvW/7ti5McmJMKDN6Gs/ZQbDTw6lKKjDao1EC+g+kZaxNg0BKQf9d6kUZ Ebww== X-Gm-Message-State: AAQBX9doez0JFQ8XqF/qvtie5gdQCZa0YBzNwfpVCuG/8GXoks3zNLcJ DPXkcK66vsxyFb2Jwn9P3LNMKw== X-Received: by 2002:a7b:c7cd:0:b0:3ed:a82d:dffb with SMTP id z13-20020a7bc7cd000000b003eda82ddffbmr1778585wmk.40.1681391837607; Thu, 13 Apr 2023 06:17:17 -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.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Apr 2023 06:17:17 -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, Parikshit Pareek , Bartosz Golaszewski Subject: [PATCH 1/4] arm64: dts: qcom: sa8775p: pmic: remove the PON modes Date: Thu, 13 Apr 2023 15:17:02 +0200 Message-Id: <20230413131705.3073911-2-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 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?1763067437275857324?= X-GMAIL-MSGID: =?utf-8?q?1763067437275857324?= From: Parikshit Pareek Remove the power on reasons with reboot from the pmm8654au_0_pon. Instead, the PoN reaons should be part of different sdam_0 mode, to be interoduced. Signed-off-by: Parikshit Pareek Signed-off-by: Bartosz Golaszewski --- arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi b/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi index 7602cca47bae..5abdc239d3a6 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi +++ b/arch/arm64/boot/dts/qcom/sa8775p-pmics.dtsi @@ -108,8 +108,6 @@ pmm8654au_0_pon: pon@1200 { compatible = "qcom,pmk8350-pon"; reg = <0x1200>, <0x800>; reg-names = "hlos", "pbs"; - mode-recovery = <0x1>; - mode-bootloader = <0x2>; pmm8654au_0_pon_pwrkey: pwrkey { compatible = "qcom,pmk8350-pwrkey"; From patchwork Thu Apr 13 13:17:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 82958 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1031551vqo; Thu, 13 Apr 2023 06:23:03 -0700 (PDT) X-Google-Smtp-Source: AKy350ZTFvpMPFz4g+5WuPH4WBykUrEumuPP4On4cjrKCFWd8qYPSL0eibXZsTSLh6tXjnhU6J/i X-Received: by 2002:a05:6808:2984:b0:378:c02:bd51 with SMTP id ex4-20020a056808298400b003780c02bd51mr1120686oib.33.1681392183098; Thu, 13 Apr 2023 06:23:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681392183; cv=none; d=google.com; s=arc-20160816; b=ph77P/ZvrA4F0y8vOKkf2TcTqfy8Zp67YVsE5zatRHpfj9bPYkn7d2BYDFcBGlNEkt ZjdNfbkN6gkVRG92s11L52BVeO9IqTiFcirJEOtIzDVr16Juvq1G6hQxGbKx1S1FMmP7 6MAYzLa0ovMoAZurIpm3qpzlSK8qPTs/vdshoddmD6d+1u2BxuoZKqTfdzfsqgoSFMlK gTA/jbqe4XAuGwtw8IJ0C6BfwyczBV4rH5Sc9JQaFBuSHXlO0kRU+hIKRp/I/D+BirDY cDKuNF535RqnddAyYfIfaIVBOzgUS6vKHo7nDsyODvUuuZ90KqscC6b1PKZ0Pkjtbmpm JNlA== 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=W5fFOxM2M8ye7OTBHtbOgOjz+8frsv+eTncE5p8viM8=; b=Ws4FJYv/oLgxrw57bgdvBPwphb90TmMILfxtZKyVHqEEsDZnP+AURzWIwUnG9v6M/X LyjRnl04+ELnm5O5ORfHi8cWKMU4sFg8s9w8RSNxxpJ/xAAPQS8R9OP+ogOYNg+b/fd7 zPlSAQvlx4ogghxqia4+9ahZXxdr/wv7kIszvBC57JyFME7C8RUKeR7NVylOFJwMCR+x GpVCOfPjEPRjgBeMBkDzIjqCqvfrsmsDvYsfyMxf1725msK9xQwUpMsmKrJlHZl6La6B DiftzU1euN4/fVGvKexZweMgzq9xkcWgac/xBHlv510KQgGcrb07GxpWNYFrz3VgSyGk Ph6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20221208.gappssmtp.com header.s=20221208 header.b=T9BU71wa; 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 a10-20020aca1a0a000000b003891262cf5esi1787736oia.178.2023.04.13.06.22.50; Thu, 13 Apr 2023 06:23:03 -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=T9BU71wa; 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 S229870AbjDMNR2 (ORCPT + 99 others); Thu, 13 Apr 2023 09:17:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230414AbjDMNRV (ORCPT ); Thu, 13 Apr 2023 09:17:21 -0400 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29363E5B for ; Thu, 13 Apr 2023 06:17:20 -0700 (PDT) Received: by mail-wm1-x336.google.com with SMTP id hg25-20020a05600c539900b003f05a99a841so15947208wmb.3 for ; Thu, 13 Apr 2023 06:17:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20221208.gappssmtp.com; s=20221208; t=1681391838; x=1683983838; 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=W5fFOxM2M8ye7OTBHtbOgOjz+8frsv+eTncE5p8viM8=; b=T9BU71wavViVUYBMTDE+hcbRAc77asym97Q+vAZdeQ0/tt/SvQZu4WFosGI0lp1zDI /4ZUBDyrIVTMjE9tZRT6DXigjhxwaxshTBOZkuxX5shKdEzjR53fag+SEEJARuwGTak1 Fpob0YAdn9wBMUDHq8H+x7isdAAo/tSUCRx2JSBbs51pOVNhyCvuJjH5fD2j180PtURV mwKhNEaZwq55CodUwD1Qt/2Y67nDCt5ZEmuWdTEOdLAtKhMzHGDQfKEGIsaAaomw+Hkw C/D67FQB/eQa9XS0sDhRSP74aOQwzSYh67IZLOFwQEOzY3eU20/cjfRnHK9OKBo2YZvA t/4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681391838; x=1683983838; 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=W5fFOxM2M8ye7OTBHtbOgOjz+8frsv+eTncE5p8viM8=; b=BUIQN5aucqlD6FCe476tjERBqhxSrcwZN7Ps545QHqCR7tnDmgKcMiVEr48Sdf5/ti 0wpOdwGX27UNPOmzq58z9P4xTvb9x5recp9+jOCFqzhLSwFvMoqi2UIfDEpHPOQaDb7U zXJlP3ry2Ig41BuQ6iikyhuOAhfWYLgskIhYQHABsBXZ3TYs6ciVhxSBFD5qlNApPLH2 1KoL5SS/DeCH7Q0uQZs0l+yzd+OvI/oqdmKY5k6aCfcW9OzbpRb3Bkw4w3qKF/3LBV6T FbZV6BsXbWFOEiFVXypfeD1IJweXCCLyRYxBYnUyEpkxCMcsOAc0vuRZkEPNzJdsKAdt CGZg== X-Gm-Message-State: AAQBX9eih/X+4FbCnuF5gTRStGd/TaPYIMuEoNABgl8HKjWqjpsDfFgQ e0+yoSTLkN66Z5zGioP1/3iFqA== X-Received: by 2002:a1c:7905:0:b0:3ef:5fe3:c57c with SMTP id l5-20020a1c7905000000b003ef5fe3c57cmr1420333wme.23.1681391838576; Thu, 13 Apr 2023 06:17:18 -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.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Apr 2023 06:17:18 -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 2/4] arm64: defconfig: enable building the nvmem-reboot-mode module Date: Thu, 13 Apr 2023 15:17:03 +0200 Message-Id: <20230413131705.3073911-3-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 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=ham 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?1763067489514068935?= X-GMAIL-MSGID: =?utf-8?q?1763067489514068935?= From: Bartosz Golaszewski This module is used by the Qualcomm sa8775p platform for passing the reboot reason to the bootloader. Enable building it in the arm64 defconfig as a module. Signed-off-by: Bartosz Golaszewski Reviewed-by: Krzysztof Kozlowski --- arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index e1063ab32658..5bdc9cede807 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -614,6 +614,7 @@ CONFIG_POWER_RESET_QCOM_PON=m CONFIG_POWER_RESET_XGENE=y CONFIG_POWER_RESET_SYSCON=y CONFIG_SYSCON_REBOOT_MODE=y +CONFIG_NVMEM_REBOOT_MODE=m CONFIG_BATTERY_SBS=m CONFIG_BATTERY_BQ27XXX=y CONFIG_BATTERY_MAX17042=m From patchwork Thu Apr 13 13:17:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 82959 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1031633vqo; Thu, 13 Apr 2023 06:23:10 -0700 (PDT) X-Google-Smtp-Source: AKy350aQvlBPhIb99V6PXRXDFRrcvbJWzxWZOrrWx6MerDcdnOW3q1YQA0o91MyjHJDFoPpjcumA X-Received: by 2002:a17:903:11d2:b0:1a0:7156:f8d1 with SMTP id q18-20020a17090311d200b001a07156f8d1mr2655130plh.19.1681392190677; Thu, 13 Apr 2023 06:23:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681392190; cv=none; d=google.com; s=arc-20160816; b=BouinnxunhBh8xuk3oOVfLhdo4prTypxjl5A9uUosvwsrYqQWCQCkimUhH66R32q7W UOIpJNZqjpvZfQt0KHH/y6UGqOah4rxnKE7wZghOxPCfaA3+y0XCNgri5FHY9CzEyBGU X7OANiisgLwbGrd4iJdsqvuVHTZ+4kJaEOuMscmYM9saJZYTPsYAj/NguHAlIDr56Vn7 XM/5EUB0x71/4JAHxdIAqoRsKx2OssusLbOiV2LDe0iWN/1DywobdxaqRDz/OKWx/098 GJhPaGB/B8QBxl93ElSh+T3syifXqiiQs0YODNhf01Ccq3P6DCcnYPymBqxcN5yj0gAX cmiw== 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=ezwEzIUFbO/ibyCR5/pMZcXsF9FqrfvEohFgkMV09Iw=; b=qUx1Hv4PYxtwFlNwQaDZViRfGT3Dk+ohUxLcHsSzRWHYhu+pDtxn1s2bOiPOYxjHpC IwhUUbcxKzuOtPPbaZ7d35bsfz6ZHZOeaZe2RIQD7Ee9uF+6n3aueQS16b1+KUKWAxCN XSk9fR4R2Mme4rd2TFy074DDm4w0wPF7VZHz7OIUg6G7DrhwUFzKI7ZV9OlxfHNQXyRs QsI+PRDRVBwqaM+fNSsbxFEe6C9w6oPqV3cMbIgPCDjm635IUo/z2CpfResOSZRMBsK+ ZQxEQQMFa5ct/X65tKzzD14HP+WeCDKQhLgjiHhiu6buo5pFelogm0CfenD2ziJrlXsN joYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20221208.gappssmtp.com header.s=20221208 header.b=KRprAh3D; 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.22.55; Thu, 13 Apr 2023 06:23:10 -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=KRprAh3D; 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 S231143AbjDMNRb (ORCPT + 99 others); Thu, 13 Apr 2023 09:17:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230469AbjDMNRW (ORCPT ); Thu, 13 Apr 2023 09:17:22 -0400 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 571A5114 for ; Thu, 13 Apr 2023 06:17:21 -0700 (PDT) Received: by mail-wm1-x32a.google.com with SMTP id n19-20020a05600c501300b003f064936c3eso13076220wmr.0 for ; Thu, 13 Apr 2023 06:17:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20221208.gappssmtp.com; s=20221208; t=1681391839; x=1683983839; 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=ezwEzIUFbO/ibyCR5/pMZcXsF9FqrfvEohFgkMV09Iw=; b=KRprAh3DeL1Jc7nUy6FhEObqRosjdbUrDp6a/kOhNPwwLCOL9pPjxfl2rVQ4WgqvQJ DVXIJb2LtEUYCV/FrZsxwEG62SvKFy596HzAVgxmRRBKRIjgpI5kq1EzDbn+RucaX0+a 7KRgo/u/yVa9lFvgY80K/Mp5UIEUtRbNbKlQMQOr+vr4r5qEjrk4OAed3/R8ukU6n2AH 1ZmaEwkxdP2C9sRKHhYixYOx4cEVwjZrad9yzqlU42eshedOESYGmds0Wrn6DSdeR0he IkSWUXOO3T+bProG7oQtR/VUu43EV4xKxg74fZ3QdCc+yiud17Z+o+geepprV5ujCtBn 4POw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681391839; x=1683983839; 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=ezwEzIUFbO/ibyCR5/pMZcXsF9FqrfvEohFgkMV09Iw=; b=aFKZITCdUBuhQoXvQv5FD0rpyAA34zzK9FVAyb9IXyv83dhZECKles6+JqKZ5Oz+iu 8h9hnDHjrCn8ES2NRCoTFqo1KG5hLAsrDtXb4AmC8yLf/xaLc49fEfX+4oe+LxibhXPv hdNXIXq4BMulTQ1UuZze7kG0DIjeyhCU+pmrzbzOO7bjxVGFa8FmNJvGwypDELIpa67E Ghlq5YPKUp+wh18I5z5Ny0+LJHNbV4pi0dXsuhjLI9e2mD92HkXFBKkBAgFbVwlWjhjB 8A2b4Ub0z1efqAR3uefLzGyNXDPbnnZliRfFqxL9aV+f/aXTY4cegjKG20+sKM1PH6bL Ww6g== X-Gm-Message-State: AAQBX9e9ltW8dJpnaXpGZ9WprLhkSekh36FKkxknkr6A25p0JDQYDU6w pWyPCM0+tAmrbh055UYM50T1UA== X-Received: by 2002:a7b:ce07:0:b0:3f0:373d:c32b with SMTP id m7-20020a7bce07000000b003f0373dc32bmr1788155wmc.30.1681391839664; Thu, 13 Apr 2023 06:17:19 -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.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Apr 2023 06:17:19 -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 3/4] dt-bindings: power: reset: convert nvmem-reboot-mode bindings to YAML Date: Thu, 13 Apr 2023 15:17:04 +0200 Message-Id: <20230413131705.3073911-4-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 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,URIBL_BLOCKED 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?1763067497720333514?= X-GMAIL-MSGID: =?utf-8?q?1763067497720333514?= From: Bartosz Golaszewski Convert the DT binding document for nvmem-reboot-mode from .txt to YAML. Signed-off-by: Bartosz Golaszewski Reviewed-by: Krzysztof Kozlowski --- .../power/reset/nvmem-reboot-mode.txt | 26 ---------- .../power/reset/nvmem-reboot-mode.yaml | 52 +++++++++++++++++++ 2 files changed, 52 insertions(+), 26 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 diff --git a/Documentation/devicetree/bindings/power/reset/nvmem-reboot-mode.txt b/Documentation/devicetree/bindings/power/reset/nvmem-reboot-mode.txt deleted file mode 100644 index 752d6126d5da..000000000000 --- a/Documentation/devicetree/bindings/power/reset/nvmem-reboot-mode.txt +++ /dev/null @@ -1,26 +0,0 @@ -NVMEM reboot mode driver - -This driver gets reboot mode magic value from reboot-mode driver -and stores it in a NVMEM cell named "reboot-mode". Then the bootloader -can read it and take different action according to the magic -value stored. - -Required properties: -- compatible: should be "nvmem-reboot-mode". -- nvmem-cells: A phandle to the reboot mode provided by a nvmem device. -- nvmem-cell-names: Should be "reboot-mode". - -The rest of the properties should follow the generic reboot-mode description -found in reboot-mode.txt - -Example: - reboot-mode { - compatible = "nvmem-reboot-mode"; - nvmem-cells = <&reboot_mode>; - nvmem-cell-names = "reboot-mode"; - - mode-normal = <0xAAAA5501>; - mode-bootloader = <0xBBBB5500>; - mode-recovery = <0xCCCC5502>; - mode-test = <0xDDDD5503>; - }; diff --git a/Documentation/devicetree/bindings/power/reset/nvmem-reboot-mode.yaml b/Documentation/devicetree/bindings/power/reset/nvmem-reboot-mode.yaml new file mode 100644 index 000000000000..64a7d224c7dd --- /dev/null +++ b/Documentation/devicetree/bindings/power/reset/nvmem-reboot-mode.yaml @@ -0,0 +1,52 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/power/reset/nvmem-reboot-mode.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Generic NVMEM reboot mode driver + +maintainers: + - Bartosz Golaszewski + +description: | + This driver gets the reboot mode magic value from the reboot-mode driver + and stores it in the NVMEM cell named "reboot-mode". The bootloader can + then read it and take different action according to the value. + +properties: + compatible: + const: nvmem-reboot-mode + + nvmem-cells: + description: | + A phandle pointing to the nvmem-cells node where the vendor-specific + magic value representing the reboot mode is stored. + maxItems: 1 + + nvmem-cell-names: + items: + - const: reboot-mode + +patternProperties: + "^mode-.+": + $ref: /schemas/types.yaml#/definitions/uint32 + description: Vendor-specific mode value written to the mode register + +additionalProperties: false + +required: + - compatible + - nvmem-cells + - nvmem-cell-names + +examples: + - | + reboot-mode { + compatible = "nvmem-reboot-mode"; + nvmem-cells = <&reboot_reason>; + nvmem-cell-names = "reboot-mode"; + mode-recovery = <0x01>; + mode-bootloader = <0x02>; + }; +... From patchwork Thu Apr 13 13:17:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 82960 Return-Path: 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 + 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 ); 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 ; Thu, 13 Apr 2023 06:17:22 -0700 (PDT) Received: by mail-wr1-x42a.google.com with SMTP id s2so10951213wra.7 for ; 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 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, Parikshit Pareek , Bartosz Golaszewski 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 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?1763067520884408880?= X-GMAIL-MSGID: =?utf-8?q?1763067520884408880?= 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(+) 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 {