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>; From patchwork Mon Jan 29 02:26:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inochi Amaoto X-Patchwork-Id: 13534824 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 38578C48285 for ; Mon, 29 Jan 2024 02:26:51 +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=qi7oxY5+V0H7e7YkFqMOFjDPtZyQkernokftJT8HynU=; b=01leeEYmP/lsfB rAnZX3pbp7inrIsJSX6jiR4Ca+R6RmZiH/paU79u5CAiSH+S6VW1f+HnV8PbrjjbzZPuGN20hW3qM Ce9bK/IvC6J3uTQ1PihU+K+MVvR3ib86i7CRm9rxzfeFgVVene2kZ7Tsscy55UU1B7phKjRZlQ5dq MlJU2Xq1CeV4qLNZjkaNrWz67HethaXP9oxwuVzB72jRri28+Ke+elcxOVetz4caHvv3Aojl2dACs 7m0oAgOvF1KmTS+ZHkhxrxiGuq+7VUSiIpao5yaHmgbTaSM8lsz+0G65CksG5QsxohavdZ8+rsUlr eetqtDk3+88msWKAOiNQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rUHMG-0000000B1TI-1fPS; Mon, 29 Jan 2024 02:26:48 +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 1rUHMD-0000000B1Rp-0KLm for linux-riscv@lists.infradead.org; Mon, 29 Jan 2024 02:26:46 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FN6UuvMI9I10KPqmILV9JYy4ZjTGNT0eb3BzlsTMsnD/X6fdLwkkp2lUnZDwFU7QMzOmHhu9f2JCXiTEPWlbdPppJoqk+0JkfWLkBIFyxwb0MFkEiFZa8V8e8NNq5JkAX9+kZpGb6K1UNUG4hfmYhlWCzUVQxyXATt+Q7Z8uJieD5oYq+W2Wxl+DSZdvnTyHKPhHQUjzgZpJwgN4kqp5ouZOmbbAa4+QA73PLrTso0x2oRULUnAuPEKUxafh4jQTDIZdo6/wOAuhQdAiTko6klrtdKh4h43rNC3IEK3YhIaXFTjgscsXW0SZbYEPz+i1GkiCagxXZ6LnYeuLKeE/ow== 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=BsT3/OCeGT6IyEZbMCVRGXOMtTlwBFZnCqI+X3cSPC8=; b=g09Q1VdiexJ5OSJysPiTRQ5+bDakr/RXDhIdHrOC4VmSdePxmN8ydJbuwpbsQY1/IMRXdy7PQOiJNjTMzSCyrpVp40uX5DD8zLkeptndr00O21gvvtkn9/Kz5eoGqXzw/qZnNGKw0OkuUIWJ4HvDgZphAMKySeeICA1r7jdnqx/vhIGsElM2PcIxZDBS5mhKlJcXvVbegBFC6HtLzBn+RwK4dgyaJUgwdMMNQzK4SC4VikFsX0TrPUtA4Wf1+TXHf/KoNe3HxWZbKnFgLZew0WALCe0kN7lfX3vGJSSckgpsm8Nb4FQQJ42fvYEuuuOcGylTiUoaS3TvsxC+XmiI5g== 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=BsT3/OCeGT6IyEZbMCVRGXOMtTlwBFZnCqI+X3cSPC8=; b=C178tCncqyhLJM/vdl/uSP8OSpUxaQPJWuJSqEU+wgB1ImUjH3ocb8yUmfSPulSjzoTV9N6OgCAfCjhefJZpfcDYgXT1Q+IknVQg1DucLnbnlXybY+xVVbCxcrieeGNnqySI7UWHEBHTIsDdYAJWnC1rJVVWrWRnT2nFFJauP3fvYwC0yE3s1xXB8rAlX9G/e4yU0niecQJpQKixYE2d1wC1gySn+QDQP6jqvadYX6Xwjrj3/5lNUr8tevvx9hfjab8A97XcZpKpgefYhmOPfHOf2OWOJ+smJoW6fuporMsjig44XHjJqtxJkVnZuyaEr/A0KhZLviFAgvWXf13m6Q== 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:36 +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:36 +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 2/2] riscv: dts: sophgo: cv18xx: Add i2c devices Date: Mon, 29 Jan 2024 10:26:24 +0800 Message-ID: X-Mailer: git-send-email 2.43.0 In-Reply-To: References: X-TMN: [NDRsSf5XTHBi52A1ZQpLMaiadDX/nlbaSPb+Pj1I7qwfYDr4IzTTEAwbzdKQhSD6] X-ClientProxiedBy: SG2PR02CA0136.apcprd02.prod.outlook.com (2603:1096:4:188::16) To IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) X-Microsoft-Original-Message-ID: <20240129022626.8595-2-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: 4b4ee070-ab86-4119-312a-08dc2071b78b X-MS-Exchange-SLBlob-MailProps: Cq7lScuPrnp1wg7CoaBAs0v5f8cuw07Y9im1akbz+aThJ+7AZMM/dxYNKZYhqBuSPj8x0toR0GTiJelWr/C8JpYewWuIzkFYeHgrUcNv47MicNSNE71asirRhn17tRCDc6HVHS2GTjukHpoxVfvriEdGc2RTKDrxMrYjNIFPTYoLZ0/xGiDim7T5I7rNQvnpuVsPbdbZ9ZM2qMY4yx7yVoI/gR9GjkUB1Z+ForimLOrviTkufAWn2KUQ3BHycTGphddnM4P7+R/KK5baWIkvt4s44BHf0Y0NUJKFcxoIIylA+z4nGYfDBztz677uY/9edF+0vGXPbgrroEd4MvV6rmYek08wrzr9KtwJlJenM5+auKSdzJTTsZxorTz6P/Us/RiP46sxbH/NAUmqvuVDHcnircmYPg5Ff17X5tGtBr23YKL7WfZJlnUzIWeeUBspByN1QA3hjlqRruWvx3/kPEiDcLGxSnFiX1kYOK7cUTsp8PS/fjmcGZNWAu/cEIkpCl+W0ql+T6sDHCsy+MLOnzDdAeJuKd2ZENLM0bfHBiBpyDmclcXQebruOLGg1aHp8uvUc6poDKKEDg6WtgDW2KqDw0C3E5y+C75uY4HTYBeOTAWa0gJKXDvYZXUT+aT7JMybknn+Zk0YYYQjEV4gbvQcF1Tk1/YV62gBcy9tXF8S8uulxZlXjI858GcL9JK4SCIuDBIWlEpZzAbLZMNCr0g8hS2vHMh28pz7j+RPUPY+fVThHEL+JJsJPtXaEhWqN0Z0Q5r7Tcw= X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 3VQ3taRv8QrR50ru6rztxxZs6+U5rPuDL/bfzROwdLYDNKJa2aC3HhhsgQ1KpYQIkwYyRAVgb2JuuM/miaTExpN/rRp09XMoxgzP4hCnfNp9J7nOVBZRU1L8qW5TJDvnUzocwGgl0WU9OKIE4hXlexxAkMsXb7152BMaI+5ce8sk5prgvFC8EhnO51MTkGN7MK/zZVL66zXC3s3I0ynr1Q5Il9quBFdl7wPAPZbaPwyQ5d99hq3nmLQL5AUJnfibT6e+uHcpQTMW1Cj4pcPunFuVREeqVLBNs042rL05B0BmhIqTUgzs/zPqkfFn2tvkcUBC5cqP2qnrPadwbubnd0cRs0ndyXJC8dJN/fDVl5f8S9M+PB5YyvU8+zgVskqUUlu7RLW5ruF89s9fY0b1A+bojJBWjmZBYnwOg6uJ9S7b7NQik8bujAzh2fnPvudcOMGPuD/GZtWiRtr9HlcWvbF8nGWuFRnSBV/R0Bt3AAs3lgCWbD4/pRtd13O89DSR7UpMdzehV1IUsGxpTZulplhdDFQfnsfOvNGVTMOTzyCKVlR98dCv5NrRuDpJ5AGyxaTPTtLNjT/x16WdPljQA4yLVLBxW3WG2LsJzthCXtc= X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: wVX/BAl2sVrEb3F0d2hrGMReVkSWc8pPZiYfOvpTFGlnulOaTjHsCVTc+hi2UUlmvFpiXCivld00buZCK0+a+6w5KFdteTl+lpgwKgx79eXING3hLGP9fT0DJSZI/2Xu0aXdxAqZwOYna8ypGvX1IMkVNZrDRlCGIImHLesCBBqSsjnfBSCCD90PxPEjv1k19ovKAnjzZGkGH22PvrOou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gShWFdPfA== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4b4ee070-ab86-4119-312a-08dc2071b78b 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:36.3975 (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_182645_143999_31261492 X-CRM114-Status: UNSURE ( 7.18 ) 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 i2c devices for the CV180x, CV181x and SG200x soc. Signed-off-by: Inochi Amaoto --- arch/riscv/boot/dts/sophgo/cv18xx.dtsi | 55 ++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) -- 2.43.0 diff --git a/arch/riscv/boot/dts/sophgo/cv18xx.dtsi b/arch/riscv/boot/dts/sophgo/cv18xx.dtsi index e66f9e9feb48..d6eb20989bc4 100644 --- a/arch/riscv/boot/dts/sophgo/cv18xx.dtsi +++ b/arch/riscv/boot/dts/sophgo/cv18xx.dtsi @@ -132,6 +132,61 @@ portd: gpio-controller@0 { }; }; + i2c0: i2c@4000000 { + compatible = "snps,designware-i2c"; + reg = <0x04000000 0x10000>; + interrupts = <49 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&clk CLK_I2C>, <&clk CLK_APB_I2C0>; + clock-names = "ref", "pclk"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + i2c1: i2c@4010000 { + compatible = "snps,designware-i2c"; + reg = <0x04010000 0x10000>; + interrupts = <50 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&clk CLK_I2C>, <&clk CLK_APB_I2C1>; + clock-names = "ref", "pclk"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + i2c2: i2c@4020000 { + compatible = "snps,designware-i2c"; + reg = <0x04020000 0x10000>; + interrupts = <51 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&clk CLK_I2C>, <&clk CLK_APB_I2C2>; + clock-names = "ref", "pclk"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + i2c3: i2c@4030000 { + compatible = "snps,designware-i2c"; + reg = <0x04030000 0x10000>; + interrupts = <52 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&clk CLK_I2C>, <&clk CLK_APB_I2C3>; + clock-names = "ref", "pclk"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + i2c4: i2c@4040000 { + compatible = "snps,designware-i2c"; + reg = <0x04040000 0x10000>; + interrupts = <53 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&clk CLK_I2C>, <&clk CLK_APB_I2C4>; + clock-names = "ref", "pclk"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + uart0: serial@4140000 { compatible = "snps,dw-apb-uart"; reg = <0x04140000 0x100>;