Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2640278pxb; Tue, 19 Jan 2021 02:16:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJz1DB/l8TkwX9mjidZQxiWTgrpruvdVWitZRvZVVZ/lgdWREv2prXNUOq1DFUM0UYTvUWhB X-Received: by 2002:a17:906:f1d6:: with SMTP id gx22mr2517185ejb.348.1611051258994; Tue, 19 Jan 2021 02:14:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611051258; cv=none; d=google.com; s=arc-20160816; b=N5C7z9l5GyncmWfUmeHqa08dfPd6d+sq/Mo99zADjq/jPHKOSEiS3gZjpk6iDAfQfy y5XklxHPnRqsrqrpjR2159P63U5FzMSEJDlAVYPNkSeSEbKVmSZNwOy9ASQCmO9P1GNX mPbkfQpoBrXUEcCW0s+lKqKFc/+1m5ZkCivdH86TnUPIicRAb0dCY2A5hC9DlD4T+J6M zdz0b3DoU9VAV3l+Uv4hLl3PKTcNk4V6E/ybE1OAfp9JD5hsNrbeKj+NG2l6UxnrbrLE qan9eAZjBLyFPfoEdWGz+k/LDrp+ndQqcp4bwC+awgweEcP4VyNvWl6eIWiucpWxrQ// lZeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=9Q2RBnS6mSO4+mcVhtFk9iVjy6DaKNumUeqW+V0frsQ=; b=bpgq6iQZ1QIe5j3c7v4dwdHM1PHnsKiDzqmgKmRkAaw8Vu/S6pP1esquZXWd3ijpcD 34shduK0y14w98iGyxoSTyj4Hjrekyk7sxtiByJ7Gynq2D3b9kR2HVc/NKvwfrbqRZC6 hYkbnGarXKCJbeXyg5vB9LyoQoISHsNSEm/xrsDH0TIPUKvdH2Im0HYEJw0XImqdA92h lZQCT4XGMDRlhteBnnVKkliVks2TcTb24NLAkyWia/Kd9nCcLGOugQ674TnTe293nK1A r0CjVdsssSQ3ZIbJY5hUymBZmKWd79JfYatJcaV5vctdYSeNo5gtry+meC61lii7+E+Q hZRA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hr35si7644799ejc.274.2021.01.19.02.13.46; Tue, 19 Jan 2021 02:14:18 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388454AbhASJrZ (ORCPT + 99 others); Tue, 19 Jan 2021 04:47:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732409AbhASJVL (ORCPT ); Tue, 19 Jan 2021 04:21:11 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41051C061573 for ; Tue, 19 Jan 2021 01:20:27 -0800 (PST) Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=[IPv6:::1]) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1l1nBZ-0004XH-NK; Tue, 19 Jan 2021 10:20:25 +0100 Subject: Re: [RFC PATCH] ARM: dts: imx6qdl: specify vcc-supply for NOP USB PHYs To: Shawn Guo Cc: Rob Herring , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Frieder Schrempf , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20201113152856.3758-1-a.fatoum@pengutronix.de> <20210119085700.GB4356@dragon> From: Ahmad Fatoum Message-ID: <49756f17-c906-4fa5-4f0e-9297620c082e@pengutronix.de> Date: Tue, 19 Jan 2021 10:20:24 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: <20210119085700.GB4356@dragon> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: a.fatoum@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Shawn, On 19.01.21 09:57, Shawn Guo wrote: > On Fri, Nov 13, 2020 at 04:28:55PM +0100, Ahmad Fatoum wrote: >> The SoC dtsi lists a NOP USB PHY for each of the two HSIC-only USB >> controllers. Their device tree node doesn't indicate a vcc-supply >> resulting in: >> >> usb_phy_generic usbphynop1: supply vcc not found, using dummy regulator >> usb_phy_generic usbphynop2: supply vcc not found, using dummy regulator > > So the patch is all for removing this kernel message, with introducing > the following potential breakage? Pretty much. Either: - We never fix the warning - We add an explicit dummy fixed-regulator, which doesn't reflect the HW - We reference the correct regulator and have the low risk of a non-upstream device tree breaking when they update both kernel, device tree and have an non-recommended CONFIG_REGULATOR_ANATOP=n What do you think? Cheers, Ahmad > > Shawn > >> >> warnings on boot up. The USB IP vcc-supply - separate from the vusb - is >> hardwired to LDO_2P5[1], which we already have a device tree node for. >> Reference it for the dummy "phy" as well. >> >> This will lead to breakage (probe deferment) for kernels that: >> - Use a HSIC USB controller >> - Use this new device tree >> - but have CONFIG_REGULATOR_ANATOP disabled >> >> Because while the regulator is always-on, it can't be resolved when >> there is no driver for it. >> >> As there are >> >> - no affected upstream device trees >> - existing device trees are unaffected without recompilation >> - disabling CONFIG_REGULATOR_ANATOP is explicitly a non-recommended >> configuration per symbol help text >> >> this potential breakage is deemed acceptable. >> >> [1]: i.MX 6Dual/6Quad Reference Manual, Rev. C, >> Figure 53-1. Power System Overview >> >> Cc: Frieder Schrempf >> Signed-off-by: Ahmad Fatoum >> --- >> arch/arm/boot/dts/imx6qdl.dtsi | 2 ++ >> 1 file changed, 2 insertions(+) >> >> diff --git a/arch/arm/boot/dts/imx6qdl.dtsi b/arch/arm/boot/dts/imx6qdl.dtsi >> index 43edbf1156c7..22e4c142de13 100644 >> --- a/arch/arm/boot/dts/imx6qdl.dtsi >> +++ b/arch/arm/boot/dts/imx6qdl.dtsi >> @@ -131,11 +131,13 @@ pmu: pmu { >> >> usbphynop1: usbphynop1 { >> compatible = "usb-nop-xceiv"; >> + vcc-supply = <®_vdd2p5>; >> #phy-cells = <0>; >> }; >> >> usbphynop2: usbphynop2 { >> compatible = "usb-nop-xceiv"; >> + vcc-supply = <®_vdd2p5>; >> #phy-cells = <0>; >> }; >> >> -- >> 2.28.0 >> > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |