Message ID | 20221202081647.3183870-3-uwu@icenowy.me |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp714355wrr; Fri, 2 Dec 2022 00:29:10 -0800 (PST) X-Google-Smtp-Source: AA0mqf4GeZkRtJE3wKXax1L9gmvbwk1KtrG+95aDgbPGyzrSZ7qH9MtBGglEc69BINQU7AM9B8kX X-Received: by 2002:a17:907:9951:b0:7b2:7e7a:11c1 with SMTP id kl17-20020a170907995100b007b27e7a11c1mr43010080ejc.684.1669969750202; Fri, 02 Dec 2022 00:29:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1669969750; cv=pass; d=google.com; s=arc-20160816; b=Opqf/5E/jBlAkTaonH99oXR8q8+HL0crrKzN/Nq4Z9o9DjXIg9dnPiJqdkqY7Anp0E +OHGiQ6edmA7oBnx8e8ToCQay4hA1usRbvHYTfrzAMwbG8+vpkCu3LUFi8h0uA0CQc48 AOyPrI8uVIIY6rT+J+gElf1UQ0wr8Ms5/Zpbnw2c+zpeH/y8+XWqGlbkdsq7ZJVJIkIY VLY0B55QqXSNTTQKsMoQ52h/bJUZDMJHOqvUsOmZG6b7sxy3YNFWrCY5cZNfv1qUbm5i ZZoFqM3OVadkFurAHddE0Us24lxkMUHHzv+G8hnQ4XxhzyTnTdycSml2Q84cXp70ehvx YdDA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ORW3PCrQfzAkTQ7duk9/RgOnxHxJYMd6++GTmA/EuUQ=; b=R2qF0Ctn1d7TR1csPbBVE82bYGImLa6NLInCFqEUc1hcMXpuzYGzwSASIpYkue8Ak2 gc0i2qDRaQzLFAvTEkW6H2zVpaIc2jilTdnCdpqe/h7nKFOm7q8NQWVsNQ+ej7jb0DG7 2TGIIkLNPMt2B0oGU7RbFyEbQVoCmh3xIhWhhzC6U5GqW2k5fSo4Uonxu4vVCR+oflfb mf7hKbZRScVZfDrpwaH+hWRzEQTOcAudNEP2eiEOvoidW2PNRm+fdfIHfx7LZc78U0CB bVMdN0nGuy7YWsndfuUVXuCZaT8tCT0J3grRWCtkJQ7DRUoEzJbOMFwH9xmSPWJXTMdh KPrg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@icenowy.me header.s=zmail header.b=Eprz7xti; arc=pass (i=1 spf=pass spfdomain=icenowy.me dkim=pass dkdomain=icenowy.me dmarc=pass fromdomain=icenowy.me>); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hd19-20020a170907969300b007ae63fe980dsi6911453ejc.931.2022.12.02.00.28.46; Fri, 02 Dec 2022 00:29:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@icenowy.me header.s=zmail header.b=Eprz7xti; arc=pass (i=1 spf=pass spfdomain=icenowy.me dkim=pass dkdomain=icenowy.me dmarc=pass fromdomain=icenowy.me>); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232306AbiLBITl (ORCPT <rfc822;heyuhang3455@gmail.com> + 99 others); Fri, 2 Dec 2022 03:19:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232781AbiLBISf (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 2 Dec 2022 03:18:35 -0500 Received: from sender4-op-o18.zoho.com (sender4-op-o18.zoho.com [136.143.188.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6ACF313F1F; Fri, 2 Dec 2022 00:17:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669969049; cv=none; d=zohomail.com; s=zohoarc; b=KKwgdwJkmSqoAQSGxIHOyceZkreh9/SJb/7xMLTIwbJe3OvfbbBqEdN1/9kOn0TMjI4I+17HZ433/OJRgZS0x8q37VXBKi496q/lFI4RLJcYDuDnda7/gJAkgqmWKwCTO5b9GEAezfY0AdYCEV3K97XU/Bno35xPrdXU1LTSC/s= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1669969049; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=ORW3PCrQfzAkTQ7duk9/RgOnxHxJYMd6++GTmA/EuUQ=; b=W3DiYxW4gcKVHFV/GQFzCHL4SL14Cf4c/eT28EvSUtdcBQD3+efeaiXhdqqEjDIuV4YE5pD5FLp9sa6AyoKaUHkzUaAb5oKhF0rfLkQa9Z/E77rNFcM1v5bNm9XbLv5p9nz01jjx6m2o016mjb0fd6uwx8Y+fcVfmo/mbfZpNTE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=icenowy.me; spf=pass smtp.mailfrom=uwu@icenowy.me; dmarc=pass header.from=<uwu@icenowy.me> DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1669969049; s=zmail; d=icenowy.me; i=uwu@icenowy.me; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-Id:Message-Id:In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:Reply-To; bh=ORW3PCrQfzAkTQ7duk9/RgOnxHxJYMd6++GTmA/EuUQ=; b=Eprz7xti57zaJ0er7EgoNKw2kE2b0CBhd4/sBrR2B+zleffWXxB6LPOO8k9dJ5RQ 1CGao6jKAMyNjO7lq1dh32rE07qk1HMkQvP5MXcdl6xRBtDXjkF1ohge4eXocQhj17b uOXaYfQIG0OrF4y7lwC+5XEDV4AXbh03GYlO4z/E= Received: from edelgard.fodlan.icenowy.me (120.85.99.229 [120.85.99.229]) by mx.zohomail.com with SMTPS id 1669969047936410.260924341292; Fri, 2 Dec 2022 00:17:27 -0800 (PST) From: Icenowy Zheng <uwu@icenowy.me> To: Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Chen-Yu Tsai <wens@csie.org>, Jernej Skrabec <jernej.skrabec@gmail.com>, Samuel Holland <samuel@sholland.org>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Matthias Kaehlcke <mka@chromium.org>, Andre Przywara <andre.przywara@arm.com> Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, Icenowy Zheng <uwu@icenowy.me> Subject: [PATCH v2 2/6] dt-bindings: usb: Add binding for Genesys Logic GL850G hub controller Date: Fri, 2 Dec 2022 16:16:43 +0800 Message-Id: <20221202081647.3183870-3-uwu@icenowy.me> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221202081647.3183870-1-uwu@icenowy.me> References: <20221202081647.3183870-1-uwu@icenowy.me> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-ZohoMailClient: External X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,URIBL_BLACK autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751090200831312919?= X-GMAIL-MSGID: =?utf-8?q?1751090200831312919?= |
Series |
Rongpin RP-H6B support (and support for GL850G)
|
|
Commit Message
Icenowy Zheng
Dec. 2, 2022, 8:16 a.m. UTC
The Genesys Logic GL850G is a USB 2.0 Single TT hub controller that
features 4 downstream ports, an internal 5V-to-3.3V LDO regulator (can
be bypassed) and an external reset pin.
Add a device tree binding for its USB protocol part. The internal LDO is
not covered by this and can just be modelled as a fixed regulator.
Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
---
Changes in v2:
- Misc fixes suggested by Krzysztof, including property descriptions,
single-item "items" and fixing the example's gpio property.
- Fixed $id.
.../bindings/usb/genesys,gl850g.yaml | 47 +++++++++++++++++++
1 file changed, 47 insertions(+)
create mode 100644 Documentation/devicetree/bindings/usb/genesys,gl850g.yaml
Comments
On 02/12/2022 09:16, Icenowy Zheng wrote: > The Genesys Logic GL850G is a USB 2.0 Single TT hub controller that > features 4 downstream ports, an internal 5V-to-3.3V LDO regulator (can > be bypassed) and an external reset pin. > > Add a device tree binding for its USB protocol part. The internal LDO is > not covered by this and can just be modelled as a fixed regulator. > > Signed-off-by: Icenowy Zheng <uwu@icenowy.me> > --- > Changes in v2: > - Misc fixes suggested by Krzysztof, including property descriptions, > single-item "items" and fixing the example's gpio property. > - Fixed $id. > (...) > + > +examples: > + - | > + usb { > + dr_mode = "host"; > + #address-cells = <1>; > + #size-cells = <0>; > + > + hub: hub@1 { > + compatible = "usb5e3,608"; > + reg = <1>; > + reset-gpios = <&pio 7 2>; Use GPIO flags. What did you fix in the example? Best regards, Krzysztof
在 2022-12-02星期五的 10:02 +0100,Krzysztof Kozlowski写道: > On 02/12/2022 09:16, Icenowy Zheng wrote: > > The Genesys Logic GL850G is a USB 2.0 Single TT hub controller that > > features 4 downstream ports, an internal 5V-to-3.3V LDO regulator > > (can > > be bypassed) and an external reset pin. > > > > Add a device tree binding for its USB protocol part. The internal > > LDO is > > not covered by this and can just be modelled as a fixed regulator. > > > > Signed-off-by: Icenowy Zheng <uwu@icenowy.me> > > --- > > Changes in v2: > > - Misc fixes suggested by Krzysztof, including property > > descriptions, > > single-item "items" and fixing the example's gpio property. > > - Fixed $id. > > > (...) > > > + > > +examples: > > + - | > > + usb { > > + dr_mode = "host"; > > + #address-cells = <1>; > > + #size-cells = <0>; > > + > > + hub: hub@1 { > > + compatible = "usb5e3,608"; > > + reg = <1>; > > + reset-gpios = <&pio 7 2>; > > Use GPIO flags. What did you fix in the example? It used to be here, but using it needs another include, which I don't think it necessary here. Maybe I should just drop this line in the example? > > > > Best regards, > Krzysztof >
On 02/12/2022 17:54, Icenowy Zheng wrote: > 在 2022-12-02星期五的 10:02 +0100,Krzysztof Kozlowski写道: >> On 02/12/2022 09:16, Icenowy Zheng wrote: >>> The Genesys Logic GL850G is a USB 2.0 Single TT hub controller that >>> features 4 downstream ports, an internal 5V-to-3.3V LDO regulator >>> (can >>> be bypassed) and an external reset pin. >>> >>> Add a device tree binding for its USB protocol part. The internal >>> LDO is >>> not covered by this and can just be modelled as a fixed regulator. >>> >>> Signed-off-by: Icenowy Zheng <uwu@icenowy.me> >>> --- >>> Changes in v2: >>> - Misc fixes suggested by Krzysztof, including property >>> descriptions, >>> single-item "items" and fixing the example's gpio property. >>> - Fixed $id. >>> >> (...) >> >>> + >>> +examples: >>> + - | >>> + usb { >>> + dr_mode = "host"; >>> + #address-cells = <1>; >>> + #size-cells = <0>; >>> + >>> + hub: hub@1 { >>> + compatible = "usb5e3,608"; >>> + reg = <1>; >>> + reset-gpios = <&pio 7 2>; >> >> Use GPIO flags. What did you fix in the example? > > It used to be here, but using it needs another include, which I don't > think it necessary here. The header is necessary for the flags... > > Maybe I should just drop this line in the example? It's useful. The example should be rather complete, not just compatible and reg. Different problem - you miss maxItems for the GPIOs. Best regards, Krzysztof
在 2022-12-02星期五的 17:59 +0100,Krzysztof Kozlowski写道: > On 02/12/2022 17:54, Icenowy Zheng wrote: > > 在 2022-12-02星期五的 10:02 +0100,Krzysztof Kozlowski写道: > > > On 02/12/2022 09:16, Icenowy Zheng wrote: > > > > The Genesys Logic GL850G is a USB 2.0 Single TT hub controller > > > > that > > > > features 4 downstream ports, an internal 5V-to-3.3V LDO > > > > regulator > > > > (can > > > > be bypassed) and an external reset pin. > > > > > > > > Add a device tree binding for its USB protocol part. The > > > > internal > > > > LDO is > > > > not covered by this and can just be modelled as a fixed > > > > regulator. > > > > > > > > Signed-off-by: Icenowy Zheng <uwu@icenowy.me> > > > > --- > > > > Changes in v2: > > > > - Misc fixes suggested by Krzysztof, including property > > > > descriptions, > > > > single-item "items" and fixing the example's gpio property. > > > > - Fixed $id. > > > > > > > (...) > > > > > > > + > > > > +examples: > > > > + - | > > > > + usb { > > > > + dr_mode = "host"; > > > > + #address-cells = <1>; > > > > + #size-cells = <0>; > > > > + > > > > + hub: hub@1 { > > > > + compatible = "usb5e3,608"; > > > > + reg = <1>; > > > > + reset-gpios = <&pio 7 2>; > > > > > > Use GPIO flags. What did you fix in the example? > > > > It used to be here, but using it needs another include, which I > > don't > > think it necessary here. > > The header is necessary for the flags... > > > > > Maybe I should just drop this line in the example? > > It's useful. The example should be rather complete, not just > compatible > and reg. > > Different problem - you miss maxItems for the GPIOs. Okay thanks. > > Best regards, > Krzysztof >
diff --git a/Documentation/devicetree/bindings/usb/genesys,gl850g.yaml b/Documentation/devicetree/bindings/usb/genesys,gl850g.yaml new file mode 100644 index 000000000000..966462ca6acb --- /dev/null +++ b/Documentation/devicetree/bindings/usb/genesys,gl850g.yaml @@ -0,0 +1,47 @@ +# SPDX-License-Identifier: GPL-2.0-only or BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/genesys,gl850g.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Genesys Logic GL850G USB 2.0 hub controller + +maintainers: + - Icenowy Zheng <uwu@icenowy.me> + +allOf: + - $ref: usb-device.yaml# + +properties: + compatible: + enum: + - usb5e3,608 + + reg: true + + reset-gpios: + description: GPIO controlling the RESET# pin. + + vdd-supply: + description: + the regulator that provides 3.3V core power to the hub. + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + usb { + dr_mode = "host"; + #address-cells = <1>; + #size-cells = <0>; + + hub: hub@1 { + compatible = "usb5e3,608"; + reg = <1>; + reset-gpios = <&pio 7 2>; + }; + };