From patchwork Thu Jun 13 19:00:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 804763 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2080.outbound.protection.outlook.com [40.107.21.80]) (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 284E5F9F8; Thu, 13 Jun 2024 19:00:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.80 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718305260; cv=fail; b=bmsMVjOlrnL0hrDFTC7JJmTt5V72z6HUxmA6ixXCTSZvioPr17xA8PYGQNHK1aKY5n5v8lmS5826hic+xOgFCq0jEmcyKdAJQq2/32LR0YZnkvcqYGFYtqAIxvoY+jsu6DARun48uWHydWMa5iV52AEF7Q+8YkQxXaLyfV8RMc0= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718305260; c=relaxed/simple; bh=1ZOLTYd9nKz3dWoCJmAdaERqxG9Ou/5gY0RXA9AdHIo=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=gXPabdaO+jQ9szFCS/GYgtmpqbCWs65SMXZ8ZucjjrJE832sLmgLD+zbRI4tQSBusltL2m1zhACjE9gE7pZBcrRV/fJQE6LcxswqZH8hocvKHK+dprggg1dMjts+W85uycwqAMyjULjDAvRt+P75OZ1IwJobhaqpBqSiSgBom5s= 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=NBYcw6yG; arc=fail smtp.client-ip=40.107.21.80 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="NBYcw6yG" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=K445UqfDJI51X14P18VydNEYxc/ge/2ir7kLOyWLKGBPT3NH4AhW5vCaHZAAjNHCwom/Ohb/G+MrUBj000rsZtj4yZoUHnChEohwUqR0KZEgG0YW7J1rLct2zd7ewXYu61eovX4OY/8ndWtfd8Yd30XGWCR3yiNDvlm1Xvwz/geGdH6FIUFupQmX3nIgLi6vKdHBnUsGBTNfD6Gcr98tCWMR0QJixUge8bm5cHlz3GBJl8UrgsD2JxqvpABW2LkOnZD45bdASN0kKKRkMZn1QbbfuTK2R6C504v6F7RXfclzmWQAVsIeRtQg/Z8aX5mSh3Y0Bb50GUWN6gObVUTvxA== 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=H+ggjTEfdXf+5Y02s7r8s1QIXvB4ZAcIKtTLKO9UZiXBWaIpz8R/6QDf+bEZjtB3ejMKEhS0PAhan9aUF+oX1gZWQoRsljc5TfSgnutxEPsX3awrprcYr2rXAdaPVKrBMuFzLqlObWXXhkuDLJShhfD8RylSaEaeKfbm32pIfFKRdsVwh+qSNPZUdhzpD395AtmMOuZ4wK3UM3ST91ZHCVzbE0rp2agV2YRK1nIaTfly77onx10uJvJVMUehO8H9SsP+sC+qNleW5V3Bqhg1261HhsBi5UuGhxmPwL2kXaYjIXWSPfqSfg6s/y0yGjrloMS4odSRc9UiiRnwawblDA== 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=NBYcw6yGRii/aUzIwnyrI59G6PH9MqaHhp+dKoiDKhayRvSp/Rr4CTLK/2ryxJUSfDo3H3hO6yCayvXI8BAXIP7QG4EgGZgyGluf2S6eIlEGbNjLuY0srYi/amcKZW3+2jtyUWCSdrelk8YXU9JWZT+tZz3bhqdmK7nFk2l+3NM= 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 AS1PR04MB9384.eurprd04.prod.outlook.com (2603:10a6:20b:4d8::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.24; Thu, 13 Jun 2024 19:00: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.7677.024; Thu, 13 Jun 2024 19:00:55 +0000 From: Frank Li Date: Thu, 13 Jun 2024 15:00:37 -0400 Subject: [PATCH v2 1/3] spi: fsl-dspi: use common proptery 'spi-cs-setup(hold)-delay-ns' Message-Id: <20240613-ls_qspi-v2-1-b288f6f5b736@nxp.com> References: <20240613-ls_qspi-v2-0-b288f6f5b736@nxp.com> In-Reply-To: <20240613-ls_qspi-v2-0-b288f6f5b736@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=1718305248; l=1322; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=1ZOLTYd9nKz3dWoCJmAdaERqxG9Ou/5gY0RXA9AdHIo=; b=AigHny9H0acvhuIMW1lTlx9mJFrEZ5WuWDM01EOzUjFXuLy+g5t8qGmSZi7sV7BNo0b/iE1gN ss40sYh5ZuuATumuD0h1Wv0m0JUCL8+4dYUZZ4eCIxtARCs0gaie0Jw X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BYAPR03CA0029.namprd03.prod.outlook.com (2603:10b6:a02:a8::42) 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_|AS1PR04MB9384:EE_ X-MS-Office365-Filtering-Correlation-Id: 2bbb6667-33f3-4712-3bff-08dc8bdb274e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230035|52116009|376009|7416009|1800799019|366011|38350700009; X-Microsoft-Antispam-Message-Info: =?utf-8?q?hkFW0AZo6plfDr9YhsCiI9WS6Cq+Kkz?= =?utf-8?q?vQQ8zHe0OGiPdItRVRYVoFiovGKtRDkN2zN13+XQmA2xNw3uaAGO2vUbVIZ06dbNE?= =?utf-8?q?T/oC+D23niA0nZsUpZO27M7ZzNqZlFOUGj4oU0c+zzB/grvv5dEKbGxTuQs/hpD1U?= =?utf-8?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JBJNtCG7VmEq0O/oxlhrTgh0OxtYbzYMRG+zU+i+Lov6We3/kbIliiCRUVqT0pquk?= =?utf-8?q?R7mWK50FQQJHQ6/AhxNWQ7HbU6/dVkve6CqSHPUi8/Wvib3Mxl3yQXVRykNPEpjDN?= =?utf-8?q?Kwx+UA/DoFtko0UBabwwRyJ2jGRIETWfirJ42vgY7tCBNBRS6znBiXAxT5HF0yVfc?= =?utf-8?q?gSfAflPCmxx9s+T7pQCuUMAe43DPX0/Vgj4Lv6gkXXag6MppxxTNf2aQXcjBvUOjm?= =?utf-8?q?1wkbzYQ0Xj1+bBA7neoKgLntVJYCafG9iLJI/x/uFhLaRsL02+WozLZs=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:(13230035)(52116009)(376009)(7416009)(1800799019)(366011)(38350700009); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?r9fBSuP6VqbacqLjjkZj2fL0ulll?= =?utf-8?q?UW4XtbOkWHMDioa8JfBoadAtuiJSZ0DjcVb97MXiqssEx2WG5t+9PbCH5Z7micGzE?= =?utf-8?q?9UL+LV7zq9ax1rfEe8Lgu4lYUs+t2voKsWrmWbcqw4CRqdxeKVOb/5nM12NXGwn7X?= =?utf-8?q?fezSnlYABIazL7HetzLOQeelcc8JmIBCbgZtMzQ8dliFo1ryoEh7+yRmbII+24x/W?= =?utf-8?q?KVSJGgT8Lg/6IjxPjB9gVgZ1w7bEE7gCy5bowHPOu2NSUqbxD3QKf8QAdixXUbQaa?= =?utf-8?q?bvDQap6XVxKoj7kEMWCGYANsvxyPTmg61iXbJxl5tNCev1x+HT4tYls7hgFldi6Kg?= =?utf-8?q?wlQBWjNt1wanMBhWwsBLzkWnWgphOzsvcqBRRlolLWq5+O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vNSwPe4Re07V?= =?utf-8?q?brYNEqxjrLgR021bvlVpOmqrCcJeZXDjkpj+396lMUd67VQMZkxcxG6Z43Rykl9AH?= =?utf-8?q?Ji9oINDhK2GgttdwT05YJdi38s3m0K1KAZkTDyac+8LDBK1aiQ7llsjLTFH8t3iNe?= =?utf-8?q?iOBxkZXrMJQo6Bpu0ry/UPpifOkBQzIFXFEy62yHxpaaI3TM9waEDd1bZMWhYbG7l?= =?utf-8?q?ZL0hmVjzIGJfnDGZX2h5gzn6Q1bvx93KJj4ItKRm87Rd2APAj6VDvccA=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2bbb6667-33f3-4712-3bff-08dc8bdb274e X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jun 2024 19:00:55.3959 (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: Kf1yL1RFvoB0hR/Kk4y8+pNB/fuCK3X3KeZAPq3aiRICEjoa+uquSKOvPAmNtwJsm2Zs7SdAqtXqyd/EK0HJXA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS1PR04MB9384 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 13 19:00:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 804103 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2080.outbound.protection.outlook.com [40.107.21.80]) (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 5CB2414C586; Thu, 13 Jun 2024 19:01:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.80 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718305262; cv=fail; b=Z22Goy5V0OIatXND1WeC8dzaY2v4KgfDFkuMgyqiiClv1U6nJRtyMvzClXX6wnM3H0MOC/Cmn1JGLx2HCD787YNM8YTTAeZnr/yGR08Frm8SGMbg+rDip6phWqYkYsZjILVhXihGDRFRM7x8gxisS5eUGvmmBKIuvlUQxniUXhU= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718305262; c=relaxed/simple; bh=3kpVvZ7+OURsKTsSaz4XUDS0WqPemahfcN207RlHNzM=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=Tguq8M9b6Y0d3cGak7rs/ejW+ONeVm4bYVTu1wmYxy71xNSdKRFpSsWthsC+5Oi9mvgFAY/n+828Rm/BBftz8CW4jkHN1KJ2SrKstlfIqmjhOXobWgxQ0azp2uI1B+p5bpigYYAwNkexvCp6kquTD80OJoQM5nEgM5qmBotZNjc= 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=E5reWWgS; arc=fail smtp.client-ip=40.107.21.80 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="E5reWWgS" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lfSBpC0/9XWx4gh+yTkQQCV2w43gx4Sdo7j6RiBzXjhAlgZyP+oPoimk/c87s9m/fchtHYKZweswRr92AqRKkhcqx3VkyEzA2vMj0pqDqeZ6ktANrWlewEk7/xxWlvdo2XaRxzp0GWwc9jM04DMxhkuxO43f1F+Ht4oxdLzwMpfjql5ifz1xZtL6ZRMq6PimyyBdKZ8AN4BejvjPvcY50Z8nDb6tiOaqyHRJ0+VbQ03Reg/ExB3kwr+Uuu5zPfvkbe+cDW9d2VkUly2MmmabHsdS6IutPI9Gwwp1C+4Z3zDipYDDvLtJF7R+tSq0WRiackRzqqeOZVYQn0q+sxTMZQ== 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=jDtADWTc9kg50HQBuTQK3rA2YPCUGjvoANTHpqA38gA=; b=Q2C75vy2ILJ5Xth4byoMQ7pdn9e3iwF2q47/t5Xk7aMNJaiQbGjxLAdFIOvBtk3rxORJKwLnHJiNq08X72TfMrU8z7UEh2PZtMK/vAYSRP+nbGTn9OP9NNvwCTPTSlLVjDS0TAJye5OlTiO34mSbRWN3ECyGlOyMEJ0+43AmUKlc47FuqtDePxcD/gTaYC6qwh/YL0cguZacttz9Co0SUCDP2+v8dCcn000kRMr7IbCLD8AI8TbTAeZ6Luxuu5BmUk3YqcL4wfVUwAG0BGRwZfZmugYl8XnQ+UzTPlU45UxjbKgfWh9hL+NnQ+22lNF77euOKCGJUiukdB4i7VWIFg== 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=jDtADWTc9kg50HQBuTQK3rA2YPCUGjvoANTHpqA38gA=; b=E5reWWgSJ94RBSeH12Yt93ayHCDwUoZawVvdgqkY1LmQZymbcjraksv5edWbjufR6WJQeGaLBcw1TKtnv+jbmSMnosBvAUvm9PaEOH0cgV3c1Z6Z+MuxtzU8osZ3Rh1SCL93BxzcYouLF2he3Ii1ioWQ8YYXgEmuDRmQZl6nbsI= 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 AS1PR04MB9384.eurprd04.prod.outlook.com (2603:10a6:20b:4d8::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.24; Thu, 13 Jun 2024 19:00:58 +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.7677.024; Thu, 13 Jun 2024 19:00:58 +0000 From: Frank Li Date: Thu, 13 Jun 2024 15:00:38 -0400 Subject: [PATCH v2 2/3] spi: dt-bindings: fsl-dspi: Convert to yaml format Message-Id: <20240613-ls_qspi-v2-2-b288f6f5b736@nxp.com> References: <20240613-ls_qspi-v2-0-b288f6f5b736@nxp.com> In-Reply-To: <20240613-ls_qspi-v2-0-b288f6f5b736@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=1718305248; l=6289; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=3kpVvZ7+OURsKTsSaz4XUDS0WqPemahfcN207RlHNzM=; b=vq2e5E7bPq8Kk3+pfsTqhXj4v8wgKfNukl5HjF4nZULDJIaInAVyMyZBRKDeBfrrve1Lk0sDQ av2ivLZkpx8D/3Pn/q5FDqwo9PlJDsNxJ3CrnMX7/bYwdqe9aJZl2sT X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BYAPR03CA0029.namprd03.prod.outlook.com (2603:10b6:a02:a8::42) 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_|AS1PR04MB9384:EE_ X-MS-Office365-Filtering-Correlation-Id: c495db6f-a249-4eed-e750-08dc8bdb294e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230035|52116009|376009|7416009|1800799019|366011|38350700009; X-Microsoft-Antispam-Message-Info: =?utf-8?q?d/GGv4mbob+QwexulhvDUwXXA5Fo/zX?= =?utf-8?q?+pHJmvn3cNG6NURrn64OS/7jetOBQshYu+iRTfuPCjBqhLIoDBVLwukYVqsIA+fPP?= =?utf-8?q?1kt92bYU/qPNdxMbkbM/InvnLvNqURzybYR+Cv41K/yq161L7df9uoIplfo1/JHtg?= =?utf-8?q?Z6LZSHfsqFWzvg8ctbVJSNzUoZTsePmauLuhwB7BaUz1YfkatXqbSZMTQJBltFu+E?= =?utf-8?q?KiPyRUH5XzOE15Ib34JqBkqZE2N0pucaJ4JzLixqjhWU/gIpiU1p/XZZoE1Dwr/1D?= =?utf-8?q?agJYKjR9WceLzss8u6pxMIr5ptgVHV5Ht66xtkLW/trcLm+FDGGN+In65o1AvS5Sb?= =?utf-8?q?rUEWmyFl6qusvNgmbK/9B7SU8upSZJJxriGS6zgznJKp4BZ5xcfChv1ywYPZrgifv?= =?utf-8?q?EqGCtpswjeQkx6ZDEKGVun+uYqmBsE0x95dW4kfEM/eWOzogGrONFcq9jPojRFxPJ?= =?utf-8?q?v1w4wDkMIAk4qHpJICLpPUjYMtb1fHXmqN+afi2yDKC2dGd5MEy8w7YprwWGyLq9V?= =?utf-8?q?fy1QYwFIKVyJ8pJx1klSeCRszJeU/PeLfdq2uZuNb9nz+c3g1Ry7otbWP8XHsgd7f?= =?utf-8?q?3q3+fNQLduJS4FXKcwNfb8KiT7k8/ANyQXpRdPpdbGp0+M9OqYaVXF2uuQRKMFAtr?= =?utf-8?q?4LVlPaJJFFBeZudf7ct6wck0w4IYC7puXI/vZrIxHikR16SSrjrl9FMV1mDOYQn8O?= =?utf-8?q?QWVXfEFYc9Cyf0GxmwdMWQoW/qidic/t696xirgci4x9GsTzbV4LQeA8SGXkfPSDP?= =?utf-8?q?f28PJuMsspeSXclxE1xz8WIN6NupM/bMifTgU4wsFeXiCLv68OC3+npyVq72I/Q4l?= =?utf-8?q?2DlXOhYppjtm8iZCU1vQ4/WYF0UQFTccRBiv/Vl65BpQBCCntXc4snOtd11jTg+Q/?= =?utf-8?q?XmUSFL0TMtXcgANQKb4uyiVpu0Oh9KEey40+sDyVmF14JXKFkNdEA06etcK+xL3hc?= =?utf-8?q?wpb5B3EBBpxjZK/mevYSmwNYBtLjofmUzgUgz/Cq4kuyX59aUGVwbjrxdI5XO4HSW?= =?utf-8?q?9ddJ4E+KiXGpUvzxkcJ+I5VHglwgFNEmOvVEJ6ZiKoNvNc0NB31r5/0fW3mot7kh3?= =?utf-8?q?rAqdpLsfpGK0gCjO7iE++C1YW61cMS1IkUaUh8jqp9exM8LlAgqLzFZLe2gpDBm8Z?= =?utf-8?q?EOzOYFf82ku1i9mLSN3583Nv37BXsOXMQsxLqpVmSmELpHrhDcNgBdqfMGT3DgMtZ?= =?utf-8?q?yjs8HOsJNY4C1xXQW2YJonFkGiko6MGzXujqNx+7DGABJnhWnT8B62Vz5M80/pwIE?= =?utf-8?q?K3JQ65DubxELS?= 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:(13230035)(52116009)(376009)(7416009)(1800799019)(366011)(38350700009); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?AbRlyyqwNXk0XhFX/XvrPleGWtY2?= =?utf-8?q?5yX1KeR12Crizs6MG1lPBqC//Hkx5LAX0jXqmMjymtztm8fU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otF/LcCwwZoFpTO9SCOcITnqLq?= =?utf-8?q?PZtcOIzPQSVQztmWTMzj5bfclzey54SzYDfoQqVYXxTZ0+6Atab3jn5N3EN5trWFR?= =?utf-8?q?noCcBbMxP4cmzOpt9YpIfqRCe99LN6APms+QgWKUJi2Bfj5i6gtp1EAP3US9/uYc2?= =?utf-8?q?aNpPleRvXMCPGFRVVcn+FuloINJYyzO58mvLTDVJPYyK8A2wrrrhyS+/gVZnlNGuf?= =?utf-8?q?d2EeGywLgdG56GueA4XfJthMVYuiBgq28wki2BLdiYPH/pVTwPCvS1dJmoyUWanzu?= =?utf-8?q?SN0SLmDQwU2E/76i2tLJcM9BS2wv2lphkp2gBFI5K2vPIe1hXBhThUYRdu265hOvn?= =?utf-8?q?d632LisTEq66c5CYDAJog17N21L9UzoBirWSnIBeUeMUtJDwbiEjTf+7kANt6/pdU?= =?utf-8?q?SancnhrLI2l3gSjs655QuHdE2CDyx/S4UewOzwkggiLVaH6IMq3bSKOHoHcILbNTU?= =?utf-8?q?dn8U8uaBGqyFtPyu3/Hp3MvoJ8OizDna/bOOWjQlKiPi+TLeP6tp7zQZS1dS9C7o/?= =?utf-8?q?YK0dC3mD1pNQ+1lszjlvTflhg1Q1SA+d5xsRICGeK76yhuL+KWQBNVok=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c495db6f-a249-4eed-e750-08dc8bdb294e X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jun 2024 19:00:58.7879 (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: v0RuBXYbleNgIPo2ujgu2KdE+MhyaFnNz2nblgj1rwB/1j34Wlk23GO1vn1GLeiioSzkgxTFblPRie0tGeQXcw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS1PR04MB9384 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. Signed-off-by: Frank Li --- .../devicetree/bindings/spi/fsl,dspi.yaml | 115 +++++++++++++++++++++ .../devicetree/bindings/spi/spi-fsl-dspi.txt | 65 ------------ 2 files changed, 115 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/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>; - }; -}; - - From patchwork Thu Jun 13 19:00:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 804762 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2048.outbound.protection.outlook.com [40.107.21.48]) (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 259F8F9F8; Thu, 13 Jun 2024 19:01:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.48 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718305266; cv=fail; b=pdk2v9USr70uTPOj03wilQXs0PnaUFSfAurq+3k5T54tugvNo9aRMupw7k4C+2cQYIKB13oImWv88A+0n+BN36/U9Jl47tVqqQTLKugmqoGrFeKWPRjY73V8CfCRk5qinRo0G20+2NLpxeFmPgvJornzsMxqTJChSvDY9qAAiY8= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718305266; c=relaxed/simple; bh=q4FEChlMBWe7+qQsPtxCF3AQjmJ21gIsWKeyAI0eW5M=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=jq89dEfr+I5lciTgfDeJWz/2BIVVNgdv0IXrbJ+8WtFWYwSr9DnCDVznVz/hm2hVdXzvVuMFjvJZOOoLrG+qGInfS1PFkoDR78Upy9UdxwImMAiY9bG7t8HfKVTCqQsGqkyTuLsWAQZDRW9BBwsiftw7AOYnCAYyNlQaaIK6qGM= 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=l/LVu2RU; arc=fail smtp.client-ip=40.107.21.48 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="l/LVu2RU" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Eosc09M10Xz8dIgrRgBqLazqiXwRjkV6TI+v76c0ugZ36yR1vBcKu1Oq9/3j3uVGpr6en1cv/O48PtyEjUL2OufGHGYPVytxKYi1JzZckMAt2nmzMxVdq5TEi8D8Q9u/Avk/2COb61TUCI3lJrwjWGMe5xNHVqahHh6ZXAe4u0vCgyyX3+2kE1rB1kcimhc1s2kOORbTBbUD+O5zyA4Rvj++qBrLh1/rlB4vk7+Sm094bpDeTKuj8KLC3zdgTTxHkZCu/2mKN9K8rq+HouZJcrxaaiQ0PEu+uuasEoXXXESOyr8Z6cGyNIuy6nnt+OMSau732pUXEXhHbIhNZ0IKKw== 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=TQjFS8nsU/xVWAFHmZFbO0nCdjiIS8tAQZur7F8RPTI=; b=L7WMXl6POXcCtoQYXXpsmpdiS3dd7ZO2iNlBVvy/YjnrGdjIPFf5ywz06gvk3QXukhlnOLPc8uhdnMDqO2pduWywyBTiYPdDowfvBrQz1byMP9nISjQS8en8aP7K/AaOgXw3cuuuMe+5Tu4Y60P1ZK4G4F5TZM60i5H8yHTAqjsuIgjMIGBXIsu8oEmpHo3Zdy44uzuJf6zz6SmzYVNS9r33x5kvtrWiv2RDswzjNnp4ix6+t0o+1yiRdMq343XcXAUToQcJFuSkMRrP4QMGcfczwqA5RpfyOOAikFUIjrPRAPsKBw4i0fiKb92FHKtjzF+xQVbENDuhGPLzT5A0dA== 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=TQjFS8nsU/xVWAFHmZFbO0nCdjiIS8tAQZur7F8RPTI=; b=l/LVu2RUyQxq4nyhQT5XastQqei/SIgqJiEpv/+QBHJRFhPHgFb5vM5CztRsVTEn9usDpq5hhfsdO3ZI4vjeW4r5R2yTMIOJ3he3pP0zitJuP8lyy9mucl1qWQZ82N7JveqzKKxAniDCmexo8/zqgPkuFc3zBhz6GTptJIiV8M4= 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 AS1PR04MB9384.eurprd04.prod.outlook.com (2603:10a6:20b:4d8::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.24; Thu, 13 Jun 2024 19:01:02 +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.7677.024; Thu, 13 Jun 2024 19:01:02 +0000 From: Frank Li Date: Thu, 13 Jun 2024 15:00:39 -0400 Subject: [PATCH v2 3/3] arm64: dts: fsl-ls1043a-rdb: use common spi-cs-setup(hold)-delay-ns Message-Id: <20240613-ls_qspi-v2-3-b288f6f5b736@nxp.com> References: <20240613-ls_qspi-v2-0-b288f6f5b736@nxp.com> In-Reply-To: <20240613-ls_qspi-v2-0-b288f6f5b736@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=1718305248; l=1414; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=q4FEChlMBWe7+qQsPtxCF3AQjmJ21gIsWKeyAI0eW5M=; b=++gt9Oiuj8URfl320HFOoWUsqS5RK6YA+iIjCwPRFXvpYADfLJSG2kWYA4JRunL0Cdk+x41IA vbCAJGJQxEIAjVkf6ClGPHu3nLxyV54FO8OBJ8tN6WiOtF0rIxc04KC X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BYAPR03CA0029.namprd03.prod.outlook.com (2603:10b6:a02:a8::42) 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_|AS1PR04MB9384:EE_ X-MS-Office365-Filtering-Correlation-Id: 39004c4e-ff44-4296-009e-08dc8bdb2b79 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230035|52116009|376009|7416009|1800799019|366011|38350700009; X-Microsoft-Antispam-Message-Info: =?utf-8?q?+Dy51t7t/e0K6vaXXzQQfkeirCt5T3W?= =?utf-8?q?R2WlVRUvCJtqs73k+S5nCw1Vg/ZikANpfP7M8pM/ImWO5C4gW2hj+UMDE5yKPWuh6?= =?utf-8?q?TZyMm+Ne0Yobvb2XSHrDB7y/uDxLZOyH/5VomDPmjQyZLN+sTCbmc2jQ6QNZduBnv?= =?utf-8?q?QxQslFoCMoh7ZK2Be8H5xmGpnxCEHTh4vduIU9sYEJmovHHPCRN+6k35FfSoU5U21?= =?utf-8?q?mVWmM95l+j5FGKWJw5C7jdI4KyOa5ZxKweaJl9VUoIgVjEOJDdXk2D940vMsfXh3Z?= =?utf-8?q?V6dOOZ23SrIVPbzZX5LIPwrsD/vb+iHBUEULVzgLShMdGpDBibDWf3MO9Auz1Oa6C?= =?utf-8?q?DXUB+IXDmMC8jUpY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EajY3FH0vd3pWguzmFpbtq+Xh3oik109U7Z70ZUNf/ARrLPPGhs?= =?utf-8?q?fj7CmCEDfnvCaKCYyqZAIbklMuCl26hOmZAM9efEyppQ/t4Ye82Reh8c=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:(13230035)(52116009)(376009)(7416009)(1800799019)(366011)(38350700009); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?5vQEAJzTO6F2gCFSUd3Xio4ORX8j?= =?utf-8?q?Js4cBlK3Aavc90JhPVP9D8JmIcLl0mfzYOE8uayukcup4dFvX2sfFbTLFASYww5fu?= =?utf-8?q?///xq4V5yBpvrsvy2ur9UVAan8H89y5YtMM5DITS+2Z+BfekypGltJk1tIEbFIFIt?= =?utf-8?q?aVVALXFd9SZa1Z4xSldQqqiqk/3LxI2WuPALm59JO7phVfyOyvYRe8akvuAZcHmVD?= =?utf-8?q?esLefYk5LggtekcGDg5K74xrqmRAp29D7cijQwbrBXE70KbtisNhptLO2VQYMCIB3?= =?utf-8?q?hyrqx60RD8Hkem7mWXsMqdxjGxtj/XMpRExxLd0X5uvd6Hc1PKNgrIcSButmhj9Rm?= =?utf-8?q?9N+dJ4nia61Dx2BuBhuzfVisO1b5cyj/SZollqVMh2apdfFqGZBYTKT+nlYcg5W7o?= =?utf-8?q?E5YqZrQVALZD+6G8T3e/Uxh2JBYHgzuMI0KH0fbgES7D6cuJd77/2VGFwyZ1IHYN2?= =?utf-8?q?T0lMEf0eNBzbNV54GCR4Sw9YdCM6zMiSuf2NtVYEA0qiqs26CQcr2KwoLDC2vOir0?= =?utf-8?q?LmzaImXuk3vPYtyYq/dsyJULRzZNBoGofPMoLNLyoiewN2W3x+Algq7+/URTVDdyq?= =?utf-8?q?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?q?jSdyTQLKXz1iEP7PvJ006/bM5MbiSAbK3JgO35zlZ1ByPgbe4HRFsSaMOOAXn0HNL?= =?utf-8?q?UfAmyT68TsNV?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 39004c4e-ff44-4296-009e-08dc8bdb2b79 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jun 2024 19:01:02.3917 (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: EvFeNP804FfFWETJTurgVvkWxbdmsTx4Cpff2qKMLxsTh+2xx5B+AQZNKW39wfeLse/zkXKmdN8vV5FxkrbSSw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS1PR04MB9384 Use SPI common propteries 'spi-cs-setup-delay-ns' and 'spi-cs-hold-delay-ns' instead of private properties 'fsl,spi-cs-sck-delay' and 'fsl,spi-sck-cs-delay'. Signed-off-by: Frank Li --- arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts b/arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts index 26f8540cb101b..23b9a8b315468 100644 --- a/arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts +++ b/arch/arm64/boot/dts/freescale/fsl-ls1043a-rdb.dts @@ -104,24 +104,24 @@ flash@0 { compatible = "n25q128a13", "jedec,spi-nor"; /* 16MB */ reg = <0>; spi-max-frequency = <1000000>; /* input clock */ - fsl,spi-cs-sck-delay = <100>; - fsl,spi-sck-cs-delay = <100>; + spi-cs-setup-delay-ns = <100>; + spi-cs-hold-delay-ns = <100>; }; slic@2 { compatible = "maxim,ds26522"; reg = <2>; spi-max-frequency = <2000000>; - fsl,spi-cs-sck-delay = <100>; - fsl,spi-sck-cs-delay = <50>; + spi-cs-setup-delay-ns = <100>; + spi-cs-hold-delay-ns = <49>; }; slic@3 { compatible = "maxim,ds26522"; reg = <3>; spi-max-frequency = <2000000>; - fsl,spi-cs-sck-delay = <100>; - fsl,spi-sck-cs-delay = <50>; + spi-cs-setup-delay-ns = <100>; + spi-cs-hold-delay-ns = <50>; }; };