From patchwork Sat Feb 24 12:10:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Xiwen via B4 Relay X-Patchwork-Id: 205834 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp1114103dyb; Sat, 24 Feb 2024 04:11:18 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVQV/2ew9XZ1HdjeqWaWa0xvLvGF+kpQZwR3bsMh0rsmeAJ+4kFv/YuQW64/MT35SVsYZ+ZdsigQaaMX5QY8q9M5ZKp/w== X-Google-Smtp-Source: AGHT+IHQH5/uFl3bxZ25IaH7V/R8emfw2a3QIa5ygRaVmfYmgNW8o0SG9BsZZUP52zYl8HunGYvk X-Received: by 2002:ac2:414f:0:b0:512:bed5:3d87 with SMTP id c15-20020ac2414f000000b00512bed53d87mr1186411lfi.23.1708776678167; Sat, 24 Feb 2024 04:11:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708776678; cv=pass; d=google.com; s=arc-20160816; b=1B/NJmJTvF3btwhAwgaODmDkPfsCaNGpiOO0eUcj5JJ1Ze06WwbVytXSz1qsIiY15v 2yNx6IVGzAamXYVd1URSqQJQ6qn1uvEaLKtQ+J7BL5cLse0kL1+CzZNirFyB77wqfFYS AhxzxC0t+shIfks/A8xvSp9eZbNqUxhhCZzM7f33FEN0l9qPjJDZJj1PYpc7xU9eLX3a yPJXkNFXAfppgui4cd0hS1y3jQjM09Vsg98srNdKzscvPguWY1XYcsu9KBOkuJ99vfnl MbFebjTHhWPwJEaKn0xiBJcFP721RWTNfWdEueBClTz4ESX2VRCIsLEBEh7ouAH9On8k gcHw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:date:from:dkim-signature; bh=42uYGc8o68PANDQhcmv7fT9kqiUSulKeKPw4FMVk3n4=; fh=uTI0Psj+XiLXVW33WL9FoLTtwINeDT8RetA5crD6Kps=; b=jSYj/L7RsnpqV0cmMznH/6CiTaOg5ODEqQFakm09+AOmIJlUaPyx7a4PVslFPG0J3/ YKL5H4ecQIqv4WWR9ADZ6m17hMKoVsHwwuKyDjbFcH79zrmozKrlFi5hKmqUGrEghJez /NF3RJJAIrPWXAUqygzKc0yr2qis53MwRvu0RgqIZpE971wxU9qRJ4/qPbrfdMr38oK3 y6LcUAZYONn1vce0u8r9oLpWtW60u/gLYg02TTFuZrmxERHfRgpPuGc0Kxs+wXk2teaH wo43iz53nTvIrhaVgqiBxF9ynT6wY+C2MK4Psgfzci8Uqv1dVAoCJxlx0wYcPuiWMJUF ttWg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Q9guFfAj; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-79625-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79625-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id d9-20020aa7ce09000000b00565591431afsi422737edv.304.2024.02.24.04.11.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Feb 2024 04:11:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79625-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Q9guFfAj; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-79625-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79625-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 9BE541F24B98 for ; Sat, 24 Feb 2024 12:11:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A60B94205F; Sat, 24 Feb 2024 12:10:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Q9guFfAj" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E385A250EA; Sat, 24 Feb 2024 12:10:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708776620; cv=none; b=lIxXH+beYIgdkeIFoOg9etSYg8pa0CCZKdkK8gLvooefhf6T6RStw3OqVIU4Nr212Z3AO0Vd5bL/jcapWNao7EDwymtHtnG2XNSCxW95nrUNi0vi87B5zQ8ao9eib8C2DYE2N14/zYblc3yutvOwIfKurwlUryMUt5UYVBkfkDs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708776620; c=relaxed/simple; bh=Y/mv5b45NNa7XhCnyle8CDh3gsyrXcnhCzFA4aYSuaw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=g0RV3TkI+pAxlL4sMSfe+rD7jwrQTITouAPPh6fjIs9f8Pn6PfpcqI2hxELDnNcQPgLAN27lEvJclhoIvFL6/1x92vCnV9QKxv0NCT681yWiqkx9XQXsn48w7oUlWHZBxoCa8zfLrC6pwcXD3bvX6oaUP3t13eVUDajh1ZrNfZI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Q9guFfAj; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 8F98EC433C7; Sat, 24 Feb 2024 12:10:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708776619; bh=Y/mv5b45NNa7XhCnyle8CDh3gsyrXcnhCzFA4aYSuaw=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=Q9guFfAjFg3Kpd80dy8WG9xevz+dOvi5rFVPtX4sQpS24kf6kjalQJf6YALJ6Kcvj OTXn7iizuWkUd1F6CQQbMVCB9hZ+CqFvDgV9tlt0BuOWPHIxV4vSpLQGl/tyFjc8Hg mH+nGH5RSP7fhIBvZW3F8B8HISdAP1pdWtCWo48otp61tSg3opOmDTBJj5omxkCH+6 dWVwVhhDEH2Mx0GRtYRCGP5GW3zx60Aq5cqk/W/272KA0msINfVVHkMhnt2btpflqt acfAVIqBSdGRheeHjhbHPSVP0YXsiKXjCz5fsY/EBM6+22Bbh9+fiI1r9RDYSKSQkq 3xJN4BsrQ1qrg== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 79816C54E4A; Sat, 24 Feb 2024 12:10:19 +0000 (UTC) From: Yang Xiwen via B4 Relay Date: Sat, 24 Feb 2024 20:10:18 +0800 Subject: [PATCH v3 1/2] dt-bindings: usb: add hisilicon,hi3798mv200-dwc3 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240224-dwc3-v3-1-2535fcee7f08@outlook.com> References: <20240224-dwc3-v3-0-2535fcee7f08@outlook.com> In-Reply-To: <20240224-dwc3-v3-0-2535fcee7f08@outlook.com> To: Thinh Nguyen , Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Yang Xiwen Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Yang Xiwen X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1708776618; l=3057; i=forbidden405@outlook.com; s=20230724; h=from:subject:message-id; bh=jRJYka21Rl3jtVAQxHQtRgS06ZtXY4Ef7fNvMXm1l9Y=; b=14y9842xN9JS6FBVs22HlDE4O7AMN9Q7TM0Mxrfu9Yh8BIeVQIL5JcdNk8w/sZUQjJfNuMqYh 3/KLUFYNPwGA8LkKQlypHN9azB6ciK2EzIEptWC5L57E33iG7G7RHci X-Developer-Key: i=forbidden405@outlook.com; a=ed25519; pk=qOD5jhp891/Xzc+H/PZ8LWVSWE3O/XCQnAg+5vdU2IU= X-Endpoint-Received: by B4 Relay for forbidden405@outlook.com/20230724 with auth_id=67 X-Original-From: Yang Xiwen Reply-To: X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791782213914503624 X-GMAIL-MSGID: 1791782213914503624 From: Yang Xiwen Document the DWC3 controller used by Hi3798MV200. Signed-off-by: Yang Xiwen Reviewed-by: Krzysztof Kozlowski --- .../bindings/usb/hisilicon,hi3798mv200-dwc3.yaml | 99 ++++++++++++++++++++++ 1 file changed, 99 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/hisilicon,hi3798mv200-dwc3.yaml b/Documentation/devicetree/bindings/usb/hisilicon,hi3798mv200-dwc3.yaml new file mode 100644 index 000000000000..0c26191e9d74 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/hisilicon,hi3798mv200-dwc3.yaml @@ -0,0 +1,99 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/hisilicon,hi3798mv200-dwc3.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: HiSilicon Hi3798MV200 DWC3 USB SoC controller + +maintainers: + - Yang Xiwen + +properties: + compatible: + const: hisilicon,hi3798mv200-dwc3 + + '#address-cells': + const: 1 + + '#size-cells': + const: 1 + + ranges: true + + clocks: + items: + - description: Controller bus clock + - description: Controller suspend clock + - description: Controller reference clock + - description: Controller gm clock + - description: Controller gs clock + - description: Controller utmi clock + - description: Controller pipe clock + + clock-names: + items: + - const: bus + - const: suspend + - const: ref + - const: gm + - const: gs + - const: utmi + - const: pipe + + resets: + maxItems: 1 + + reset-names: + const: soft + +patternProperties: + '^usb@[0-9a-f]+$': + $ref: snps,dwc3.yaml# + +required: + - compatible + - ranges + - '#address-cells' + - '#size-cells' + - clocks + - clock-names + - resets + - reset-names + +additionalProperties: false + +examples: + - | + #include + + usb { + compatible = "hisilicon,hi3798mv200-dwc3"; + #address-cells = <1>; + #size-cells = <1>; + ranges; + clocks = <&clk_bus>, + <&clk_suspend>, + <&clk_ref>, + <&clk_gm>, + <&clk_gs>, + <&clk_utmi>, + <&clk_pipe>; + clock-names = "bus", "suspend", "ref", "gm", "gs", "utmi", "pipe"; + resets = <&crg 0xb0 12>; + reset-names = "soft"; + + usb@98a0000 { + compatible = "snps,dwc3"; + reg = <0x98a0000 0x10000>; + interrupts = ; + clocks = <&clk_bus>, + <&clk_suspend>, + <&clk_ref>; + clock-names = "bus_early", "suspend", "ref"; + phys = <&usb2_phy1_port2>, <&combphy0 0>; + phy-names = "usb2-phy", "usb3-phy"; + maximum-speed = "super-speed"; + dr_mode = "host"; + }; + };