From patchwork Thu Mar 16 21:27:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 664139 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 03F40C74A5B for ; Thu, 16 Mar 2023 21:27:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229832AbjCPV1m (ORCPT ); Thu, 16 Mar 2023 17:27:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230034AbjCPV1k (ORCPT ); Thu, 16 Mar 2023 17:27:40 -0400 Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on2045.outbound.protection.outlook.com [40.107.15.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4024E4843; Thu, 16 Mar 2023 14:27:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HsfBinqAlZ7NawIQien9lGTDmgxdKXsU9TjVs86S57GvXewOQNvXRsuKoUzQRRugtIWisRwYTXjVBzFAhBlIqY83fFgeA1VdSqpt04okZzf2HEcyKAJRXktsFw1S7eOgOhO3sTqlO/tWeESDLHiWsLqEKn8mzdqTejH0M9Do4krSzsX+fg4YALZm30TwhJq4ANDWuzIEuI5BvgSuduUAxUH3NRK5ZklUZmYXaxAXO/RVEpEdGcEsZAHCivx+cbCESR6Pc6JgtcZ7pkR3JBi3Ga2IBysR48IhVms45LU91VJMfg7Uw1b7f/OZHCue+SYn49XcxNwVylc6QAtaupazug== 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=OFf39BcNOiXEhr+wtmDf26hk+HdCfvJxHhh0q1gmlAg=; b=Ooa1K41noiX6sB6MblfGOEe4th8wIbDR7yBfIK1N7K3HdFAEv3x9XLDVFak1JbVYH7nOJT2jFqP8VQdCXqFw6ZoqNP75jTzJzA/v7lGC8/eSB3Gy236sePLw10xDcp1Mu7RxGwlHM7JYeFDgZCjjgYpqDC7NQoNkQm2OvSMaNw0ppXJ6rrkfmLM4A8liY/ixDxUtCx1AOJzFZSYfeHv1gwp4bFhXuueVFyAnSVJFuN4mAsB0qvRJj8Vzr8paBxq3iAqSB2aORmsxsf5yhHXuHxqmarQMNx0N6u8PJKqYi+XkZ+BnY9fsPV8Ti53TSvhMfrzLgLDjOIMQ8IzqjcfS3g== 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=OFf39BcNOiXEhr+wtmDf26hk+HdCfvJxHhh0q1gmlAg=; b=GHWNsX3nsLNS8SgNKdhd6x/hAvzSwq7MiW2+FdybBM5RnsB5mMHI2ynPlpOSje7ltXrEWaBegCUzwka/EcNURsc852yxlNVZPAQ4uhosTaBh2lmJJaopm331CgJr1q8hJmf0C+4YAg4IsqedmlfTLQEEV5CMXJU/V508Nrn2GEU= 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 PA4PR04MB7614.eurprd04.prod.outlook.com (2603:10a6:102:ea::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.35; Thu, 16 Mar 2023 21:27:33 +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.6178.029; Thu, 16 Mar 2023 21:27:33 +0000 From: Frank Li To: shawnguo@kernel.org Cc: Frank.Li@nxp.com, devicetree@vger.kernel.org, festevam@gmail.com, imx@lists.linux.dev, kernel@pengutronix.de, krzysztof.kozlowski+dt@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 Subject: [PATCH v2 1/3] dt-bindings: usb: cdns-imx8qm: add imx8qm cdns3 glue bindings Date: Thu, 16 Mar 2023 17:27:09 -0400 Message-Id: <20230316212712.2426542-2-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230316212712.2426542-1-Frank.Li@nxp.com> References: <20230316212712.2426542-1-Frank.Li@nxp.com> X-ClientProxiedBy: SJ0PR05CA0035.namprd05.prod.outlook.com (2603:10b6:a03:33f::10) To AM6PR04MB4838.eurprd04.prod.outlook.com (2603:10a6:20b:4::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB4838:EE_|PA4PR04MB7614:EE_ X-MS-Office365-Filtering-Correlation-Id: 80de4249-2fd3-440e-0cac-08db26654164 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: P2/fodr4UZPSWQIFidS7ZM0KvlL9t56jbx3pPiQkIdnnaQMr7GwhcgRwomaBkuW4Kn45PLFs8gouGzCf4Mh2sICx9XBArw0aj10YIUg0aQzZpizAHh6eu+Bjvi/gyZeeqJk2Nz/s4TSv9yrd02nqmcverPa04xtqStKj42tYSKtCICKfxruXw4pekJraxSpOImr6ZuJ2zB9o3NlafXkXfLy8KqanqOKV+EmyICccv+6hKD0IWqs92UKNyhArNFO3RarDv03lg+5Q3vj/bkB1cAOoUmaic4UptAEp2FIezq0qYDHbxb0KPtWmDu9aDRNjPC3nBMjacGNGie96hJf3WSf5/HucQHqJXaT7JdaihVVjptNH4a3W9T/54UF+v/EC/pvYuwa0HB5sR84D3WPwJepulSdUQR82tgKBz9dKRZhWDwanbdfryLN1uK56VXKYzYD4prdMVjsbDXYSlBeAWHM2Hz8/r7zGJidCbuijF+c/j/Omb5E/HUBrPQN7ABvjY6lDwoQuodKAfo3PueKwELAMMIzQWEuHr9buEBWQ+0UOswi50uDjUbh5cm2yUfHgfWGDZsGMnyAZVwrnjpclGKM6Xf6YkxiV117W5aJrXi3Jtj3+fNauT1+28vgdR4/OOjZO5xSWRli/3lsUIebiqrvXJJpM7qDcMbhk3z4aSihHl3teRfx/9bzTwzqnR0flQD1FLLBbEBsKllgwBUPDdemGhJDTfBzBHHiX422gPrv4WDtIExEql7fQ+2QD8lSE 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:(13230025)(4636009)(346002)(396003)(39860400002)(366004)(136003)(376002)(451199018)(316002)(38350700002)(38100700002)(2906002)(478600001)(36756003)(8936002)(5660300002)(41300700001)(66946007)(66556008)(66476007)(8676002)(6916009)(4326008)(7416002)(83380400001)(86362001)(186003)(52116002)(26005)(1076003)(6506007)(6512007)(2616005)(6666004)(966005)(6486002)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: LaD9o0IhSTyH00SJktWuQ+HX0B8frWdvU1NlXwI5Ix+eYQ0mKCUPn4QaKfoiSiLea97tvIOxpi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RjD5JQC2TnfUmtEy8gQBYQW+5LYllrTOj2DgzMIbItN1cKW8YT7pqf7vabstUNFL0f8HJf/sOOtl3qcdnIOYv/a5kTpNOZc5rxluRwg8m314YDDAiIhffOFj0B7S074b0NOYWdvNQo3yQXr1BtgzfkSVFknqhqpeyBKm5z0L+ZRkhO7FTfsa6oTACfnGLnwvfu0PTUV4qKu5BEO28ap6x7o1HDU8Mr4UK3QSupalDBe/z4Z8KMr0kRtVEfdhwbAJ/E/vww4NC6pMUzbnDmJcziikkg1F3LIXUzV2T16ksnmPr/QpYOVH74VNjtNYis5yExlXlYESdHMJNPZCWJW6oOzW9JjTCZQJ69RjhwJ6hQM7fpxm28ksiAjpJ5T5Zf9pgHHLrtVyGFD2gYcisfhFOx/TINTStaBT6JzK7ihUfNiEgOQ+S7CCbhQnRw X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 80de4249-2fd3-440e-0cac-08db26654164 X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB4838.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Mar 2023 21:27:33.5247 (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: ChhoOKnV4QFyDv9RzPyP8aqdOfJHpVzCd6zMlWWQFSWNyk2iIUe6gu/Og6jXaAkPB1WdTQu7PsknMrsNTaagbw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB7614 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org NXP imx8qm integrates 1 cdns3 IP. This is glue layer device bindings. Signed-off-by: Frank Li --- .../bindings/usb/fsl,imx8qm-cdns3.yaml | 122 ++++++++++++++++++ 1 file changed, 122 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..fc24df1e4483 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/fsl,imx8qm-cdns3.yaml @@ -0,0 +1,122 @@ +# 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: Address and length of the register set for iMX USB3 Platform Control + + "#address-cells": + enum: [ 1, 2 ] + + "#size-cells": + enum: [ 1, 2 ] + + ranges: true + + clocks: + description: + A list of phandle and clock-specifier pairs for the clocks + listed in clock-names. + 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: usb3_lpm_clk + - const: usb3_bus_clk + - const: usb3_aclk + - const: usb3_ipg_clk + - const: usb3_core_pclk + + assigned-clocks: + items: + - description: Phandle and clock specifier of IMX_SC_PM_CLK_PER. + - description: Phandle and clock specifoer of IMX_SC_PM_CLK_MISC. + - description: Phandle and clock specifoer of IMX_SC_PM_CLK_MST_BUS. + + assigned-clock-rates: + items: + - description: Must be 125 Mhz. + - description: Must be 12 Mhz. + - description: Must be 250 Mhz. + + 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 + + usbotg3: usb@5b110000 { + compatible = "fsl,imx8qm-usb3"; + ranges; + reg = <0x5b110000 0x10000>; + 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 = "usb3_lpm_clk", "usb3_bus_clk", "usb3_aclk", + "usb3_ipg_clk", "usb3_core_pclk"; + assigned-clocks = <&clk IMX_SC_R_USB_2 IMX_SC_PM_CLK_PER>, + <&clk IMX_SC_R_USB_2 IMX_SC_PM_CLK_MISC>, + <&clk IMX_SC_R_USB_2 IMX_SC_PM_CLK_MST_BUS>; + assigned-clock-rates = <125000000>, <12000000>, <250000000>; + power-domains = <&pd IMX_SC_R_USB_2>; + #address-cells = <1>; + #size-cells = <1>; + status = "disabled"; + + usbotg3_cdns3: usb@5b120000 { + compatible = "cdns,usb3"; + interrupt-parent = <&gic>; + interrupts = , + , + , + ; + interrupt-names = "host", "peripheral", "otg", "wakeup"; + 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"; + phys = <&usb3_phy>; + phy-names = "cdns3,usb3-phy"; + }; + }; From patchwork Thu Mar 16 21:27:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 664138 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 01A23C6FD1F for ; Thu, 16 Mar 2023 21:28:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229838AbjCPV17 (ORCPT ); Thu, 16 Mar 2023 17:27:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53634 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230079AbjCPV14 (ORCPT ); Thu, 16 Mar 2023 17:27:56 -0400 Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2047.outbound.protection.outlook.com [40.107.105.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D12B4E5024; Thu, 16 Mar 2023 14:27:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=E2rIxPHFEMzHYRVmaSRhmmTGGQqtp9D84ypeAVA07HGJIK6iG8eogaNTN5igICRmlWnZPu3T3bg5YoRRMqf0UqbqD/OFDi/1uYeYdN5AMRXZ6CkvAj/yb/cIeHn82XCKmxmUVgWG2BqrDcnd6C2tehEzRIE5QRlZBreLwoH8esWKbIYDudwK95zsACu1cwo13KETVHyVUxcZIA3DyAbMJjDDt6gNdEBmMCeGupRff/yS1grXJlF5d3uQVNV37KKW8TJpr9dbclg2KszwlG44lEOxp/CGjMCVFiboCfZOlDLfWobf502bFL2BCRkO0ZQI7Tlq9tGroHaAEw4c7kUO6w== 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=u7o9y1Z5tDig9CwgQlfGYEvKmYlwQtYljplWQC01wCU=; b=CtmuUFC1N/5qo7+M9LxEUgnOeC3Sm4Ph3g7b5c70aY0oDj9ntZPtLmPxCozfVv659TkHl7n/z7pjUTZL5optpuAoZ+x8+83bSQ0/VDWwUtsRTkMHZF8bK1+VW7Kj/bk+gpKLx5d4jba2zoBm1X9et+HvlQOQnxPXH42DU5yiHzEsBpkTNzPWrMFe/ou0PkQ54wBaH5j4TOYO3KHjpwv6hywkT0FT/yUdJfyVD5VzWhafQE3zyOqgSFCJ2qQK+TYiVURlFmFYsLrgHxFKYshNECHqDp4mV8a4vUM7lIIxb94X50cGkMCltk7ZZdd3uMsWlbh9pLrU0VchwXQ5r3dakA== 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=u7o9y1Z5tDig9CwgQlfGYEvKmYlwQtYljplWQC01wCU=; b=fiTsEHgP3lVf5nu/eJZQFgGzcaHSaxJCe3SyyYykHseR2gd5oY4W6ViYQTZkGgH+KbYBTILcymsTdbxyw7q9Do/S6OnQDmFtyMj3D4xeZBQDu3ata1bzyIYO9NKvIaFFVVUQews1euq9JW+F6s9mL8tKRECpi737oXg2bPuIb58= 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 AM8PR04MB7332.eurprd04.prod.outlook.com (2603:10a6:20b:1db::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.35; Thu, 16 Mar 2023 21:27:39 +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.6178.029; Thu, 16 Mar 2023 21:27:39 +0000 From: Frank Li To: shawnguo@kernel.org Cc: Frank.Li@nxp.com, devicetree@vger.kernel.org, festevam@gmail.com, imx@lists.linux.dev, kernel@pengutronix.de, krzysztof.kozlowski+dt@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 Subject: [PATCH v2 3/3] arm64: dts: freescale: imx8qxp-mek: enable cadence usb3 Date: Thu, 16 Mar 2023 17:27:11 -0400 Message-Id: <20230316212712.2426542-4-Frank.Li@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230316212712.2426542-1-Frank.Li@nxp.com> References: <20230316212712.2426542-1-Frank.Li@nxp.com> X-ClientProxiedBy: SJ0PR05CA0035.namprd05.prod.outlook.com (2603:10b6:a03:33f::10) To AM6PR04MB4838.eurprd04.prod.outlook.com (2603:10a6:20b:4::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB4838:EE_|AM8PR04MB7332:EE_ X-MS-Office365-Filtering-Correlation-Id: ff2ea676-ebae-48d2-a77c-08db2665451d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qTeXzOBFeyAC0EzEsG6HqC0zIE0JwcGYUMd86EAp7/QNtUcB2eZW8tUXcU9f54B5WbduPZauoS2/H3cbhapEIrDrdC4ht5wnqt30utS5NQgJ9+uMo+vxqNHiQBTedTjppyfa0V91ZLMGkFJ0KEpxvuJ5K88YVPSzU8CAXKt1s7/AU1mqTugXkVgSp/EaLBfST3SP2u+iKndnjhappyZSd/ZEADB4wtdxDhJwVUUnudofpASDQvTRGQ1fLi8DhJ1BuCtjGhHLo4wEW0JGO1XsNp0SzDfg7zQiFsWP+68Glmjh35L3qPucHx0Dii7tJHJwEouGwvR7OvUN7DbFQXbtQPxNlgbrgmdVdEWxmXioBM4oYkjlMcg9PXSrVe+0N0KpXD4+ikCgINPIN2qXB/YPphRGuTWM2RK5Kk9aawTMbq7mA5vqTQoDvbQ2xcaaZxPUhqLAyXNgIgYpG/NhnRGeZzdLwWnHsMRJjJJ7guTKNdPsZYFnB8gXlsiYYkAQI2OgH6JsMt/ReLzOGtJ189E7hCbw8egQZmfZvCEL3lD6dWj1cRZFdRjLNwwNplH9X6qxHX5XWHWZv7SkhaIXTgr2dY7pYF+/SqKLjGq4ajRtBprUcTnX3drOJiz9zlTLMJHVq9/AHdkwZ04VhHyBlZOxKwBTe0ferfKR97TVQYDALtI26rvA2/YGFwHitLodqccrcMSbnh0b+mA3nrzaxPzBsXEZIZqP3+nVBPreDYMnRnSPlkgFia9xnQnWR6wQdcqj 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:(13230025)(4636009)(346002)(136003)(39860400002)(396003)(366004)(376002)(451199018)(38100700002)(38350700002)(86362001)(36756003)(2906002)(41300700001)(7416002)(8936002)(5660300002)(4326008)(6506007)(6512007)(1076003)(26005)(186003)(2616005)(316002)(8676002)(6916009)(66476007)(66556008)(66946007)(6486002)(6666004)(478600001)(52116002)(32563001)(473944003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 0W0xtir7ijH4v9ocahKs7ZOKMVhRHxLm4z7VNWlfKXp3Ke/5zCNhKuE1UeuvA0e4fsVqbWM6zoiEEp0TPF/ARwBLT9AuPfbPQMR2fMplqXrHXe5lRL9z5fuoxpceTJOVxRBWN3PR9cpvq/O+77eoPj80tzUSBxB3+IE3WPH0qniKMUyhbUIaNYYLhCNYBWHbvfoCoEa30zjboO76nwi2xMPNg7/hIQdN/wPI3gUGU2IegzBG+a4Rj9eoseMxNF1meizyuxL0UNBx6tN5RLA4NEFRFQxPQLizsIRnlxYk6hZIvs++f295rqhguIWclJDo55nNZBhMzAGpDTeXzOuXmwDTKzRvqNuEnhMUdN9eM6af+HrPX0VjrpwqKHgSdQOg1Fc3p5RP9DktzP+ooM4vA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GmkQQxTA7BiOnTuQxY24jWXN/+3e+6X0L+TaV4LAHofx/dBJhjd5zzRs2ixZahw3lXZ8ZrK7wSbZjNmNZEA4pdqwB0+z6xqQOg0vRtt4BCF4MBoQJExi0pBtSoHPi+8qLD3ow X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ff2ea676-ebae-48d2-a77c-08db2665451d X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB4838.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Mar 2023 21:27:39.7587 (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: qLxwHQsf1EUA2F5Oy1xiTyMjq9crnpXfKcEN1esMQ7W42qdongY1lIrs1kANEJsG0ixWpKOIsyzmJMtN2VFVrA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR04MB7332 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Enable USB3 controller, phy and typec related nodes. Signed-off-by: Frank Li --- arch/arm64/boot/dts/freescale/imx8qxp-mek.dts | 85 +++++++++++++++++++ 1 file changed, 85 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts b/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts index afa883389456..9ba4c72f0006 100644 --- a/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts +++ b/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts @@ -6,6 +6,7 @@ /dts-v1/; #include "imx8qxp.dtsi" +#include / { model = "Freescale i.MX8QXP MEK"; @@ -28,6 +29,21 @@ reg_usdhc2_vmmc: usdhc2-vmmc { gpio = <&lsio_gpio4 19 GPIO_ACTIVE_HIGH>; enable-active-high; }; + + gpio-sbu-mux { + compatible = "gpio-sbu-mux"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_typec_mux>; + select-gpios = <&lsio_gpio5 9 GPIO_ACTIVE_HIGH>; + enable-gpios = <&pca9557_a 7 GPIO_ACTIVE_LOW>; + orientation-switch; + + port { + usb3_data_ss: endpoint { + remote-endpoint = <&typec_con_ss>; + }; + }; + }; }; &dsp { @@ -127,6 +143,42 @@ light-sensor@44 { }; }; }; + + ptn5110: tcpc@50 { + compatible = "nxp,ptn5110"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_typec>; + reg = <0x50>; + interrupt-parent = <&lsio_gpio1>; + interrupts = <3 IRQ_TYPE_LEVEL_LOW>; + + port { + typec_dr_sw: endpoint { + remote-endpoint = <&usb3_drd_sw>; + }; + }; + + usb_con1: connector { + compatible = "usb-c-connector"; + label = "USB-C"; + power-role = "source"; + data-role = "dual"; + source-pdos = ; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@1 { + reg = <1>; + typec_con_ss: endpoint { + remote-endpoint = <&usb3_data_ss>; + }; + }; + }; + }; + }; + }; &lpuart0 { @@ -204,6 +256,27 @@ &usdhc2 { status = "okay"; }; +&usb3_phy { + status = "okay"; +}; + +&usbotg3 { + status = "okay"; +}; + +&usbotg3_cdns3 { + dr_mode = "otg"; + usb-role-switch; + status = "okay"; + + port { + usb3_drd_sw: endpoint { + remote-endpoint = <&typec_dr_sw>; + }; + }; +}; + + &vpu { compatible = "nxp,imx8qxp-vpu"; status = "okay"; @@ -267,6 +340,18 @@ IMX8QXP_UART0_TX_ADMA_UART0_TX 0x06000020 >; }; + pinctrl_typec: typecgrp { + fsl,pins = < + IMX8QXP_SPI2_SCK_LSIO_GPIO1_IO03 0x06000021 + >; + }; + + pinctrl_typec_mux: typecmuxgrp { + fsl,pins = < + IMX8QXP_ENET0_REFCLK_125M_25M_LSIO_GPIO5_IO09 0x60 + >; + }; + pinctrl_usdhc1: usdhc1grp { fsl,pins = < IMX8QXP_EMMC0_CLK_CONN_EMMC0_CLK 0x06000041