Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp986429rdh; Fri, 24 Nov 2023 02:49:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IGcoggbmGvedBg+0WiU0tGQmGX6vgWKY5CzaWw6AufnLshQa8vDoO98Vkkk5e0bit63gMsM X-Received: by 2002:a05:6a21:2711:b0:18b:1f3c:eeb9 with SMTP id rm17-20020a056a21271100b0018b1f3ceeb9mr2287608pzb.36.1700822947904; Fri, 24 Nov 2023 02:49:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700822947; cv=none; d=google.com; s=arc-20160816; b=mq7AGNDFLjRaLsWytHggmja/ZEpPisTFqfcYkq2RntQz5Y8DsxpaM3X31Nlql1P01G 0ua+zSTpVRVyzDgV7d3V8mbOooWMEzeL20dMrHWLQTlhfaMHTYbZB4v9Vy5L4egTB3LM XvfgOWHg72KTtvoMCrUEZQtl7K/4SGl2BRscT8erbF9yPz8EKMfnijbqvBx8CdzeunIA /p94WUmV7ahdXfPnJFZpDv4s8jVq0tGHSOa9H3Jl2V9Ft10lCZqrvz+nMAmy52njtmL+ yebLB2q0JcOHC/M/cC6hQQbI3KUV1SlS6xIpYEShadK8DssnsS/+sC8CQcq19mMaKdvu zl5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=JSUEAKedcFlvjkIzN6LzNXLF8ZLIJ83SRbS1kwzATO0=; fh=XoIfjIGaEvkiAR9pvVf1isWWsLHlqYc5ZLz29VvRZNk=; b=ZcQKMGzlKSaqIQXpVaEg57JcTumZHcZNCcaAQy2DzhgIoQX01HsmcRCSlDt1eyO4/T F57WQpzpODHwbkDnasyRGLcc3VjoDOkt4/XLPgb4sMAKp7qTu5HiSuQOCwRRoWYi7oX7 BXC3166H/MQm89uIBassrw4497he2Cb0mS19SNtcDqEJEcBTpmg5HU3StYKuJmqSW9Zt BpDATFgC0V4XZmIw1z6nA3ZGAFYNq5wz5LAb4DODfIc0CC+FfsIY/4qNN9w1BA2st+ys 50e1YiSM0xGlW92pChW2y3X6wGor3jDVS2AuwZ/dZb1o/EMos+Sl65RCpdg+rT5oaXCK qcPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="MbD/CW6n"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id bj1-20020a170902850100b0019c354055d0si3002324plb.304.2023.11.24.02.49.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 02:49:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="MbD/CW6n"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 14E7481F1E98; Fri, 24 Nov 2023 02:49:05 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345395AbjKXKsf (ORCPT + 99 others); Fri, 24 Nov 2023 05:48:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345362AbjKXKse (ORCPT ); Fri, 24 Nov 2023 05:48:34 -0500 Received: from mail-oi1-x234.google.com (mail-oi1-x234.google.com [IPv6:2607:f8b0:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09EDB92; Fri, 24 Nov 2023 02:48:40 -0800 (PST) Received: by mail-oi1-x234.google.com with SMTP id 5614622812f47-3b843b61d8aso1044590b6e.0; Fri, 24 Nov 2023 02:48:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700822919; x=1701427719; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=JSUEAKedcFlvjkIzN6LzNXLF8ZLIJ83SRbS1kwzATO0=; b=MbD/CW6nfK6nqn0J496x4uzqaxSn9ZC5LItkOPJOrECSsjMW06vzsdW3y2inl4Iq9K crdAa4/CBU4kpQDIlnG7JZqi25wzny9Bb2wkCHAA1n2X80yoX1kHJrsiZ2Icl++m+AQc 9tU1y3bZpctBrkHG8M/Cvu3K/JZqrgp7y3ng4lGt78rbgVC7iqkgJIZid6HUdlqG2mMf VFY/ES07LpxKxLLdFs3m6MCJHJR+cymQlPXO/LaPNXSZFTin1P5QzHtEaz30b0npkEbg kFKtBSMu9nbo9se4364p9nyp90c3XwKzx70Hvj2DSvYJdBmO+Y6tblu7Vwp2XhHiqIC+ W70g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700822919; x=1701427719; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=JSUEAKedcFlvjkIzN6LzNXLF8ZLIJ83SRbS1kwzATO0=; b=wb3ByAJi9iVURYnT6keF4HLMcaChGw5I0aTsWuzws8rCAcBSYO6nG7FkKoUg+FoAOY K28lHt2rBQ4G+ta9KW6ypogxBle5H69rzVGAove5krslu6YLD9UtoMwJQyxa7/rj1hKp 7UNTDnyY5E3zcorK5SQH5tL73+hdySKzpVhQaJ8kdCeEO7GSR6dlsz4/JS7MO2Q0cXVr rN9cj8BXcHaSr7hOh08MKqALTr+HZp7YvbAh3UCZ8D+gJuibmsSy9jJmPLC9L//a+3kG 8guavZkdFjyvQXHIejoSWO/mAICqL+fgOnlAOzV3BtYzP7VmGm1CMn1HxtVJpqBY00Jt Q1Sg== X-Gm-Message-State: AOJu0Yztqg3d+SMF1XRR+LR8+s2cloAABwAYKcyL196SHXI6y/0KDtQm aKofMZfe2BSoSI8z25eVYbnnYe+kZI1WQT+TUz8= X-Received: by 2002:a05:6870:9f8b:b0:1e9:c7cc:df9a with SMTP id xm11-20020a0568709f8b00b001e9c7ccdf9amr3508073oab.11.1700822919197; Fri, 24 Nov 2023 02:48:39 -0800 (PST) MIME-Version: 1.0 References: <20231122182351.63214-1-linux.amoon@gmail.com> <20231122182351.63214-2-linux.amoon@gmail.com> <20231123-skeletal-smirk-390543e2d6ab@spud> In-Reply-To: <20231123-skeletal-smirk-390543e2d6ab@spud> From: Anand Moon Date: Fri, 24 Nov 2023 16:18:23 +0530 Message-ID: Subject: Re: [PATCH v4 1/2] dt-bindings: usb: Add the binding example for the Genesys Logic GL3523 hub To: Conor Dooley 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,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 fry.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 (fry.vger.email [0.0.0.0]); Fri, 24 Nov 2023 02:49:05 -0800 (PST) Hi Conor 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_20210121.pdf > > V3: fix the dt_binding_check error, added new example for Genesys GL3523 > > 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.yaml 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. No, as per my understanding, peer-hub represents a complete USB hub. See the lock diagram in the below link. > > > + $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 > > + 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." > Sorry for the poor grammar, I will update this in the next v5. > 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? Here is the block diagram of the Genesys GL3523 hub. [0] https://www.genesyslogic.com.tw/en/product_view.php?show=67 [Block Diagram] 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. There are many examples that use similar properties hence it is generic. # 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 > > Cheers, > Conor. > Thanks -Anand