From patchwork Fri Jul 21 04:30:29 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: 13321310 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 49DB2C0015E for ; Fri, 21 Jul 2023 04:30:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229933AbjGUEak (ORCPT ); Fri, 21 Jul 2023 00:30:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229918AbjGUEai (ORCPT ); Fri, 21 Jul 2023 00:30:38 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BE3C268E; Thu, 20 Jul 2023 21:30:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1689913837; x=1721449837; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=SMSltlRJcUIjE5hv1ouZljf9MkOyep77G+cMeXAgD3Y=; b=lwA4tJyghMlT/qzK+A8s8rYb0sDX7xI26ownYI4aiU7ANTXuO41XALWp OM/shY4NcWh+TYXBCmnsmbPmRzyqihLq7h5pR00cdRrq6tuGmWX5Rq2Tn iKXYFr9MCfxbbNMqBCRs4WRJfagLoEmP49vpP2k8Jy/dOcjM6AT93WyIr 5zuonkAHCRzoFdfTa15LuAzBXEsk7Kd+WnDsPuvoudlC6/DuRYXKrl7hl tleVHvOYWEfuC89Yv/mMfmqMUGNul9nKMt3YG2ZM9kzLsNRKNBP2kVyeL B2uvrDge1Tnz1TRMQkFU5QChVAHrEL1PtVmdi8JavJjstCCC1V1pIHEd5 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10777"; a="364399719" X-IronPort-AV: E=Sophos;i="6.01,220,1684825200"; d="scan'208";a="364399719" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jul 2023 21:30:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10777"; a="848702340" X-IronPort-AV: E=Sophos;i="6.01,220,1684825200"; d="scan'208";a="848702340" Received: from pgli4316.png.intel.com ([172.30.235.139]) by orsmga004.jf.intel.com with ESMTP; 20 Jul 2023 21:30:32 -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 1/2] dt-bindings: usb: Add Intel SoCFPGA USB controller bindings Date: Fri, 21 Jul 2023 12:30:29 +0800 Message-Id: <68037e45970a9ef930c609c002d36863d96b39cc.1689913114.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 | 78 +++++++++++++++++++ 1 file changed, 78 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..dedef70df887 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/intel,socfpga-dwc3.yaml @@ -0,0 +1,78 @@ +# 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: + const: intel,agilex5-dwc3 + + reg: + maxItems: 1 + + clocks: + maxItems: 2 + + ranges: true + + resets: + 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 + #define AGILEX5_USB31_SUSPEND_CLK + #define AGILEX5_USB31_BUS_CLK_EARLY + + usb1@11000000 { + compatible = "intel,agilex5-dwc3"; + reg = <0x11000000 0x100000>; + ranges; + clocks = <&clkmgr AGILEX5_USB31_SUSPEND_CLK>, + <&clkmgr AGILEX5_USB31_BUS_CLK_EARLY>; + 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 Fri Jul 21 04:30:38 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: 13321311 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 383FDC001DE for ; Fri, 21 Jul 2023 04:30:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230034AbjGUEat (ORCPT ); Fri, 21 Jul 2023 00:30:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230058AbjGUEas (ORCPT ); Fri, 21 Jul 2023 00:30:48 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 105C52729; Thu, 20 Jul 2023 21:30:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1689913847; x=1721449847; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=PDgSdWiSS8r/fjBvP7uqjDJKYFldUHLxk6UxZ4dtspo=; b=iIkKq8XkQ+Wm+Kbc1wsRT+nK+3issMT1hBLFebfg8uLLlnjyV7u7jwdJ bu6Hio49zfiod4x/2lF3AAe0/5ToixLHkKjjhwL4i2sP/d3n/FmPCP0Gk H8EQzNEEdRfJgH/QTB/qHtkFSezSHRtKSBmx4JQXvABXaquiYEDaAtnZV FfA8BExsgCB36CvkuDI7PZhdVggcPSRGWLZVvM34AYTH9r1FTZSqZge+Q SUDKKPJ2/XDjryWPz8ipOtRaoTtpUYtxafZuNZaPZ+SZCzc9/3/TjVxo0 XKCjsmb3Uq0RCNMLUMnPsTiI1N2LmFiArdBTWzPqs403da2z5Bi+f4ZxK A==; X-IronPort-AV: E=McAfee;i="6600,9927,10777"; a="364399771" X-IronPort-AV: E=Sophos;i="6.01,220,1684825200"; d="scan'208";a="364399771" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Jul 2023 21:30:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10777"; a="848702401" X-IronPort-AV: E=Sophos;i="6.01,220,1684825200"; d="scan'208";a="848702401" Received: from pgli4316.png.intel.com ([172.30.235.139]) by orsmga004.jf.intel.com with ESMTP; 20 Jul 2023 21:30:44 -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 2/2] usb: dwc3: of-simple: Add compatible string for Intel Agilex5 platform Date: Fri, 21 Jul 2023 12:30:38 +0800 Message-Id: <7771b6c31fba610f5c3f86619daa2504d34c9639.1689913114.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);