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/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H+zD6+73aqHhjW6K8uPgR7ayyXPkz5zknw4dhTGf067iVWQRn6DYi8r6F+VhqknNj86/9Pmq1YcgI56oMevCrhzkUk+K/LoDc8FWGI53UNrM1ThK2Ny73mjgcs7XFOwx5AG6LuqgLnBojr3Uf3vGPhpFuKjPRZjvtDZKE3FDJKgShWFdPfA== 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>;