From patchwork Fri Dec 2 08:16:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Icenowy Zheng X-Patchwork-Id: 13062383 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 35987C47088 for ; Fri, 2 Dec 2022 08:18:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=vCYjHfnEV6SrKBjvi23uNrnQolJZ6zk9AshnVWj8a0g=; b=DRMIaDLmHDscJV CU6HPZjBY+PLYvfXPKQFgo81ZxhyMWuVEH9jl992+lg+dWafoWJ098W1Puoj7iFXe6icODSGEBJcS II4nGYog8UGgt4WMB7FbUfhUM2xIjLvwuI7X5+2d4adEeig1TReGzoE7hEbwERZxVO7XgaEu7xwyu HmCbStezLx/3MT9RazQQNjmcXAsc5WTTS8HKyyLBNaz4HFVbXLwF7B5WuM61yQQgkAVODlPuWE+Sy iK8STUaqA5Ooka/sg810CfbHO5DS+lM8yCJdlGKKX4M8PsARU6jczXEi+IVXObO+1j1Y/x6rwwRB3 RoFimYS36tGJLWzDjYRw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p11Eq-00EQCN-95; Fri, 02 Dec 2022 08:17:40 +0000 Received: from sender4-op-o18.zoho.com ([136.143.188.18]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p11Ek-00EQBM-AU for linux-arm-kernel@lists.infradead.org; Fri, 02 Dec 2022 08:17:35 +0000 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 X-ZohoMailClient: External X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221202_001734_431234_3B958FA6 X-CRM114-Status: GOOD ( 13.35 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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>; + }; + };