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: 13729822 Received: from AM0PR83CU005.outbound.protection.outlook.com (mail-westeuropeazon11010051.outbound.protection.outlook.com [52.101.69.51]) (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 F388914D428; Wed, 10 Jul 2024 23:02:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.69.51 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720652571; cv=fail; b=JeHT+/oyp8/g4nZwe/OeXsvVlulpMCDYa3ju70eTWSi0ZqsTVFX+uQoIkDsMaCKlGEP/f9x5AXsX6SuDmeevGm0Wgby7CMexmmtXrdlNo5QT9J5cePcMI/4BwA8xBIy3pEooVgTq4oNrEimxQijo0jeS3TNIPpC78UM0aIOgHRk= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720652571; c=relaxed/simple; bh=Xe2ZsA6XK2+7YHKlgNVGziXAOnQGAXiVcvdtt6S8VN8=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=fjMwHgNYykj+pwCY132TW/9dBzQUSL2C2OgONjR05wBqju4P+sEF5NKYhRLkVlY7MCTeTQe7WizETCctsRmd977ZyvGIHTjdE8yhn5WTQc0KoBYpepvF94QvlwYxgEa+m7hwzzwvjhYWkF1xKf2/5tLnggM9EmrI2H7ahWX7j0c= 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.51 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: linux-usb@vger.kernel.org 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+Vv8qzmrJyXieoi6jUGhwWhQJGg1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D?= =?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/+EOFUPrqHxzSdz5Fipou7V73PjYbZG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iLtUtRD3ATE/+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"; + }; + };