Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp4340502rwe; Mon, 17 Apr 2023 11:06:04 -0700 (PDT) X-Google-Smtp-Source: AKy350ZDEVLq9i+MshVlgjJnOB0gepCEfWNwVZOHhRLEkdjKDN+xq6Yo+L0HuNJaBal2nzNK8ko7 X-Received: by 2002:a05:6a20:a001:b0:ed:3f45:145e with SMTP id p1-20020a056a20a00100b000ed3f45145emr16577063pzj.44.1681754764327; Mon, 17 Apr 2023 11:06:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681754764; cv=none; d=google.com; s=arc-20160816; b=RQhdR98b9+H2a0cQ3vPrBK7PAFvAb2Yh9ESlHT1jR9Qx0bIrlqWF6+ZGSNH7GXgDuD a0k5QlW442yaBCyKaAiIU95/X/YBiRb4VxC8km+w7LS8bhmfc5uolyPFFQie9s+X/Z2W PrHf8zbc5x9CCZ0mCtAnTYpzN4+s2kg6trCmgZAqeICBMeymH+1CT2vlqXayGpaACmXS MgvTTUDenAAxN+0jtg9dl5CxPIiK4vtrR9Z6EWFk7uxLSxHrYK1iDGsU4ah/VK9K5BCF jDAVbnC55KqzCYPQHVFUblLayn1TzQp67fXxqWk3CyJn6DPQOgvhM9Zby8v8UhmMGx/Y T9TA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=BKDmMoGXfJU4fYQc4SgnFhXeKOqYUlPRJlTeeGghjx8=; b=o+NVUSltFuZAlDgtSoBX5nB82ysk3TsjS5Tn1EwNjqMhRMN2e4B90h6Xn+2U0XaB5m ZHpGBkYCMZBYoj8gniYhFQPAUALrqAahI+ZMZNIlVZoKzzyovCW2olJO/ttfEgPIPfUy 9yyiWXzY93LCZFGYXfhVWIIJ80c2Zyv+bxfWRvXbouQqmV8XpOqLabKQW9x89grbCNpP Dx7zTR6NT2OJdY8DFpF9dXbOm1RMeydkHjDEdILqITiW4/U9B90/2o+OehZ7niJAdjv0 LBn2UyqA2WHji2XCdEOQr2icV2WAORjoKBMF/CYoWN/fTgNzMsDZgaUt541qLzpl0Qfr eleQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=e71iFc9O; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l63-20020a638842000000b00513b69be564si12064731pgd.274.2023.04.17.11.05.52; Mon, 17 Apr 2023 11:06:04 -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=@linaro.org header.s=google header.b=e71iFc9O; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230039AbjDQR4D (ORCPT + 99 others); Mon, 17 Apr 2023 13:56:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230003AbjDQR4B (ORCPT ); Mon, 17 Apr 2023 13:56:01 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 67A196A7C for ; Mon, 17 Apr 2023 10:56:00 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-4ec816c9b62so1576244e87.2 for ; Mon, 17 Apr 2023 10:56:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681754158; x=1684346158; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=BKDmMoGXfJU4fYQc4SgnFhXeKOqYUlPRJlTeeGghjx8=; b=e71iFc9OvZScNGlXJc4d2BWw8WUA4B4a/x6KjylMvisNQRju5rfTmHoGAERKFeFwZn b4b0AbtBHn2fF+dHWmUNI1BZTCo5/CmZ66WbPGiXQtxT73ZIVfY5t5YekrFLga2kz/Sx Lch22J7ZYA8bXnLl0pd3/aYY7YbPUVk7U4xLG+54MITzuTcTKozirc0bHF+/t2IQVC9j RK86hfbSOLwowXUWoY3kne/x2Q8caGQC8G7bz5mYIVdjlPY4k8OTvZSmCH7YICPy34Nj raofRJ/fDGk6ovfpJyr4qj0CJmI3pGyapnUZ13Ngc5mF2vTe67ThfiR3cFk6PCSfIq3Z Crtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681754158; x=1684346158; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=BKDmMoGXfJU4fYQc4SgnFhXeKOqYUlPRJlTeeGghjx8=; b=Mmu7umOIxkpjKftF4HcL3MM8rhz54owiyAMp3C7c1far4c5TgJmZnfX0fgyqfrmu5p /fBg5PjbMUrSCXGs0GLFdA+DGr15WrZw9MNPwpvKD7LtdtT4njdFLadM/AcCP/cyo6Kh 4FLGPl5pGAj+4OyUPpkNQyiuPtYjWUHtJNBYSqHkDobJauMJSY5ChSPHIr46qw0UDqIn aKn8ugvcwx8PGcibpAlIsEKiXo9RkkWTLxTR1s5SgKPu5mt+49IK9eU7jsfDTQ8eiG53 GvmEx+vQfxO8Iv1moyn/Kr0P0Nnxf7vLuHFZcgoMZCnoaGRUaxuOMw0dLjd0ISq2RbP1 EBdA== X-Gm-Message-State: AAQBX9chlmADxM/ZZfBlht3y0u1KJ2FwV1GQi0NhylfljNoq20fVABPY L/cShdyqESYrWA8ma4wh6AlQjA== X-Received: by 2002:ac2:4105:0:b0:4e8:3f35:6844 with SMTP id b5-20020ac24105000000b004e83f356844mr1847583lfi.19.1681754158663; Mon, 17 Apr 2023 10:55:58 -0700 (PDT) Received: from [192.168.1.101] (abyk99.neoplus.adsl.tpnet.pl. [83.9.30.99]) by smtp.gmail.com with ESMTPSA id u21-20020ac25195000000b004cb45148027sm2111190lfi.203.2023.04.17.10.55.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 17 Apr 2023 10:55:58 -0700 (PDT) Message-ID: Date: Mon, 17 Apr 2023 19:55:56 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: [PATCH v2 3/3] arm64: dts: qcom: sa8775p: pmic: add the sdam_0 node Content-Language: en-US To: Bartosz Golaszewski , Sebastian Reichel , Rob Herring , Krzysztof Kozlowski , Andy Gross , Bjorn Andersson , 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 References: <20230417145536.414490-1-brgl@bgdev.pl> <20230417145536.414490-4-brgl@bgdev.pl> From: Konrad Dybcio In-Reply-To: <20230417145536.414490-4-brgl@bgdev.pl> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On 17.04.2023 16:55, Bartosz Golaszewski wrote: > 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 Konrad > 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 {