From patchwork Fri Feb 23 17:17:49 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: 205540 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp725978dyb; Fri, 23 Feb 2024 09:18:40 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU1WUOaEaWAXve4KiE1QJgS/gnErWvMJYeejdwpNXx5CIE8L03gyanWGPR5TeCFc2xiJkvtGg9dBbZRFajuGtyMUgfbYA== X-Google-Smtp-Source: AGHT+IGJ4H1GFKflr+e+e2ueBYDP4BD39KWblD3zHH7m32qysUCGJFdg9YehSPARZtGcvVjhT1If X-Received: by 2002:a05:620a:4147:b0:785:cad6:c3ba with SMTP id k7-20020a05620a414700b00785cad6c3bamr823976qko.15.1708708719954; Fri, 23 Feb 2024 09:18:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708708719; cv=pass; d=google.com; s=arc-20160816; b=GGge6UuvLSHGXoQBC7AfRfHTYvqkKkSMGWAkhOiX89EbZWtaDgOGZducEty5W1M6py x6LySe0ZbWrwzYv825bUQ62LTBFGZky9h1pVPSusruX1qY1mEf/GKK3DYZ+krF+TCHS4 qDMNdbLbHllJr9L0gckak3ltj07/AEHIytGzUspoR+ajCmiAFQ22bmkWSEkNy8JjcJTv zLOvPS/Uy63a5/XmcNqvRQLJ5nK55gw4pI2ozLEZz8BX3yHDWa61pqpxKGl/ni1t01bw si4eN7BzRjr+KQhlt84nlPXT+XtJ1Lnq171u+/Tm9dybhValNcs3zXe5/UR75zVeZd6+ NOsA== 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=Zlt225GOXw6QbcVxoLjOxA+0W8VakPm6lT3xKlTB9RQ=; fh=uTI0Psj+XiLXVW33WL9FoLTtwINeDT8RetA5crD6Kps=; b=Ie/qHIN72BQHkqK7isVePQQgIqD7UEXRhgtDs1XqPsgAemg+6qlbjLy9tPosik5L7r VW5nO463yF9qkGWj1wKUWIQWZx3Yz67pnVM39D58Ej1LZ2fJFgyXsHQ/zfm48jS6OD6t g6egLpJ/jT0eAbIpQd2CWJO9xe2U/kgKeQZTqSkCQ79/P50sd3Q7JWmLmx2BgCyYTWr+ jUAPsFh/X2kzS0HmuHeI3Oa7Cw6z4m+Zr0bWk7XUp2iXCd7xkoWSTIcrrQKCNHKimunQ iECpSpYmPPk0VLbuAGuqemJm1diX8lw+XWyST3VOpJfn5lPgrMIQXTCNtiXZFkMda7EQ vMOQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PHPPPYMH; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-78814-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78814-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id vu16-20020a05620a561000b00785da73ab98si15360063qkn.241.2024.02.23.09.18.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 09:18:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-78814-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PHPPPYMH; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-78814-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-78814-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id AA1A41C22289 for ; Fri, 23 Feb 2024 17:18:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 23397133985; Fri, 23 Feb 2024 17:17:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="PHPPPYMH" 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 3E20D823AA; Fri, 23 Feb 2024 17:17:54 +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=1708708674; cv=none; b=rxgWLCiEp6B+UTIDXMT3FMpd8Oz/pNf+bF1Wwo7IPs+g3fnQN17M7JpEU2jKIY2n55ZWAI6/oYf3oGj1qKsrZ5EdBpmGDmRXs8/eYF59Slx6LN/74PBMYghwDC7EfmSYnmQ+ryh7iTfelDok95ux9aJbMoyy57cF5OQiaPfE1Tw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708708674; c=relaxed/simple; bh=XqhHlRFOh0p3EzbWAlXwzezqrqqunXvXPS2teqhfFtE=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=TiTFGibMKxE4UOi/tbkt7p9XM3tO/jeACT6bfXW3lJ8gpptGwgjCDdjHEd+GZccwxvi21OVDIQ5Ivv2axHbOuvRzmAlquqi8HhlZPuT6Sw4xSJtFLHCX7Nx00q95dt7gEX3XUBvhShJc2pFIZwWGGaKh1ZtEtfjnicySBt1NPhA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=PHPPPYMH; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id E20D4C433C7; Fri, 23 Feb 2024 17:17:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708708673; bh=XqhHlRFOh0p3EzbWAlXwzezqrqqunXvXPS2teqhfFtE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=PHPPPYMHk3SD6zFHr5mT0/7v5w7sJGl0SVyCcPz6mNL3Yax5nBepIdzrgz9mt5Np8 F7kqUVsmmFFxdfJ9Jqz712L16S/yUEWEALHndSpzZBYAo/FqFnXornew+DOliMOsjh VniKrAnduCNFKXdLm/T7oBUf4cBi6z8bPWnGgdTEGa2iYnJlUOZXiEX7gzweXnaLjC GfkARMVY6ptQagew9blIoly7xWybAT9VFcXYl0jzmIZU9a9dqxd7U9SeWgq1y+nSQZ qthuAaZIdfPDBYiuxt+Bxft5o4nu2TZe5j+he29NHzWeYJQZzlk0195Qw9xQjJETac JAadwxBAhtpGw== 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 C2A41C5478C; Fri, 23 Feb 2024 17:17:53 +0000 (UTC) From: Yang Xiwen via B4 Relay Date: Sat, 24 Feb 2024 01:17:49 +0800 Subject: [PATCH 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-v1-1-7ffb2e2baa73@outlook.com> References: <20240224-dwc3-v1-0-7ffb2e2baa73@outlook.com> In-Reply-To: <20240224-dwc3-v1-0-7ffb2e2baa73@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=1708708670; l=3418; i=forbidden405@outlook.com; s=20230724; h=from:subject:message-id; bh=9rvmNBv3Zah3IzddwZbZZSDtAcRKW+fEa/VQRxUOm4Q=; b=8Dm4hLdraiulGflzrU3rl1gEYtOktMQJHdPIsBeyoR/te/pnHcrgJ/JaddJYf0N4qRKVuf7Jf hDU+0XGE7lSAV4Wfo/W4X/gjOZ6Cwz5+DIYvvCaaYJrB33xvOHL5E22 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: 1791710954885043299 X-GMAIL-MSGID: 1791710954885043299 From: Yang Xiwen Document the DWC3 controller used by Hi3798MV200. Signed-off-by: Yang Xiwen --- .../bindings/usb/hisilicon,hi3798mv200-dwc3.yaml | 100 +++++++++++++++++++++ 1 file changed, 100 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..0884d1ba6723 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/hisilicon,hi3798mv200-dwc3.yaml @@ -0,0 +1,100 @@ +# 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-z]+$': + $ref: snps,dwc3.yaml# + +additionalProperties: false + +required: + - compatible + - '#address-cells' + - '#size-cells' + - ranges + - clocks + - clock-names + - resets + - reset-names + +examples: + - | + #include + #include + + usb@98a0000 { + compatible = "hisilicon,hi3798mv200-dwc3"; + #address-cells = <1>; + #size-cells = <1>; + ranges; + clocks = <&crg HISTB_USB3_BUS_CLK>, + <&crg HISTB_USB3_SUSPEND_CLK>, + <&crg HISTB_USB3_REF_CLK>, + <&crg HISTB_USB3_GM_CLK>, + <&crg HISTB_USB3_GS_CLK>, + <&crg HISTB_USB3_UTMI_CLK>, + <&crg HISTB_USB3_PIPE_CLK>; + 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 = <&crg HISTB_USB3_BUS_CLK>, + <&crg HISTB_USB3_SUSPEND_CLK>, + <&crg HISTB_USB3_REF_CLK>; + 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"; + }; + };