Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp22717pxb; Fri, 17 Sep 2021 17:34:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxWS5kwLDex27iKXBJRuw2xy26OlJRQxEZb4R7QBtlXyeDvf4UU+suVSMhRrrDIExmsn8Z X-Received: by 2002:a17:906:2f15:: with SMTP id v21mr15446746eji.444.1631925279651; Fri, 17 Sep 2021 17:34:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631925279; cv=none; d=google.com; s=arc-20160816; b=u7LvPZaM6nA6XgT6HnlF2YvX3WVEnJjjM5PeSCnAD/hIHgWIbsPOO9rVq8Zf6Jlf7C mOyztKmr/BOiKtqFReNwU17uy9xazq2DYCtg7VZoMl16iand83fHSicW7Il5qK6WcVB+ omdjU5YHRqToo8UkMKXhfHCKBljYCOKyGZYN9LSnSt7h32UxEDIZpc2B01O9eMHx5iHr uM24PN3yryJz7xEjqEeY3Nd6QuyeOxV/tFAdiWGd7oaGfiHGJ6BZQ9A+oYj/pBoF2MnV Qy4cALSY8DVpb1tiFpfV7EBr5IyPTVtV5nbHICnhC1k8Qf13/djMYpFs/kXtJuSyMR2B uJXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Zo7Kfu8UASbfOIxzSXjB/ZC/wcwccqd9kdursu9/738=; b=Y+gTGmQQb8Qd/xLkLAJgRvtyNEd9yej6joFK/qf0jliSfHnjFLrvqrOInnYX3h0rTT A3RYW/IHhrJmdmdlTZs1piPW1gP2kQOSnR/GdN028e0IIzwlH5Gz0mTL/Px1AeFUIHbk QzAtiGyNEMEwXUBXbnG3kEzhdauTm6q3njbtvXCDjn5q6wat4otg8Yo+4jAkv4N8vqft 6F8a0LlTrsBcxA9BnIffn7ZTr6xhKaAU7nN2Mni0dWqQVbaeVCWqXH+sh/IIPcQC+OzP WwbeVfD6pmYCS/R7U5kQRgtem2E3RFEUjytkgUM4bf7+26VmT+N1QLnHZOfP+dWIJdhi 9FMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=nqSY8F9c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ia6si8118226ejc.228.2021.09.17.17.34.12; Fri, 17 Sep 2021 17:34:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=nqSY8F9c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234171AbhIQQMC (ORCPT + 99 others); Fri, 17 Sep 2021 12:12:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242637AbhIQQL5 (ORCPT ); Fri, 17 Sep 2021 12:11:57 -0400 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9278EC061574; Fri, 17 Sep 2021 09:10:34 -0700 (PDT) Received: by mail-lf1-x12d.google.com with SMTP id b15so16606857lfe.7; Fri, 17 Sep 2021 09:10:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Zo7Kfu8UASbfOIxzSXjB/ZC/wcwccqd9kdursu9/738=; b=nqSY8F9cra8tnW2PVoYEx+0pPbCHqw/TTz+TWhX+WpXzPvmFd30kvkE4tgMwmoQ6Ib G2EJXJcETjXHUuhZBioUvcwYvFx1317dJ7vlRw9VjUwqAz/+/95Lyjr0zlAKh2nV3GiK AjXsLjtWR/sWMtUqztKh0Ld6lMZFFZYJ//feCDrav81r42quErifa4+FMKoejhL6Nhvj LcTTMGmCV+I0AXMGOyYp9PD8L9jbzBGY3K171DZlGaNzxpYc96AgnLupbB7BhNhJPZ7l 0EvJISFXWjFXjZa9w+J+QdQIBLAjpvq+UqQIzHSPE0nEPYMMeojJfyO4q7LbsdSGSJsB z/EA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Zo7Kfu8UASbfOIxzSXjB/ZC/wcwccqd9kdursu9/738=; b=4UvY1/UfuGg0rxYLuLKdB5T2LRCyvVwNgYTKJ1LxsIlFVogocRUsyg+8avfkHUk2Mh QygdFtWHwwrDNArBIOAVsJQpQ6h/Y7Ur1Ib2mNFcoEeqyauGAVeaZKfPBlCp9giMj4KZ GaMqEeY3Ts2UfaKmtoI/mGr5byMSX8jrHYaB1gCe1D2vxA1I64kX70sMHhhrKZaYIgEG ifmQBhwL+Vb3S5PC4FC8OgHJ11FQ3raS0uFXie4EgIDKHCmVZQINfd5MfjQeLMSCdN8U cOd9GNu7ug7dh+g8x5Fch5+9uVbt0NGFiBRDKSufasXR70oHizm7YiMaDYo0CJKk4Fpf j+Vw== X-Gm-Message-State: AOAM533MANbSPaAyk9x/ucWs0NRT2xzUhHhjyIM7szYyiC4PNPOK2AOK +YLE5jTwqAzv6Xscka9vVQE/jm+lUZQZU7oplIZb9uvLbdRcQalT X-Received: by 2002:a19:c38b:: with SMTP id t133mr8505200lff.196.1631895032908; Fri, 17 Sep 2021 09:10:32 -0700 (PDT) MIME-Version: 1.0 References: <20210915120325.20248-1-heiko.thiery@gmail.com> <7e7ee4244ababc0a46e0875222c7e37d@walle.cc> <898fd5e0-2073-3689-89b6-2c5071773786@kontron.de> <9bcf7b749dca57d42aa2e7afd88b5a26f3eeff2a.camel@pengutronix.de> In-Reply-To: <9bcf7b749dca57d42aa2e7afd88b5a26f3eeff2a.camel@pengutronix.de> From: Heiko Thiery Date: Fri, 17 Sep 2021 18:10:21 +0200 Message-ID: Subject: Re: [PATCH] arm64: dts: imx8mm-kontron-n801x-som: do not allow to switch off buck2 To: Lucas Stach Cc: Frieder Schrempf , devicetree@vger.kernel.org, =?UTF-8?Q?Guido_G=C3=BCnther?= , Fabio Estevam , Shengjiu Wang , "Angus Ainslie (Purism)" , linux-kernel@vger.kernel.org, Krzysztof Kozlowski , Joakim Zhang , Michael Walle , Rob Herring , NXP Linux Team , Pengutronix Kernel Team , Shawn Guo , Sascha Hauer , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Lucas, Am Fr., 17. Sept. 2021 um 13:44 Uhr schrieb Lucas Stach : > > Am Freitag, dem 17.09.2021 um 09:28 +0200 schrieb Heiko Thiery: > > Hi Frieder, > > > > Am Mi., 15. Sept. 2021 um 14:09 Uhr schrieb Frieder Schrempf > > : > > > > > > On 15.09.21 14:05, Michael Walle wrote: > > > > Am 2021-09-15 14:03, schrieb Heiko Thiery: > > > > > The buck2 output of the PMIC is the VDD core voltage of the cpu. > > > > > Switching off this will poweroff the CPU. Add the 'regulator-always-on' > > > > > property to avoid this. > > > > > > > > Mh, have this ever worked? Is there a commit which introduced a regression? > > > > > > Yes, this did work before, even without 'regulator-always-on'. I > > > currently don't understand why this is needed. The regulator is > > > referenced in the CPU nodes as 'cpu-supply'. This should be enough to > > > not disable it as long as the CPU is up. > > > > I rechecked that with 5.11, 5.10 and 5.9 and I see on all of them the > > same issue: > > > > [ 31.716031] vdd-5v: disabling > > [ 31.719032] rst-usb-eth2: disabling > > [ 31.722553] buck2: disabling > > > > While on that I tried to compare with other boards and see that they > > also have the cpu-voltage marked as "regulator-always-on". The only > > exception in dts/freescale is in imx8mq-librem5-devkit.dts [1] that > > has not set this property. > > > > I agree with you and don't understand why this is happening. Has > > anyone else an explanation? > > > > [1] https://elixir.bootlin.com/linux/latest/source/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts#L319 > > > Maybe your kernel config is missing the cpufreq driver, so you don't > have a consumer of the regulator? > > Marking the regulator as always-on seems like the right thing to do, > you don't want to depend on a consumer showing up to make sure that > your CPU voltage isn't cut... shouldn't it be that the node cpu-supply here is a consumer of the referenced voltage? -- Heiko