From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796392805; b=N7oc1kRzwHd9VzJ3pLcnPSJIye+35rDIHbACHPaMNA1AqcuBj1VgjnADMcRhfgtIwdyA RlFDmGdjfviQNpNGuONP5HBFrGKf/o5EQ5ceFu4XK1kcAp/WUxM1nYmCh4Lu4xzJh87RW QosRgcveiMFEh9THVAm7WMkqXrJhxAcLE79c/HoouLn4rhiLB8kO8inqgJBoPzfXDSCGG 4cGnV+WrhKf9t2Fh1ts3sq3CTVyMGft5X1UdsBXPTl0tYFxPOsR3O3zTvXqRXzaYwTVtZ E+DRt2Mnq0NSRGzZjY3ZIS3gtJhX5ak5n8ZEH7McnqbdrSxEiGadRQN/3mX75EsW9IQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796392805; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=vLLTkl5BNT1EWjBgi8nIenoLVT71xvCIYTCpUt/PA74=; b=sfqkTJfIZXhB//IGzcoONpCtU5Twi8mROWGlEsfD6vpw2w4on9u5nz/M1eFe4a5A5/s4 t5a/NeU7rWduiFsEmn48s/di152DKwziW3GigFNgYJAli5pIs9hBlT0Sg2TAnEkDL5ktS jqQ2o0/SG/w2+liV3/VUjV+sS//cWNN6EqkknZtUH+KmDv4OecTOVPCwsoAChTFgLbQGh uyjCEj8iKh3MFxIo3huwgG/cwbrdoPrLHgK5gBWX1NQbamGJVjLFxiVptQ0ZHA0JFPZFC QcSz4c7rPMDNePUtJF1xO/XdficJmg2YKw16Ll/xeGVkGH6ipYP5qhvxy1crg+6ucLg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=CZnsvnCC; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EDE62606A688; Fri, 4 Dec 2026 14:00:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=CZnsvnCC Received: by smtp.kernel.org (Postfix) with ESMTPSA id BDF7B1F0092C; Fri, 4 Dec 2026 14:00:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796392804; bh=vLLTkl5BNT1EWjBgi8nIenoLVT71xvCIYTCpUt/PA74=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=CZnsvnCC3+LtbGA9IjofD5sLtiiLeQ2peRURv/BIjZt1bcbdj+sTa8Bw4r64NvaMo 87Pk54/wDEO31uemVsqM52Fw5qRq99nb50iQfjZUQ1sSVqns3fd/uEwhODrGhx+Q75 QDpFW7REyK6j/SloZFD1bxsb0EqaGXqh7miIGPumUIFAsgVKBeEJP5izmdqsRK3vi4 OVP2CI01ZLu9wN5P80Xb5J62n0dj4sUHygWPj6VqTXh4ZSHW3rLqluQi7LILWyAO0a XjmkwvKd8+TCqKrXiYpcSdNSbgqzKg2+r4k6B+xzI8wF3X/2BdCGypFGzEpzB4o8qg AuUtsk8qygMGw== Date: Fri, 4 Dec 2026 08:00:01 -0600 From: Rob Herring To: Minda Chen Cc: Greg Kroah-Hartman , Thinh Nguyen , Krzysztof Kozlowski , Conor Dooley , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v3 1/3] dt-bindings: usb: starfive,jhb100-dwc3: Add adapter register region Message-ID: <20261204140001.GA2776069-robh@kernel.org> References: <20261125083736.50606-1-minda.chen@starfivetech.com> <20261125083736.50606-2-minda.chen@starfivetech.com> X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261125083736.50606-2-minda.chen@starfivetech.com> On Wed, Nov 25, 2026 at 04:37:34PM +0800, Minda Chen wrote: > Besides the DRD controllers, the JHB100 BMC SoC has DWC3 device-only > controllers which are not connected to a USB PHY. Each of them is > connected through a PHY adapter to a port of an xHCI controller that > is exported to the server host over PCIe. The adapter has its own > register region that software has to program. > > Describe the adapter register region as an optional second "reg" > entry and add "reg-names". The DRD controllers keep a single > register region. > > The adapter is only present on the device-only controllers, so > restrict dr_mode to "peripheral" when the adapter region is described. > > Signed-off-by: Minda Chen > --- > .../bindings/usb/starfive,jhb100-dwc3.yaml | 37 ++++++++++++++++++- > 1 file changed, 35 insertions(+), 2 deletions(-) > > diff --git a/Documentation/devicetree/bindings/usb/starfive,jhb100-dwc3.yaml b/Documentation/devicetree/bindings/usb/starfive,jhb100-dwc3.yaml > index fbabe99e9d5c..3ebf39616bd1 100644 > --- a/Documentation/devicetree/bindings/usb/starfive,jhb100-dwc3.yaml > +++ b/Documentation/devicetree/bindings/usb/starfive,jhb100-dwc3.yaml > @@ -10,17 +10,50 @@ maintainers: > - Minda Chen > > description: > - The USB DRD controller on JHB100 BMC SoC. > + The USB DRD controllers and the USB device-only controllers on the > + JHB100 BMC SoC. The device-only controllers are not connected to a USB > + PHY. Each one is connected through a PHY adapter to an xHCI port that > + is exported to the server host. > > allOf: > - $ref: snps,dwc3-common.yaml# > + - if: > + required: > + - reg-names > + properties: > + reg-names: > + contains: > + const: adapter > + then: > + properties: > + reg: > + minItems: 2 > + reg-names: > + minItems: 2 > + dr_mode: > + const: peripheral > + else: > + properties: > + reg: > + maxItems: 1 > + reg-names: > + maxItems: 1 Most of this isn't needed. If reg-names doesn't contain adapter, then the size can only be 1 entry. If it does, then the size can only be 2 entries. So the only part of the then/else needed is 'dr_mode'. Rob