Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp432998rdg; Thu, 12 Oct 2023 09:37:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFqp9ML6yn+T7mA/hzg+v30MTz7onKpevka4zkvW+yzfi5lk1P3BcCWYnjnY8ZIQ3tQBcCB X-Received: by 2002:a17:90a:b94b:b0:27d:2601:bc92 with SMTP id f11-20020a17090ab94b00b0027d2601bc92mr2413324pjw.11.1697128677691; Thu, 12 Oct 2023 09:37:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697128677; cv=none; d=google.com; s=arc-20160816; b=VFmHsI6KBCt7ytXLYVlsinbNaFvxgDdTv7KVuvLO3JuBLXKvKvOOipxDeRdugPyLS9 hZzU5ouI+B0qbVgyT2I3XFsF2wLQKr9WzrSi20SPT6prBDHMUCcP8so5VFEDVc3H4hL6 1HbAcM65NMN3RoNZ5qw4bQmnlAAmATT3SKMfINISJPOCTGGS7dso21ccEFsbbMNSlBPP Z5k9eQ9MpCJ2BqUNLcKfFY04edG3DmYXrPuU09+K9ko3Hokywqquilm6QcRWEd1kRwmc Hz2TRwE1d4W9hZyC/Z5GNluhbvBth8j7JNq9+jmfmMmtsU9j0ETZulxTm+PE3dKH0Kh4 2Bog== 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=9u1kAvrEac9Qi+MHI/eb0phIPTWwLhAQGTfL68QyLNI=; fh=ccfMrFifVAYJOoj1IiPzwQB0Qamz/D70wiwC2XSWSGA=; b=IYltEYS2Te/FBmqQ16fT4tTPKGnKPWyK71gFww2y9wGY+15r5EZAzewdihsylozIAu ye49ZxN5LVir+gyTGV3DHRvbpHtLeZA5mOrD54CTMJHYLPg9RF8iwD/udu1ZybmyFKgZ X1tkAZw63WcAy0QtkaIzanKkOqUozAdEZfFwbMcM+2/PjiVlVbFrRGG9RMeZHe4fN5oS qpnhJaT6UmOqw8481v+hMc8ocT79wcRUrxaYd1/jnMjDuw/syJ2RU8pWhj0QB46i9oY1 0DH8SaZ7d7Qk8mlvWKzBpuhhd5BGKoXxUkDgvvZ5tK1uId0aNUwi6FdVyPmNQX6WSR81 R5eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=LhHD5o7b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id pg9-20020a17090b1e0900b0026934bf746bsi2928056pjb.62.2023.10.12.09.37.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 09:37:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=LhHD5o7b; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (Postfix) with ESMTP id 4EA2B83C4D97; Thu, 12 Oct 2023 09:37:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344056AbjJLQhq (ORCPT + 99 others); Thu, 12 Oct 2023 12:37:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235706AbjJLQhp (ORCPT ); Thu, 12 Oct 2023 12:37:45 -0400 Received: from mail-oa1-x29.google.com (mail-oa1-x29.google.com [IPv6:2001:4860:4864:20::29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8A1CA9; Thu, 12 Oct 2023 09:37:42 -0700 (PDT) Received: by mail-oa1-x29.google.com with SMTP id 586e51a60fabf-1dd5b98d9aeso577706fac.0; Thu, 12 Oct 2023 09:37:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697128662; x=1697733462; 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=9u1kAvrEac9Qi+MHI/eb0phIPTWwLhAQGTfL68QyLNI=; b=LhHD5o7bS7irbCkNgC4qxx/7hGh4y/vqTfI+a8PobWh7tYEev3dTmLV+aAGUmttFCB IrQ5a6D4K6CIVxzKK0d2Bc9ryzYQqOGYXIZ0IRrrtv6SpS3xiLmzkPRDktKvyC0fGbz5 QBlV1CBaNYCI9pF9zUE4kWkxohcydbW33d1DYSJv5AgJ+4vdnlc3ZukHPwaBOG8A2nXN vG3+PSOyXt3pVFhxLBJw6FTHl/gPE6BgZzOSsslBuoy8OF4uQ2cZSOn0sVHAIlUwgcBo X8QXbELl2HlD+fl2P7VJ2XdJLYa+ARte1uwVHuW9vUsmOmmF68nX87zcmGHcAVXdtDTm A6Pw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697128662; x=1697733462; 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=9u1kAvrEac9Qi+MHI/eb0phIPTWwLhAQGTfL68QyLNI=; b=C8jwOF8Plgzj72Qd1s7PKATs9AQqr36Byp9RKZQ4UtLvCIqa7cRZVFOFZnA3exUPgA bYGuojjocWMpfpQMVLzz+pncqBMXQxJEcHTmU5hV3odOnuqnUJzh0ChgDmPy3S4LTWCO SdwoJkfQSoAZ2je3JT3iEvD3BWdSH01L/TnPAI4NagsTeyanUKnt3fgCivaBnGbYhRAl wvuyFNx+3Esput2TXWtNb+SnMt7WC+N4ZG60ZKc7o41gohCW9g8u384CXp+atXUvmlJX bsuyk/tJm7IUZME9oAD+HuVvePwemGriKkYlPjghgv7CSrylreW9XAIc9Pi1kUezaTyy FUFQ== X-Gm-Message-State: AOJu0Yyz39fGwIDcmRSQfHO+a8BUPLGpHqtBpQTd5prBnA3Ku9Wfk8+I QKkoCkQ4TOKPEhBq4Q7MPu5//KGlii/DmphP55I= X-Received: by 2002:a05:6871:d13:b0:1e9:7078:9f3b with SMTP id vh19-20020a0568710d1300b001e970789f3bmr3895870oab.10.1697128662009; Thu, 12 Oct 2023 09:37:42 -0700 (PDT) MIME-Version: 1.0 References: <20231011051152.133257-1-linux.amoon@gmail.com> In-Reply-To: From: Anand Moon Date: Thu, 12 Oct 2023 22:07:26 +0530 Message-ID: Subject: Re: [PATCH v2 1/2] dt-bindings: usb: Add the binding example for the Genesys Logic GL3523 hub To: Krzysztof Kozlowski Cc: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Icenowy Zheng , 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 autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Thu, 12 Oct 2023 09:37:55 -0700 (PDT) Hi Krzysztof, On Thu, 12 Oct 2023 at 13:13, Krzysztof Kozlowski wrote: > > On 11/10/2023 07:11, 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. > > That's not what the patch does. Ok I have tried to add an example below the original changes but the device tree complained of duplicate entries. Hence I modified these changes. This change was requested to update the peer-hub example below. [0] https://lore.kernel.org/all/9fe7d0d2-3582-4b62-be9b-aa9134c18023@linaro.org/ > > > > > Signed-off-by: Anand Moon > > --- > > New patch. > > --- > > .../bindings/usb/genesys,gl850g.yaml | 28 +++++++++++++++++-- > > 1 file changed, 25 insertions(+), 3 deletions(-) > > > > diff --git a/Documentation/devicetree/bindings/usb/genesys,gl850g.yaml b/Documentation/devicetree/bindings/usb/genesys,gl850g.yaml > > index d0927f6768a4..2f6e0c870e1d 100644 > > --- a/Documentation/devicetree/bindings/usb/genesys,gl850g.yaml > > +++ b/Documentation/devicetree/bindings/usb/genesys,gl850g.yaml > > @@ -22,29 +22,51 @@ properties: > > reg: true > > > > reset-gpios: > > + maxItems: 1 > > Why? Following another example, I added this and will drop this. > > > description: GPIO controlling the RESET# pin. > > > > vdd-supply: > > description: > > the regulator that provides 3.3V core power to the hub. > > > > + peer-hub: > > + $ref: /schemas/types.yaml#/definitions/phandle > > + description: > > + phandle to the peer hub on the controller. > > + > > required: > > - compatible > > - reg > > + - reset-gpios > > Why? see below. > > > + - vdd-supply > > + - peer-hub > > > > additionalProperties: false > > > > examples: > > - | > > #include > > + > > usb { > > dr_mode = "host"; > > #address-cells = <1>; > > #size-cells = <0>; > > > > - hub: hub@1 { > > - compatible = "usb5e3,608"; > > + /* 2.0 hub on port 1 */ > > + hub_2_0: hub@1 { > > + compatible = "usb5e3,610"; > > reg = <1>; > > - reset-gpios = <&pio 7 2 GPIO_ACTIVE_LOW>; > > + vdd-supply = <&vcc_5v>; > > + peer-hub = <&hub_3_0>; > > + reset-gpios = <&gpio 20 GPIO_ACTIVE_LOW>; > > + }; > > + > > + /* 3.1 hub on port 4 */ > > + hub_3_0: hub@2 { > > + compatible = "usb5e3,620"; > > + reg = <2>; > > + vdd-supply = <&vcc_5v>; > > + peer-hub = <&hub_2_0>; > > + reset-gpios = <&gpio 20 GPIO_ACTIVE_LOW>; > > Really, what is happening here? USB hub GL3523-QFN76 supports two pins CHIP_EN and RST_N pins so RST_N (GPIOH_4) is used to reset the USB hub, earlier we were using gpio-hog to reset the hub. > > Best regards, > Krzysztof > Thanks -Anand