From patchwork Thu Jun 20 16:58:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13705939 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2072.outbound.protection.outlook.com [40.107.21.72]) (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 4B07B1B372F; Thu, 20 Jun 2024 16:58:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.72 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718902732; cv=fail; b=aHVLAQ43za8UAC7ZfrJQFzRsjJfynbtf84HhNXo0YWwp7/K6yoOyQV6jd7/qFkuZHe1s6WuFPDmwaRUrtaBhYZgwpPFgDeX1GsFX2hR6b4otMOu7Vy39mTVrhkwSyNEtleNKT458e3dPp5T2GSxIC5eBa2ujj8Q/+OxIS/ylcOA= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718902732; c=relaxed/simple; bh=1ZOLTYd9nKz3dWoCJmAdaERqxG9Ou/5gY0RXA9AdHIo=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=m8DdsiHdMY+bsANKqHFn4w7cbDGvDsTNdZ9W+bUOFVUWcKdQieX6ftmmzcKCY756rLZYVNcagQmZ+AyfPaX0S6/RW3DOaJSqNspSbsk+2vU4O/Eq4w8nA4yGURxb45/VASEyTksaDcmVM3vgztBJZVBbwBiGBHsNJh00eBjl0dY= 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=El9noXW9; arc=fail smtp.client-ip=40.107.21.72 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="El9noXW9" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RPZ2lZnfPN5seqtQ2ukIA51gYfGkiB4FIv58G8VKpgUfP6LqX3UlAhkBQ5aHqmAGbK0L85FfnwjiPvbsVh6uWSnpx1j0FKWqvMlFSiVYWZ7SRvfsJKRLt+izTcPfnm0rEfzsRb6EEaQ7oRIx2+snySzcvP8oOpwPKop8/0l/CdVakeEcWTVSxTcYSU7scAsTvTQbSkasXPSmrZ9gYnsXudqv/lkSJ93aibffKFT2SVvHpKY2kv/K8uwzkEqkZm2GVzWwCgdRlNCoSaSzBAwrJo3JNHYfXM4sjD71KSHv2jWsTN1JZvzJ5uXQCFVZ3BdozWxGcbBzic7S2KEorbUgJw== 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=XUAB24xN6kjPK5ovZyDhtowkdtlZKMCF4c5Y7a2oS+g=; b=AO19doavik5Oy8HzrtGKVgr9JBb2NXZJq9hA4kNwdRRg06ZadTtVT8zSRq/rpFtaBeyAHLmvrefoBWUNLfviapzroczZDqBI7tNIxR1838SmlEozO6lbNB5pHy/P6uZUwfM8ZnstlBS54O7E0/Yf47zc70Ccke2MVs7gmZjJBViXv+uGSfjB4TPL2lpSQKoqbCI85ya4wUszuHf0Cb9zQOk343XiymxYXMWDsW2+7bjmnEYH2VcU2hxvxIeLKM8yJ9Xj0LR0GNl61j40JaDdTzYFLwFPZbutk0ifR4NCxr8Q/QWHUZ3Btt8BI+6AFwaltzCN6uwJS1pMkI8qOnE3Rg== 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=XUAB24xN6kjPK5ovZyDhtowkdtlZKMCF4c5Y7a2oS+g=; b=El9noXW9I/EHGvVJnpV1meyUDlVOkivcn3XmgJjnfZUOLC4Q6YpGSqaTb1DJg/fdmenCgeuzd+mxNbkSu6ttuDpfGbvRxHjv2E6eHkrv17u/S1KnmvZYUdIQyKV+4DD/KG9qXNS/HNPW8GTcjzu5D7rllmCBgegA9pdYZZoe3Zs= 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 PA4PR04MB7632.eurprd04.prod.outlook.com (2603:10a6:102:e8::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7698.19; Thu, 20 Jun 2024 16:58:47 +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.7698.020; Thu, 20 Jun 2024 16:58:47 +0000 From: Frank Li Date: Thu, 20 Jun 2024 12:58:27 -0400 Subject: [PATCH v3 1/3] spi: fsl-dspi: use common proptery 'spi-cs-setup(hold)-delay-ns' Message-Id: <20240620-ls_qspi-v3-1-1a2afcf417e4@nxp.com> References: <20240620-ls_qspi-v3-0-1a2afcf417e4@nxp.com> In-Reply-To: <20240620-ls_qspi-v3-0-1a2afcf417e4@nxp.com> To: Vladimir Oltean , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo Cc: linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@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=1718902721; l=1322; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=1ZOLTYd9nKz3dWoCJmAdaERqxG9Ou/5gY0RXA9AdHIo=; b=2vXfgwGFREdrwbDSdVRF4yG2zVVj9U5x15ad/LT9YjmGmka/EDSXzXvb7BZHkHKHw7wHqG4te Oc8/PKEXmvuDJd962UB0nI5I5YXSPzjmwaiOsdxDyIcFQCKXCb5AFYx X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BY3PR04CA0029.namprd04.prod.outlook.com (2603:10b6:a03:217::34) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: linux-spi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|PA4PR04MB7632:EE_ X-MS-Office365-Filtering-Correlation-Id: 51137bef-79f3-4217-646e-08dc914a4047 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230037|1800799021|7416011|366013|52116011|376011|38350700011; X-Microsoft-Antispam-Message-Info: =?utf-8?q?RXrGh98DkkmbrwYv9lVt/W9djKi3aP+?= =?utf-8?q?kCDut9p7q1R0l/IVY2eXMe9wZu/me3LJp9eQqdgczRgHcHa8HAlEb24E/+JNzL0Hb?= =?utf-8?q?Vgonvck0Si7604w5DuDPUk5cX12daxbmxJepN7B1PnMjIXJNAysuGRQYpEgNf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AsCrx1Zky6xFEaREyIrGQxdz0twSqxrficYmEPHAI2cINXeDqJSGKV?= =?utf-8?q?HE6dn7sOEnBclJa79Qy0dqEN+A1fsCPh2jNz40YBl1f9pTpIXvGdPdiVj+5xHUjxe?= =?utf-8?q?5SK+HRsjq243bobGdgNiB77n20FQ5J2jaTjGt2v98YxQvDJ0TeLt2f6gIeCx/cdIC?= =?utf-8?q?aCWj43i5eoppYYM/cLL+mGpPVfpTqwhzC1dM3Pw+kJKdl2q8Z4FPSUCMStW4fWZZT?= =?utf-8?q?cTzmJZand3Yo1wrzvIi3PXb1zWzUHoE8jn2/QQdTmK8/q8GCWmjj7BJE=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:(13230037)(1800799021)(7416011)(366013)(52116011)(376011)(38350700011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?EAmdrop1MumQdfqvnCEryXlVJKha?= =?utf-8?q?iVpgiahwtkQqAcee/o8+u7zZI+NiBQ4+8vfF1MotHlWzZKObET11utzthaJAuLVil?= =?utf-8?q?2iDE5vtkypI8tkTz1sbHBtCc6J7LypesBgsHANIM6V6GEcBT2YReAAabdCOZfuwid?= =?utf-8?q?CtgKBb0c0OYJyZs/ZVHPJDHaLAQtp8ncc4H34dUTXMU+OWw2Zgew+Q3h0TpaO3Smr?= =?utf-8?q?2/JBOxTs4w6cbc33nJgrLErIz0nzh5ChwWwlRQ5ChncbES2magmnWXc4SDc7nbUla?= =?utf-8?q?OaBcT99tISszoxZH0MPa2JUfU3nw8OBe0bnSUNKiBhgrgrWCAwmuRQ2naDyr9FXlo?= =?utf-8?q?5r9me9H7ox/lsPReNtjCWVLeGRz/itp0e0BhUjZ+S4bb7m0asEQIGFbuJoNg0RPT9?=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Z?= =?utf-8?q?HAg19gNOHScwyTFokW3bsK4evVd8Y0agjHWZyyX5EehUXN3IDBaO6RWcuIbWA+6lB?= =?utf-8?q?8c70G4V69cTGiR2Bm2EII/IpNRhRXi3aJNhyy18XKHVtHuR5Dfrzk8pyou2D1ZafT?= =?utf-8?q?Dd8yjaCLWaYdvIPyC30WSABAty3/0G+m5tpsPdLwv1Dot/QiBZfpA95fR3UxBkqDL?= =?utf-8?q?ZYU74HfAxaj+StMf72C1yzdKVaYYANUCLDhc+QOm6jTvw1h3Z8vvItCZ3CsWpMS+g?= =?utf-8?q?dFdoBxCPsL5y?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 51137bef-79f3-4217-646e-08dc914a4047 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2024 16:58:47.2607 (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: /5MJpXElOHKtfBo9Ase65r5xX4HyJWSDPioezltT9P3NsavtE5gGBPTRsw1+mXB932QwkTUZYTvnQkTYuDpEQQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB7632 Use SPI common DT binding properties 'spi-cs-setup-delay-ns' and 'spi-cs-hold-delay-ns'. If these properties do not exist, fall back to legacy 'fsl,spi-cs-sck-delay' and 'fsl,spi-sck-cs-delay'. Signed-off-by: Frank Li --- drivers/spi/spi-fsl-dspi.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/drivers/spi/spi-fsl-dspi.c b/drivers/spi/spi-fsl-dspi.c index 0a2730cd07c6a..7c1f8af9d215e 100644 --- a/drivers/spi/spi-fsl-dspi.c +++ b/drivers/spi/spi-fsl-dspi.c @@ -1018,11 +1018,15 @@ static int dspi_setup(struct spi_device *spi) pdata = dev_get_platdata(&dspi->pdev->dev); if (!pdata) { - of_property_read_u32(spi->dev.of_node, "fsl,spi-cs-sck-delay", - &cs_sck_delay); - - of_property_read_u32(spi->dev.of_node, "fsl,spi-sck-cs-delay", - &sck_cs_delay); + cs_sck_delay = spi_delay_to_ns(&spi->cs_setup, NULL); + if (!cs_sck_delay) + of_property_read_u32(spi->dev.of_node, "fsl,spi-cs-sck-delay", + &cs_sck_delay); + + sck_cs_delay = spi_delay_to_ns(&spi->cs_hold, NULL); + if (!sck_cs_delay) + of_property_read_u32(spi->dev.of_node, "fsl,spi-sck-cs-delay", + &sck_cs_delay); } else { cs_sck_delay = pdata->cs_sck_delay; sck_cs_delay = pdata->sck_cs_delay; From patchwork Thu Jun 20 16:58:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13705940 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2072.outbound.protection.outlook.com [40.107.21.72]) (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 6353B1B375E; Thu, 20 Jun 2024 16:58:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.72 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718902734; cv=fail; b=hZ7xw5vBmJ859TJMoPSWbZ2s+sOkrF03rjyf7kkUoeoLz9EKX+t/fpPoEwzHulTL97TaKPt6JnBEmFLbPDgYngx7mr/E0sLsBaBhI+pHb454Fq7Rttv0mJw6TVcwDZPZ8vPOOp1/MnY2/EfHkKS7nUD2ARy3EyQPpy7D2SCfn3E= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718902734; c=relaxed/simple; bh=QsjGmRBe6isd4NPtgtiOMFM5TkXJLSWFrQRMWL/qk/s=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=Gr3CrhpLNuecmH+SHT1J6OZZfbMpA6pB4uUBk5QT7oaOAirXkWffqzL+ZQwITneNmQdzUVJMcpIJ3iSR5bwFUK1Y09b9B6iBRIHA5X1KcRiWohbjaO0XtFVPOOYcVdn64yREEamBh+ciD1biP0XWaiExNKVrKRkxxS3kJCdQCwg= 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=kWBd4v7x; arc=fail smtp.client-ip=40.107.21.72 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="kWBd4v7x" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GzFnORejs1HtumYY/8/68l+SRgCdM71juhIfQckfcpW+R+Z+5RqDJmayC/aSsYQ/2gi8praqdE4zCHz/SQHcRbAUw11DnUHm+Q9XRRczlJ+KdUljnu/xSzELsL18sQ7xJGjGjU2+v2ieZu+pd/ztXYu/W3mlL4W4dGnmetFzklBoYBjW51yjIBOuakTT7vJbVOnLhlm6JiMMYgGJ+B4FzFCaPyFF/xm7re5FtT0wLYRJPCqceX7s0rSfpX6o14IYSqJT3bLlgn6NupN2yeWFkS7QU6y9nAXJTa75eqsrG2ZAZT8p06BQ7CU2Q5n/Y4O1UfseEmc3H8fz8Qz0LuYFLw== 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=rfi6841dLc0N19JZvmLTvWBynlZ4iFxSksnhA+v2g5Q=; b=XliX8cz0LraFFlZZfsKZiXHlM4E3/LhGOopp5pOuy+oJ7PpS7zm4mhV0bhzdO2Usi50xpnmAuadKckjyjIwGSW93fteWT8pPCeFETXV3+lISrbeqEOJOIDcBCus83w1Co2KGWM+YzhDaNe1MF/lgC+6Y/tQ9vyFsYsByHQj6C56+wn/0fIoJ+zlkhMK4yPAzA9yAq0yMI6WfQw0chQ74hiZwY59JsZoKwvkxUpAdoDrL11i2JXalzg4uY2mWnHOrzCQezfFn5iKMyLLAjBmRCflafeqECTsmimuiwF47qPpb9nnGoixIJsDO2L2PKhm0Ee0hS8EQkOgm0Y6LYKQHaw== 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=rfi6841dLc0N19JZvmLTvWBynlZ4iFxSksnhA+v2g5Q=; b=kWBd4v7x56INprz4Llu+lznSaednw4TrgbVcjkk/wauhlx/4pDFyq1AAxr9kbUJGJiwWAI3rpUMst/L5Dzw7cR/tInYfIR0JkwYlPxlxM9abWEwbGPtMKPT4Egwr7N0/XX09oxafJCntgxKhSe4cdXp664EtMPYG0guax38HEJ4= 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 PA4PR04MB7632.eurprd04.prod.outlook.com (2603:10a6:102:e8::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7698.19; Thu, 20 Jun 2024 16:58:50 +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.7698.020; Thu, 20 Jun 2024 16:58:50 +0000 From: Frank Li Date: Thu, 20 Jun 2024 12:58:28 -0400 Subject: [PATCH v3 2/3] spi: dt-bindings: fsl-dspi: Convert to yaml format Message-Id: <20240620-ls_qspi-v3-2-1a2afcf417e4@nxp.com> References: <20240620-ls_qspi-v3-0-1a2afcf417e4@nxp.com> In-Reply-To: <20240620-ls_qspi-v3-0-1a2afcf417e4@nxp.com> To: Vladimir Oltean , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo Cc: linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@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=1718902721; l=8467; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=QsjGmRBe6isd4NPtgtiOMFM5TkXJLSWFrQRMWL/qk/s=; b=wefTUT3wsjt5h9qPM7/PMetUmoYW+pdvFuqtXEkALcOzN/fmEfj9SEJWxBTIFaRnJG4p2v9WW MFCLOAakmYtBufAflYraHV7zSnejQZl/eUGEVjIhoOE+SGUVdT7RIld X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BY3PR04CA0029.namprd04.prod.outlook.com (2603:10b6:a03:217::34) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: linux-spi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|PA4PR04MB7632:EE_ X-MS-Office365-Filtering-Correlation-Id: 56f3131d-630c-4ad0-cbbc-08dc914a4219 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230037|1800799021|7416011|366013|52116011|376011|38350700011; X-Microsoft-Antispam-Message-Info: =?utf-8?q?yB9Ekp6vdUvt2S9JJZeX8G7qKe1iWdE?= =?utf-8?q?lZbWBXAg3ff8ubrg3PFO2KYGr4S2QptSuU6T0Km2UYp7INMgK34wLUXsfgLx+N6u/?= =?utf-8?q?vqZnynoUwz5fnh8eKcVU7mRuCCWTcA6CyEWjunjBQIZKvKg1i7zf88iUsNJLO7miZ?= =?utf-8?q?oNuZMje4s3JmJO7uxNSEE8krZHsQA7d3CIemvqI3nHNY/mka7DNX7fqXpNcFxV60d?= =?utf-8?q?HmP5mTW8Faqb9j1lQE6zDwGUM2M5hXLnsFtmHSTPj02SqXtfHDx//AALaANprSNZg?= =?utf-8?q?xLIZl2mGxmJqmxKmb9bE6AwFsNNDKfaxLZknOpsRYipF5ZlBjX0quv7tXOONB9oiq?= =?utf-8?q?WapBVdQ4G4hccltjPtiRJ04KiRo62FHLjo3tPyYtoC5z7Q4m8v1JfAbgoOtuNeNL8?= =?utf-8?q?Fi0SAdqMD7/1r263ugLjrFiDiiShbIJUHg8eOdNvIjpn62A4JWYOXvIwIdmikCayE?= =?utf-8?q?c7BpEdImUynA274w5YFS+Gjv+oxir8kKMKqpaBeuDXKSIGVlbPcFnYH3MTFbtpKLk?= =?utf-8?q?pv0Q28PYYjWo8Cx7LdwjYvOJ9mlTtI9ucQOrTRYwRC2Lydj7EIzn0BUSfyUzvCCqD?= =?utf-8?q?gCRHfyAwjYlfc0rUw73rD3DnRRwyvl2fn9041NQjTINOrbrwAZ1Wus5UlSoK0kEso?= =?utf-8?q?xFLAgF3KeJRIeAxQWHanrkKYoun3nMOT9nR46ZpdO0mrikBtRpJWwxM6bJDhwz4LI?= =?utf-8?q?eq353+USf/ohYXs81umxgc688thyytu1G8VNYgMIx1GvZ4syEdWGAGHaxYDKR/Dus?= =?utf-8?q?Uj64UCKEpWfBkVy3FlvQOdiqQtiBXhvkFqNAOBx+uDYNL7T7T02rRyg8bnS93DTSR?= =?utf-8?q?LWg3zbkZwkuqWIjYgk55xNiGxWMMPsMPq3cS9lNpx/wXC5r43+yd3CTGUC3iMmLZW?= =?utf-8?q?zCjgH6wwKBhjuMYPrs/gOQjsa1GpTzo7+bcbt7zpSn7slXl0VcxwfZWHnzl7HBGtD?= =?utf-8?q?KXfKrkAICAUkj/GcVx6WS9Q38a6xCO00da8OlkMaNzFvLL46P11xEZvo7Gx/WIrz6?= =?utf-8?q?Z3S0/W8SKxzVKXQXsmGcLKhdVBVsvylkPBkJrMB8AUiL3RUqNCr9NKu3K9cZkVPUU?= =?utf-8?q?eUvOLsCWs/vp+kAiwLWgWya/qMVfFWVe4Q2WxVTjJQ09/hgyZuqoIv30G8kQ29oaw?= =?utf-8?q?2n3yX3ABnONuWcevMCsf23y3MpQ4Uf1+V9yjqatQg+toDArgqjH0mQpCxfTZxNvf5?= =?utf-8?q?Eh/Bf1tAFnrzucyVB1+WePG3PBDRtKFqyYidK+6p1wU4loMovyZoMz13QanATYtOk?= =?utf-8?q?QPDT8x+CWAH06?= 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:(13230037)(1800799021)(7416011)(366013)(52116011)(376011)(38350700011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?nnx1IIPzyAUjYaHLP8nYl/q9xSea?= =?utf-8?q?/zi/VEj+Odkn5eaDuzlBazPFoFgnC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H/uUySfxMSA4ewstV2etuqf6gE59fZSDvDrM8gsGIt4C?= =?utf-8?q?F9X+aWtg7iZAHuJ4UasjWbBX/P6bEZ2ywoNC/HdbxUiO+bHdizfd9OvUo54+dbBMz?= =?utf-8?q?hg77uYaPhEM4b3RuenC4JLXx7ZpY8pICVMf4i6E9J9hheAHaI9hBnu1S+CyQZOR8N?= =?utf-8?q?wcapwUCIPkGphdjxhIdGYjM+cDCmwVyUxIpxbQuMasa02dunzhsDLayzOk2SoPMPa?= =?utf-8?q?YLS+I2BhNct+x8HyZCnfeohtVOMKg8idPmYGfcu5gHEzyan82+ZJkCHy3L1OSURzU?= =?utf-8?q?d/0N/CfrvhRQN+IrlQ5TFVo9No2YM8CbVgyoiiZXH+Aw4MB65a9eUsUbwD3ww0I+E?= =?utf-8?q?IdsavgBRYiKIF4kM5OJkf9zdlbIqhaM70duN4Ll1kTw9JLkWQ1Wwz2Z33IFT9R1MJ?= =?utf-8?q?ROe0rhMGOy/qzcJvzyC+bPpeRbY1a+kd64qsGF2r2nV5mWQ3Rhjxa/uvK1FCgTdh6?= =?utf-8?q?3czEsy+MzHVF5EOx0gh3MTezexvWicgi6kqhw0xkqI5u95sKyT9TvjzY9yYjMbidn?= =?utf-8?q?LK8KubLlnQQh509dtNxzr7cu/pXu3mGOO9IgN7M2Kgr8Qf/aKoB0l8aOGX5jXzoW6?= =?utf-8?q?V7vitwoc7enn?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 56f3131d-630c-4ad0-cbbc-08dc914a4219 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2024 16:58:50.3391 (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: ho/ijmAtWMSktDqHmaNDisqjzEW9blU9Oidpj+6AlXqN/wKi2Qwsln3IRTvo4ObbQoaPchx02gpkcaCUtwlmKg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB7632 Convert dt-binding spi-fsl-dspi.txt to yaml format. Addtional changes during convert: - compatible string "fsl,ls1028a-dspi" can be followed by fsl,ls1021a-v1.0-dspi. - Change "dspi0@4002c000" to "spi@4002c000" in example. - Reorder properties in example. - Use GIC include in example. - Remove fsl,spi-cs-sck-delay and fsl,spi-sck-cs-delay by use common SPI property. - Use compatible string 'jedec,spi-nor' in example. - Split peripheral part to fsl,spi-dspi-peripheral-props.yaml Signed-off-by: Frank Li --- Use part of Vladimir Oltean's work at https://lore.kernel.org/linux-spi/20221111224651.577729-1-vladimir.oltean@nxp.com/ --- .../devicetree/bindings/spi/fsl,dspi.yaml | 115 +++++++++++++++++++++ .../spi/fsl,spi-dspi-peripheral-props.yaml | 28 +++++ .../devicetree/bindings/spi/spi-fsl-dspi.txt | 65 ------------ .../bindings/spi/spi-peripheral-props.yaml | 1 + 4 files changed, 144 insertions(+), 65 deletions(-) diff --git a/Documentation/devicetree/bindings/spi/fsl,dspi.yaml b/Documentation/devicetree/bindings/spi/fsl,dspi.yaml new file mode 100644 index 0000000000000..924ba19aea017 --- /dev/null +++ b/Documentation/devicetree/bindings/spi/fsl,dspi.yaml @@ -0,0 +1,115 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/spi/fsl,dspi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ARM Freescale DSPI controller + +maintainers: + - Frank Li + +properties: + compatible: + oneOf: + - enum: + - fsl,vf610-dspi + - fsl,ls1021a-v1.0-dspi + - fsl,ls1012a-dspi + - fsl,ls1028a-dspi + - fsl,ls1043a-dspi + - fsl,ls1046a-dspi + - fsl,ls1088a-dspi + - fsl,ls2080a-dspi + - fsl,ls2085a-dspi + - fsl,lx2160a-dspi + - items: + - enum: + - fsl,ls1012a-dspi + - fsl,ls1028a-dspi + - fsl,ls1043a-dspi + - fsl,ls1046a-dspi + - fsl,ls1088a-dspi + - const: fsl,ls1021a-v1.0-dspi + - items: + - const: fsl,ls2080a-dspi + - const: fsl,ls2085a-dspi + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + clock-names: + items: + - const: dspi + + pinctrl-0: true + + pinctrl-names: + items: + - const: default + + spi-num-chipselects: + $ref: /schemas/types.yaml#/definitions/uint32 + description: the number of the chipselect signals. + + big-endian: + $ref: /schemas/types.yaml#/definitions/flag + description: + If present the dspi device's registers are implemented + in big endian mode. + + bus-num: + $ref: /schemas/types.yaml#/definitions/uint32 + description: the slave chip chipselect signal number. + +required: + - compatible + - reg + - clocks + - clock-names + - interrupts + - pinctrl-0 + - pinctrl-names + - spi-num-chipselects + +allOf: + - $ref: spi-controller.yaml# + +unevaluatedProperties: false + +examples: + - | + #include + #include + + spi@4002c000 { + compatible = "fsl,vf610-dspi"; + reg = <0x4002c000 0x1000>; + #address-cells = <1>; + #size-cells = <0>; + interrupts = ; + clocks = <&clks VF610_CLK_DSPI0>; + clock-names = "dspi"; + spi-num-chipselects = <5>; + bus-num = <0>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_dspi0_1>; + big-endian; + + flash@0 { + compatible = "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <16000000>; + spi-cpol; + spi-cpha; + spi-cs-setup-delay-ns = <100>; + spi-cs-hold-delay-ns = <50>; + }; + }; + diff --git a/Documentation/devicetree/bindings/spi/fsl,spi-dspi-peripheral-props.yaml b/Documentation/devicetree/bindings/spi/fsl,spi-dspi-peripheral-props.yaml new file mode 100644 index 0000000000000..ea9c7c52c1883 --- /dev/null +++ b/Documentation/devicetree/bindings/spi/fsl,spi-dspi-peripheral-props.yaml @@ -0,0 +1,28 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/spi/fsl,spi-dspi-peripheral-props.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Peripheral-specific properties for Freescale DSPI controller + +maintainers: + - Vladimir Oltean + +description: + See spi-peripheral-props.yaml for more info. + +properties: + fsl,spi-cs-sck-delay: + description: + Delay in nanoseconds between activating chip select and the start of + clock signal, at the start of a transfer. + $ref: /schemas/types.yaml#/definitions/uint32 + + fsl,spi-sck-cs-delay: + description: + Delay in nanoseconds between stopping the clock signal and + deactivating chip select, at the end of a transfer. + $ref: /schemas/types.yaml#/definitions/uint32 + +additionalProperties: true diff --git a/Documentation/devicetree/bindings/spi/spi-fsl-dspi.txt b/Documentation/devicetree/bindings/spi/spi-fsl-dspi.txt deleted file mode 100644 index 30a79da9c039d..0000000000000 --- a/Documentation/devicetree/bindings/spi/spi-fsl-dspi.txt +++ /dev/null @@ -1,65 +0,0 @@ -ARM Freescale DSPI controller - -Required properties: -- compatible : must be one of: - "fsl,vf610-dspi", - "fsl,ls1021a-v1.0-dspi", - "fsl,ls1012a-dspi" (optionally followed by "fsl,ls1021a-v1.0-dspi"), - "fsl,ls1028a-dspi", - "fsl,ls1043a-dspi" (optionally followed by "fsl,ls1021a-v1.0-dspi"), - "fsl,ls1046a-dspi" (optionally followed by "fsl,ls1021a-v1.0-dspi"), - "fsl,ls1088a-dspi" (optionally followed by "fsl,ls1021a-v1.0-dspi"), - "fsl,ls2080a-dspi" (optionally followed by "fsl,ls2085a-dspi"), - "fsl,ls2085a-dspi", - "fsl,lx2160a-dspi", -- reg : Offset and length of the register set for the device -- interrupts : Should contain SPI controller interrupt -- clocks: from common clock binding: handle to dspi clock. -- clock-names: from common clock binding: Shall be "dspi". -- pinctrl-0: pin control group to be used for this controller. -- pinctrl-names: must contain a "default" entry. -- spi-num-chipselects : the number of the chipselect signals. - -Optional property: -- big-endian: If present the dspi device's registers are implemented - in big endian mode. -- bus-num : the slave chip chipselect signal number. - -Optional SPI slave node properties: -- fsl,spi-cs-sck-delay: a delay in nanoseconds between activating chip - select and the start of clock signal, at the start of a transfer. -- fsl,spi-sck-cs-delay: a delay in nanoseconds between stopping the clock - signal and deactivating chip select, at the end of a transfer. - -Example: - -dspi0@4002c000 { - #address-cells = <1>; - #size-cells = <0>; - compatible = "fsl,vf610-dspi"; - reg = <0x4002c000 0x1000>; - interrupts = <0 67 0x04>; - clocks = <&clks VF610_CLK_DSPI0>; - clock-names = "dspi"; - spi-num-chipselects = <5>; - bus-num = <0>; - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_dspi0_1>; - big-endian; - - sflash: at26df081a@0 { - #address-cells = <1>; - #size-cells = <1>; - compatible = "atmel,at26df081a"; - spi-max-frequency = <16000000>; - spi-cpol; - spi-cpha; - reg = <0>; - linux,modalias = "m25p80"; - modal = "at26df081a"; - fsl,spi-cs-sck-delay = <100>; - fsl,spi-sck-cs-delay = <50>; - }; -}; - - diff --git a/Documentation/devicetree/bindings/spi/spi-peripheral-props.yaml b/Documentation/devicetree/bindings/spi/spi-peripheral-props.yaml index 15938f81fdce2..fcc39a04a8b7a 100644 --- a/Documentation/devicetree/bindings/spi/spi-peripheral-props.yaml +++ b/Documentation/devicetree/bindings/spi/spi-peripheral-props.yaml @@ -122,6 +122,7 @@ properties: allOf: - $ref: arm,pl022-peripheral-props.yaml# - $ref: cdns,qspi-nor-peripheral-props.yaml# + - $ref: fsl,spi-dspi-peripheral-props.yaml# - $ref: samsung,spi-peripheral-props.yaml# - $ref: nvidia,tegra210-quad-peripheral-props.yaml# From patchwork Thu Jun 20 16:58:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13705941 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2067.outbound.protection.outlook.com [40.107.21.67]) (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 BAC601B3F3E; Thu, 20 Jun 2024 16:58:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.67 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718902739; cv=fail; b=pnFvR8tEzYRuZ8txdOBVtI1gBPyj7S2P8y/3HUCxZt24zVFxwPWVjGIJ7VUQmH4awkzjGCYNxe6DB0EXISaxEwYOiTk+y5L+KktXUq6Po/xluYcsQ7LtulMa1Fen017dgZkILFZ2lPZ2i3tq7hRhqvLGZxRY3+nHpvz7E2jJG+A= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718902739; c=relaxed/simple; bh=MxLx60UxLPqA3/JaqR3fmiPeUnZUirZSyYTTD31/F1w=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=oHIgI/xCxfe+b77Zv8Db8VDWSpKrxonRM56NmQm/DC3I4QyCliX/or+a9zd5WnpxKdIET0flDnWn+NapIOOJtpQIrGAsBRcYbe+U9xKlHyfctRBZ3yN6Ljf7uk7f972Tn7EHKgv6ozk6K8auSeqF9AgjX0JENOCFj/6u/0j+NuU= 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=rUT4tZie; arc=fail smtp.client-ip=40.107.21.67 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="rUT4tZie" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Xg+rTt8f0DPYpBBxXuZwCVg/kNeD4owmD+4DaWWg7lhx//ARpevXiSETHjbU8E5UHpHYc8RI7an+BTM25F9cCWL8WpZTDLvID/kkOD/T9DB1OFPZKxx2KArZWBfEIreqR2iW6ETwFi6P0W7SsZ45km17rJb9Exj/MGlsfLf3w8QHky6Z8c3laVO7OO4rjPtiKRlYLMCwE5T30h3pjkm+PIkMQFafRa0W7yZadsxlaIzq4n22C1goXqtyW2fKcf29SSdXB+G1KoXrCuu8eL1cKW8f94FRcBlCQ9nO5hMtvhRqN1fjehkO1jXhBVvGaP+6+9ReScSkZ6yF1pHeErBQ8A== 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=2jYlbcarcwuIrebM8VfYyLt8aT9n6UjYjgSEaIlRc4Y=; b=mT1vNKJvfLuHTi2NPLBrQyUHmz+2ypD/ScGHBwiruZLrhqm+0Qh6Jgn2GwshBti1srCj4dZf0GmXD1C53sRfzbFJ6CHw4gdlAi6Qlu9S4cpwoUaMTb9IKc/+tItfakIg4CITuKfmRx/60HADk/YM+fBnUv97tKWPKhxNwuoxA1yHQ2yNXRO7A0vfqFOCXuQZ62SnSly/ZO9FZJifSZmAz6l9Ni0QrBrtvpo79Sh5Nj3NvdDu2MZwYtXj6k3Ch8IHthB+I1h7Gusg1qRSnjRKSxp7SO2G9fHY9PKRTwl4qR44F59Y5Xrb5QqGK3wa2hEOe6YWcgwh5THQZdxm/aw6NA== 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=2jYlbcarcwuIrebM8VfYyLt8aT9n6UjYjgSEaIlRc4Y=; b=rUT4tZiePgi0RzdSVDNoTTCcKxUsXSjaaSsDdB/YNNjIIRDeOhyeZc9A7GbECwoR0xbxQTMvbstRthirc2IFfP+c0lbHXJyo48yVdVfrpL5+a7wSxcO65WejHNQwfiUz4RS3w0x3hhIf37i4SbvsEhvXTJWby2HiMUvxoPSPVcE= 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 PA4PR04MB7632.eurprd04.prod.outlook.com (2603:10a6:102:e8::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7698.19; Thu, 20 Jun 2024 16:58:55 +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.7698.020; Thu, 20 Jun 2024 16:58:53 +0000 From: Frank Li Date: Thu, 20 Jun 2024 12:58:29 -0400 Subject: [PATCH v3 3/3] arm64: dts: fsl-ls1043a-rdb: use common spi-cs-setup(hold)-delay-ns Message-Id: <20240620-ls_qspi-v3-3-1a2afcf417e4@nxp.com> References: <20240620-ls_qspi-v3-0-1a2afcf417e4@nxp.com> In-Reply-To: <20240620-ls_qspi-v3-0-1a2afcf417e4@nxp.com> To: Vladimir Oltean , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo Cc: linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@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=1718902721; l=1654; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=MxLx60UxLPqA3/JaqR3fmiPeUnZUirZSyYTTD31/F1w=; b=39WQA/Hu/tIOPWkkdvdUn0MRdriyyi5wrBt5l7v4NtX5CgrhC6vVFBxxD+5LcKwCI/SQyUAis XcvQDbiOvb2Dnsz/NmQAjOK2Pqt81MaGMaXH3EmSTvZYXcfjNE5WeLw X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BY3PR04CA0029.namprd04.prod.outlook.com (2603:10b6:a03:217::34) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: linux-spi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|PA4PR04MB7632:EE_ X-MS-Office365-Filtering-Correlation-Id: 77611bde-02fb-44b3-e7b5-08dc914a43ef X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230037|1800799021|7416011|366013|52116011|376011|38350700011; X-Microsoft-Antispam-Message-Info: =?utf-8?q?l1uY4egHlpxDZq6efpldEeA9JL1K+oq?= =?utf-8?q?CLlkuAVc01Cty7oqaPWvuEg556IWBTA2HSWYCpgygrqnDnKd18B20Op9CIMyJEx3Y?= =?utf-8?q?fsUKSWWdAvpAZW2tKiYq4P5AJK2OFT72ZuvPO6MzWiAYkpt4jo5aqPVzm0vBlqjF1?= =?utf-8?q?zW6R9KiyNbmJk8lrggC8sCf3JrTrKWS9xfyILtS7sdUIepqCbFf1zb6bY0J+RBiQe?= =?utf-8?q?7n/OgQhJhqKiHia5r4eSokXOFZhAKr9Qeestt2UyeyA9D1imafXGXTim3X8xs+NTJ?= =?utf-8?q?k0XsHaWvlFuAMBu+hTKAEHfL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Um6qae4Zfsq78AW0DP3H3AeYArUb4?= =?utf-8?q?Z8MYx7Lox4Osf2bbSzpaw81BqJwUIZtpt8yyW1h+YAnCbWDKQ0dSHd+hYxyMrzErJ?= =?utf-8?q?b7QteIxG60VF7YQVJhKW3Z6ql4aGq9okM0JgNomwArczpa9g262lB5IQ=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:(13230037)(1800799021)(7416011)(366013)(52116011)(376011)(38350700011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?8SY5gRIp1cbAWeLGs4+Y8+6eTt9F?= =?utf-8?q?3JHmr5tdBK32U+sMbjNzXUTrfCaRs4SCGZpCCl7PlgHkpJjdLEK8ecQVDS8nvMvGF?= =?utf-8?q?OD93XGYBD4aAaQIuhQ0SIjzdM2cCC51bd2h0aCh2PIcMEbus16+WzI5PY4XRtBdgR?= =?utf-8?q?ZRS9pxPb5O6XDjmQPerFG941g1YXSyROuWKhL1DNaizizYQBNVimEPzFZj+o0EAPQ?= =?utf-8?q?Xn9jO41BzcMc6sUFSmYQbGkA9Mt4lLsFLdpWTeZebumxZVIpg0VFPoh38b31FaKAU?= =?utf-8?q?3v7LIjrlIFrZUiizJt14UP4Yb9SIAYutEA9G4XlOx2sjTh3eiFrNSLgi2l55+h4w3?= =?utf-8?q?ezYD2bHRal25U1oniLQRtERGctddI8Z/rkiCqweiJHrL0AwM9tQ3R3ziZ8aJzeuxm?= =?utf-8?q?2StOAbPC+oE8KYJgVs2QzdxY2Psj/2AtkLCJaVBx/zxnRWjPYfC3a1y06U1M7M0gJ?= =?utf-8?q?FU2JAOVUhuodxqgdn36rhsKmTv88igH4UjuQCBaffz2vppgXRK9/h+aD9FrAxP6kA?= =?utf-8?q?qSmW/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1xBhaqy9xWJ4ESoHy7GeTQOWOBcytSqrmCVpg4TSKCnUIjl?= =?utf-8?q?rNCIcRhHCAdLFHTzHXLO4EZ4yb2CogonDlE3jxP4HcQeq6s89iFEJ7f0ggx1Ay1zs?= =?utf-8?q?cnBp8ysxk0Cb?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 77611bde-02fb-44b3-e7b5-08dc914a43ef X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2024 16:58:53.4076 (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: 0vTbU8ZxjCYLYuYV7GJP7icfANO1Cq21kDhy1WJqjxh+o82noWS7nI/bU9fcbJ3V+lVBmLtVxTBhRMZhh8grSQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR04MB7632 Use SPI common propteries 'spi-cs-setup-delay-ns' and 'spi-cs-hold-delay-ns', mark private properties 'fsl,spi-cs-sck-delay' and 'fsl,spi-sck-cs-delay' as depericated. Signed-off-by: Frank Li --- arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts b/arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts index 26f8540cb101b..fef3534157a1d 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts +++ b/arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts @@ -104,6 +104,11 @@ flash@0 { compatible = "n25q128a13", "jedec,spi-nor"; /* 16MB */ reg = <0>; spi-max-frequency = <1000000>; /* input clock */ + /* Add common SPI property */ + spi-cs-setup-delay-ns = <100>; + spi-cs-hold-delay-ns = <100>; + + /* Deprecated below property */ fsl,spi-cs-sck-delay = <100>; fsl,spi-sck-cs-delay = <100>; }; @@ -112,6 +117,11 @@ slic@2 { compatible = "maxim,ds26522"; reg = <2>; spi-max-frequency = <2000000>; + /* Add common SPI property */ + spi-cs-setup-delay-ns = <100>; + spi-cs-hold-delay-ns = <50>; + + /* Deprecated below property */ fsl,spi-cs-sck-delay = <100>; fsl,spi-sck-cs-delay = <50>; }; @@ -120,6 +130,11 @@ slic@3 { compatible = "maxim,ds26522"; reg = <3>; spi-max-frequency = <2000000>; + /* Add common SPI property */ + spi-cs-setup-delay-ns = <100>; + spi-cs-hold-delay-ns = <50>; + + /* Deprecated below property */ fsl,spi-cs-sck-delay = <100>; fsl,spi-sck-cs-delay = <50>; };