Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp622714rdg; Thu, 10 Aug 2023 13:50:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG/YX2lVfuFzFY5RWljQZbGzVrMNfNMUB57jA5lnS1IN+P9o5FcOm7Lzw6+E8UUxfHBlq+1 X-Received: by 2002:a05:6a00:3981:b0:687:42be:a274 with SMTP id fi1-20020a056a00398100b0068742bea274mr3938874pfb.5.1691700656431; Thu, 10 Aug 2023 13:50:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691700656; cv=none; d=google.com; s=arc-20160816; b=SDQkyIQCs+uE4oM6bR87sbsOVmp2yaI7qwHDAJoLAj+3+afVneBCaC8R/y7JJzQIdo gc0i1UhH2z37W1riX3QkN8Lq1QZgDeG6SY7ksRSPluGiG3/oKgg0rdSyecOaAS0IOy24 h9tfybDVQypp3lwvcpdVTagI+JB11BPT0erle2O+MJ4/ez9PEnRNfUh/cxhoRGRJp8if yClC3YhSb+f6FIV4QDVsA3No9MTFjOum8m+WXo+GY1fRCu/pyYsmkP/hnn9p4NDKUkKy hSYPM7jf1hCPY3de69rNYT9cOKHQfVW4yD+KcQdMnw+1lscJpd/tobkMWkBnfUGxzEyJ hS+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=K2ttoHlzsJ9pV6WpVHfz/1IRx9BqzYTNCu4Kt/gl2Ss=; fh=cyQTolavo9J17BuDilFKhK9Hzlz35xxnWl/vSXcoHxQ=; b=CnufP9CnGvnr1oZfjIpBlrIykvmO8Z2pRqlTpLBBHHkLdxCUSZdjm02c5rnw1HV3gc bbvFDfmQ49sYutdHm1ueia5Z/4yw8Cz+iJSZxsNz09irPx4mB37Cl8C0KiMGwucIEfNy hF97ZXfeZDf7a//l9MtYI3K9yr/11zYi2LoIR+68Taf4rLjucq9h7ZXN+5KEuKNZQF9y UrUixKhXjClvjQOwEoh3+dbgtOcb9V9DZSeYuUgVsmNA93z0Z/6HS/wR9hCPkWRU6Kv4 iY7F/GIp2fFDKsr9K2ipjrmMYq1j7BtOK821bTUXaP6Dt84vF+gCwV7DerrF8VchqSWC mDhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YyM5XDF2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s30-20020a63525e000000b00565325c20ddsi2079404pgl.77.2023.08.10.13.50.43; Thu, 10 Aug 2023 13:50:56 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YyM5XDF2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234183AbjHJUgh (ORCPT + 99 others); Thu, 10 Aug 2023 16:36:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230459AbjHJUgg (ORCPT ); Thu, 10 Aug 2023 16:36:36 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53E7A2735; Thu, 10 Aug 2023 13:36:36 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E4FAA649D8; Thu, 10 Aug 2023 20:36:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9907FC433C7; Thu, 10 Aug 2023 20:36:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691699795; bh=HLJOnK0rH2cvb7EsLtRxErU2VHJz6XAwt8dHUse6DKM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YyM5XDF2DqDCiwlhNnxzBAT3zndoLjRw0OPRa2DXJli2uuvt80VkabDTadz6BQ1uq zFLg1kCd1aj/ogBJO98YbSFnIuHKZxvibVyAHYGyci87df4K3JkfE8Qll+j36W57Cm u8iXCGlTEM1r1r5hQSyAhoptS5X+ubF76dMZTKNrLOquf6PH2g+nPqrkToInf+CgEH a4khDadQl7wGQFxqEClwliKhphgz4H4pvteGcmNggTCGt9Uznyq0TkezqM5EgYu8IR xEif6xlSHOlI3tbGZOGKH4Iq1b6AeTKdz9UAEeetN8CbCOZk5cPYscv7Y2mLXNIZdY 3j8Icc9O5WVnQ== Received: (nullmailer pid 1127760 invoked by uid 1000); Thu, 10 Aug 2023 20:36:33 -0000 Date: Thu, 10 Aug 2023 14:36:33 -0600 From: Rob Herring To: Stanley Chang Cc: Thinh Nguyen , Greg Kroah-Hartman , Krzysztof Kozlowski , Conor Dooley , linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 2/2] dt-bindings: usb: dwc3: Add Realtek DHC RTD SoC DWC3 USB Message-ID: <20230810203633.GA1121702-robh@kernel.org> References: <20230810055440.3534-1-stanley_chang@realtek.com> <20230810055440.3534-2-stanley_chang@realtek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230810055440.3534-2-stanley_chang@realtek.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 10, 2023 at 01:54:35PM +0800, Stanley Chang wrote: > Document the DWC3 USB bindings for Realtek SoCs. > > Signed-off-by: Stanley Chang > --- > 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..cc66adc4b9da > --- /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: > + description: Offset and length of register set for wrapper of dwc3 core. > + maxItems: 1 > + > + '#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 0x200>; > + #address-cells = <1>; > + #size-cells = <1>; > + ranges; > + maximum-speed = "high-speed"; This should be a warning (the bot was having problems) as it is not defined for this node. It belongs in the child node as you also have, so drop it. > + > + 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 >