Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1055489rdh; Fri, 24 Nov 2023 04:27:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IHKCval2CSVfiLMAMLjRfJXDQ999MumptF35Q1ZDH0S2LZaed2RaJ1jQH/opW3dZv6jLJnZ X-Received: by 2002:a17:902:be12:b0:1cf:9e9f:fddf with SMTP id r18-20020a170902be1200b001cf9e9ffddfmr2592641pls.44.1700828840878; Fri, 24 Nov 2023 04:27:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700828840; cv=none; d=google.com; s=arc-20160816; b=iSOQlxQqMJXteCM1to14dlm+K0yr8pHD/R2FOCLB06MJSlt9V9Lrva4GX36S4HM1zT QBN3LE5Iq2jRWbuafHI7d3mEjI0hRmwdNAMJalvyFW44VbHEVZCQUPYocULWHCNKIT4g LmvYI6nXyV84ftBTYKyz/NNYCpto7Vtf46ILgqQ7cWgELEifqXDSi+pl00GbfZHv9wGo tZu9fWZ1rHAEyENYePMqkI8xrqAM7b131gOCspZaIRDHJPVr6fzbEOOCUw3C1TF/TBDW V7h0liy0fxnlauhQFpCmKE24/opd8ODh1rqLCtsWqJv4bB3RlRSDkisl4PRFVrhlwhtx ow8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=IItDwfrMDgVsHEAdMhvJ1EAr2rfrjZpb89ryV/0/5nw=; fh=u70xp9BeiCEvY1rXFByid2g5eDz85oXjXJO9t6pAboY=; b=IyA+Ppt9qasvVO+6yP4v+cWXDr6ayKf1c1fBPgw1YuiAPa06xmCxHLd8+emAJTldWQ no1RWDvSMEHr1f4YwQFtNAdQzFqD+YambU48oSkLv8d4ESKxWG2rOhJViz3Bj3GoUbst k76KW5VPW2RSZIBd/UOIMTZY8VzNcEv8s6i2gI074J68jrUE2J3ZlK1omt5cARPXKv11 NKK+eEXSw1fK6VQZPl/TwpfcBdHtXSyll82CR1oA3COKV59Ck39ZfPxV4SyW0fW9Y4QX aLD1j2+ZgkNLY0r/QoGVPqn7JvAsqu67sXJMRtO/ZxRBkxP7ms83feBVZMdR2VgICqcL n8Uw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MEiy96NI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id m11-20020a1709026bcb00b001c9ad94f614si3188252plt.244.2023.11.24.04.26.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 04:27:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MEiy96NI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 6A19E802AFD0; Fri, 24 Nov 2023 04:25:53 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345028AbjKXMZe (ORCPT + 99 others); Fri, 24 Nov 2023 07:25:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230104AbjKXMZd (ORCPT ); Fri, 24 Nov 2023 07:25:33 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1841FD69 for ; Fri, 24 Nov 2023 04:25:38 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7D6D1C433C7; Fri, 24 Nov 2023 12:25:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700828737; bh=vlxD35wUZLsa3nu20qeMCvKiG+VbVgsNZnGNx/02fxg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MEiy96NIaGLuNYOdK94gKbB9z+I3s/FeaIKV0dBKmINUWvHX3MacJgcR/0ynhWw73 IIFk1fma1iNdNrikyHikmXCCesbtdUDE7Ot+SvRtsLCoZJQYwhCrpNQp7WaT14cbuE elmGwdQEoRLZQN/tHB6VW0+FApvFzptjCYF1Ecn7tTEukSwsp6myfWpTcmVysLZQTZ SIE5rwoPxWoKpu2y3VDMwfAWQEJ2uO7eBMeQJ9vj+mEf/LzozfyeU/+igyGLfCfybF ipkwdv6owRq9ndEiTm2swcH1CT3oObSX117KQ9G7u4WzZUpoGMU5YneuqXG1lB8Yzz gbkVOIMrK4GVg== Date: Fri, 24 Nov 2023 12:25:33 +0000 From: Conor Dooley To: Anand Moon Cc: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Icenowy Zheng , Neil Armstrong , linux-amlogic@lists.infradead.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 1/2] dt-bindings: usb: Add the binding example for the Genesys Logic GL3523 hub Message-ID: <20231124-clear-aids-2fd63e1dcbcf@spud> References: <20231122182351.63214-1-linux.amoon@gmail.com> <20231122182351.63214-2-linux.amoon@gmail.com> <20231123-skeletal-smirk-390543e2d6ab@spud> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Sjy+fap+ufnQLlh0" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Fri, 24 Nov 2023 04:25:53 -0800 (PST) --Sjy+fap+ufnQLlh0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Nov 24, 2023 at 04:18:23PM +0530, Anand Moon wrote: > Hi Conor >=20 > On Thu, 23 Nov 2023 at 23:26, Conor Dooley wrote: > > > > On Wed, Nov 22, 2023 at 11:53:46PM +0530, Anand Moon wrote: > > > Add the binding example for the USB3.1 Genesys Logic GL3523 > > > integrates with USB 3.1 Gen 1 Super Speed and USB 2.0 High-Speed > > > hub. > > > > > > Onboard USB hub supports USB 3.x and USB 2.0 peer controllers. > > > which has a common reset pin and power supply. > > > peer-hub phandle each peer controller with proper gpio reset > > > and help each peer power on during initialization > > > and power off during suspend. > > > > > > Signed-off-by: Anand Moon > > > --- > > > v4: Fix the description of peer-hub and update the commit message. > > > Schematics of the Odroid N2+ > > > https://dn.odroid.com/S922X/ODROID-N2/Schematic/odroid-n2_rev0.6_2021= 0121.pdf > > > V3: fix the dt_binding_check error, added new example for Genesys GL3= 523 > > > v2: added Genesys GL3523 binding > > > v1: none > > > --- > > > .../bindings/usb/genesys,gl850g.yaml | 67 +++++++++++++++++= -- > > > 1 file changed, 63 insertions(+), 4 deletions(-) > > > > > > diff --git a/Documentation/devicetree/bindings/usb/genesys,gl850g.yam= l b/Documentation/devicetree/bindings/usb/genesys,gl850g.yaml > > > index ee08b9c3721f..bc3b3f4c8473 100644 > > > --- a/Documentation/devicetree/bindings/usb/genesys,gl850g.yaml > > > +++ b/Documentation/devicetree/bindings/usb/genesys,gl850g.yaml > > > @@ -9,9 +9,6 @@ title: Genesys Logic USB hub controller > > > maintainers: > > > - Icenowy Zheng > > > > > > -allOf: > > > - - $ref: usb-device.yaml# > > > - > > > properties: > > > compatible: > > > enum: > > > @@ -27,12 +24,48 @@ properties: > > > > > > vdd-supply: > > > description: > > > - the regulator that provides 3.3V core power to the hub. > > > + phandle to the regulator that provides power to the hub. > > > + > > > + peer-hub: > > > > Should the property not be "peer-controller"? Your description refers to > > them as such. >=20 > No, as per my understanding, peer-hub represents a complete USB hub. > See the lock diagram in the below link. >=20 > > > > > + $ref: /schemas/types.yaml#/definitions/phandle > > > + description: > > > + onboard USB hub supports USB 3.x and USB 2.0 peer controllers. > > > > > > > + which has a common reset pin and power supply. > > > + peer-hub phandle each peer controller with proper gpio reset This is what I don't get. You say "peer-hub phandle each peer controller..". It is hard for me to understand that portion of the sentence, but the interchanging of "hub" and "controller" is confusing. The title of the binding says "hub controller", so maybe it is better to use that here. > > > + and help each peer power on during initialization > > > + and power off during suspend. > > > > I generally hate to talk about non-native speakers grammar etc, but what > > you have here is in need of a lot of improvement. The below is my > > attempt to understand what you are trying to say: > > > > "For onboard hubs that support USB 3.x and USB 2.0 controllers with > > shared resets and power supplies, this property is used to identify > > the controllers with which these are shared." "For onboard hub controllers that support USB 3.x and USB 2.0 hubs with shared resets and power supplies, this property is used to identify the hubs with which these are shared." I re-worded this again to try and remove the use of "controller". Do you think that this still makes sense? > Sorry for the poor grammar, I will update this in the next v5. >=20 > > Also - this is one particular system, what prevents there being a hub > > that has more than 2 controllers? Also, as you insist that this is > > generic, and not just for genesys, should this not be defined in a > > common location? >=20 > Here is the block diagram of the Genesys GL3523 hub. > [0] https://www.genesyslogic.com.tw/en/product_view.php?show=3D67 [Block = Diagram] >=20 > It has two USB 2.0 and USB 3.1 controllers, so using peer-hub node > the onboard hub module will bring up this hub. >=20 > There are many examples that use similar properties hence it is generic. >=20 > # Documentation/devicetree/bindings/usb/cypress,hx3.yaml > # Documentation/devicetree/bindings/usb/microchip,usb5744.yaml > # Documentation/devicetree/bindings/usb/realtek,rts5411.yaml > # Documentation/devicetree/bindings/usb/ti,usb8041.yaml > # Documentation/devicetree/bindings/usb/vialab,vl817.yaml Which brings me back to the unanswered question, should this not be defined in a common location given there are several devices using it? I assume because it only applies to hub controllers and not other types of devices. Also, the descriptions that I saw when looking at some of those other bindings are similarly poor. I can't bring myself to care any more, just clean up the ambiguous wording here and I'll ack the next version, I don't expect you to sort out the wording in other bindings. Cheers, Conor. --Sjy+fap+ufnQLlh0 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZWCWPQAKCRB4tDGHoIJi 0n2KAP4gfrkarKYYdtk0+pmhfTKrC35P8NCTE3zgnTcc7D19xwD9EzBpIn9jIfF4 gxd2BDzJFdP2jjGpQP195vHDU5eDFgY= =r79W -----END PGP SIGNATURE----- --Sjy+fap+ufnQLlh0--