From patchwork Mon Jul 24 06:36:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ng, Adrian Ho Yin" X-Patchwork-Id: 706605 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E7506C001B0 for ; Mon, 24 Jul 2023 06:38:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230239AbjGXGiW (ORCPT ); Mon, 24 Jul 2023 02:38:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229898AbjGXGiU (ORCPT ); Mon, 24 Jul 2023 02:38:20 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F00641700; Sun, 23 Jul 2023 23:37:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1690180675; x=1721716675; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=tj9DeThXMzDvfyzY6lifNuiXGvrNPL8ikzmqqCdeyxY=; b=D3EwcSAAwpGwJDfmQccOEH2AadU4+w8EHr6jNQLYMW0rCnsa6s5eNIbS ukxbPCIgOs5bFTcvin4GgXEKOPf9T3sA4gKrlmowo8Ddbmxk3WEFPd2yT +f/Awh7BOu1+PoVWphsjOBLTVhIqqn8qvS3YS9FR4UwBWcnrcdx2YU81g AOvyVwTS8+B5dLbbAI8hK+E8jso2kJ6hlbbdLwfEUPOn7d4Xd+NyY4yR4 QE43S/zVzBmNqpNp0O261M7u3dlR9jqcagBRHmEXur5mIrcL4ABjI2AbS 2bWTvBowk7Mic5DJlkHbyvE0v480O/ZNG2dbTlAkIBoaSvqMz2QS7vowe g==; X-IronPort-AV: E=McAfee;i="6600,9927,10780"; a="357363125" X-IronPort-AV: E=Sophos;i="6.01,228,1684825200"; d="scan'208";a="357363125" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jul 2023 23:37:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10780"; a="849507486" X-IronPort-AV: E=Sophos;i="6.01,228,1684825200"; d="scan'208";a="849507486" Received: from pgli4316.png.intel.com ([172.30.235.139]) by orsmga004.jf.intel.com with ESMTP; 23 Jul 2023 23:37:03 -0700 From: adrian.ho.yin.ng@intel.com To: gregkh@linuxfoundation.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, Thinh.Nguyen@synopsys.com, p.zabel@pengutronix.de Cc: adrian.ho.yin.ng@intel.com Subject: [PATCH v2 1/2] dt-bindings: usb: Add Intel SoCFPGA USB controller Date: Mon, 24 Jul 2023 14:36:58 +0800 Message-Id: <0d12c7a196d6ad81cfc69b281dd1c4cca623d9bd.1690179693.git.adrian.ho.yin.ng@intel.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: References: MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org From: Adrian Ng Ho Yin Existing binding intel,keembay-dwc3.yaml does not have the required properties for Intel SoCFPGA devices. Introduce new binding description for Intel SoCFPGA USB controller which will be used for current and future SoCFPGA devices. Signed-off-by: Adrian Ng Ho Yin --- .../bindings/usb/intel,socfpga-dwc3.yaml | 84 +++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/intel,socfpga-dwc3.yaml diff --git a/Documentation/devicetree/bindings/usb/intel,socfpga-dwc3.yaml b/Documentation/devicetree/bindings/usb/intel,socfpga-dwc3.yaml new file mode 100644 index 000000000000..e36b087c2651 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/intel,socfpga-dwc3.yaml @@ -0,0 +1,84 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/intel,socfpga-dwc3.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Intel SoCFPGA DWC3 USB controller + +maintainers: + - Adrian Ng Ho Yin + +properties: + compatible: + items: + - enum: + - intel,agilex5-dwc3 + - const: intel,socfpga-dwc3 + + reg: + description: Offset and length of DWC3 controller register + maxItems: 1 + + clocks: + items: + - description: Controller Master/Core clock + - description: Controller Suspend clock + + ranges: true + + resets: + description: A list of phandles for resets listed in reset-names + maxItems: 2 + + reset-names: + items: + - const: dwc3 + - const: dwc3-ecc + + '#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 + - resets + - ranges + +additionalProperties: false + +examples: + - | + #include + #include + #include + + usb@11000000 { + compatible = "intel,agilex5-dwc3", "intel,socfpga-dwc3"; + reg = <0x11000000 0x100000>; + ranges; + clocks = <&clkmgr 54>, + <&clkmgr 55>; + resets = <&rst USB0_RESET>, <&rst USB1_RESET>; + reset-names = "dwc3", "dwc3-ecc"; + #address-cells = <1>; + #size-cells = <1>; + + usb@11000000 { + compatible = "snps,dwc3"; + reg = <0x11000000 0x100000>; + interrupts = ; + dr_mode = "host"; + }; + }; + From patchwork Mon Jul 24 06:37:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ng, Adrian Ho Yin" X-Patchwork-Id: 706103 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3C879C00528 for ; Mon, 24 Jul 2023 06:38:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230393AbjGXGiZ (ORCPT ); Mon, 24 Jul 2023 02:38:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229898AbjGXGiX (ORCPT ); Mon, 24 Jul 2023 02:38:23 -0400 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A88A1712; Sun, 23 Jul 2023 23:37:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1690180679; x=1721716679; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=PDgSdWiSS8r/fjBvP7uqjDJKYFldUHLxk6UxZ4dtspo=; b=bKl5j/U76fEVuvJQlP2lM1OEJLISkfMZ1g4c49/5NFGEw7XdiCcepqgh bxzMCnY1zJSvfbFWeKu6OZ3VtXNVghjJ90YVAdLos+kJJ+tglTpR8TR1e tNdL+toGhyqDkdRxi+mMfpPDqU0kPSGaaLKUudkdzB+u3Dt2KS9zLfGBN n6TMlXw191mxNomYGND+HsNJeRlMjgoRxrgkT84kQ+oA1mrfqNP1Si5My 5o3f9AP94281x5HGnKk9N/naJ5JwugcVARyLBByUR8O390wolqlwNMHVp zwridof58clIFvK88nJ8qb2Mr2U2eDhW/In1oxsNQEy8pqpFO8o8f083A Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10780"; a="357363142" X-IronPort-AV: E=Sophos;i="6.01,228,1684825200"; d="scan'208";a="357363142" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jul 2023 23:37:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10780"; a="849507500" X-IronPort-AV: E=Sophos;i="6.01,228,1684825200"; d="scan'208";a="849507500" Received: from pgli4316.png.intel.com ([172.30.235.139]) by orsmga004.jf.intel.com with ESMTP; 23 Jul 2023 23:37:11 -0700 From: adrian.ho.yin.ng@intel.com To: gregkh@linuxfoundation.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, Thinh.Nguyen@synopsys.com, p.zabel@pengutronix.de Cc: adrian.ho.yin.ng@intel.com Subject: [PATCH v2 2/2] usb: dwc3: of-simple: Add compatible string for Intel Agilex5 platform Date: Mon, 24 Jul 2023 14:37:09 +0800 Message-Id: <42ae4193a9f1383fae49ae84917c7cf1d1d1bbd9.1690179693.git.adrian.ho.yin.ng@intel.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: References: MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org From: Adrian Ng Ho Yin Add compatible string to use this generic glue layer to support Intel Agilex5 dwc3 controller. Signed-off-by: Adrian Ng Ho Yin --- drivers/usb/dwc3/dwc3-of-simple.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/dwc3/dwc3-of-simple.c b/drivers/usb/dwc3/dwc3-of-simple.c index 7e6ad8fe61a5..3c4640a7e663 100644 --- a/drivers/usb/dwc3/dwc3-of-simple.c +++ b/drivers/usb/dwc3/dwc3-of-simple.c @@ -175,6 +175,7 @@ static const struct of_device_id of_dwc3_simple_match[] = { { .compatible = "allwinner,sun50i-h6-dwc3" }, { .compatible = "hisilicon,hi3670-dwc3" }, { .compatible = "intel,keembay-dwc3" }, + { .compatible = "intel,agilex5-dwc3" }, { /* Sentinel */ } }; MODULE_DEVICE_TABLE(of, of_dwc3_simple_match);