From patchwork Thu May 2 10:47:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ji Sheng Teoh X-Patchwork-Id: 794602 Received: from CHN02-SH0-obe.outbound.protection.partner.outlook.cn (mail-sh0chn02on2095.outbound.protection.partner.outlook.cn [139.219.146.95]) (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 E890AC8F3; Thu, 2 May 2024 13:21:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=139.219.146.95 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714656107; cv=fail; b=eJfJVFOx/maLWR9OfqWqj7f38ey8ddma2Nw86OCrQ9LUd3u6F57x5+UnGIy9da/GlIHuYWHwfWRsuIhBhm1WmHgbNKzl9/T/c6vbACJdJ96ZnHIzzbrIPZcbVltXYm2IvKqDkjzkSyVIfCtwqMKyqJXyWAJciU0j5zHSECFI3sQ= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714656107; c=relaxed/simple; bh=Sa7Mj290ohsbo1pEDefO/T0g83LDkHIYxLomRyhhjbo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=U5LsZGTk1wHUutnk/qmdVs5ARrlbBE2gTL+mKXTZlOKyvsVP8Kfdl+h7qodDnGJgaKZubg73ZLidgaC5pdNqw9qmrNdMTG7dEWMVCuiuGx2PTr4N2oAe/PsfCd/jF6WPwULzIzAbjag45B2kFHggOtJ+wkUlqPE6kyIxwsy1Ezc= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=starfivetech.com; spf=pass smtp.mailfrom=starfivetech.com; arc=fail smtp.client-ip=139.219.146.95 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=starfivetech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=starfivetech.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hxbEIEUBkIRL4gPVKXKKoj19TK4InzbHB2Jbj/strm/rPsmkFJP5vtC8dJB0k4vaooaTKa58HBT91vncymV3NiuuHAhuELUfs7JjilzvNGUQ7/xmsnKuLW/SKB2AuNFHNEYi/rY7SRYWwyeU0VUSDWm1jocOie9eou9Vw6lAD++DpxqSnuSgBrC1+8D2dc2bk3rbJf0xNqXNWpE2gmiSpzUwaGOf2IA+qJR7puTV9FH4WYbq4BoQMcVQ75i8qqm3qOkTgDKgJe6oY7UV9yqkdafXos/5ieLMNzq0G5MIqhQ50XsxIR6t5oS/9016MMuWWjQKdJFsMX7+0xrXRvixRg== 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=8nUR3fTHZD3S9JUM0dPVceXYbag/qTldA54Y0UH3SEc=; b=kvIKtvYl+MPpcC2OhHHIhk+J9IoLRSs6TaJVeE/p7ykD5pm41YWoHW+ZW2NYBu5oZDlDB8bAvDSfBcZYL35elQLvXrdfZyKBp9sIHR9e6pm0b1qS0ad+1hg+jP5bk+8oF4yKC5kK+9WMJjqH+5J9IKwK9ckABfcbApuwa4ljfnkZWqQwjC/9rx0AIwNjMXRrrHvD3+Z/kMVoaLczsTpc9+qBr4UaHecagXjDItq/kI/db4gy8JRQVwLJSqnoIVVq451CyYyRPWz6WY1WHwEPtvy2uDhwnoOOay6c2xFsXnMV3j+6k08KXKH6YbP34fWUfev2RU7VD6PcjKz1HcnqmQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=starfivetech.com; dmarc=pass action=none header.from=starfivetech.com; dkim=pass header.d=starfivetech.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=starfivetech.com; Received: from ZQ4PR01MB1154.CHNPR01.prod.partner.outlook.cn (2406:e500:c550:17::9) by ZQ4PR01MB1284.CHNPR01.prod.partner.outlook.cn (2406:e500:c550:14::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.44; Thu, 2 May 2024 10:48:34 +0000 Received: from ZQ4PR01MB1154.CHNPR01.prod.partner.outlook.cn ([fe80::301e:ec80:4356:8b14]) by ZQ4PR01MB1154.CHNPR01.prod.partner.outlook.cn ([fe80::301e:ec80:4356:8b14%6]) with mapi id 15.20.7472.044; Thu, 2 May 2024 10:48:34 +0000 From: Ji Sheng Teoh To: Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Philipp Zabel , Michal Simek , Lars-Peter Clausen Cc: Ji Sheng Teoh , Ley Foon Tan , linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Eng Lee Teh Subject: [PATCH v2 1/2] spi: spi-cadence: Add optional reset control support Date: Thu, 2 May 2024 18:47:59 +0800 Message-ID: <20240502104800.3030486-2-jisheng.teoh@starfivetech.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240502104800.3030486-1-jisheng.teoh@starfivetech.com> References: <20240502104800.3030486-1-jisheng.teoh@starfivetech.com> X-ClientProxiedBy: SH0PR01CA0005.CHNPR01.prod.partner.outlook.cn (2406:e500:c311:5::17) To ZQ4PR01MB1154.CHNPR01.prod.partner.outlook.cn (2406:e500:c550:17::9) 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: ZQ4PR01MB1154:EE_|ZQ4PR01MB1284:EE_ X-MS-Office365-Filtering-Correlation-Id: 99ccb9fc-9e60-4e26-6b1a-08dc6a956a44 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: IIm24CYcey8ZSGgxX9j0aJ4CwuQVh8rmQdA69HZNgCOJlbDobVzI8g+nPi5JzTmVM/P+Dy00tb66Z4W3KvtJUwdLm9BwjVEDFcxJZq0HVtrFRT0ZdVGLz4t19I3JnjMk2tIh/BNFgX12uss2/TUDO5nh9XuqQ1/aK2w6PBKh6rTo0FpuK0svB6MrfsiwcAblqrrhclmBCX0K39SlEA5vJqp6NpuL7v1CskH9uwqvIUfkOj4Xwha+Qg9BvzfmNVpK65ZcMUI+bKwhwgnJxF5TUNUW3gieUuz7YfHpRYhT4p8bXf+Ggx9uzZbYSeh/I0KFBKeL5faiJcA+zg4J9DIFOjFlFicGUACBNiJmTzHT37fcXSxsBcDrduAyPkAdUWJbFWn3Dxu1NGNmWYVJmMLDzh10qpr8QzANky8WPY1OoBrCgHEys3g9VvnoRxhlVYizOQvVXzljoeeHAR+dhmlDgq5VDKe5hhXev0Pxnz9nfeCEmCl1+F4v5gWbWCYeZUBaei+YMfVX6yIkaE+nb9QmoLmUTMNeMiMyEh/alsR/YXIlD59/vFISFXaImt8bSo8WDqlJViUfiBf0+xS81iWkZW+YR+RQO4gTgtcPUVEz9OCHMVDYKkHq5aMrA7hgMVNX X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:ZQ4PR01MB1154.CHNPR01.prod.partner.outlook.cn; PTR:; CAT:NONE; SFS:(13230031)(52116005)(7416005)(41320700004)(1800799015)(366007)(38350700005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: /FUFsA/krzI7zJc90xD1SdhKtg7pbjwEYKkyTZ2ikLc56obAJUCvyKXzYqPytob7dzW8NoTfeZMwoA5UkiK9E2ujkq07yTW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DKNn2dFWIdfTYzc5AtvnEpQiJ5mfLZOfobO15OUAObDv0CABcT3PG0nnPHC8/ot2hk4I+EMBrgHH/ZnpT4FHlefhvUaoaXrtq4lZERkB0p240fE1TOoaRcx+wdzTKhIFgkt/h+5HpooJaV5Gi4dYMHQlrYvyD0IS5cbfPSgRiKadV4Waweo/4KuDxitTa1pVMRg+gcnlCeMzS9yQw5IhYOyWocX/E96OpwltXv10U2MjAvJ5nYF1rOtL+fnL1w2/05ccn4R0wRwOUad2EfQgIfAGRdXV7CSai0DFPDRTM7/nax/9OQOvK/QQSvZ+a44Olon4XBftDWNCd+TANS3eTRIXT6kkxZMXwe85LrxX5mpc23C1+D2M60XpfClc68ZPT+0KZkd2Lr4D8IvMzpWokkyh4av5PlSbZNtiY93li05CBf+HDAKpEMM2E1gBjmoIeCPd00= X-OriginatorOrg: starfivetech.com X-MS-Exchange-CrossTenant-Network-Message-Id: 99ccb9fc-9e60-4e26-6b1a-08dc6a956a44 X-MS-Exchange-CrossTenant-AuthSource: ZQ4PR01MB1154.CHNPR01.prod.partner.outlook.cn X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 May 2024 10:48:34.6666 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 06fe3fa3-1221-43d3-861b-5a4ee687a85c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: JnPnkIRSeKZfrlX413UrBnJDEcGfarp6JPDdr+1KGr6jlowlAQh32GWk4FpskLetSXB45oyfqdtjfQvAx+AM/ewLIVFqDzaG8UzQuyO48hU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: ZQ4PR01MB1284 Add optional reset control support for spi-cadence to properly bring the SPI device into an operating condition. Signed-off-by: Eng Lee Teh Signed-off-by: Ley Foon Tan Signed-off-by: Ji Sheng Teoh --- drivers/spi/spi-cadence.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/drivers/spi/spi-cadence.c b/drivers/spi/spi-cadence.c index e5140532071d..11530a531673 100644 --- a/drivers/spi/spi-cadence.c +++ b/drivers/spi/spi-cadence.c @@ -18,6 +18,7 @@ #include #include #include +#include #include /* Name of this driver */ @@ -111,6 +112,7 @@ * @dev_busy: Device busy flag * @is_decoded_cs: Flag for decoder property set or not * @tx_fifo_depth: Depth of the TX FIFO + * @rstc: Optional reset control for SPI controller */ struct cdns_spi { void __iomem *regs; @@ -125,6 +127,7 @@ struct cdns_spi { u8 dev_busy; u32 is_decoded_cs; unsigned int tx_fifo_depth; + struct reset_control *rstc; }; /* Macros for the SPI controller read/write */ @@ -588,6 +591,16 @@ static int cdns_spi_probe(struct platform_device *pdev) goto remove_ctlr; } + xspi->rstc = devm_reset_control_get_optional_exclusive(&pdev->dev, "spi"); + if (IS_ERR(xspi->rstc)) { + ret = PTR_ERR(xspi->rstc); + dev_err(&pdev->dev, "Cannot get SPI reset.\n"); + goto remove_ctlr; + } + + reset_control_assert(xspi->rstc); + reset_control_deassert(xspi->rstc); + if (!spi_controller_is_target(ctlr)) { xspi->ref_clk = devm_clk_get_enabled(&pdev->dev, "ref_clk"); if (IS_ERR(xspi->ref_clk)) { From patchwork Thu May 2 10:48:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ji Sheng Teoh X-Patchwork-Id: 794603 Received: from CHN02-BJS-obe.outbound.protection.partner.outlook.cn (mail-bjschn02on2097.outbound.protection.partner.outlook.cn [139.219.17.97]) (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 BBB522E633; Thu, 2 May 2024 11:03:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=139.219.17.97 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714647844; cv=fail; b=iFSWhtOHnqy4kJOfYErt/jLZ/X8NyTrv1C+M6EBTq920inPyP2nZGXLndh/z/F9aH4FnfiSrAGI3Qk++OhCqcPCYHaudIY2ajO0FSpebH3NgJj+RfFdUzUP63Yzz67jDEDQkYkUTlhdJT4/qyJ5D9kgQs4b27Mb85wuxPNLsebM= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714647844; c=relaxed/simple; bh=2XHWkI9RUhadJdINM4VU2jlIzIjwxbo06GnnwqJAQ94=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=Z58cfMXD8PXqZKb1Ol+KQpM9Ixiyfnt3Gm3FsTcamAigzBn3jD3edKc5Hpt5txOjWj7GP0NESnWOPtD/maF/WixivAR0WdqDNo7bIV+aGYoC7n2lZPl9J5Hfp4ZvyjC4sinBHQSelTYRzGfgNs/AelbYbccZt6tsrQvp618eiBU= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=starfivetech.com; spf=pass smtp.mailfrom=starfivetech.com; arc=fail smtp.client-ip=139.219.17.97 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=starfivetech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=starfivetech.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SBU1hqaEVEc2NfSWjYQnWw2wV2Dk1P3aUXuOggaNObpHVPqJztBlbbOrvi4J1LEhF+wbedNKHx1EWlnSOkOTLK/WgDPpNYMTbyPqPh1w+b1zcgp4kKiI9569qCNsy1Urc2hlVhghj0nyq0mfj8p6Gbj+gRWRynYhjhxGO3cHuV4ey/3SayTIiNaLdqgxxHIt84tlLdpksW2/nDmZGaHOeiW9gpEBD01W5Xa1RryK88nfBJ9evJgqz144iBDPkjXOD9Q4KY83vhGttDwfZD0IHVbqEwh9OVBb8wB6FnQQ9kpgl8UODw0GRU1AXdB3+XC2VyLBUk89DKoQuKheOCGxXw== 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=BB8Wzn+SDQEyV8juCswxBGb3eKRXjnBkhfa3q/LYYwY=; b=eCFf/Y3W596xBqB3ut9CmvbD7o35PWtTac2OGZumo5DqNn+10PRr3WJPxS+YrA+ZFwBcQ4DDUmsGDwGd/Sf41UtjS0UE3cSVdOy3oXv73tBzWQeD+mjDQalxmPiEbqnEF03fKqI/DMCqOYDvMy+3+lz2Sqeq0v+IWFMIHIgZqAfs6c0YURjEMPV8NTWtN+X+NFBS2ov6n7mAt1OBbKbs7a7k/HgantttJyoOqZ9P0Bst6SgaXmXyc+RNyjDbTU104Lg1lOuzTQjsXLVstmkkwnrR2EA4LaXw2lYWuRCo0pD1IVmU1e0qrn0S/iFkfkwR/IOsjeo/ETe1JQajIk98gA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=starfivetech.com; dmarc=pass action=none header.from=starfivetech.com; dkim=pass header.d=starfivetech.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=starfivetech.com; Received: from ZQ4PR01MB1154.CHNPR01.prod.partner.outlook.cn (2406:e500:c550:17::9) by ZQ4PR01MB1284.CHNPR01.prod.partner.outlook.cn (2406:e500:c550:14::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.44; Thu, 2 May 2024 10:48:36 +0000 Received: from ZQ4PR01MB1154.CHNPR01.prod.partner.outlook.cn ([fe80::301e:ec80:4356:8b14]) by ZQ4PR01MB1154.CHNPR01.prod.partner.outlook.cn ([fe80::301e:ec80:4356:8b14%6]) with mapi id 15.20.7472.044; Thu, 2 May 2024 10:48:36 +0000 From: Ji Sheng Teoh To: Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Philipp Zabel , Michal Simek , Lars-Peter Clausen Cc: Ji Sheng Teoh , Ley Foon Tan , linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Eng Lee Teh Subject: [PATCH v2 2/2] dt-bindings: spi: spi-cadence: Add optional reset control Date: Thu, 2 May 2024 18:48:00 +0800 Message-ID: <20240502104800.3030486-3-jisheng.teoh@starfivetech.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240502104800.3030486-1-jisheng.teoh@starfivetech.com> References: <20240502104800.3030486-1-jisheng.teoh@starfivetech.com> X-ClientProxiedBy: SH0PR01CA0005.CHNPR01.prod.partner.outlook.cn (2406:e500:c311:5::17) To ZQ4PR01MB1154.CHNPR01.prod.partner.outlook.cn (2406:e500:c550:17::9) 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: ZQ4PR01MB1154:EE_|ZQ4PR01MB1284:EE_ X-MS-Office365-Filtering-Correlation-Id: b6121a13-db75-4ee5-428e-08dc6a956b81 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: vwjbcvqmuuEbRy0LVH6+MjxxGlserj4nRZCncTup7X6LFgwboZlY7v6BqlDxemjSxupu2CRMGIbPdaEqw2nrAa81Co+RTjadH73Nf0JAFjt4oHX+/tmA2zQ1RUz3QdBvuJVWv/j7CrbFPgD1OSkkJ8f/fWJqV30iJ93zUd6hdVJ1LCCNmsZYDPA2D70/qK5cVpbKu0XFSIgVDIwV1W0OibnOTIxyEaAWJk3ooz2oZXVpfuyWyShNKvn15PMuYJnoFVLaRvOIQ94jdlc/Zb9bpNu1ET+QVL5WIZavW4dLD6dY2Ug5YVkbh557y9Ik/r5oAGa6xbciEXtzfqzayMV5a51WPwXT1yJoY63x9deem0TqccnzNFkZHufWUIvpXHNUXpk2+HPbUtztUMh1bczAEvOqF16gDI9ZTTwXLwCD7epcCMWdBybRQ70V9VF3lPbL+UmqBifk9akiwACMxTw21Eiqf5Suku15DlF7nHZsCgoz9uLkN582GYlNvJHkNuaFa0JOFfA+faGleh/v7kgO2i2NFUjuuc4/X98hpN7SE3APGOJox2lVkfMldigGwGTI1zlbaQRzt4Xp9nlV0SLGrayLzqf3qNBpdyj4ZVuN+IYhKwQBER0dwhjzga6P2Qru X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:ZQ4PR01MB1154.CHNPR01.prod.partner.outlook.cn; PTR:; CAT:NONE; SFS:(13230031)(52116005)(7416005)(41320700004)(1800799015)(366007)(38350700005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: G/Qvv9D3XJWJBUFmJApyXKspgrAkNGaz7Ej0CdOcgHj+LP9emSzf8xp7P19fSeMtRYoVidBIZgJ8HZvWl4lYVHcccL/capL8WxkXjXVSvDo697zXAhGjFYp/+x8fouuz8+bPZi+oZpTXPJX3/6CW9i4LXzB2/AbClFP1bAg1anUX0Y4D0Rj/agVD4r+DHydzwfnYmkQST6AURDSC2Hc17f/8ry9pnKjfx22D5/GY9b59AaSBnkEP8RCjyK6qBZcyFmMVTRwSbSQ8aVJAP+aMXpEFyM/sCHI7eupFZkXihpAAzMmQRhuH6LqAACMY1CFj1igmpCv3QCnAUkPbxCMFIcU+QCjFDz6/3T3SZnX7/CLfOh13uaF5v03tl2Nwp9+jlYFMFUESBygESZI3UzcxN2lm0bNDUufIqKg1pCwBmwMv4tuICT7v1gBm/nVSkZQR0Vj5Ii2eOZksfdg5L/VrCQcVdT1/i+gcG02mFqon3dkjS8lpUNFmJ8OZ6ospa6onCfv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UeSE0PoPo6EPWMU1t/5ZHDRSZapjiGk= X-OriginatorOrg: starfivetech.com X-MS-Exchange-CrossTenant-Network-Message-Id: b6121a13-db75-4ee5-428e-08dc6a956b81 X-MS-Exchange-CrossTenant-AuthSource: ZQ4PR01MB1154.CHNPR01.prod.partner.outlook.cn X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 May 2024 10:48:36.7677 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 06fe3fa3-1221-43d3-861b-5a4ee687a85c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: hEmWPYWlzflULpswHOcioeJt5Ub300vI12oEITKPgg6WbjKzxPJncIeOVwXL3U7NcQU7wj+eYgo6QMnZswe8fRTXQojKlEJOX06xV+Acmbw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: ZQ4PR01MB1284 Document the optional reset control to SPI. Signed-off-by: Eng Lee Teh Signed-off-by: Ley Foon Tan Signed-off-by: Ji Sheng Teoh --- Documentation/devicetree/bindings/spi/spi-cadence.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/spi/spi-cadence.yaml b/Documentation/devicetree/bindings/spi/spi-cadence.yaml index d4b61b0e8301..8de96abe9da1 100644 --- a/Documentation/devicetree/bindings/spi/spi-cadence.yaml +++ b/Documentation/devicetree/bindings/spi/spi-cadence.yaml @@ -55,6 +55,13 @@ properties: label: description: Descriptive name of the SPI controller. + resets: + maxItems: 1 + + reset-names: + items: + - const: spi + required: - compatible - reg