Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1771622rwb; Fri, 2 Dec 2022 00:30:23 -0800 (PST) X-Google-Smtp-Source: AA0mqf64/maEX55Mog8KUFsF7KpXdY4aYUrjGE0TdfKRf1ytAPbK/vdX8t+QsEhcFgXFTphgwAcP X-Received: by 2002:a17:907:7782:b0:7b6:dd6d:b829 with SMTP id ky2-20020a170907778200b007b6dd6db829mr46538992ejc.602.1669969823016; Fri, 02 Dec 2022 00:30:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1669969823; cv=pass; d=google.com; s=arc-20160816; b=lEg4oB30MNBIQi35dQmEjwZaMrvvJeaA8TMzPfdjBuF0jDg5L57XMjCYk/Fker0GF7 C25a5bf9+xLTJFhZAFQ+PFFshrvOLsxojTyHY27UOqlXgyvDJkK3YB3+H7N73zzg9KTE jxzBtXQUbg5Iny9WK1atXm+XLyrPC89wlkVa/cXA3P/HZ3Y8qW0TjQc67Do4Djbh4M/g q4G3/oYQ3eWBGU2ZH+wOUVoDKsPHHlhKSy93dhHoEZKUe4oNY2MJNj6GfjBDWqGcNzLN KZpBjGIa7PGMDcRuiNsQ036AT6mjn5hvWEvliL75wgJKxYqIHq+/IVwuSRxWYQ6qH327 ORRQ== 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 Return-Path: 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.30.02; Fri, 02 Dec 2022 00:30:23 -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 + 82 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 ); 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= 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 To: Rob Herring , Krzysztof Kozlowski , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Greg Kroah-Hartman , Matthias Kaehlcke , Andre Przywara 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 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: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 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 + +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>; + }; + }; -- 2.38.1