From patchwork Mon Jan 29 02:26:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inochi Amaoto X-Patchwork-Id: 13534823 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 417A5C47258 for ; Mon, 29 Jan 2024 02:26:50 +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=AsYwYwXGa6XFX7QhVJRlcwUdZlJ0XSTKbSaGNxyljME=; b=h2UPesCBbjBKEO mPfkDyktO1m60YUMUC9zkmNv+txcYm0vVNwYzE7GrAhuO6wDj2lg8a+a7PfzGSrw7iCNSTYSNh7U6 d0VGijAXGKSsNjyuYtXtWWIZ09Oz+E39KevkAfluX8DS9BsuYAqbDOQHHCG+7k3iLQpM0yyJ4WOxZ 1xumz+cBZBhRqKAL9hcNKxD9ty6gYoJsTx13WP72u1ivP0NBKzCER7zqo+v4l9cMh3lj0k4lXm4jl d9/qf6QkCtWbrMs68Ky33anXv9gs/3twRxGlunHJBGQ6hTeZEZHZn/A0Kt6E4db4MV79MXbqmvPt3 /a/ozpKmn2gZbFk30Opg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rUHME-0000000B1Sv-2eV2; Mon, 29 Jan 2024 02:26:46 +0000 Received: from mail-mw2nam10olkn20800.outbound.protection.outlook.com ([2a01:111:f403:2c12::800] helo=NAM10-MW2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rUHMB-0000000B1Rp-2nB6 for linux-riscv@lists.infradead.org; Mon, 29 Jan 2024 02:26:44 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OI8D+kPbQk4yIKSQQndniHSpnOhSXCrwxQ222wNslii3hJCfXAHXgmsSnzRynmTzlMqcofs3DfWZXfZS2EAntWXnYIrAPYxm7QttaLi10chBtlGYBUTE/W/lFAd1WRt2JiwmNaUTc2GddCn2GzftkUmBn3U+MiAf+BKxie4kaj45G6fBJxm167pvVVd43PKOjBhDWBLdQOqN7E/ABKhqKbhYdFuEz0KWEu53DkW1Jwuov0Ix0xcnScKqrSXtqGJgpiSYmOUa6xrUyvoaOcOelP/Xe0MOen0gSDkdtuFQqsCQcGOmeSa37VsjWLKHMhKDyUv3zv942oiK1Zktrt8+5g== 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=8rBrZVGTFGUjfjSCZZBpKxpxpmQrlYk1oJkWawv1DWw=; b=IC6KzzeNThjHS9B0suI2SFt9hJ7mJCnb4vZfyPukqDBxAsFVfej5SCPwF8TOn2g/90KvCQJx+kflPqbM1yhWf9a7E7UshGq6aUiJrH0Q2MebzzcmrT1bV41vCJQM4e7XiQvj84oJJ9DO6RrWPfD7mjR/qT7mjtNXqeEQZTig/iU8Pz1SwHtmNPqo4u0j30eCQphNQJmAOeqNQ+BGl/NVtAPPpPX/Duhn+scjlQ+7Cdl9gqvfpgvEDloHNoB8/F/1iu88f4hGh0l0VXhlrYxYuyG95cS3/nQnGqcPXatuFHJcIl8b/2tOxs9fSHzkiUzT+oOywButDN9v7d29P6oqew== 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=8rBrZVGTFGUjfjSCZZBpKxpxpmQrlYk1oJkWawv1DWw=; b=uFlMhdhcx0GhBW2/SfsBWaGYvFkRcNexu6myZbTfqdinaS2xacoYWciBfkv4bUzT3V9GCqCHgdMMGwpbwxfmwuhp8vBg44vBOthfZDwxwKX73Tu85vzXYP9LTeIeZ1cmh8gsyzMFrpDcjnYrdetNrBbBv6B1ec45V+o9EKHxElb/XDj062uCUreednxBJbLr56vMXjSZSf0y5UDGtEhGLv5BAWVS105w/mcSjKieDt1pFDK5vHOv65YV8dWQ0N9r1r73GFnGdFERP5e1WEzCXqiXktXN3xHUXi3ZMRJ33U8Er+JLTXBbpIuIuRxkyBrdrdTlqtCADMfeKb8dcsY53Q== Received: from IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) by PH7PR20MB5925.namprd20.prod.outlook.com (2603:10b6:510:27f::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7228.29; Mon, 29 Jan 2024 02:26:30 +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.7228.029; Mon, 29 Jan 2024 02:26:30 +0000 From: Inochi Amaoto To: Chao Wei , 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-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, devicetree@vger.kernel.org Subject: [PATCH 1/2] riscv: dts: sophgo: cv18xx: Add spi devices Date: Mon, 29 Jan 2024 10:26:23 +0800 Message-ID: X-Mailer: git-send-email 2.43.0 In-Reply-To: References: X-TMN: [nYdR+MWgiAbjhFsiT20qn4z5q76ybYl7o5d2DVUtmE2GSVF8eRjLpOUcQkVKEsP8] X-ClientProxiedBy: TYAPR03CA0007.apcprd03.prod.outlook.com (2603:1096:404:14::19) To IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) X-Microsoft-Original-Message-ID: <20240129022626.8595-1-inochiama@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA1PR20MB4953:EE_|PH7PR20MB5925:EE_ X-MS-Office365-Filtering-Correlation-Id: adf42150-b4e7-4de2-1740-08dc2071b400 X-MS-Exchange-SLBlob-MailProps: Cq7lScuPrnp1wg7CoaBAs0v5f8cuw07Y9im1akbz+aQ3s8sEHaSK5rcGe0vsBj3h569EphcPOYRn0u+UfMz6DsPPyTTs9SVJAiOxXsYjKaFJxsKksr/YGkO7RRzvCRqBqFbRETug/WLFF71VpJI+rLmteeA2e9mlKbDixrSHGqIBp64sauqwLewnxCxvHpG6+LV4AnrLUi9Lh9LuScDIB6ZjGvpZK06e5ffnh5eILUv1V3wvHMxbRakRqgSoWNJdvii7SWfT8fgtNdWuHa5iFTu99oWmrOSXICKTtZparg6IQycUCBjtcHNqkuX9z05nIdND5AjFzZtoThHmwkujvre9N+riYJOZ33oRy4fjgHqZmYnrpXXLQIRQk2Zy5m+xClzyAXMN04ju98bLxfy/GeY+pZ+4d5+l96+tq9Z5MkJzTC6AisEj6u11CbW1pHApeqiahmObgA0iojv9RjcZYMpR3x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CVe8aSaCdPCrfLfXzjOtnrGr9ug5GJtNa+vU+dKvI24/O9vYKlKRepgAoi3YLSqc2xw9uLz5MGpKwTA9vLJC98MZwa/WKjRgvok7eXo8/k3SCxPccy9+XtBxwr4bugTYCQgWTLd1/+45BVgxygOXE4FSXH7aZLJZeOl3NrawtQwXhABflq9DlyjU5Lmg8gwUs/6iIgTRliz0Qwyg4JYhG3tj46HIzg== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: adf42150-b4e7-4de2-1740-08dc2071b400 X-MS-Exchange-CrossTenant-AuthSource: IA1PR20MB4953.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jan 2024 02:26:30.6079 (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: PH7PR20MB5925 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240128_182643_733387_2F6B0FA1 X-CRM114-Status: UNSURE ( 7.20 ) 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..e66f9e9feb48 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>; + interrupts = <54 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&clk CLK_SPI>, <&clk CLK_APB_SPI0>; + clock-names = "ssi_clk", "pclk"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + spi1: spi@4190000 { + compatible = "snps,dw-apb-ssi"; + reg = <0x04190000 0x10000>; + interrupts = <55 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&clk CLK_SPI>, <&clk CLK_APB_SPI1>; + clock-names = "ssi_clk", "pclk"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + spi2: spi@41a0000 { + compatible = "snps,dw-apb-ssi"; + reg = <0x041a0000 0x10000>; + interrupts = <56 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&clk CLK_SPI>, <&clk CLK_APB_SPI2>; + clock-names = "ssi_clk", "pclk"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + spi3: spi@41b0000 { + compatible = "snps,dw-apb-ssi"; + reg = <0x041b0000 0x10000>; + interrupts = <57 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&clk CLK_SPI>, <&clk CLK_APB_SPI3>; + clock-names = "ssi_clk", "pclk"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + uart4: serial@41c0000 { compatible = "snps,dw-apb-uart"; reg = <0x041c0000 0x100>;