From patchwork Thu Feb 8 00:22:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inochi Amaoto X-Patchwork-Id: 13549179 X-Patchwork-Delegate: mail@conchuod.ie Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3987EC4828D for ; Thu, 8 Feb 2024 00:22:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=s33D5qh6XDi257Q4XVfze3NYEZfMquzQ1umMFdQCOuE=; b=pwp/exv1MHBmjO xEBXizgFvZyGfmiP2TKnsk9NhjHXOhC7X22kmNEvx/1JM6sno1v4cQuKyP3DQA4pPLwLPfNoVXS1b Bkcz/iMeHY69fxjIMG8tFjJRCRm2izo+3wGQW0l+RzC3nMsY2hfWTkznVjM+bvHNkmuLUxqyow7RR QWoHuxGmCObeEaL8wrxax7RlNH+E9UfYEy7eR8pvJJVEg+TbAHnX3tGFFDtH1pKmFzxJEQdA5RAiV jpT+4L6yBeheqyW0O88eZ2R1wibRIAKmulHbVROUy772iSZOXLTxN0zK2lV8Gz6ncawNJ6F17aECW MsXtwpsGsJ0BpeVqWFaA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rXsBS-0000000CIof-0to2; Thu, 08 Feb 2024 00:22:30 +0000 Received: from mail-bn7nam10olkn20800.outbound.protection.outlook.com ([2a01:111:f403:2804::800] helo=NAM10-BN7-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rXsBQ-0000000CImJ-07xg for linux-riscv@lists.infradead.org; Thu, 08 Feb 2024 00:22:29 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JvwI/PDLFhgReavOG6KLkH43a6rm03Sb4bqnv1pJmwlTrB41otwpPsZDzT4e8BmPBowde2QG/VmZ6qSrBzkXuauE0QQ1vl8LqRFX4l9DkZWo3OPuNeAV6qrrKuaCAwZB8HMIh4EnTO5Wz0+rFBNWUvaWMAFGtZHsBH2IUux6tByC2mJoYwoC9k/gidn0ihFetNMjAjcqLZvtw1mYBMivH0JvGr0/uTZFKX6XzmSOsyeiTy2Bmm8zFp4SQS7HcxhY7hxvGVoQiiRc1q3zm8FEos/tUQMTAxIXiqKzrYYx6+KItKj24EV7WoSL7TRDatneFzPQ3tlp93bi3i2AR4RuSg== 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=+6InRqzkFODSmBhWrxxiMaDOevTd3H0JM6PSJTBGR3s=; b=g79JfhCo70DPtv+tWaJLA2JnI85H3mktp3bUOj+caTog5CK+aiI2M6KJr5Gu1v87wvFjT/ISFztX86kCbztCpFtM+8o8bHUwkRoh9oRiszWmhVhwi18b+G6AibFm5hv8D/t/OKYnRZZq8Fq5/yZHww+ApkRtvOYAKNdh0rN/QdEtG+oGPPRatbDFMu8s0PgK0nc0DU1JcfJ0ITmjReMA8WLC0wLLjJD370D3WTP0BwLAnxbSXF9Yng62JMnSYGX5kvFUU4QF6Ma1nLIN+zEeD0TajcQKwL/WLztypbDdrCT6aNWwZBduvnurB5EBdmvGRpenLGXAHExpKpd3DfmYPA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+6InRqzkFODSmBhWrxxiMaDOevTd3H0JM6PSJTBGR3s=; b=bXR3trNs7cnepsVI1YBAXmS0lK//vDsXJf5xL1CN/CrmW3PnUgu9IaMmFCEluSRc409o6n3PHdrIlvGRJBGBy5wvjQSIRtP3HwiLBbR9WH6bwTEQ/5CknJ7G90uVFbLwBpduLZ6OdsrRq+1ufni/RYzTjLk/4CvI13eHiTgp1MQ65JzWISDK9XPsK9qZQosOW3A7jYsb5/3kwM1AnDzlXrRsidE5BzMQc9VGSbOEgnJYR1dkJOvd7bJjBR77Uh1EsWCa3yPIv4Gkpvtq4BtahRey1AkGhJxiW6NCScByr+kK1AL3itdaYmSI6XxSTcKTTHF0m3wdfa/LAmxR3cOqQQ== Received: from IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) by SA1PR20MB6986.namprd20.prod.outlook.com (2603:10b6:806:3ad::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7249.36; Thu, 8 Feb 2024 00:22:19 +0000 Received: from IA1PR20MB4953.namprd20.prod.outlook.com ([fe80::406a:664b:b8bc:1e6b]) by IA1PR20MB4953.namprd20.prod.outlook.com ([fe80::406a:664b:b8bc:1e6b%2]) with mapi id 15.20.7249.035; Thu, 8 Feb 2024 00:22:19 +0000 From: Inochi Amaoto To: Chen Wang , Conor Dooley , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: Jisheng Zhang , Liu Gui , Jingbao Qiu , dlan@gentoo.org, Inochi Amaoto , linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/2] riscv: dts: sophgo: cv18xx: Add spi devices Date: Thu, 8 Feb 2024 08:22:11 +0800 Message-ID: X-Mailer: git-send-email 2.43.0 In-Reply-To: References: X-TMN: [5x2+T+kckGB7eaTvPu/qiMhrLPDvy6vWPxZWhps1m5OT2VH0WRMYQKvRkAO8WwkD] X-ClientProxiedBy: SI2PR06CA0001.apcprd06.prod.outlook.com (2603:1096:4:186::21) To IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) X-Microsoft-Original-Message-ID: <20240208002219.162732-1-inochiama@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA1PR20MB4953:EE_|SA1PR20MB6986:EE_ X-MS-Office365-Filtering-Correlation-Id: 8cd377f9-cc95-461e-1abe-08dc283c02d6 X-MS-Exchange-SLBlob-MailProps: Cq7lScuPrnqw99sp8YlJuUUStbhLtmajhDc4b1br3RoC2lqxSKHnRbCia9aD5Ooz5vfcXren59BPLgBjDDUSr/b7flubNdkkua1HU6qO/TN7qSSDA2WB5wk7srEykf98/tF7k0T49D/Iq6lxMyf3s0T1Hq3G0oz3RJ04lzwEhX/ws1U0975hQvDYOcmyeM5POMqwq1a1XoDSBkYEruC248RyEK+MQpmuaETzo+QONh3Sbz94bddEKHKPIhzrmwJMm9JeH1zK8uRlq+V6jMsaKD7mv8sEyrdNEsvqy7Ikl+IeSVdcu1YovuKObECzc+IENrg7YKknD/30YTDVgbM8FuFcuE6XeJF3tRbG0TtAkhDfqtvEoGlsfviUF7HnTbRLUthCHM6Tmk+xlQmuaCRgdbi+Obd6/JxvlMRyo/kBi/5lO6crY/xkrXv+VjRZT46vycgbf4VafC8TfpYLdebbQ2m0Vo0ancNWavqVjLTpN5/f7KQQaEX6nyNbdLFtYlgAikvvaHee7RzpnoPkuFFy1jBO8w7RIEX4iqLovFSKM5RQ36M4aqud0mnKzvqgdOxxcrq0BSUkNuc7sorCHuYrk1Lx06fB+EveEQSCdGDiECZP7bKYRwCudi9TTfk0A7/JbPo1W3He0kFuDvW1b26TM3bRPXj+sesUdM06WgogwtmPkjo3Im3RRrohBNAaVin480R9K53xI4s2dzlpGlc56UdAzDq2n/01wZPg7NIerRTvqBFxcoixu02+o0/9WCaAl2uQDPlTzKA= X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: CF5a9bt6RXwK16rC1nspjfzZB2T5THBntq9sqGF/CQnIl7riyHAPOi9b8jXTgP2gmKboKPuElG7jVI+Ssx3A+mETk02I/1ggBOBDrg/71ajndIwgawd36isUf8R2mJwFYa1YBIiYcZiFSkJO1/PssnU519WSK0JgYDsO5vIlTpmUwzj0xtxkS/IK9/fSKoplSWdRjOiOJ8z1Ao2y7jBpCRURpS0+czicjafqOg06KpJmBgzULFxIUC7eq1g6kUSM1aYuLF1NY/bJy6N8zC9JbeLDEfLsqK/hBfXFfWU8YNcCTBLCto5eRRZp/mWYloKzglzl78j2SbozsN4PzZLEamVBQ33GdK4P3+ortTZEjSQYYMLHICAnqlZeWpUPCcnAdcl5VXFZPamY4Jz5ZeV12u/H0OUBBVOVzs+J4wkMP3+Ik58bbBO95h/evzoJ9YkzFnEpjO1H76PveHqrHsijFD6k5WBpmmRo76nAxdSS243k3zUaDyLSlHsLdSaiaoV6br+/2vvrcVAXLiE0asonCvdOEnQRWZAskwRLLvPysnIEBxHIFNAyzpJLGGqoEt60h2pJkq7rgj47C6uZnghHfjMmAfSRXYIxcXpnnd75PvXR7OCnAhqiCTIWdi9zKttS X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: GDHtUPSroRCHNHvnq/R6T94Kcd4RxdQ2+79lRog4OqFjbhDWRmfeqP8K26Un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XTymea5CMj20H0TrKGLMLfDWw3OiSXkWJAqztQ/2tzqMzAzSHf0cAQ/aTkrLPCovXAsGNLZotGj+/Bol9CrkSl8WjT/9nL0HEOZ6nwVvt0PPOGMbrnBsM3yiGm5gjwbEpXRaJeVY8OyZ6/VzyN99kI5mCNiqjcuy93F8OBYlw== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8cd377f9-cc95-461e-1abe-08dc283c02d6 X-MS-Exchange-CrossTenant-AuthSource: IA1PR20MB4953.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Feb 2024 00:22:19.4319 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR20MB6986 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240207_162228_099388_E3777E00 X-CRM114-Status: UNSURE ( 7.16 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org Add spi devices for the CV180x, CV181x and SG200x soc. Signed-off-by: Inochi Amaoto --- arch/riscv/boot/dts/sophgo/cv18xx.dtsi | 44 ++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) -- 2.43.0 diff --git a/arch/riscv/boot/dts/sophgo/cv18xx.dtsi b/arch/riscv/boot/dts/sophgo/cv18xx.dtsi index 7c88cbe8e91d..71965cced56f 100644 --- a/arch/riscv/boot/dts/sophgo/cv18xx.dtsi +++ b/arch/riscv/boot/dts/sophgo/cv18xx.dtsi @@ -176,6 +176,50 @@ uart3: serial@4170000 { status = "disabled"; }; + spi0: spi@4180000 { + compatible = "snps,dw-apb-ssi"; + reg = <0x04180000 0x10000>; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&clk CLK_SPI>, <&clk CLK_APB_SPI0>; + clock-names = "ssi_clk", "pclk"; + interrupts = <54 IRQ_TYPE_LEVEL_HIGH>; + status = "disabled"; + }; + + spi1: spi@4190000 { + compatible = "snps,dw-apb-ssi"; + reg = <0x04190000 0x10000>; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&clk CLK_SPI>, <&clk CLK_APB_SPI1>; + clock-names = "ssi_clk", "pclk"; + interrupts = <55 IRQ_TYPE_LEVEL_HIGH>; + status = "disabled"; + }; + + spi2: spi@41a0000 { + compatible = "snps,dw-apb-ssi"; + reg = <0x041a0000 0x10000>; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&clk CLK_SPI>, <&clk CLK_APB_SPI2>; + clock-names = "ssi_clk", "pclk"; + interrupts = <56 IRQ_TYPE_LEVEL_HIGH>; + status = "disabled"; + }; + + spi3: spi@41b0000 { + compatible = "snps,dw-apb-ssi"; + reg = <0x041b0000 0x10000>; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&clk CLK_SPI>, <&clk CLK_APB_SPI3>; + clock-names = "ssi_clk", "pclk"; + interrupts = <57 IRQ_TYPE_LEVEL_HIGH>; + status = "disabled"; + }; + uart4: serial@41c0000 { compatible = "snps,dw-apb-uart"; reg = <0x041c0000 0x100>;