From patchwork Wed Jul 10 23:02:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13729818 Received: from AM0PR83CU005.outbound.protection.outlook.com (mail-westeuropeazon11010009.outbound.protection.outlook.com [52.101.69.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 422C214D6EE for ; Wed, 10 Jul 2024 23:02:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.69.9 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720652572; cv=fail; b=b7NsJ+7eAjMIh6FW9OSOitroWKJ0VmQ13OQ6V7b3Yl8m3HQGQuqBxZIvm4GnhFaICnGgINJYWe1+AmJ0JV5+XMuOoSaV8Uixud19bcdJ04au2IKMRSsX+HA83WPH942Jegqkd54SouVM74MrvOg56JzJHaHcuMA7dkTNTCkAly4= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720652572; c=relaxed/simple; bh=Xe2ZsA6XK2+7YHKlgNVGziXAOnQGAXiVcvdtt6S8VN8=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=E/pmFgFxx8vF13FZydwHAOJAXe63uCN0VMI8gYml5j7QKqJpTl5OOY7ucm4Plc5o4QDZMTZXKdeGFwSHAKnjghp0v5a8GiBDiSYGuoV/gYUGf3C1AKBYjQjZB6Cldya1S74y/hBSGLwPgRTenc6R3HX1uwMfQxO5CbWCQ781XDA= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=igMXdhAu; arc=fail smtp.client-ip=52.101.69.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="igMXdhAu" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=f3Ve9FYkF2x49sp0wcvrj2ch2jDXt+5CM8P4CunwjCnnGPlni9eyt5YLHUzu1/fxE8Sw8hQRgjX8jTdpwPmYAHpcMR6xyi4EFt9R5hCaSdncWzWmQcmdmwlzRW2m7rxIFb9NAtvtef1CVgjf8J6sCFB/qhIaFRiw5p6GbQCb/qzsfs4tsjwAOqzLCWpGwRLQibO1BQofmqfbtz1nRFdHPM8EIwvVBNgznlAFkQ41v4xrxxc0dVImyM60TlQdrbQwj1Sb8YyR3w/e8+6rSZjSQz9MKBRVOyPQDj6IjDbDXTKjVUQ0QTtbxULYxHcSSJ9dPZFUmUxat2Q6Gw9m6MYuyA== 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=a0umDDp7ZyWLee9OpwSny26aNghX5q4cQ9wHdzMIqTA=; b=O0Nh1Gd45cN5KzIU6AN+Q1N7HaymKQdzvKF7+6kq5hQBVLoZttSXO6bFQT9FglB4eUVsahdIUcZXliKNULcmc4LXE3z5dAfXeegj8IGEYm7SV1vLTRIlUWv+NcDCKOC56c1cXdmPH0Sa3ejdkNpEIj9jJNcyTHIJrbdFfiI78vFi2iHNkzmSHFYyHmc6OG+uDLRmnUYBcJ1VGDSnzi7l/TWr3OS1LKOOjRD0VyjIKryPdmWuIvPFIn18wiDzY6rC8+/nmMq8+twjwRlEnzxfk3YUVB4/yw79idjnqpkaGI5jdBtlOYG2A7NbdNEcsm+66vLJPTJgpxX6l8A3lDPUgw== 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=a0umDDp7ZyWLee9OpwSny26aNghX5q4cQ9wHdzMIqTA=; b=igMXdhAuezrb8s7cf1X7auxPmABMSbULQ4K9aTCQQukrhcuW7XGWo6RzJGxrkVrB71vxARDQtPOFEdoadc3E0vi83L12mZCWJ30iZL0pvW5xHusDPrOd/VqX5Jk5TKQd9jpIlzCh8OwVlzTecyXP90gMjYGmpBfipXtFTKdqInk= 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:46 +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:46 +0000 From: Frank Li Date: Wed, 10 Jul 2024 19:02:22 -0400 Subject: [PATCH 1/3] dt-bindings: usb: Add fsl,ls-dwc3.yaml for layerscape usb3 glue layer Message-Id: <20240710-ls-dwc-v1-1-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=1725; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=Xe2ZsA6XK2+7YHKlgNVGziXAOnQGAXiVcvdtt6S8VN8=; b=EMLRO1MKUzLkrbtygNsRoQcPq984goe0RbTnYa/SVZ6VZiI7ngfkv6fwZaM6WFmICbJXSq8nE qwjuWG53hzABYnty+eYiYiyb8RTIXWYP4aCqX+rKV2C3VXI/vveAycd 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) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|GV1PR04MB10751:EE_ X-MS-Office365-Filtering-Correlation-Id: 25a8eb69-0457-413c-0b89-08dca1346999 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?MTOGpB6oVk/flcIJiIIUkWsCFr1AhJD?= =?utf-8?q?mIwOeynTrOVhyH+OU9EPWHNMMqiybabfUyvPQo+3nvwPrQlU+ONciiT7H/7JgjLRb?= =?utf-8?q?mdGfFdOxLddBU/0PPNd4bZhKOaQmhHZB+Vv8qzmrJyXieoi6jUGhwWhQ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W9AvD?= =?utf-8?q?iPqIyS5JIh0dkpnqbme+dvsW2yMF7bTaRGIEaiA4m0QLsVGVdAEAPBtoEBefxw2vC?= =?utf-8?q?ygBQmhGMsSZRlCWMxPGAntvJGDYdDH70N8nfL33K1CcxNEZPO8sqOWNNyA71ZODvv?= =?utf-8?q?z//FipXdWBjvbwZyPFmMctq7jM4Dsy6Ylb1Cw/D/DLLk7IVnGD9qlN5ixJaFG51wI?= =?utf-8?q?Hg9oYDxzLaRUirzIYbP+BLKw3j9Cu11nG4+5ZiQUp3FLYCl05VassFBsjiZSzvyHN?= =?utf-8?q?6UJa1WPSbBR+d6Qd3/Bxy9GFbV+AZSXd+4eTUcZD9e0MBTf4M8mgQT8Q=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?i/z8nVoPddfaXQJmTXHt49i9jegz?= =?utf-8?q?fg3rpcIiyBG2PelruyPT2RUvG653FDCY1yZdJHj3HPZapsfZN1KXxtdg8oWxYhleB?= =?utf-8?q?COxNUClvYysKX+D2mxgyzoRr5p9pL59SEQqmF0T2lWLSsJ0ytMATzx1Z2bffZ8FNp?= =?utf-8?q?SRcpK/wR+5D/czXq8FPEgFjNK9df9wynMOsGM7/djEFqkkDRmYdqjAjiNrRLXQ4Ns?= =?utf-8?q?349F3bAgLamghdskHQiBnU86cXpFiYkV8AI16P9iN/NPwiaqU8jhOiWm34jYncOeZ?= =?utf-8?q?Upvl1grg87MSNnlOULSQy8/E7FE+c5C57zbkv68AkE6AA8Bxfz+GlFXVOZ5c4d207?= =?utf-8?q?2Qyea/+EOFUPrqHxzSdz5Fipou7V73Pj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+QIGiLtUtRD3ATE/+5twfx?= =?utf-8?q?To1YZfsfhQh8D31wGz/DlDEuAe7a33dRvFWOs4ZVrwB5DskmxEM9oYvrPm+fiYPc/?= =?utf-8?q?/t13LT4G3Zv0tTMqbRGQApkMuvEzqh5w8hUgPX9R/MFlXzO2XaBeSZFDZPqTeunHt?= =?utf-8?q?aEJhijyp5vWZrdlb9xEQpe3RjNY+h6OCC3nthH4yT8daD9SmBmB6RY5TZSP0V48Ow?= =?utf-8?q?7p4SHJitNkWHqWqZX6J9UfPu3NBCQ7mYbcmRpbf3geL9Hc+yCbWf0opEOJzcoRVpt?= =?utf-8?q?Q5/LrR3YVfyM?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 25a8eb69-0457-413c-0b89-08dca1346999 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:46.2480 (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: eB7vQqsdJcQh5qGFyVKjRkUw41XO4YCsBtLuOD5ROQS55zJN/3ah3saGN81MMMcDF/dRR7dtVJno7mJ+uSEXdg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR04MB10751 Add fsl,ls-dwc3.yaml for layerscape usb3 glue layer. Layerscape supports DMA coherent bus fabric. It needs to pass down a software-managed property to the DWC3 core. Signed-off-by: Frank Li --- .../devicetree/bindings/usb/fsl,ls-dwc3.yaml | 50 ++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/fsl,ls-dwc3.yaml b/Documentation/devicetree/bindings/usb/fsl,ls-dwc3.yaml new file mode 100644 index 0000000000000..e79416122d12b --- /dev/null +++ b/Documentation/devicetree/bindings/usb/fsl,ls-dwc3.yaml @@ -0,0 +1,50 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/fsl,ls-dwc3.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale layerscape DWC3 USB controller + +maintainers: + - Frank Li + +properties: + compatible: + const: fsl,ls1028a-dwc3 + + ranges: true + + '#address-cells': + enum: [ 1, 2 ] + + '#size-cells': + enum: [ 1, 2 ] + +# Required child node: + +patternProperties: + "^usb@[0-9a-f]+$": + $ref: snps,dwc3.yaml# + +required: + - compatible + +additionalProperties: false + +examples: + - | + #include + usb { + compatible = "fsl,ls1028a-dwc3"; + ranges; + #address-cells = <1>; + #size-cells = <1>; + + usb@31000000 { + compatible = "snps,dwc3"; + reg = <0x31000000 0x10000>; + interrupts = ; + dr_mode = "peripheral"; + }; + }; From patchwork Wed Jul 10 23:02:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13729819 Received: from AM0PR83CU005.outbound.protection.outlook.com (mail-westeuropeazon11010009.outbound.protection.outlook.com [52.101.69.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 76FB4152178 for ; Wed, 10 Jul 2024 23:02:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.69.9 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720652574; cv=fail; b=rOPxdSPBKhzOE+X0rolNXiKrilkKV4VuF/YdEsm5F6mk//JijrIIa3jqA6MGknDNA0wgrOZZwhncbFtC+NcAPQ3iQDqtMAEbVxt4C6E6U7WN/32XZ2i1bEggf3FS/Fbu8sVTJjOgCM8hOIY0zUUbi5phxswzAkcABaMyjTtwFVU= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720652574; c=relaxed/simple; bh=P1y28FrMwhzY+EU28qrhKcw7mczE/TQPAFCv7KbwcGE=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=H/otEeC2JS/JnP1ywYia/7oQHtW42TvvqNBQHtgXVW2EY9ZzjAbSyrWOLWYf7McbUaE5wWBB9UpcjG0bCTZpoU4D/Zm5Ub8oZNXkX4UXpGBve7Li8zFX2g3dWmJvu9+JtGBMimfo51LEMHUxU9PStbDEGdG+n69i/QMXtNrFafg= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=OEGRCNFW; arc=fail smtp.client-ip=52.101.69.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="OEGRCNFW" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YRCeuywN++BY2q33hrSNDvfqAleDutZiYfBDlLQSlZ3bZwVJ5nvb6Fj5COnxSLfRdB+pX5FkHyLy8jeQMSh+UFbu7EbOX3rZEhFNk2h2YW1efZ4lStpxqT3CrjoVzU3c1bg3u5BhzqoKtgFkey8Od4cQkRBnxxnDxvq3+kEzq1c/zCo6uhyZT2BtUgbe3R56sATje4LsV9R9bhLyGG9zx8Lvty7b38K5wa3ZTsDJtaB1/Ymsa8CrkkBFBS5Nf/LYZfLOcw3OKIZBldjngv9GTainlUI1M5gChOW0es0GDNZ2TQ7ttSAkM8FnvyanufxOLqOdMuB9sjXhYEpCaZpljw== 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=RCTO9n6odMfygt46otuWdURYJdub1uDc7jpoPRQ2DJU=; b=ioAPzBpoI+hr4u77lqdM0yCO9dn28SQxXG1NCN8dVA1LRQZEZdqIvvpcY4U02J7HWKskVGd3srvw8ioZcOmDvInS5sgev7s9UvE4OeuE6mzscB8kwxHt+UJXYG1dxc9FPaNuI5oMyCs9bQYpWG9bZSOEpZHFel0Us6WRJiNbM3y83dj6oPgdxPXKfCWixz3vG/naQ3lxy3ljkwuNdaelg5s6rpkAUGe3JsWd1A05H3YqX8OXWh0XymEdXHuy8YurXipU9TRJpLNZEfpKUwou/kEi2l95iUe2IyXHULTu1j3OGwigUga54rD8XaZ0Z2vJ2dFHV0Xp7JFwnIcc3Z1vSA== 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=RCTO9n6odMfygt46otuWdURYJdub1uDc7jpoPRQ2DJU=; b=OEGRCNFWRl8OMwwtgpuQW0cq74ovAW5UoVHKMMNKKusw/NVGbGuhZos4SZyIah1Zp34JEVmTqSPgGN+BYI/m/ZQ4ieaEvaLuYY4arLzRFjT3kaFHAfXqFMR2BA2uTuqdJdZaaf0UO5+Oo/bPMuJUl/3mzoU6ZPr21MHdEJqFTCI= 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:49 +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:49 +0000 From: Frank Li Date: Wed, 10 Jul 2024 19:02:23 -0400 Subject: [PATCH 2/3] usb: dwc3: of-simple: Add compatible string fsl,ls1028a-dwc3 Message-Id: <20240710-ls-dwc-v1-2-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=2030; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=P1y28FrMwhzY+EU28qrhKcw7mczE/TQPAFCv7KbwcGE=; b=n+8X4ca1EDlIOrcGGE1ySXB4yG2sEJkjZDw+UxW9zPNh8CLqHpVwN9TwpneygMwlyWbJ9TbKR 7rjYoi7b8knDOZ+Xe2lqe5Qf4AOYccn5UZmcI1KUyGykLvWguHiF1xd 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) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|GV1PR04MB10751:EE_ X-MS-Office365-Filtering-Correlation-Id: 0f7421ec-00da-43a3-a2a2-08dca1346b7f 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?39iaN3xQVfOU+VFDAAHPUo9BVDvjLWX?= =?utf-8?q?GDNvjGF/780yNUit9+BHJYaHCj17WRVuc0i6s44TnZqeYXWsZbYwyhznVjHR2a+Cw?= =?utf-8?q?lEOrkIArcr9O8iPWrX/eD+qyUiWLVqOPrumH2ZnzrHOvxjHdf8KpOhBM2rnDXf7l5?= =?utf-8?q?yMCS2noJf4hPd8tBPrIJpP4RxvzjguYSj2dzRTji9gHZQpeB9ex6QZ9YNO/oDnxoJ?= =?utf-8?q?UBgH87FPxMC6/yxbpnXX8TSfer6S8rK7qllMRShqjKnyCmwek0Lc8mE4gDqJhGW+R?= =?utf-8?q?+pKeR3FPpG8oSL5prmi/B+wKiKXW8D2ivdD9khiDZFZys85cS+cIRqJML9RKDh3vB?= =?utf-8?q?ea6KVUnsiOOBQqEe10rWLcpdLsikemWYwrIHYkUaj1Sjx5SFN8ZkMeI5yfZ/8r+C+?= =?utf-8?q?RpIoa3E48d3zI0P2/9XmfP3DQj9kTlJpwxk5g1OAfiJ/O5Csa7iBr5/R+yiaPo2oS?= =?utf-8?q?l+MXQ7BCD7lFXMe9L6oOT+hXZlU8Gjc3GOlMtJq+2LKn/az76E/rTkZsZN3ER1mnL?= =?utf-8?q?Jbe0580P0s6cf+mQWj24YI5XX0barGLfu7lqt+OD6IBAwRNuykkzYOu5C6KfW/azN?= =?utf-8?q?lzw6InRb/rz90TBBxHMAtrEEXS/wZqqkta1Lbj9fOniYr/14R3byW6WyAcTqVzCza?= =?utf-8?q?JwZauQnwfqBuQ6ArnaC1LJo5nM8FLpjcU0bMI+Ec3c/3NnJtxlHpZTtfOIciI4ztT?= =?utf-8?q?/xykCX0tnoKJhaPYncswhzM9Pe4wzLUkbtz2h7LivB/EVzASyxE4cSV9yZU2GGAnh?= =?utf-8?q?Gb5FHsm5iuKFCtlGaVzF+TRdG0VW1DoPamdYvEw1MPub65ux6Yr8xC1wo/mVs4FCf?= =?utf-8?q?1CNCHrgXPvM3LCZaH90EQQaznUsKEnda0ff3iGbmdTVNCQRsZfMfs+uJzAU+w9M/j?= =?utf-8?q?TF18zQYnm75RrzyzVaflNx7voKMCNJno7esvsVIZseGBVQjlSUaN5CcNW9NCtUG+t?= =?utf-8?q?tPy60NGRzw28Pbgmqc58bUHQwKgrLcqu1uPxi5rPnvpNJ0bQ2gm8MEUQ9y+e2pDba?= =?utf-8?q?Qz9tnrVQ0bvuUA/lI9OFKAMAL1W7nXVT7cNqXWDQMXJe0HEEB73HQ0lBZdfl5xYtq?= =?utf-8?q?k1JslMV9bXbhYf5dheHIXtkRJaUjnLAK1kKeyxwCUsSOoF/E0FERXz1nbhBaWzpRc?= =?utf-8?q?zoBNIV8q5MU9AfsULbIQMnUy2XQaAorkINe3YwvQpILnIvRVq0lmzyyvIkt8OKyvc?= =?utf-8?q?hl6xcVVOeqiOn41i/AqgUIID1Khg6nLnPuJuCw6QOUZNIrxWrIj/VduUp6vmFOLOf?= =?utf-8?q?4wseR6f/lwdjWixLzoBWHTmL00hurWN5KBcgXrIPILFZa7U2cKTzDt9STcXigTnmu?= =?utf-8?q?BqlB60OxQ3BTQgjklkPGLag5DlZewcQmew=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?mmGC+8dI9WWyW0c8Jag+eeZmHeas?= =?utf-8?q?/nfc0jIjyf6bVCviFrKQ5zZ4Q/8KfAW8ceONetfwQA2WWHh7U+5vipIDivSEgeJnI?= =?utf-8?q?4OxNQazv5dXzPdyvEk2P04SEICqhbTNq5M2gv/POe+aSnDDzNo2gNYAhu2IyRc39Y?= =?utf-8?q?C8ws9vIwmnitchwOOFbf1Z0xo9r6OSS0ql4OlPlYZ7mTeKwhk78Rnw/Adm4W1NRhS?= =?utf-8?q?VxgUnh9vMvLPLeDBXVLFnf2rt2r5q0Oc9zHQOGksGxuqaXRLaIABwn6Ua9Jmn4umF?= =?utf-8?q?vC9/PKYVmyVDPTDbvZ5Ecd8faUpedf/2DaWTvKtBGWZjLJ6qbavICWwWjEIdcb0SI?= =?utf-8?q?mT5/YurAxEiTUdaoJgEO+hJgGoscVhd/X5ISGVOfoUbENlyVsxM0ijlI/WjuLdtUH?= =?utf-8?q?4rJy29dTQZRCKI0JlJQxNgXP7lj0lI4zVzgl3KDEG0Bc+VA8sigkaZnmvPFLX/rUq?= =?utf-8?q?89m9cO0j0MKjKe29V3OaThvy5ZDAjbaQer2/pGC3EFJx7G7J0fOucBc3AVLcgvS5y?= =?utf-8?q?k7IPHnYADXle7OGGz8G6Gz6s3g2OYQkBCHd13DVp3x/LJAlXX2rYfg0NmyacMcsf0?= =?utf-8?q?J/5LqEgAHTpinU9xUdley/MLCP43DyBUgzkcTdMSqAQEoBEsPYu7ovvZevwP/Vfw8?= =?utf-8?q?AiNOVcEiSrFMh7POhEwMJLaWET53doaPA6WP0vnDA8/qAIHRs8TBmGY7IS4GQR8IB?= =?utf-8?q?/rriYpqhz5SAxbqjkysjfHFncYMm/9thIWQxgwY1w1nsvF0UyvS+58gCEvFBHdFFA?= =?utf-8?q?sOUnVK7+5A68P9Yb8P4LqS/XpgAARGwxkblmRBvgyxd8D/v3C3JZg+ZDCAS6zpoeq?= =?utf-8?q?gzNUJEaNZw9kwgpdXGxVUOlKQNYDLgnhXVwIi7MrIGIzn0eeaH81e+pxTUa3ngtz6?= =?utf-8?q?KpdeiQ+eqM9QbYZgz6PXdN/fVyR/Plcf7lQuAE2y/CjOX3zasDnQrBbqgdBYV6MNC?= =?utf-8?q?m+Se5VF538WqMDgGYIeTkElPwtTARJrTPRAzKdhTjFBKHBrz43SPRZ752sutSy/OL?= =?utf-8?q?lzrkWEbdThq2yXxwQISDGNWCr16nwpfjICeTj+1OTXTpG0KrD/+14MFifuu58cCkO?= =?utf-8?q?GOufuwrdq2aTpioGWbtbRcuOp6J80pt5Fp3mTJTucMj0FKQZQ267kF/yOorRy6RTg?= =?utf-8?q?nuQX+y6OcdTQ8GzvXy8+tNRxUAO/lhDFD2+KA++zf65LIRTKPkIXKvDnQjWqBgq4S?= =?utf-8?q?DLjtUzlqaFdOoE2tJa74udXFdgYpLAu+PpGZXkTnWpUmU7ItDl3xuHW7EAp5Ej8J+?= =?utf-8?q?VH9kMMaeTiUtqsOZzbEunq0EVsIgvoFp6bI9ITjdxC7duZM6IR/CI6rOEBZPbhzjY?= =?utf-8?q?xrEn6ASv1eTmvks5rNFIWW1rbuUZw+5vbwsPVXc8eCMmPwWbMBfRTycawrwLIWcU1?= =?utf-8?q?IUe5U9Hb1QcKpvp/Dnl5E91f4hUKji6JQidbPHFj2iqVldcHy/aoEz6RuE7dMBFVB?= =?utf-8?q?y7n+IfH1qpGLKJshVFkwiHAakhXQJ4hcUi0sN50Zsah6Rep9UPmFGVY0i5N33Xhc0?= =?utf-8?q?Q4xeXsvbf28G?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0f7421ec-00da-43a3-a2a2-08dca1346b7f 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:49.4762 (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: jtp4HiakJ9BK3zxD//nMcJpTjShWB5G67IuMVQoyb2C/wFJ8ROD4BdzZsYfDgQz4L0OHL2Vh3HqlyA/KSfX7kw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1PR04MB10751 Add compatible string fsl,ls1028a-dwc3 and create a software managed node property 'snps,gsbuscfg0-reqinfo' to enable cache snoop if dma is coherent. Signed-off-by: Frank Li --- drivers/usb/dwc3/dwc3-of-simple.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/drivers/usb/dwc3/dwc3-of-simple.c b/drivers/usb/dwc3/dwc3-of-simple.c index be7be00ecb349..0aa21ddd93cda 100644 --- a/drivers/usb/dwc3/dwc3-of-simple.c +++ b/drivers/usb/dwc3/dwc3-of-simple.c @@ -18,6 +18,7 @@ #include #include #include +#include #include #include #include @@ -52,6 +53,26 @@ static int dwc3_of_simple_probe(struct platform_device *pdev) if (of_device_is_compatible(np, "rockchip,rk3399-dwc3")) simple->need_reset = true; + if (of_device_is_compatible(np, "fsl,ls1028a-dwc3")) { + struct device_node *np = dev->of_node; + struct property_entry props[2] = {}; + int prop_idx = 0, ret = 0; + struct device_node *dwc3_np __free(device_node) + = of_get_compatible_child(np, "snps,dwc3"); + + if (!dwc3_np) + return dev_err_probe(dev, -ENODEV, "failed to find dwc3 core child\n"); + + if (of_dma_is_coherent(dwc3_np)) + props[prop_idx++] = PROPERTY_ENTRY_U16("snps,gsbuscfg0-reqinfo", 0x2222); + + if (prop_idx) + ret = device_create_managed_software_node(dev, props, NULL); + + if (ret) + return ret; + } + simple->resets = of_reset_control_array_get_optional_exclusive(np); if (IS_ERR(simple->resets)) { ret = PTR_ERR(simple->resets); @@ -174,6 +195,7 @@ static const struct of_device_id of_dwc3_simple_match[] = { { .compatible = "hisilicon,hi3670-dwc3" }, { .compatible = "hisilicon,hi3798mv200-dwc3" }, { .compatible = "intel,keembay-dwc3" }, + { .compatible = "fsl,ls1028a-dwc3" }, { /* Sentinel */ } }; MODULE_DEVICE_TABLE(of, of_dwc3_simple_match); 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: 13729820 Received: from AM0PR83CU005.outbound.protection.outlook.com (mail-westeuropeazon11010009.outbound.protection.outlook.com [52.101.69.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BA55D15885E for ; Wed, 10 Jul 2024 23:02:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.69.9 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720652576; cv=fail; b=eh57/CzSrMihCeNw9ovRiU5nzjWOeEZWWNthIItuoCSBNZjEO0JwTGYDwyMjokQS69fNI1tP0jn9HDYTEvE+mFaZRh1CyGHfHdUtTwiPnmW2Gs39a4tFJVBq/xu6T/pzNDI2WnpTvwgYdhfJPQpJ+SvcYzOWtqc6gftKwdlUbPU= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720652576; c=relaxed/simple; bh=KIaR4KiuqLQ+BWXn1FoPuKby62dlXYXgqiFj7UAupHY=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=Fu8c1YQs/uztZJEwArthGhFeSUH4IEYf3iYwtQ/uINNn35WQm/i/1LRu+ETSpi4+bhs0vaO9O0sqWraKWidpB6s8c/O4hiVin7PqeSXWFbv5rKED4bfN0UayOAjVrZ6yrINsBA8hX5BsxW/jU95Xj+POQljPfraH0xDPwgKz4lQ= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=CZLZGW3I; arc=fail smtp.client-ip=52.101.69.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="CZLZGW3I" 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) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: 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?q?RW1sw/q2Xr5uj0UQecwmdrMLiB8Dg3ev8ZKRDzEyufrxUkPjrD6iJV/z7NG7z579W?= =?utf-8?q?FWYndOeI2RtTLU/QAV/JuLVG6q+16H58fHXTnVnlHrXF9x2BzDALRuSnIlEL6R64E?= =?utf-8?q?XfYGXeYMz5N6fz1xbzGRuwuC1fuAVB6h0t2FVqluBYaty3HuS5xp1BQuWQtTTv6oL?= =?utf-8?q?nxA7rGoIC9myiDswM2ouwh3Tq4dK2KhZt0FY4RWgNge0pFkwI+iGST/H0UI1/S+TK?= =?utf-8?q?Co4znpHCtVGj1XJFp3DjrFEfhb4W5oZbdKKCDM3x4Df66pktmOelfg9Cn/wobE/rg?= =?utf-8?q?n1QTUQyP+mBVEc3C59OH7eWjF2AjT+L8Fy6aLCHj70RlC6ZsEXfHigzWuqW1v8laP?= =?utf-8?q?8x4vOgAgjJ6zT65BDxTa11IHVK3WLbg344jsj0jenuQ4yGR4hXge6Z7CZYoCcing3?= =?utf-8?q?cu8zR1j/U9H0asmBpn33pZryYDDBDfrmSm9/13Th3KJfO7GMt2Q9msKPt5c+R0sh6?= =?utf-8?q?LhHymgIjjJP3YKVt8bwcQl11lk2AVFW9FFz4dvmzHA6chxNoNn5QxDCsGuR2Bp4QY?= =?utf-8?q?WdPYGrqmQZUCSxoZ3IT/SrMwucEPcN/VbvjDT8/kKt3754ZpJx/r22+fRGmp14vAN?= =?utf-8?q?TDNtb9aCrRAXIXNUX5niA7E+5yDXx/lI6hAETkd03nFA08eqQHSw2YpV1lZzrH9Vr?= =?utf-8?q?0pJtowSHn2bzhBlm8FQEjU0cLFnoNxBxTn59lL3DzgVr7jXu8AaQrgdKWezcZ5gce?= =?utf-8?q?jZeugCmttlVnMBRvGfbPWzO5Cc67fFmCU4IqUJ8hxV/2jIfHHGx0lADYB4wSOmeFx?= =?utf-8?q?zgwrbn9AXt/6npLKNlpfaLANy+Q9zv4gR6g+ERfbU99ovUB63vevZOzmD9A7cgeRj?= =?utf-8?q?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+3teIRelVWBGTOwMmZmBPGPhFkMz50u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Gt9uqFn72fLD8GIPmUGSPjb+lMP?= =?utf-8?q?GTmdXygPjKyRt5XqgFPPCPb+mXPJ2DZSKNoGuAhzcriZ/AweuHDTYicah9U+5Ow8O?= =?utf-8?q?ne/8SugY59uhFWLkyvqRG74LjCelmzQLjKF1iDRTTyJNS5P0Yjc2/wMymRUPjNQyT?= =?utf-8?q?dI3wUmtt2U7KCi8Pmr0Rw9Xf9SDNSGlTFUT4yZ11YkWwWGWtif+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 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 {