From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f54.google.com (mail-ej1-f54.google.com [209.85.218.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BE54625228C for ; Wed, 8 Oct 2025 12:47:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759927680; cv=none; b=LiseLYDnJtZCZY8MkSN9QoO0oALhixiHeVMCUzNlt9XOs/Pq8vZUAE/mjWLtDAtuS+k1MoubdZLP9qgctfaMxEBlUht07HcpvIV8P+SH0feYpTtiS2sg8X30JLsoCFxW7toDidBYuz/royOyV8F8Yx6/zvd1WcwHhUwbnW9EHMQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759927680; c=relaxed/simple; bh=P51AzmQJe4s0CJL4Wwu7Z0oBZHbLe0/rr/yjZVDr1J0=; h=Message-ID:Date:MIME-Version:Subject:From:To:Cc:References: In-Reply-To:Content-Type; b=Bcnac3MNL+/YHry9MNvtfx1BY91wTfEyGq36jiTyYniZ073uQwxrRZJ7qP8HZEPn2R2xjRZpKiYt7Pxt+dsYcECBo1cz78B1/60Bdk4ImBkIfg7yuvK5V7vDaCnYLd1IXCnlz0KdbA9OlaZcqC533wIT1eigRAq72TUjaXXCObI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tuxon.dev; spf=pass smtp.mailfrom=tuxon.dev; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b=lHT51kpd; arc=none smtp.client-ip=209.85.218.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tuxon.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tuxon.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="lHT51kpd" Received: by mail-ej1-f54.google.com with SMTP id a640c23a62f3a-afcb78ead12so1340051066b.1 for ; Wed, 08 Oct 2025 05:47:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1759927677; x=1760532477; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:from:subject:user-agent:mime-version:date:message-id:from:to :cc:subject:date:message-id:reply-to; bh=AXhIFAPZtegMDAxULdLjEweIkAMVkFzkJ9S+EwaPmEY=; b=lHT51kpdQKVwU6CizDgUwD+Rvjv8IjElzQcz7hafByUFiZf4f98aJRKpx0GdwJ1n2k Z1LR9BvOVF0RZA+rSKLBtss5BJhscBlrcPCHcjBt0OGrVuzCpjnQwVTLJ29vOI50Fu2r zBntPzPKFHWhwZsrk2Dmj2yu5pkfbQtxq05P97LyAG14ueP0WbFnV/r5H8ERaLtcuUjL x0Xwky8aTZNWHjbX5fkHY8dqHn2GNN3eNm2elpINlTsh/pf/wbnun9/Yg3476RVS/tZm E76HvJf+Hkm9BpsNkKRcrT5i5WafMYAreVhF7A7ecXC/WLSHTG6cKx86C2zjhpt2vZpl +5lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759927677; x=1760532477; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:from:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=AXhIFAPZtegMDAxULdLjEweIkAMVkFzkJ9S+EwaPmEY=; b=Bg5t0dXOUEPPR38KNi6bIrVCUDoO5RiKIp/kYLMUlbJYZ7YwgkFvo56XR+v0zE0afp j5LNgUG8k5Mn7CxI5hk6kdKv7AQQKGT+syFGSZBugpgZkjXsJ9+A+G8oROroQFqr0+89 IaEZx115Si2IA8ABhO67i8S17atY02y8QeHpYBzrdPfRlvoixu6FjdwB/ecLu6/v5em1 Q0LlnX8PhNfvhnJeT1k6m0zB6Gd1DtTVn6GfmTXgWRz3/64BOXfanfWM+Wl+KwhZTm9M 5nhpFxxBuDw+OvSToOminsbK+RUPaKhXohZ/EI8C1H4/J/zQrzxdfmy75BKnZsQ/Phmu dZ2Q== X-Forwarded-Encrypted: i=1; AJvYcCXKsVLGf502HoYZfaVDcU++eWhCeTk9wKNQXvCnnHF1kIVcdwgapPytxgpSAnhnGxrvjQbMWmSEh3xXLW0=@vger.kernel.org X-Gm-Message-State: AOJu0Yy4MsQ48wQAtdFO50NuOvsjf+jrEP8mEnuo56bAuz9KhYsl2FcQ 7wVKh4k4SnCtT6r28un0ENdVIwmZ2rkzFYTBJdE2d9jb0NgHxzXJhZ2KN0UugBGPpZQ= X-Gm-Gg: ASbGncua3mRQdX0dc3hqdEt0SUMSWWP1XOF1dWcTKeLa+E1Cdmopds+VlE7PIgU8gSk dzfEjRJhrwpVkKWELs0KOGOUeEyypV4hrG3kq0CrxusDVp0rUkGiCrQoPA4KOyC0nLbQMbCXn22 nhqa3LMVpfYTCjB3QZLNYvcK0kBXyEqi5+LzSvxD+77Ajj3SN+52x1ID+87dfqj4wJAtezoF2RX pFg2pMXHhqdQLAB1LfKSMMbFicXJrw27nYJMaNZBrF181Oh6bzsU+AAcRzs41FSasJH41F6kWkp JLJBM+tUY40jp6Sps59lDIOeWeDHgJhEpdlB5XOVPX8hgsljAiz+MWTF+OVI2C6KnCgaKyrqGhn iGuT1LJGi6SWVFRbXhxF/ujakIz43kChBFLjVJwcTykDDQjvfuiC2Iw== X-Google-Smtp-Source: AGHT+IGpOYxdU1TjlTUaBcL5WSDuVrPngUkKCAdSSFEPYFhIoh1b/oFl2+SzF4mi5hdAxR3O/fYw6A== X-Received: by 2002:a17:906:6a22:b0:b37:4f78:55b2 with SMTP id a640c23a62f3a-b50ac1cba08mr336276266b.34.1759927676843; Wed, 08 Oct 2025 05:47:56 -0700 (PDT) Received: from [192.168.50.4] ([82.78.167.59]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b486970b5acsm1639393966b.60.2025.10.08.05.47.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 08 Oct 2025 05:47:56 -0700 (PDT) Message-ID: Date: Wed, 8 Oct 2025 15:47:55 +0300 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v7 4/7] reset: rzg2l-usbphy-ctrl: Add support for USB PWRRDY From: Claudiu Beznea To: Philipp Zabel , vkoul@kernel.org, kishon@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, geert+renesas@glider.be, magnus.damm@gmail.com, yoshihiro.shimoda.uh@renesas.com, biju.das.jz@bp.renesas.com Cc: linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Claudiu Beznea , Wolfram Sang References: <20250925100302.3508038-1-claudiu.beznea.uj@bp.renesas.com> <20250925100302.3508038-5-claudiu.beznea.uj@bp.renesas.com> <66d85e70-efb8-4a45-9164-55b123691b70@tuxon.dev> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 10/8/25 15:16, Claudiu Beznea wrote: > Hi, Philipp, > > On 10/8/25 13:23, Philipp Zabel wrote: >> Hi Claudiu, >> >> On Mi, 2025-10-08 at 12:29 +0300, Claudiu Beznea wrote: >>> Hi, Philipp, >>> >>> On 10/8/25 11:34, Philipp Zabel wrote: >>>> Hi Claudiu, >>>> >>>> On Do, 2025-09-25 at 13:02 +0300, Claudiu wrote: >>>>> From: Claudiu Beznea >>>>> >>>>> On the Renesas RZ/G3S SoC, the USB PHY block has an input signal called >>>>> PWRRDY. This signal is managed by the system controller and must be >>>>> de-asserted after powering on the area where USB PHY resides and asserted >>>>> before powering it off. >>>>> >>>>> On power-on the USB PWRRDY signal need to be de-asserted before enabling >>>>> clock and switching the module to normal state (through MSTOP support). The >>>>> power-on configuration sequence >>>> >>>> The wording makes me wonder, have you considered implementing this as a >>>> power sequencing driver? >>> >>> No, haven't tried as power sequencing. At the moment this was started I >>> think the power sequencing support wasn't merged. >>> >>> The approaches considered were: >>> a/ power domain >> >> Letting a power domain control a corresponding power ready signal would >> have been my first instinct as well. >> >>> b/ regulator >>> c/ as a reference counted bit done through regmap read/writes APIs >>> >>> a and b failed as a result of discussions in the previous posted versions. >> >> Could you point me to the discussion related to a? > > It's this one > https://lore.kernel.org/all/CAPDyKFrS4Dhd7DZa2zz=oPro1TiTJFix0awzzzp8Qatm-8Z2Ug@mail.gmail.com/ > > >> >> I see v2 and v3 tried to control the bit from the PHY drivers, and in >> v4 we were are already back to the reset driver. > > v2 passed the system controller (SYSC) phandle to the USB PHYs only (though > renesas,sysc-signals DT property) where the PWRRDY bit was set. The PWRRDY > bit was referenced counted in the SYSC driver though regmap APIs. Sorry, I forgot to mention: in v2, the SYSC phandle was passed to the PHYs only as I wasn't aware of the block diagram presented in this patch description. I got aware of the block diagram starting with v3. Thank you, Claudiu