Received: by 2002:a05:7412:1703:b0:e2:908c:2ebd with SMTP id dm3csp1444491rdb; Sat, 26 Aug 2023 02:52:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEwuGYY3ZeWB83MotuBR4WHfJ3BJvM8OPHoXlAc8XUZxgyLvJyZO2jVhjjTuPFZyCaEXz17 X-Received: by 2002:a17:906:73c4:b0:9a5:9305:83fb with SMTP id n4-20020a17090673c400b009a5930583fbmr962157ejl.34.1693043552966; Sat, 26 Aug 2023 02:52:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693043552; cv=none; d=google.com; s=arc-20160816; b=BPRRMcfS3CiipKG+iUYQ9EOm4An7rwHy7YPmtZIf3Uzo8EAm+52rhbN3+jrI4AFrEE Ein+ScQI0+FpXjRCWKDwo0g6eg5bUFKRX5vEZyYw2+GFmzVDNL8brSHmpoRRMu4p1jHd CNxrVg9mtTW8rtZK6+VDqFgWcU/FqAW/8r3xpUyTr8P6BAOQoxYIEUKsqOs3sfyLRd0d K5lOwYrpC8D81krF0KtbFUfJaruV1hTLUlLUmikWwgm75i98epSSwPTb3t10/jFpNBk1 5gSCVVZXhTkE1sz8uOEFN6Xucx7jNOYkqn58ylYF+Qx/A6TQCVvBL41rfAwYMgrQZW5l dBQw== ARC-Message-Signature: i=1; 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 :authenticated-by; bh=kXFchT1o4AEeQIE6j+Q2s6mTWeKaynERx0tICxRM4Yo=; fh=XphJJLXy7Yp1Ce9w+PI/wgV5dwA0KZ1qAdIzriclV6k=; b=e2+j6Bhdoy7vF1z+IkJa5rcHFSP+y2p/JtFLkIJ2ItyDHZP0tn/058/VdZydCZVo2p MZqoA8Htq4pYcrhZh6SMd5OwXC3M2TJnYS6cRtON+zOiIbcEFeTs9vP8dWwCSHjUxI9Y 0mLyzkESmzFO4NSYrkZ/1VKeUDxkvpgbfBrtJGI/GmVwoiGK6qe+moo4A1f1B7iFbeJG Bbij+qsd02N5hXj9TqFadKRelBmJ1qrr8N1j+8jxOMRww0Q0M6mBBnIw2lATMSqjPbL4 eVG4DWQ5O49kKQeSCCRvDTyETOQGIVeN+Bj/xZLsGgtc0FUV4djO6cOap/3zHg0Ctu3F U1/Q== ARC-Authentication-Results: i=1; mx.google.com; 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 dk24-20020a170906f0d800b00992dc9d6b8bsi1939190ejb.789.2023.08.26.02.51.57; Sat, 26 Aug 2023 02:52:32 -0700 (PDT) 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; 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 S231681AbjHZDMM (ORCPT + 99 others); Fri, 25 Aug 2023 23:12:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231704AbjHZDLi (ORCPT ); Fri, 25 Aug 2023 23:11:38 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 40FEC26BB; Fri, 25 Aug 2023 20:11:36 -0700 (PDT) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 37Q3AtzQ6031129, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36506.realtek.com.tw[172.21.6.27]) by rtits2.realtek.com.tw (8.15.2/2.81/5.90) with ESMTPS id 37Q3AtzQ6031129 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Sat, 26 Aug 2023 11:10:55 +0800 Received: from RTEXMBS01.realtek.com.tw (172.21.6.94) by RTEXH36506.realtek.com.tw (172.21.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.17; Sat, 26 Aug 2023 11:10:17 +0800 Received: from RTEXH36506.realtek.com.tw (172.21.6.27) by RTEXMBS01.realtek.com.tw (172.21.6.94) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Sat, 26 Aug 2023 11:10:17 +0800 Received: from localhost.localdomain (172.21.252.101) by RTEXH36506.realtek.com.tw (172.21.6.27) with Microsoft SMTP Server id 15.1.2507.17 via Frontend Transport; Sat, 26 Aug 2023 11:10:17 +0800 From: Stanley Chang To: Thinh Nguyen CC: Stanley Chang , Rob Herring , Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , , , Subject: [PATCH v6 2/2] dt-bindings: usb: dwc3: Add Realtek DHC RTD SoC DWC3 USB Date: Sat, 26 Aug 2023 11:10:07 +0800 Message-ID: <20230826031028.1892-2-stanley_chang@realtek.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230826031028.1892-1-stanley_chang@realtek.com> References: <20230826031028.1892-1-stanley_chang@realtek.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-KSE-ServerInfo: RTEXMBS01.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Document the DWC3 USB bindings for Realtek SoCs. Signed-off-by: Stanley Chang Reviewed-by: Rob Herring --- v5 to v6 change: No change. v4 to v5 change: No change. v3 to v4 change: Add reg for register set for pm control. Remove maximum-speed in example. v2 to v3 change: Add description for reg Remove property for realtek,unlink-usb3-port. Remove property for realtek,disable-usb3-phy. Use the maximum-speed instead of the above two properties. v1 to v2 change: Revise the subject. Rename the file. Fix dtschema warnings. Remove the property realtek,enable-l4icg. Drop status. --- .../bindings/usb/realtek,rtd-dwc3.yaml | 80 +++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/realtek,rtd-dwc3.yaml diff --git a/Documentation/devicetree/bindings/usb/realtek,rtd-dwc3.yaml b/Documentation/devicetree/bindings/usb/realtek,rtd-dwc3.yaml new file mode 100644 index 000000000000..345d0132d4a5 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/realtek,rtd-dwc3.yaml @@ -0,0 +1,80 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +# Copyright 2023 Realtek Semiconductor Corporation +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/realtek,rtd-dwc3.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Realtek DWC3 USB SoC Controller Glue + +maintainers: + - Stanley Chang + +description: + The Realtek DHC SoC embeds a DWC3 USB IP Core configured for USB 2.0 + and USB 3.0 in host or dual-role mode. + +properties: + compatible: + items: + - enum: + - realtek,rtd1295-dwc3 + - realtek,rtd1315e-dwc3 + - realtek,rtd1319-dwc3 + - realtek,rtd1319d-dwc3 + - realtek,rtd1395-dwc3 + - realtek,rtd1619-dwc3 + - realtek,rtd1619b-dwc3 + - const: realtek,rtd-dwc3 + + reg: + items: + - description: Address and length of register set for wrapper of dwc3 core. + - description: Address and length of register set for pm control. + + '#address-cells': + const: 1 + + '#size-cells': + const: 1 + + ranges: true + +patternProperties: + "^usb@[0-9a-f]+$": + $ref: snps,dwc3.yaml# + description: Required child node + +required: + - compatible + - reg + - "#address-cells" + - "#size-cells" + - ranges + +additionalProperties: false + +examples: + - | + usb@98013e00 { + compatible = "realtek,rtd1319d-dwc3", "realtek,rtd-dwc3"; + reg = <0x98013e00 0x140>, <0x98013f60 0x4>; + #address-cells = <1>; + #size-cells = <1>; + ranges; + + usb@98050000 { + compatible = "snps,dwc3"; + reg = <0x98050000 0x9000>; + interrupts = <0 94 4>; + phys = <&usb2phy &usb3phy>; + phy-names = "usb2-phy", "usb3-phy"; + dr_mode = "otg"; + usb-role-switch; + role-switch-default-mode = "host"; + snps,dis_u2_susphy_quirk; + snps,parkmode-disable-ss-quirk; + snps,parkmode-disable-hs-quirk; + maximum-speed = "high-speed"; + }; + }; -- 2.34.1