From patchwork Wed Oct 11 05:11:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anand Moon X-Patchwork-Id: 1846212 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=Ce+qkq9a; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=permerror (SPF Permanent Error: More than 10 MX records returned) smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:45d1:ec00::1; helo=ny.mirrors.kernel.org; envelope-from=devicetree+bounces-7510-incoming-dt=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org [IPv6:2604:1380:45d1:ec00::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4S519M1SFQz1ypX for ; Wed, 11 Oct 2023 16:12:23 +1100 (AEDT) Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id B2D791C20E88 for ; Wed, 11 Oct 2023 05:12:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9A618D2E9; Wed, 11 Oct 2023 05:12:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Ce+qkq9a" X-Original-To: devicetree@vger.kernel.org Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C77D2D2E0; Wed, 11 Oct 2023 05:12:15 +0000 (UTC) Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 578C39E; Tue, 10 Oct 2023 22:12:14 -0700 (PDT) Received: by mail-pl1-x635.google.com with SMTP id d9443c01a7336-1c724577e1fso51524305ad.0; Tue, 10 Oct 2023 22:12:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697001133; x=1697605933; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=AAeg5rnm7dhw3iuQdfCGB3ANcuPT0KR7q/ABYzaFXeE=; b=Ce+qkq9abw8UusYCfjX7/hRyG9dH9pNO81iQgKEvAaSbLU84+KXk3GeupLdqXVqY1H Y744YLR8fdxpXinVbN1g19AmojXj+m0G+jUY0TtvnqxOl9zQpBjkpGD1FFS9f85Uysgd jqVeZOsWufKdQPP2NIp4wsdRRSmLRakJ+orSD/dPscgDM5l9sK9Mv9TVWi+9MWJtk0y9 iuV5CeRzI1xi28rZA+/0WdBEhVckt7pDykRGfqySzUBMWlsTB5lq1Z8yw6xd7NXYZCXS hu/fQR1Jb3N3bfvyfnjunkP6YJAs7sn+4y8kSd3AOVyxU70/wnm1URfbFXOGa4OO1Njc 6Jag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697001133; x=1697605933; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=AAeg5rnm7dhw3iuQdfCGB3ANcuPT0KR7q/ABYzaFXeE=; b=LJeq+CGAAaxTtVOZP0zDM7MuJYIY8d1k8up0hhkfOe1PuIY+uM+fKHhTIGzGchhncs jr/e/bRGVzU8g2aZwbCkzS+CLHUQIMnlDxzYmvfYIG4IdzEEezv6NB/nON+5zm1/IXFS mRH5kKJD8+rfUg5EhVukKqnHM1gGoO/q9XWvjArYFZyISTy/H07XLpwIzfqPle/s4EuZ cRlQ8Yslzq6Jm8dKN+UxEMDDLnkupMGIRWvSFxM/lZlH7YqbkUmpiFMr9a22N+k0r/V9 7GY8JjOpYfa/zdGHBdtJfwtAGZq7vE0Y8xVWdPql4SGRJXYD+UINn2XRzIg8HkzbQexG pPBw== X-Gm-Message-State: AOJu0YzOhzDbRIx4CpVi0nbL71zOcN/DKOinD9klm5SM4ttdL6zifLry yIiGbihxbBTf0Rt0xanKiNgoCiR5YcM= X-Google-Smtp-Source: AGHT+IEViPR1az4s4UtNoSCznxFPTajeY+X7PBATL8XmnQXXsDDL3tIBxiZqz+OKMpyjEylDJ+kUWw== X-Received: by 2002:a17:903:1c8:b0:1c8:a63a:2087 with SMTP id e8-20020a17090301c800b001c8a63a2087mr9847818plh.65.1697001133481; Tue, 10 Oct 2023 22:12:13 -0700 (PDT) Received: from localhost.localdomain ([49.205.243.94]) by smtp.gmail.com with ESMTPSA id u13-20020a170902e5cd00b001c5dea67c26sm12777083plf.233.2023.10.10.22.12.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 22:12:13 -0700 (PDT) From: Anand Moon To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Icenowy Zheng Cc: linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/2] dt-bindings: usb: Add the binding example for the Genesys Logic GL3523 hub Date: Wed, 11 Oct 2023 10:41:48 +0530 Message-ID: <20231011051152.133257-1-linux.amoon@gmail.com> X-Mailer: git-send-email 2.42.0 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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. 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 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 + - 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>; }; };