From patchwork Mon Apr 17 14:55:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13214172 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 92640C77B76 for ; Mon, 17 Apr 2023 14:56:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=mVoMihXFaI93t1zkkiONgFX9602ZAiqutP9B5+51mXU=; b=Cq3sWNVzu2jdpx pyb/NYuAf43EprBxu+6rNXEkX5EJ0NMSJYSbchfgZFmjAMpdxjHt0FwNMVfpv4lBR2WXmQArhsUfY EQN4Jd1o/Wv3wEf8Ee5pvsEJK9InuGPWj+gss0dXO5J1FKqlpETrXg/Ysi5bWdGqLxkGSw+Ehu1l8 AKwmePkUaHzd4Lw9g+eY0p5kpZTWBasVmHXbIXI5SLmrK6/qnbNcMau0crSVC/0MM93gmbxbxWAw5 YEHXvnZJt3lJCsnFBhFU+E9HJYicFXgCi66lbbtDz2yfi/s4FBiufH8PuTAJM/U5/3csAZkXdYDyS a+7MPHtt/PYGyQwL+I7Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1poQGn-00GiEj-34; Mon, 17 Apr 2023 14:55:53 +0000 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1poQGf-00Gi6Z-0F for linux-arm-kernel@lists.infradead.org; Mon, 17 Apr 2023 14:55:46 +0000 Received: by mail-wr1-x434.google.com with SMTP id ffacd0b85a97d-2f46348728eso974536f8f.3 for ; Mon, 17 Apr 2023 07:55:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20221208.gappssmtp.com; s=20221208; t=1681743341; x=1684335341; 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=0qIwLon1heagiNYOZjuB3m/sg7jeh4bkPb41uRok6hc=; b=K3OERaSDPuJcJLNla2jWDYO9HbyuOoUsv83uahQ1khU7CleiOS6M3bAX/1Dk/AazYk ZmbiRubFAL1Slb/yOw1pXJzkKWTnHm0BUZwa6k2d0xM3kx3OXJk+yf8pjlkZgVCQDJ8z yG+iK+1uD8vqYWNKALIQDCsKk3+Z6RxHE3t7y8T2Cn4uwFN++S/Ezx9ipyPiMYLnzYvO xDuRwrnJdjapQnvXDGZifovdzmDtt+hj8jXyEFY3rhd39vbM/wfygzXqW6hlJ3K0in8b 5MY9NkJ0eB9+q8nBMAFlvxqvyARD6QfPKAVGAZcjJQwiqxRYh6aHyIXjX3gwPsFJDQtG ZHLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681743341; x=1684335341; 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=0qIwLon1heagiNYOZjuB3m/sg7jeh4bkPb41uRok6hc=; b=ZNWsegpZEXLUayCYMTACCXIF2QU/gmSeSFaRI4GKGgaTtF2yAVBfdq6oDSihr+n/30 NVdWPxT+zsd/Cwr+r4gk55xne+HvIMCUkiYoK3qvkD5PPEa2Hv9WZJ/HfQsmcNamxJD5 7bhDsBhuQxXOQmUW+CQMGw9fnrVyL7+UwUxerJKSFHucVbHvyCnuZNwilahb9F6YKLHO Q7tARLRvfMAPH7fiujkJ585y82nIByUFERVenWcHx/XE177bR2U/51g98/zQWEGgtQFA WKV4XS5XC/4MpAe0uqqz1WO2wXcweCb76RUnzT4REWsAR0P0ibLCjrgNfQj+BegfOjw5 WaEQ== X-Gm-Message-State: AAQBX9cP/Y0FdC1+5SJx6PKxH2T+rljxw0ey1oOSD4km2pRvojewBZbG UXfhcX2M3HMThB0i6S1kYz5wuw== X-Google-Smtp-Source: AKy350ZGoM1GJQomgjkOS+i5gcfbbvWYjg9qw4qC2Tt4jyxixUsxaJk/dDZkfjfyBGdrbrQQvC6+4g== X-Received: by 2002:a5d:58f2:0:b0:2ce:a6f6:edca with SMTP id f18-20020a5d58f2000000b002cea6f6edcamr6184435wrd.55.1681743341146; Mon, 17 Apr 2023 07:55:41 -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.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Apr 2023 07:55:40 -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 v2 1/3] arm64: dts: qcom: sa8775p: pmic: remove the PON modes Date: Mon, 17 Apr 2023 16:55:34 +0200 Message-Id: <20230417145536.414490-2-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230417145536.414490-1-brgl@bgdev.pl> References: <20230417145536.414490-1-brgl@bgdev.pl> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230417_075545_114616_DA65057D X-CRM114-Status: GOOD ( 10.69 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Parikshit Pareek On this PMIC, the PON peripheral does not provide passing reboot modes over HLOS. They must be passed over SDAM. Remove the reboot-mode properties as we'll provide a proper SDAM node in a later commit. Fixes: d2d9a592746c ("arm64: dts: qcom: sa8775p: add the Power On device node") 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 Mon Apr 17 14:55:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13214173 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B84D3C77B70 for ; Mon, 17 Apr 2023 14:56:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Qrl1jN2MO0dgU96ZEcwO+Vq1V7aS/js0nTfI/BEq0wU=; b=k7WLecvbyH+1WV iuhExI3qtD6ufd/gDz0vQhKhMvycfsQgAnCgFeXY431BBMRouI9Ula7+oFrqSQsa9e2dWi0NbBTGR 5Cm4dExVs2bH9qaQDNy86D6ckYmtM+yle/hbT4HFRDUQN1iTz2eGkKiusFcavoP+q69FxcaNN1cqS +kZCT14nX2+QPaZTGrVz3LDyygH0/oo/Ji/SAbjIrn2g2pZQQYyO1dTvp/gLU/kmM0xYonCPqzru/ j370kTDCLhdx3vpNDjYQv+Ouz37Jr/CVHZhigIThwUp1Kx42+Zh+lSDX0icGmulFzyv8GAjOJSJHr qX4b1gdxUMchnAaRigVg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1poQGp-00GiFa-0l; Mon, 17 Apr 2023 14:55:55 +0000 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1poQGg-00Gi7U-0i for linux-arm-kernel@lists.infradead.org; Mon, 17 Apr 2023 14:55:47 +0000 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-3f09f954d29so15565955e9.0 for ; Mon, 17 Apr 2023 07:55:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20221208.gappssmtp.com; s=20221208; t=1681743342; x=1684335342; 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=KpUMtv1IxR21LDoVKDuC4GQOAQkDJXs8GOPaC4q6kGw=; b=OAVP3bzJHORQstUTbwhu1R3B+n7USYjtUFjZ2uyNLnP4vQACBRdZ5DV0lB4HwfquS2 0P2ltjjs9TgQyEfXK5kt3xhlkm3+QIiThcI0RGg+igCZzTMoU96xhdnEOdD0tT4zLyve 5QUNH/aNi6VkXzeFefOgSro3FY6BffrCxBaso0/cJAsiJS0e4dLeVlBTmuPpNd91nC0Q PtZMysBXSSrP19Hq7TxIOGheNvUk8MGw/SpY7SvKxLoDUD52dj7Y8qgSDQmHCfSvzlgD KJfOTBgA/OO+6LKfhrOv0TUp4q5bKUHYi3ye+YFwjjjgOKjygWxKiyVdRs8lvFXMKuKU dISA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681743342; x=1684335342; 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=KpUMtv1IxR21LDoVKDuC4GQOAQkDJXs8GOPaC4q6kGw=; b=CsbZcJ9CY95eQc985NLQ1DdltiexJY4XiaOTfKUrn56zb5KTeVoLmEZuG4T8ywWY1W MaWXJdgLb7hPpN468U85sKbyZJA9KVTDoptHdA3YO2PsUiodxIzj1tchyVGicTtqbsCh 6MbJq/r3MOkTlQ/XQI7ZaWzb76lB03F2LU5VHbXHtSHxDg0qlbxk81c8YOueWNvWmuSS Faij5rg1nXqhb9pEdzs5KK/Erztrfs+6G+0gtPtg0ovzvxZHOYckaZ/5XVzYByEHPX7E im0B9jaNLNaGHK1Fjw2Ar6jVoMP/dcYcr74wPWOwTbc16blA1YgtolvHJil373epDeQE 6dwg== X-Gm-Message-State: AAQBX9dTmB7aleG9l2ngh4LnzUIPLiHwsglAfVOydI9Q7zfLyR3jUTpR Pf2AJbRQckNzokt6fiNhZM8E31xpPRC0iS+eBEU= X-Google-Smtp-Source: AKy350YUelkvSGh5Es7dzBXKaCo6pR3I2qp7ux+Zim1p2vQFQCvJcdNdceJsLAnB0WKGiXqhgxFzbw== X-Received: by 2002:a5d:4004:0:b0:2f8:67ee:5ca9 with SMTP id n4-20020a5d4004000000b002f867ee5ca9mr6168602wrp.65.1681743342270; Mon, 17 Apr 2023 07:55:42 -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.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Apr 2023 07:55:41 -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 , Krzysztof Kozlowski Subject: [PATCH v2 2/3] dt-bindings: power: reset: convert nvmem-reboot-mode bindings to YAML Date: Mon, 17 Apr 2023 16:55:35 +0200 Message-Id: <20230417145536.414490-3-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230417145536.414490-1-brgl@bgdev.pl> References: <20230417145536.414490-1-brgl@bgdev.pl> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230417_075546_269861_2FF9B658 X-CRM114-Status: GOOD ( 16.16 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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..14a262bcbf7c --- /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 + +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 + +required: + - compatible + - nvmem-cells + - nvmem-cell-names + +additionalProperties: false + +examples: + - | + reboot-mode { + compatible = "nvmem-reboot-mode"; + nvmem-cells = <&reboot_reason>; + nvmem-cell-names = "reboot-mode"; + mode-recovery = <0x01>; + mode-bootloader = <0x02>; + }; +... From patchwork Mon Apr 17 14:55:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 13214174 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CD8DEC77B76 for ; Mon, 17 Apr 2023 14:56:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=wwgZHmOYX62d2uoki+OKMLRRKu3XNRWw/PuxdlJuhpQ=; b=TRcmL3+zIs3h4Q LcVe8AiSmJwhCHowlCbk4TW948E2lXlKTUPbcyiGRatFLjKaklA5JKmpUxiNguLK2KLzKjOn2tnce 0E4VZOYxWavJOflCdi44Xj/jp9c1NP5htGTDfdt0i5ds7UYdd445EuusOUHp95YGH05wMcwoemZt9 2ga0gIGj4r5C74seHwDJ6ERGv2SB99jMPCprmv/5F6OJKytHx+KrUwODjmGz+K6hV8m2q/aF0JqZX SAIr/DSArdwr2QE3mG8YfOcOfrO93eyMAf0R3z8HV+AEfkWNIwvOLEu6TCwCwSG8zEANUGo4QWhHx ZugvlPf2a3Q890u5JGEQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1poQGs-00GiHl-1A; Mon, 17 Apr 2023 14:55:58 +0000 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1poQGh-00Gi7r-0H for linux-arm-kernel@lists.infradead.org; Mon, 17 Apr 2023 14:55:48 +0000 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-3f0a00a5880so9459705e9.0 for ; Mon, 17 Apr 2023 07:55:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20221208.gappssmtp.com; s=20221208; t=1681743343; x=1684335343; 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=vVLpu463weUnMVF2zbdwbH3MNpH2/6HWhiak2FggVPg=; b=D7o3l3xcWWlfo+EXUnDR08gc9zaDZak181rwXLSSGGskUajUsAkBRcBC76KHtJIX8g NfcOJzAZlMKZ0GUfmsJP6dtOtpP02blCi8coTZr5ZdEBmJ4KDyfzIrys7zygH2rgWCu9 N7M0j3rY/XNH8cgh16sAb0AVsjJSZPdViJ1AIR/YM8foAEQV40hqTbr8MbotN+Hm/yN4 4TeSuCUnwTMg55dxWMt+UyCDWfXdbjqB+r+w9iVju830bGcDHc5MGVQ9ybFw/m9Z0XFd LsyVc90FWbKgS/byLEGEohsfH2VzMolRPDMADoq4Ej64KsbLT3W/HAgDj5xzACtZZzPe y1Ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681743343; x=1684335343; 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=vVLpu463weUnMVF2zbdwbH3MNpH2/6HWhiak2FggVPg=; b=l5HfqEKlr4+zp4k1z+3JeO3eFIEpgv4Nu5Tspr04kLRYC7DK1xC7T7iTkB6LfSoeAU NDP+DFBCjif74EOgJgSSxhk8pv8YLCznhtU1FFA2NQxbHwnuu4ZFqCDE5yr4yzcN6QRr JlnK17reEQ25y6tENoeCYVwUWiRhizKf88BOE2eKTlvcwPgkIdXT9NYqzRbxX9WriK5B h3YknPz+8xtLgfee8PB++qScDvyuBj3GYGCQKq2AtLzDqpGcFlqG+k0or5aBTMGZgcIQ Clig85csVFXCevxhO6Qakle80/2hxyW4ErNj9nCLdldwgez+pxlAtxbI/l0qm246Fn/h /P2g== X-Gm-Message-State: AAQBX9dM2hI7YhTTu2tfh5DtfLozlO0tVl6Zp+k1MHXdRx3u0RiXHoY+ 5oxl7iq8dnwnxxIgfRgVN9b58w== X-Google-Smtp-Source: AKy350ZTjkqzUgTQGHGrJ9JuARTqLhAJbKksuC56qgRgq3evGrn857zKaOJqn9OLamzUI4n7teZ4bA== X-Received: by 2002:adf:e8c1:0:b0:2ef:1c8c:1113 with SMTP id k1-20020adfe8c1000000b002ef1c8c1113mr5931168wrn.9.1681743343288; Mon, 17 Apr 2023 07:55:43 -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.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Apr 2023 07:55:42 -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 v2 3/3] arm64: dts: qcom: sa8775p: pmic: add the sdam_0 node Date: Mon, 17 Apr 2023 16:55:36 +0200 Message-Id: <20230417145536.414490-4-brgl@bgdev.pl> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230417145536.414490-1-brgl@bgdev.pl> References: <20230417145536.414490-1-brgl@bgdev.pl> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230417_075547_125352_82E46041 X-CRM114-Status: GOOD ( 11.04 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 Reviewed-by: Konrad Dybcio Tested-by: Eric Chanudet --- 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..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 {