Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2992099rwl; Mon, 27 Mar 2023 07:57:04 -0700 (PDT) X-Google-Smtp-Source: AKy350ZeMswuTLIeurFXR3VpIC1NepoDT4ZK6GkQ5rjRqhb9kB+gmCi4lL7B88GX9LtlvA5BeOcg X-Received: by 2002:a17:907:c209:b0:8de:502e:2061 with SMTP id ti9-20020a170907c20900b008de502e2061mr12639160ejc.3.1679929024545; Mon, 27 Mar 2023 07:57:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1679929024; cv=pass; d=google.com; s=arc-20160816; b=UgeAW7QmuhCuLpDKpgKssJBJUb1rzUFfWDKrkrbwBUNgXbQ4X9dsg2YdlPiZkkzs9/ kNwjyCHWbhxtfTDWC7Hrc8LFUyzD2nzB06g0uwVQXfrOSzhmPkJDGsvZ6G/D7n+KEgEz WQ+0bg/k0fIcYdiPTbuqXRd4/RPefU+RwjCYfBZK11UD91tZcLKsrhiUZsQYfcnlqFTM Ikyxpz6gnhxdaPTRmcnjlNGBOWeu0xixp/0Xwp8J5925xDJs7qp4PPZJS/eJazC6RJYL DsCb4+aoPKBWaD9RAq3L3W1Obvsf7vRuc5x9JyB5QEA0zxtPSLCpIcmEZTgPR5HMMfIi r/hQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=oCC3DNRdxmiAd2kKJgEzjXS5A9ITCtgBzH7CLjCoLFw=; b=bI0p4YCKNOvTXGc+gm8MVg6ezQDyA+kyJh1klG3I10Pj/cU2u7CVA9JQ36gJl/D2yP RDew4jjox174hkTzqNOAIiO9SGVG3YIXVYw2v1TCVdApGeR4AJHEJ915pSsYea6vkcjQ RYqs2uOAiiG5oZZgbUFxgpJ01NtZ5yTNIUX5p4K8w8vsDBpgDug9V0VIwnX4YRAl3xYD 0qVx0E7ewjfV1FfAzkGGeebQnm4zP67S3GFGvEHfg297wysLPuUq4NcktkJMmfptaNHs +LwfeyZl2uel0J6K7EwApIpUCOczxihq0eEPqvDK7Bg2tp0WPsk7ofyYrOBSiBhriYZ2 1FeQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=rwhbiqYe; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id xo17-20020a170907bb9100b00931ebd43e82si23379865ejc.628.2023.03.27.07.56.39; Mon, 27 Mar 2023 07:57:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=rwhbiqYe; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232883AbjC0Ozz (ORCPT + 99 others); Mon, 27 Mar 2023 10:55:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232787AbjC0Ozv (ORCPT ); Mon, 27 Mar 2023 10:55:51 -0400 Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on2073.outbound.protection.outlook.com [40.107.15.73]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 182DD1718; Mon, 27 Mar 2023 07:55:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oSSwLne1fXTUSot7j4zsnuJQFzeYjDPOIDipBv/gMoqhOUoQzgYHDgZh9/ulJB369n9qhdQPndQxjuuztgtJG5VAmOQMIIxB09MFA/NYz2mhkNGwAFOwTGbcMwCMHTKxL/gE1TKU1VpOfBcw0AF3EDM/KTKqCfsc40D3qBB5L6tEMGnqKHGCkrT+A1YRwDz0WdKrkBuL1n2XHcd7FPjuKdwPljwibs+6JzIcp6Hw/4erFMV1dZEY+wXd986l0S6/j/9dVnrfibpFnQREBD6r0Y4TM3+FFWa7Uw7fDCnNot8pltTiQnbjgxXF1h7BxzY91TwHjUt6cvdpgqdG1hG2vA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=oCC3DNRdxmiAd2kKJgEzjXS5A9ITCtgBzH7CLjCoLFw=; b=QtsHq8q7mYKVyE/GIz3CM8ySFeJzPLbNkz065qBve3sBy3uuzQDRtp9PvgXVfQ8j+0Ti2jHf7oSkS5DwWLyuLyAP6lIHuav8pHPW+2sOiXEuwsYPuBlDsZqedsnT8edKx3IWAmI5fRdXxE9+cnHTNCs12zzlY2ChhTKsQtxK2xVyHtrgBT4IXdr7y3GWQBESPhopKFwvKMsGBJ8cNGFfRIbneUqQavdcsfa72R8yKGq1IYAwEFZaaFImdXlxo5IpvuKX+5FpnV8WF0wq2OSdfzpZoEK8+Vfa+tG+Mk+U2AQHe+mBhGucK0nE/qndiZFzD9tfhLgX4s4lP/wcaQfB4A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=oCC3DNRdxmiAd2kKJgEzjXS5A9ITCtgBzH7CLjCoLFw=; b=rwhbiqYe77a74IeOVJ8+NPAp2w7OqF+ASqSAOihLHvg6ZZ2EmNlujQYBAYl2dMlGMUh66uO309TBp1kaUcuQ9nqK8cpYgdNptbX8nxrkXxboyHnA+11JN7DqHJLyhRcmmNfs4rPrLqKh8wrBAPl2LE00B5Bu/kw/dMwKOeG+hg4= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM6PR04MB4838.eurprd04.prod.outlook.com (2603:10a6:20b:4::16) by PAXPR04MB8640.eurprd04.prod.outlook.com (2603:10a6:102:21f::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6222.30; Mon, 27 Mar 2023 14:55:45 +0000 Received: from AM6PR04MB4838.eurprd04.prod.outlook.com ([fe80::fb2a:a683:b78e:b9b5]) by AM6PR04MB4838.eurprd04.prod.outlook.com ([fe80::fb2a:a683:b78e:b9b5%4]) with mapi id 15.20.6222.029; Mon, 27 Mar 2023 14:55:45 +0000 From: Frank Li To: frank.li@nxp.com Cc: devicetree@vger.kernel.org, festevam@gmail.com, imx@lists.linux.dev, kernel@pengutronix.de, krzysztof.kozlowski+dt@linaro.org, krzysztof.kozlowski@linaro.org, linux-arm-kernel@lists.infradead.org, linux-imx@nxp.com, linux-kernel@vger.kernel.org, robh+dt@kernel.org, s.hauer@pengutronix.de, shawnguo@kernel.org Subject: [PATCH v5 1/3] dt-bindings: usb: cdns-imx8qm: add imx8qm cdns3 glue layer Date: Mon, 27 Mar 2023 10:55:21 -0400 Message-Id: <20230327145523.3121810-2-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230327145523.3121810-1-Frank.Li@nxp.com> References: <20230327145523.3121810-1-Frank.Li@nxp.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SJ0PR13CA0066.namprd13.prod.outlook.com (2603:10b6:a03:2c4::11) To AM6PR04MB4838.eurprd04.prod.outlook.com (2603:10a6:20b:4::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB4838:EE_|PAXPR04MB8640:EE_ X-MS-Office365-Filtering-Correlation-Id: 9b491f2d-4c4c-4bcb-1b94-08db2ed3582d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: QkaVNI+e8Mten92bW954F1KJRfedKFrkFGoMDYtAfK7Py2E0SDQBmFaO2viwL0s/MCX+iwVEk0md8QV/4N2NBXLuoyXliJiRKpwXOIMaWOPQBCJctODl1wpGP6zBWk+YxZCuL88/qlhX+uE4GPnG+mnjEHetZUnbNTHp1KEAPQmeswkoedbW3EygzmUuBGem6ibNvCXoUAaVYfwxIDozoAbQFSJzGExp1HmLrMAsBVXiPZmBTsil6QgPkd1EImmLHe8uaIbysqFCGihw47gStaHy3UPSUKpb9bEOZ8cUkghAAhLHoMMirYVihad1+5UI1nV+5ji0ePRMVDiaFjIlZgG8sRMXyF8JYCdOkE51HmJ7tkJkZdnTFiGgtKsG7mx89rUSe13NwkMqexyNZZo2U/o/mXVVA2mjge/tFEhlaKH3/l9eimbFBKawv0HcanHbKbPRHa69pLvBRyMsq9Lm3RGDSll4oHoktJZSYVt+nLPQTbrrisc7hguqb4MCdNIXb0zFdYqOi5skGvq4xNaUJGu3jlO7jbGeqSps9RILLqHiAlqwve/OXwc350mMO7QWy1uEtbG5cjzMtYf7+jMayTnFm9t+R01eVcCFM20BywBOEa6V1quYgoncjWYhv2zdl3kpSbf2SGKYW1ipx3qQevOc9uJulrz2Jst8tZwAnkw= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR04MB4838.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(396003)(136003)(366004)(376002)(39860400002)(346002)(451199021)(36756003)(86362001)(6512007)(6506007)(1076003)(26005)(186003)(2616005)(83380400001)(7416002)(8936002)(34206002)(6666004)(966005)(5660300002)(41300700001)(6486002)(52116002)(4326008)(38350700002)(2906002)(38100700002)(37006003)(316002)(66556008)(8676002)(66946007)(66476007)(478600001)(32563001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?hMF/lmwC5aXI5oiWyVfN+4pdAmFXtGDOUfbtjMMtfPzAhMb6rG7vAPSqzYnE?= =?us-ascii?Q?TerrvR1tQ3UvB9jYxgp79hM3ubh5aMZuP5JIDXi5SKEXbghcSj5YpvT+aZNx?= =?us-ascii?Q?3W6NlzXWJvfZu4whqarqEDrCoPud3eSJM9uLwoptaSwM+KiPGmfhGjWR1sE1?= =?us-ascii?Q?XkNelSCcAFPR4XmoLkfioSejxyyNCoUpOKNdwYEynwJOSkOA/2BVtyxsJaw7?= =?us-ascii?Q?xefrAKYmNTzn3MRUiTOrREz6IUyaB5/1CfyGX/xmjHzy7a0zI+tIHjdo/XCn?= =?us-ascii?Q?8zianKnYk5KhpvDgde0MzgMV0wP3l9RHib3zjY8d0U4+D9zpH3vDF8cE6ctk?= =?us-ascii?Q?xogXRZeV4tcksIziQJ58X8ztnwOxIlPJmuo6gbzrUt2QmzEyWZt2GFkxGhRr?= =?us-ascii?Q?sxpOSuIb4oWk5WyWhzZEdNyTts3Wc+pqjsT6zR6je5eeCKzm4AHSY6O7Z3og?= =?us-ascii?Q?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z9ZFFpEOP5N6spoVuhMLKK8Ypp/veH?= =?us-ascii?Q?Z1+O0gQgMROKI6D82eJKDSN1XiQzNYYJHmellUzGbr8XdwEbgj+KTaJBoHSL?= =?us-ascii?Q?YlrX8jDdiGl8uiNiZwuKS8rjWniJjqSNh9ShGeE8Lk+OprS7ljAltHKpP9A3?= =?us-ascii?Q?gfPdrG4I6iZEThNcsm6gRDjEFxfR6/jRQh/Y5NezhtFL7+WJip/6Q2Lx6G1Y?= =?us-ascii?Q?efYOPC6djXmiiGKYrOb3X+/5WlgerYXkzn/2UaqJ?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9b491f2d-4c4c-4bcb-1b94-08db2ed3582d X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB4838.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Mar 2023 14:55:45.7145 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: QPM/bnbrGO/BtKtIpq/cHlx109z+Wg4G+U4ABo9bsbrVW/SojorQcUaSQSzafF+/aKn5bQ+qezp49KHwFoSCuA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8640 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org NXP imx8qm integrates 1 cdns3 IP. This is glue layer device bindings. Signed-off-by: Frank Li Reviewed-by: Krzysztof Kozlowski --- Change from v4 to v5 - Use shorter clock name according to rob's comments Change from v3 to v4 - Drop all clock-assign Change from v2 to v3 - Drop two fixed frequency clocks, it is system reset value, no need set now. If need, futher work/discuss on driver or dts change. It will not block this basic enablement work. - Drop lable - Drop some descriptions - Reg as second property. Change from v1 to v2. - new add binding doc .../bindings/usb/fsl,imx8qm-cdns3.yaml | 103 ++++++++++++++++++ 1 file changed, 103 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/fsl,imx8qm-cdns3.yaml diff --git a/Documentation/devicetree/bindings/usb/fsl,imx8qm-cdns3.yaml b/Documentation/devicetree/bindings/usb/fsl,imx8qm-cdns3.yaml new file mode 100644 index 000000000000..ceb76394af60 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/fsl,imx8qm-cdns3.yaml @@ -0,0 +1,103 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright (c) 2020 NXP +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/fsl,imx8qm-cdns3.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP iMX8QM Soc USB Controller + +maintainers: + - Frank Li + +properties: + compatible: + const: fsl,imx8qm-usb3 + + reg: + items: + - description: Register set for iMX USB3 Platform Control + + "#address-cells": + enum: [ 1, 2 ] + + "#size-cells": + enum: [ 1, 2 ] + + ranges: true + + clocks: + items: + - description: Standby clock. Used during ultra low power states. + - description: USB bus clock for usb3 controller. + - description: AXI clock for AXI interface. + - description: ipg clock for register access. + - description: Core clock for usb3 controller. + + clock-names: + items: + - const: lpm + - const: bus + - const: aclk + - const: ipg + - const: core + + power-domains: + maxItems: 1 + +# Required child node: + +patternProperties: + "^usb@[0-9a-f]+$": + $ref: cdns,usb3.yaml# + +required: + - compatible + - reg + - "#address-cells" + - "#size-cells" + - ranges + - clocks + - clock-names + - power-domains + +additionalProperties: false + +examples: + - | + #include + #include + #include + + usb@5b110000 { + compatible = "fsl,imx8qm-usb3"; + reg = <0x5b110000 0x10000>; + ranges; + clocks = <&usb3_lpcg IMX_LPCG_CLK_1>, + <&usb3_lpcg IMX_LPCG_CLK_0>, + <&usb3_lpcg IMX_LPCG_CLK_7>, + <&usb3_lpcg IMX_LPCG_CLK_4>, + <&usb3_lpcg IMX_LPCG_CLK_5>; + clock-names = "lpm", "bus", "aclk", "ipg", "core"; + assigned-clocks = <&clk IMX_SC_R_USB_2 IMX_SC_PM_CLK_MST_BUS>; + assigned-clock-rates = <250000000>; + power-domains = <&pd IMX_SC_R_USB_2>; + #address-cells = <1>; + #size-cells = <1>; + + usb@5b120000 { + compatible = "cdns,usb3"; + reg = <0x5b120000 0x10000>, /* memory area for OTG/DRD registers */ + <0x5b130000 0x10000>, /* memory area for HOST registers */ + <0x5b140000 0x10000>; /* memory area for DEVICE registers */ + reg-names = "otg", "xhci", "dev"; + interrupt-parent = <&gic>; + interrupts = , + , + , + ; + interrupt-names = "host", "peripheral", "otg", "wakeup"; + phys = <&usb3_phy>; + phy-names = "cdns3,usb3-phy"; + }; + }; -- 2.34.1