Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp744013rdg; Thu, 10 Aug 2023 19:49:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF8yWniqyHKSJatpUSO4ng+l8mc5/XIJX8yfILriOClwlVz6pTGQKOEARVqYy72x1hzii0r X-Received: by 2002:a05:6512:31d5:b0:4fb:81f2:4228 with SMTP id j21-20020a05651231d500b004fb81f24228mr378577lfe.31.1691722175805; Thu, 10 Aug 2023 19:49:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691722175; cv=none; d=google.com; s=arc-20160816; b=ACVESAbDoZVh0qzxc/fLWAX0VcC/p+OZ6CQtPRnJZvNM8Th4UfANgwPqKB5p40J1UW PmBCIpz1nGq9KkVVq9YqvzaDhLl6GTS3QPrxCkGM1x/982qCJfSsDD+Ev5EN93qUT1x7 KZ9cediFlT9uUWnZljeXrKbd7PWu8blrnksUOgMfhorw9CVLNa5ZTQTSdMOqgqWe64Jn 63415MEEevLJGKlzqS3w4WDwj3/N1E+64E/2lZVuyYW23FJVCLYMbi/u3p8G0GwVY0s+ +pU/WGB9tGk4qX2nNRCxQ6MHW3WUOOCdMVVeXVWXtoZd/VI7/RqjSieFQOouJUQ+WOnh 8RIg== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id; bh=Mozqg5qyy8N95vOdS1lswQZM4rdSNwFWYpYDY/NaPdw=; fh=KGihKd3biEUna9LRCYvnVf7rPqFjHy/ZzatzHQLSQiw=; b=HpI0Yfb9/pmGsOhtCmmDunL+WI/5L/EgNl2xJjytvcFDi5K3xyRALSe/x9lRjRK2fx mOQgzZd/LsmE+9mPmUtEfr2RESadEMKJSved7qOY8RLmXYUBmXcuAgEVyCTKkEXNdF7v DlOaEmjzznuiDq+jilNTSDyRaCi1vKtzsmRHzrvAKXRAx1dczHjkqaFxa5tQOtiptXod P0VcVnOhBYs94XAk7EowXwqgQgVYdFIMjiShQPnt9UlCT4f2rPzVsRZukK0e34EwXWIo 8elXOjtq9uOvTHsjv1fFyYh9TBDWWfa59yFuKB5R6V7I0W5LQo5aajl7wIl1xXq+Cklu 0VLw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m14-20020aa7c2ce000000b005232d42dbf0si2393058edp.584.2023.08.10.19.49.11; Thu, 10 Aug 2023 19:49:35 -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; 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 S231546AbjHKCUO (ORCPT + 99 others); Thu, 10 Aug 2023 22:20:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229475AbjHKCUN (ORCPT ); Thu, 10 Aug 2023 22:20:13 -0400 Received: from fd01.gateway.ufhost.com (fd01.gateway.ufhost.com [61.152.239.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30C4D2D55; Thu, 10 Aug 2023 19:20:12 -0700 (PDT) Received: from EXMBX166.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX166", Issuer "EXMBX166" (not verified)) by fd01.gateway.ufhost.com (Postfix) with ESMTP id DB63C823D; Fri, 11 Aug 2023 10:20:10 +0800 (CST) Received: from EXMBX168.cuchost.com (172.16.6.78) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 11 Aug 2023 10:20:11 +0800 Received: from [192.168.120.59] (171.223.208.138) by EXMBX168.cuchost.com (172.16.6.78) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Fri, 11 Aug 2023 10:20:10 +0800 Message-ID: Date: Fri, 11 Aug 2023 10:20:07 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Subject: Re: [PATCH v1 1/2] riscv: dts: starfive: enable DCDC1&ALDO4 node in axp15060 To: Emil Renner Berthing CC: , , , Emil Renner Berthing , Rob Herring , Krzysztof Kozlowski , Conor Dooley References: <20230809013917.81674-1-william.qiu@starfivetech.com> <20230809013917.81674-2-william.qiu@starfivetech.com> Content-Language: en-US From: William Qiu In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [171.223.208.138] X-ClientProxiedBy: EXCAS064.cuchost.com (172.16.6.24) To EXMBX168.cuchost.com (172.16.6.78) X-YovoleRuleAgent: yovoleflag X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED 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 2023/8/10 19:31, Emil Renner Berthing wrote: > On Wed, 9 Aug 2023 at 03:41, William Qiu wrote: >> >> Enable DCDC1 node for vmmc-supply and enable ALDO4 node for >> vqmmc-supply. >> >> Signed-off-by: William Qiu >> --- >> .../starfive/jh7110-starfive-visionfive-2.dtsi | 16 ++++++++++++++++ >> 1 file changed, 16 insertions(+) >> >> diff --git a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi >> index d2f3b9eb859b..d67e26b9c791 100644 >> --- a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi >> +++ b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi >> @@ -165,12 +165,28 @@ axp15060: pmic@36 { >> #interrupt-cells = <1>; >> >> regulators { >> + vcc_3v3: dcdc1 { >> + regulator-boot-on; >> + regulator-always-on; >> + regulator-min-microvolt = <3300000>; >> + regulator-max-microvolt = <3300000>; >> + regulator-name = "vcc_3v3"; >> + }; >> + >> vdd_cpu: dcdc2 { >> regulator-always-on; >> regulator-min-microvolt = <500000>; >> regulator-max-microvolt = <1540000>; >> regulator-name = "vdd-cpu"; >> }; >> + >> + emmc_vdd: aldo4 { >> + regulator-boot-on; >> + regulator-always-on; > > Hi William, > > Just a question: You mark these regulators as always-on, so they'll > never be shut off even if the device is suspended. Is that because the > mmc driver can't deal with reinitializing the mmc/sd-card if the card > has been shut off while suspended or is there some other reason to > mark them always-on? > Hi Emil, Because now hibernation's storage medium is currently SD/eMMC, so we need to mark SD/eMMC always-on. Best Regards, William >> + regulator-min-microvolt = <1800000>; >> + regulator-max-microvolt = <1800000>; >> + regulator-name = "emmc_vdd"; >> + }; >> }; >> }; >> }; >> -- >> 2.34.1 >> >> >> _______________________________________________ >> linux-riscv mailing list >> linux-riscv@lists.infradead.org >> http://lists.infradead.org/mailman/listinfo/linux-riscv