From patchwork Wed Jul 10 23:02:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13729831 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E7685C3DA42 for ; Wed, 10 Jul 2024 23:04:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To: In-Reply-To:References:Message-Id:Content-Transfer-Encoding:Content-Type: Subject:Date:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=e2OWyG6x4PTBJIKOHvsthpRWkAtMo3y1ItAo0YN6Dgc=; b=Te+L/av5uV1tngZcaqOC3V9VLk iOKQcpr/x04tlFJTEkeHnGRQC/0Yiv7rjbjUHBcWEVLwOWzY1TuB8KAYJdMd3K3hdzwobBCw1Ouv0 j5ECIoZGHRAKwI50zB31JttMK8Wkch1Sxj1yABXG3CAPQmA7tOktEriBGoEUULSKYw/AVXNpP3BNz 7ULLMI4SiOYhL3hSir5wdkgMuurEP0B4gamQ/sSpHnmoR7QGXTVy1haIrUa++rZoH8uP9mc+dDH9F YDhs/3AWUw5cFJ3afbHhXB/Qei/yX8B138nB6Lzg7S+iAEjZHCrucfKPSiXjtRxsH458PF9fGVLS2 Fdh1jAfw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sRgMH-0000000C1c5-0aII; Wed, 10 Jul 2024 23:04:21 +0000 Received: from mail-westeuropeazlp170100000.outbound.protection.outlook.com ([2a01:111:f403:c201::] helo=AM0PR83CU005.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sRgKv-0000000C0sh-0Joa for linux-arm-kernel@lists.infradead.org; Wed, 10 Jul 2024 23:02:58 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CI/cIuBkZVS5uLKeA+xzKu91gPXEj0NzX36Tzwnyx7CejMjBeeiorOqtrpqejybyVBc6M28IqkrR/gU2t8nOfHf0uvDLpZL5YPuQJBSl9WNkgfesNIg2LTcIYFrADD47vtI5yKy5oNg0R/MLWKv4Hg/+Xw7cuUHBvYpiEBRC/LddSeL+rA449dRf7e1Q28pBMA+MxnwJEWpECo61bbx0mS81fV9PjLulYOF1PDyEu+aZzhyGDBe70SY3FRsZ49q+e62f1W0XBMU7f4G6pP7umkHmxNJK6iIfFw9X7hMO5XEsifjZTjuMZsvjaSI62XaMEkakc9QkhlxkF5hMNEdf3Q== 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=e2OWyG6x4PTBJIKOHvsthpRWkAtMo3y1ItAo0YN6Dgc=; b=jLUv9q1el6kGmA0E3h7ffDkxAaeacCzB2Sb2hm6DJZA0SMbR+ox+2IsjullQVbwyKl3XK/LYdkitl3rNr6eAw0E4mcr7I6iPnuTR1AUfzICQcKd2Wwvlu+p+JQOeGPKrkDLRTtl+NEuWhiiT3K1Y+cVpLki+nWEt2ixqMcut26yxDU5OvlamyGggIZBm2fvNlsSHIsgGjX8IVb+uUGxO5tyeU+uPgs9SfubUPZxFaV5Taq3M1av6eLgwB2SCy/oyzGi2eNbNOOFiMQyumGQvjsRt2CPwhihJ+83U5gKj034hSfE8bMQnKAbLFc0Hyw302daLU1ssChqilGmkyWW3LQ== 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=e2OWyG6x4PTBJIKOHvsthpRWkAtMo3y1ItAo0YN6Dgc=; b=CZLZGW3I8v6p0DAt7FQ4OEZm/sUvZrvCWplLt4Dtklx9K9IZtLX25k6tt46NvdbD8oyX+md1l6+PndUx98l2bGethC3poPHgoUEt31HM+NHhnCOYxt9gpRYymCHiovhBJMLCbNIA5R6bhyHI7AjZNI1tfYU9IDVF1qjQohCMNZA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by GV1PR04MB10751.eurprd04.prod.outlook.com (2603:10a6:150:20d::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7741.35; Wed, 10 Jul 2024 23:02:52 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%2]) with mapi id 15.20.7741.033; Wed, 10 Jul 2024 23:02:52 +0000 From: Frank Li Date: Wed, 10 Jul 2024 19:02:24 -0400 Subject: [PATCH 3/3] arm64: dts: layerscape: move dwc3 usb under glue layer node Message-Id: <20240710-ls-dwc-v1-3-62f8cbed31d7@nxp.com> References: <20240710-ls-dwc-v1-0-62f8cbed31d7@nxp.com> In-Reply-To: <20240710-ls-dwc-v1-0-62f8cbed31d7@nxp.com> To: Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thinh Nguyen , Shawn Guo Cc: linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, imx@lists.linux.dev, Frank Li X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1720652559; l=2194; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=KIaR4KiuqLQ+BWXn1FoPuKby62dlXYXgqiFj7UAupHY=; b=zuB4jrZEFslV5TtndQ0K23pgygpf57RZdg2Nu4KbFIC2w37t5B1+Z6HxyYDbwE2A6Al61X4b1 ohoXcT8mvw1AE8xzrjznaX/jwzMyrKAC249ZYxTQm1zsu8jLwXbPEtr X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BYAPR05CA0092.namprd05.prod.outlook.com (2603:10b6:a03:e0::33) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|GV1PR04MB10751:EE_ X-MS-Office365-Filtering-Correlation-Id: c5e98d81-c276-4b19-5758-08dca1346d6b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|376014|1800799024|7416014|366016|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?HZlro4+6oPdI2tTvyzYslqnwS9n0EgY?= =?utf-8?q?m/lcJpgCKtK5BLUULpwcCQnDnEnHrSDuhE5ozJwIiU79TLlcpvdTrULfc6zenPNSK?= =?utf-8?q?0pU5KCzNVrbeE0GhoGJNttrMNgFrWMN9CxTYTrui8j64VFzYqMls7aR5NOBhrr5ZV?= =?utf-8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l34N+Jpu4KuxNXAzJAlymvAZaPK1wfp36J60FxMMRMyA7zblC9CxzTo1JC1h3+a9c?= =?utf-8?q?YDMNY1VB6JH/dW/WYH3B/8lPZ2IZbU17LCvS8Lb7MOYDx2fXVHA/BEOQTGGMSHJiB?= =?utf-8?q?3zAUXZgFrBsqnSebwybFClJjVJncr7nIk5lq2fzWjXV5cdkHGnSNz5+rENdP96LAy?= =?utf-8?q?dFvjcVD2yOpCo922m9HLi6kws+a3xk+MLkjoFYK1dewx7+xTQ2mMyewgfQHwNe+yr?= =?utf-8?q?rW+OI8W598jRTCIut/mwAkNqC8d2dQy+DBpXgziDXE3DOf2buk7rEupoccXdBbbqJ?= =?utf-8?q?Z3N3u7Npa1/P5dk/7j6T2Su1jZ+cqyxpGw=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(52116014)(376014)(1800799024)(7416014)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?iXjKTLZX4kNoDXM52f2xj9V9cu4x?= =?utf-8?q?PChbPuAAWyTHmIH7ngX10ITXhVQafaFV1FPJ8WmjNQ2Ev379N0R4Wh/i6pyhXaXYX?= =?utf-8?q?MXES9zLJzChmnD9BHf+3teIRelVWBGTOwMmZmBPGPhFkMz50uk6OBp1LyE1lWmpt4?= =?utf-8?q?EPj0PjJGYQ/bVYbxbqoC+MSw3KGmQkl2E1fq/nJKcyrgzfLhJQPnmhA42z2qDTmfg?= =?utf-8?q?9mXQHNeNnX7P3+DTAkD4S/S9uaRZK+3NUxYrXz6RGtc1l/n4XvCYwbiH6kfdxXAtZ?= =?utf-8?q?AEDbwyoYYJwRf+FcPoQz3p0BRQ6cHWr2YDcONabfem1tgjEWRJdux75w5r3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+wg0y/KV459OQtP?= =?utf-8?q?VodMIHVio8v7PIP5i6fFIRf3qiIMwSHl0mVabBmFMvvrL4gjr5tTQXntCfWNt5xs1?= =?utf-8?q?5gtv17/HamHTlALSDwMI7f/cptd1EaLThKDs+mWX4twCZSCRu9adEWeG5xK5m2QMY?= =?utf-8?q?UWN/DCXv76L/vmJmzEpQCox/HBrI7wwtl2RQREe5kkL8yLbmQPeRPUts6o5QvNrBs?= =?utf-8?q?q8CyCBxlw3ilMv7WLefrLfC0kAL1UqCFqkHtBDpRvRzRNLL34FWwMvOT/Q8k+tNxc?= =?utf-8?q?nD+Pq5bjba6k/lAvt2kruQY1Uj5UMPKyq18lFY+YQUc9RqC8GgAgAv8h0zp9r2SGK?= =?utf-8?q?nX8oXq9GUz3T?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c5e98d81-c276-4b19-5758-08dca1346d6b X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jul 2024 23:02:52.6923 (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: XjgVK90WC8YhtxOa85si1zAGGtVT6CXQyGDbwA2aKG2wNU88JxHp7sFAv/1O5CTG8t2ZCZGkJGDmr9glAjV08w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR04MB10751 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240710_160257_189450_1F536991 X-CRM114-Status: GOOD ( 10.69 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org New usb glue layer driver support enable dma-coherent. So put dwc3 usb node under glue layer node and enable dma-coherent. Signed-off-by: Frank Li --- arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 43 ++++++++++++++++---------- 1 file changed, 26 insertions(+), 17 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi index 70b8731029c4e..24b937032480f 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi @@ -615,24 +615,33 @@ gpio3: gpio@2320000 { little-endian; }; - usb0: usb@3100000 { - compatible = "fsl,ls1028a-dwc3", "snps,dwc3"; - reg = <0x0 0x3100000 0x0 0x10000>; - interrupts = ; - snps,dis_rxdet_inp3_quirk; - snps,quirk-frame-length-adjustment = <0x20>; - snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>; - status = "disabled"; - }; + usb { + compatible = "fsl,ls1028a-dwc3"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + + usb0: usb@3100000 { + compatible = "snps,dwc3"; + reg = <0x0 0x3100000 0x0 0x10000>; + interrupts = ; + dma-coherent; + snps,dis_rxdet_inp3_quirk; + snps,quirk-frame-length-adjustment = <0x20>; + snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>; + status = "disabled"; + }; - usb1: usb@3110000 { - compatible = "fsl,ls1028a-dwc3", "snps,dwc3"; - reg = <0x0 0x3110000 0x0 0x10000>; - interrupts = ; - snps,dis_rxdet_inp3_quirk; - snps,quirk-frame-length-adjustment = <0x20>; - snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>; - status = "disabled"; + usb1: usb@3110000 { + compatible = "snps,dwc3"; + reg = <0x0 0x3110000 0x0 0x10000>; + interrupts = ; + dma-coherent; + snps,dis_rxdet_inp3_quirk; + snps,quirk-frame-length-adjustment = <0x20>; + snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>; + status = "disabled"; + }; }; sata: sata@3200000 {