Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2702355rdh; Wed, 27 Sep 2023 10:04:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFeyEF7SrPSUuIFl40mjmMvY35CuWJ10n4yv2XLP+JyuGsBqFaHgSAIo0WqjOJuEK16isse X-Received: by 2002:a17:903:244d:b0:1bc:3908:14d with SMTP id l13-20020a170903244d00b001bc3908014dmr11464760pls.2.1695834248991; Wed, 27 Sep 2023 10:04:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695834248; cv=none; d=google.com; s=arc-20160816; b=HMkO3xuuO18dTGMVVANBuO3jneu4hKR19gGG1Rs2TkRoFVnyUOMi4f+6AKQupywwPO zMNoZ4EHpr3tmYo6okM+SFchv9euTVaXX9zidvbROamO/BPs4KW59VdfVqizekdKc+xt ugDkJOLusuJeq6Db8IldgKH3t2OeRghWbiWr2iVDKiW30XOTAC2PwEneKnUqsQ2bISTW CjrD3IBPi+rzGUBu3fJp3JZqX9A7VVXPq6GJ/MaXmiTH8xAFLLFSCMZkZxRFqK2ZNAyr /yL789L8kZN7TgGvRf33j/jHIwS0pmLBJguNzOny5Cexw0e+cdLWldUSDi/j8DsbRaxY 36CA== 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 :dkim-signature; bh=4IEDXa4FytP4wXDVnIVUv/n7+wyXNdt7qlLYRDfXDh0=; fh=l0j/sX16vfpi/oZ3zuhFuzonJ7kkautdUXCrc1sjEAM=; b=xwcDL/Egvs5M1Z67GcqEQTz2uikulS7c9mQuBq5nAYmpqG1VlUV9UXmSjbFEwuMxWp hZmryvE8aAwf2h8Wk+DWhq5pKruwHKF9UljiVDZklE11kJNuzlwJ9sOC9sY4I43gXWUm 0ZzxzaXdvIkutFQ+vY+gYP4CbzO4Li4/LYhgWYZWpOeEeJR1BVetG6e4YVS7dRtcpzej ESFs0xknqykFxA0o5mwBUISrfrI6vEXUHkL6zjtlARilI3z+kqRGkF173kGxWum0ddFh jvirAZV29w1+BmkwZdGPY0/SAK6GX0siHAX+2sGMAerM78+mLuk73NfXc0/FSMF0udAP BlOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OS6UKmOI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id j1-20020a170902da8100b001b9c205a860si17442263plx.377.2023.09.27.10.04.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 10:04:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OS6UKmOI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 0ABE7827021D; Wed, 27 Sep 2023 09:54:45 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229522AbjI0Qya (ORCPT + 99 others); Wed, 27 Sep 2023 12:54:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbjI0Qy3 (ORCPT ); Wed, 27 Sep 2023 12:54:29 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19DD591 for ; Wed, 27 Sep 2023 09:54:28 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3815BC433C8; Wed, 27 Sep 2023 16:54:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695833667; bh=OWCmuPebvFogsaXQ+UWO53mmD8IYPbNXCEUOxHi0SX4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=OS6UKmOIJ/EdftafGfIt8QW4UBwispRhzODgAANJ7P8uch/3it1bBEZWsLLigHDWD zyjsBBapu3BDfr6Iszc4lUfcX1l5hwuHHagsjSiY25YT71V0mX53itbjZjYG/UDCCH /h/y7TOD7R6dV+WE6mPfpwEMhgEOeGshLQ9CY6fIV+I9P5o+MCjXD4SE6rWu5cAMXk rhJFkRpJbU8XJrjlVEKIfKjuUzYluje1/CETC0vP6ILLDEPXvolfdsHdGPGOI2H1AD JWNOai2dCtkM+pSx3elaxzamyUpsoNNdG36u7/As+zMrOt9a/ECzE9PQgOwCesCXrg YJH3WiMIm7j9A== From: Jisheng Zhang To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thinh Nguyen Cc: linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Guo Ren , Fu Wei , linux-riscv@lists.infradead.org Subject: [PATCH 1/2] dt-bindings: usb: Add T-HEAD TH1520 USB controller Date: Thu, 28 Sep 2023 00:42:21 +0800 Message-Id: <20230927164222.3505-2-jszhang@kernel.org> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230927164222.3505-1-jszhang@kernel.org> References: <20230927164222.3505-1-jszhang@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 27 Sep 2023 09:54:45 -0700 (PDT) T-HEAD TH1520 platform's USB has a wrapper module around the DesignWare USB3 DRD controller. Add binding information doc for it. Signed-off-by: Jisheng Zhang --- .../bindings/usb/thead,th1520-usb.yaml | 73 +++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/thead,th1520-usb.yaml diff --git a/Documentation/devicetree/bindings/usb/thead,th1520-usb.yaml b/Documentation/devicetree/bindings/usb/thead,th1520-usb.yaml new file mode 100644 index 000000000000..afb618eb5013 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/thead,th1520-usb.yaml @@ -0,0 +1,73 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/thead,th1520-usb.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: T-HEAD TH1520 DWC3 USB Controller Glue + +maintainers: + - Jisheng Zhang + +properties: + compatible: + const: thead,th1520-usb + + reg: + maxItems: 1 + + clocks: + maxItems: 4 + + clock-names: + items: + - const: ref + - const: bus_early + - const: phy + - const: suspend + + ranges: true + + '#address-cells': + enum: [ 1, 2 ] + + '#size-cells': + enum: [ 1, 2 ] + +# Required child node: + +patternProperties: + "^usb@[0-9a-f]+$": + $ref: snps,dwc3.yaml# + +required: + - compatible + - reg + - clocks + - clock-names + - ranges + +additionalProperties: false + +examples: + - | + + usb { + compatible = "thead,th1520-usb"; + reg = <0xec03f000 0x1000>; + clocks = <&clk 1>, + <&clk 2>, + <&clk 3>, + <&clk 4>; + clock-names = "ref", "bus_early", "phy", "suspend"; + ranges; + #address-cells = <1>; + #size-cells = <1>; + + usb@e7040000 { + compatible = "snps,dwc3"; + reg = <0xe7040000 0x10000>; + interrupts = <68>; + dr_mode = "host"; + }; + }; -- 2.40.1