Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp475462pxv; Wed, 30 Jun 2021 09:47:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzohUjjxn+5SHwjGrcULa8mWGQCVVwuh0clJ/xch0Ir/EYlJ9YI4VXb7uR1aV9En5ej/riq X-Received: by 2002:aa7:da53:: with SMTP id w19mr47977810eds.267.1625071650234; Wed, 30 Jun 2021 09:47:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625071650; cv=none; d=google.com; s=arc-20160816; b=u/p5wbF9VsMrpdCCzsCxOffLSuTqyg5cS5EfDPs/zn2W5RwnAq543EOR6m1apFEcMb HCH6admKAmOW5kw3uWv12DS2JfhCe4NTNO+XTVo2YciLeMhiVe4SmYKWlTMYjOTQJ3Tq Qd8KXf8o2x7dDuU4AMZZopgOvAfAyeoHY3PA5vn1ZO/7AzsVdbQVqwBVod9XskMqKrst gb9fJVcTwXWReaArymELGppcudkgOirJt0KTiTmgvFvbY+gk7EzZ9Mh2Mvv1RceqpQy6 p2145jcXLmoyFLEYkEXMnTvfurPrBayWuhZKKN91d+rhVKQPAq0OHquO10kQLdYnF7Jw T1dQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:mail-followup-to:message-id:subject:cc:to :from:date:dkim-signature; bh=bteOv0vIATIHsg/ZzgaA97TNP95H/3B0V6QVT2fhS6E=; b=0niOurPHVSKX6PVlItqgEdTzZhzCK2Oa+31kATgF2TNP2ATmBNs5lMeawD8cFcbabS q/KysOqhgaeX1x4jnMKOsaFQPGsTFj/NIoTDe8C3/yRhlYlEygcj8BQ8WizhuEaTDe5q Pn+FuM4HrF0EJJecsBVqXiASngw1d+/84bN3PFvlecbVrYQW9LWcVYpBuIgJGrGorWjp VF7/z11ZEqJp/IgnoUbU1tBMh/eNHJEHzsRHzmB8cF/cXd9Nd6rED/iiA4SvvawsZwXX JjKy1O+6u3xQx56kPm0I8yW4AWks4Nv6uaHycKlOU0ttpT8HASyS5Te6qFgv0aTuOOwF MLeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MhygzgX2; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dz7si20577077edb.68.2021.06.30.09.47.05; Wed, 30 Jun 2021 09:47:30 -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=@kernel.org header.s=k20201202 header.b=MhygzgX2; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229963AbhF3QsP (ORCPT + 99 others); Wed, 30 Jun 2021 12:48:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:47854 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229529AbhF3QsO (ORCPT ); Wed, 30 Jun 2021 12:48:14 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id E544561462; Wed, 30 Jun 2021 16:45:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1625071545; bh=b4EG3FctjD+P2bVnJsm0/NJB1of9hQu0Bo1Xezaz8t0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MhygzgX2Wv/YcBJ3Or/nKpNouqY9zqBYNFI6l32cR+ue6LYdmgZw6VxxltmJMEjVv oMhdhR1XHlNLDXShI3PJkgNIWzxQiXvBjo9i2i+nK6X4VLH5Twg1UGhcwYDUC5+hM7 4vLhCH6BBv44CVRo4R62S98UvsOC17YznyTk7rnykre8c8s/Q8sBtHwcayNhX1cE81 IpPUhuA//3giHo26Ixl/dXnyZNoTypacD3iClVno2qyk5rRVBWkMi1v4ab+G5MBUJL 3mmyZ2HVwtl3q4MV3bJmpDFOHulNJWOCMbxPixe/YBrKk9t+bMdawi7vbDNXTzDto2 clk2teG6zqJFQ== Date: Wed, 30 Jun 2021 17:45:17 +0100 From: Mark Brown To: "H. Nikolaus Schaller" Cc: Tony Lindgren , Graeme Gregory , Liam Girdwood , Nishanth Menon , Linux-OMAP , Linux Kernel Mailing List , Discussions about the Letux Kernel , kernel@pyra-handheld.com, Peter Ujfalusi Subject: Re: [PATCH] regulator: palmas: set supply_name after registering the regulator Message-ID: <20210630164517.GI5106@sirena.org.uk> Mail-Followup-To: "H. Nikolaus Schaller" , Tony Lindgren , Graeme Gregory , Liam Girdwood , Nishanth Menon , Linux-OMAP , Linux Kernel Mailing List , Discussions about the Letux Kernel , kernel@pyra-handheld.com, Peter Ujfalusi References: <4ed67090bc048442567931ede8f1298a0b312b28.1624980242.git.hns@goldelico.com> <20210629155922.GD4613@sirena.org.uk> <2C7C3A47-4A5B-4052-98FC-7A96E2F138CA@goldelico.com> <20210629185638.GG4613@sirena.org.uk> <7B58B1BF-9D65-4CEC-B7D1-4EFDB2C0CB4E@goldelico.com> <20210630121307.GA5106@sirena.org.uk> <02EE05C2-588F-4D50-8A37-46CC3B0C302C@goldelico.com> <20210630130425.GF5106@sirena.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="o71xDhNo7p97+qVi" Content-Disposition: inline In-Reply-To: X-Cookie: Use at own risk. User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --o71xDhNo7p97+qVi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Jun 30, 2021 at 04:43:14PM +0200, H. Nikolaus Schaller wrote: > > Am 30.06.2021 um 15:04 schrieb Mark Brown : > > On Wed, Jun 30, 2021 at 02:29:02PM +0200, H. Nikolaus Schaller wrote: > >>> Am 30.06.2021 um 14:13 schrieb Mark Brown : > > It's a super weird hardware design if the DT is accurate, > I get the impression that the vdds_1v8_main is in the DT (omap5-board-common.dtsi) > only as an alias for smps7. Maybe to get more flexibility in overwriting > in board files? I.e. replace the power controller without having a fixed > definition of smps7 elsewhere. It doesn't seem to have any effect in software and the input is specified at the same voltage as the output which would be very unusual. No idea why you'd do any aliasing, you can already name the regulators with DT handles and with user visible strings. > Looking into the schematics of the OMAP5432EVM or the Pyra handheld does > not reveal a physical regulator. It is just that the output signal of > smps7 is called "VDDS_1v8_MAIN". It could be something incorrectly factored out of some early prototypes or something. > Therefore, a completely different approach could be to remove fixedregulator-vdds_1v8_main > and replace by smps7_reg. If there's no physical regulator on the board then that is indeed a DT bug, the fixed regulator just shouldn't be there. > But is changing the DT the right solution if the Palmas and Fixed regulator > drivers can't handle the untouched DT which is logically correct (not physically)? Well, it's a good thing to do anyway since the DT is supposed to accurately reflect the hardware. Like I say splitting the LDOs and SMPSs can also be done independently and should separately resolve the issue. > > it's hard to see how it's not going to be hurting efficiency. > Well, I think the regulators are enabled only once during boot so nobody > notices an issue. When I say having an extra regulator in there hurts efficiency I'm saying that the power losses from regulation will be increased as there's more of it happening. --o71xDhNo7p97+qVi Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmDcn5wACgkQJNaLcl1U h9Cdrwf8CtXZ8EO02rOrbfxyRsTjm8Xyqd25vm+80N20eY7Xl1ThsRH3X631k75B b8tz2pI6Q/A2XVeuL2VAnDW8CTapvuUSDn0jaf/ssE4gHgokam/JDE62rfBpT6ks H48Ai9rLMydVMG1fpA41jguR8cT8TAWOLw2XAhx+foKYIcE1bbweNIYfYhmPzhBS rmkOMnKUyUlsT0nC2LB3VQs51yjWB3l/fstRCrpKCFvSUD62jAIyoaNw3fmXtYKM AdwPa8FqYJrMyoBaO1HqazU8Ymg/mRKjo3BxYlCRiuCO1LRTCJiidQZdTOotwH+F Z236+9KYGqx3J2kAlExfpiQTakCCtw== =Z582 -----END PGP SIGNATURE----- --o71xDhNo7p97+qVi--