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>; From patchwork Thu Feb 8 00:22:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inochi Amaoto X-Patchwork-Id: 13549180 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 A3434C4828F for ; Thu, 8 Feb 2024 00:22:34 +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=ezvnB6b/Zdc9PHJJmWr1xjZf0ZXgrjhxDlLy2dMLbAY=; b=Jil0kLQQKXHxyW TzR2tLoR9YxZBpolQEykQdGUjguqXQ+WyJNjRhA41P/perpB5Da8EqwbfAKbPXxEXSRYpASIkU/ov ZPZ5Ie1/aW2y6SxnOuZ4WFM5fz2Aey7K09Q6gOd1m+ecQ+4vhYMDO7D1Pj1lxCCQPufwjIvv8NJga Q8lVGl5+D6WLL9R4eGR60W0PY08+bnno2I3bcx/XoS6v6fCWbl6tB5FQJ6jKxDpVhnTaKV26BG5of G+nPo3T2jHU0GkgtkI63Ct7hMIvNi8yFsGuBBCDO/WEBMNQucr8XtMiMqQgXT3hX7PaDEyMYijnGt Bzg2TNYKLdHPKayjePyw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rXsBT-0000000CIpK-3wKR; Thu, 08 Feb 2024 00:22:31 +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 1rXsBR-0000000CImJ-2ndd for linux-riscv@lists.infradead.org; Thu, 08 Feb 2024 00:22:30 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JjWk4+tKTU3vW3r2rPn5gEqrhO+HNOrWovBKL2kCUuOKyd7j6Cnl472iAz62nGZoiJ/KtOakTpQ5T5dZBRjZ3u4r8qHwadOdFydKL1PC8N8WkuYSbKwCCZNKZQdBuWEQHY9W35CjsueRLXiCaXTajlkOrtSl7uOB6GrxERqKAHTIIB+3oBihcA/ea3NRhPkBeDm8WdeZZA5E0VkUkDZ7NO83V1671d7ovfRScYKBboyRtaW4ZYZ7DYHxgMOvTAyhiQ9HeZMv6jq4UVwG3SVCzvUiFNgjcD1Nz/5TjoVSl548uw4uMQnbA1mU2dscYfV71b8sYISlZKARzB7CUzrLIw== 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=Ypt42l9SsMippUWY56InaMioBB/zNlNhamPmEX0NqEY=; b=Tcd5BP7Wh8ylnacPRan++pGGPvNw+dFoqub8880LqvNqGlfFoWeI/NLJVpn/ZOi0itxM/yt/iA9XlRcsiRmwwAz+fqi04wvturoKHIIZFCTBrEe0F6p5qLVKaC/OlNUd3L7N1CghM8srQ3pubY9gbSW0/p9SiLOqZ1+qZElDC+4bAb6SMfSvPwMFTCACmUW36BWCuk70nrUqmIxfUEPvLNsV6wj6pj5YA7JGJpGiqdWLFbiW4wYcbu1C9+1nlLU+MggVCfH7BzM3+HeakgW33494/CuLzfIkIRFwO3+wnLI4ioYQcn07gJbS347cBes7/y10b8/6JI2fNKHOCNg40w== 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=Ypt42l9SsMippUWY56InaMioBB/zNlNhamPmEX0NqEY=; b=XhidEUEewauFMyUDROG3owocCfJ6vsdSoKJgYJsQ/yF2ibLcFKTRGoGHVyd12FrG9CR3SIXh1Ys6MHhPh9Og8EYZurRNu5Bi2/X2aQ7egFIGFK44jkh6HvHe8P9uF7E/cXvdI6UQMVrSQWu1el/IWymeDxSlkM5v0vuIfhhaJV23Sy0+xl4UFxnTFrYM04UEhZ5Jhqsjthp/ExhSlCYKWagP2aKIva37D+Ne7ln84Ka5MjlakFDcg5xm9weqXTuziUlldFm7HdCnu+j3wHDF0oPo1ZXxH+6KJ8FVhihW0H6uGhWou1JS6Clz/dQtW2sg4BQm0PNM+hFpw9f+6BU1DA== 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:24 +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:24 +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 2/2] riscv: dts: sophgo: cv18xx: Add i2c devices Date: Thu, 8 Feb 2024 08:22:12 +0800 Message-ID: X-Mailer: git-send-email 2.43.0 In-Reply-To: References: X-TMN: [Cg+rMG2UiiKYdX/AodSAow8V4aeiVue259H7s1WVnZuCj0poX4sONsRXHcKS7+85] X-ClientProxiedBy: TYCP286CA0308.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:38b::20) To IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) X-Microsoft-Original-Message-ID: <20240208002219.162732-2-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: 900323ce-b5b9-4bcb-aacf-08dc283c0604 X-MS-Exchange-SLBlob-MailProps: Cq7lScuPrnqw99sp8YlJuUUStbhLtmajhDc4b1br3RoC2lqxSKHnRaJfHnMPlvnMVoEIiuYubWMrGbCQLa1WZKymg/hwxV3xqiVjdOIeqPPVeXBGtgxASMfAjZWePrBEipzkuxrBZLZRRiITXOQtMQ1mWcAZPFD6H81WkiaMjggBJc/ozUn5HivGoCW6ZP+6DmoNpiWbklkIIDJW0Wa9QCknWwZlMqphO2iZMwwCaZfGS5nfcelNZOMaZri0qYUGqLqCmtrpYjL2CRH1XeH79TaQSYSWvBFh0QkUapfOHFR+s2gG4encVeaLSuzUimvcIwbqyShrE7HIB4CWUUGXzRSx3wqxGMAkp5veOoSFSipd1Sxe0djObiNkDpQ9AW6R3Jcm7XG1ZqSFW+XFkiKIka6TLdOBU0w2RyCjvrNOhxw0o835tDsyS4KelgtYJqGe4Epjpwuo6U7B2gg/8uwqfLzhN6JKR8BkihTIWsHUKTQ92Yg4PhL0cW83V0T7JuL42sgmy2JTgNSmSmMlcd7x/26zSq1sUi8+cwidR++co6KoH2K/AToGnjUqwlvDEh9kD9PjQSwA8hx51raZpLmEc/7q9le4PR3KRNR4nLCcS6ONy9eSP5RwFhNDNVJSMLKg75rLXhTCC2q3lp/s0pSP0U7FnP8y+RtRafQmtLF0cuKE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900323ce-b5b9-4bcb-aacf-08dc283c0604 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:24.5995 (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_162229_732959_23286C47 X-CRM114-Status: UNSURE ( 7.04 ) 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 71965cced56f..9bd9e70ca039 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>; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&clk CLK_I2C>, <&clk CLK_APB_I2C0>; + clock-names = "ref", "pclk"; + interrupts = <49 IRQ_TYPE_LEVEL_HIGH>; + status = "disabled"; + }; + + i2c1: i2c@4010000 { + compatible = "snps,designware-i2c"; + reg = <0x04010000 0x10000>; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&clk CLK_I2C>, <&clk CLK_APB_I2C1>; + clock-names = "ref", "pclk"; + interrupts = <50 IRQ_TYPE_LEVEL_HIGH>; + status = "disabled"; + }; + + i2c2: i2c@4020000 { + compatible = "snps,designware-i2c"; + reg = <0x04020000 0x10000>; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&clk CLK_I2C>, <&clk CLK_APB_I2C2>; + clock-names = "ref", "pclk"; + interrupts = <51 IRQ_TYPE_LEVEL_HIGH>; + status = "disabled"; + }; + + i2c3: i2c@4030000 { + compatible = "snps,designware-i2c"; + reg = <0x04030000 0x10000>; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&clk CLK_I2C>, <&clk CLK_APB_I2C3>; + clock-names = "ref", "pclk"; + interrupts = <52 IRQ_TYPE_LEVEL_HIGH>; + status = "disabled"; + }; + + i2c4: i2c@4040000 { + compatible = "snps,designware-i2c"; + reg = <0x04040000 0x10000>; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&clk CLK_I2C>, <&clk CLK_APB_I2C4>; + clock-names = "ref", "pclk"; + interrupts = <53 IRQ_TYPE_LEVEL_HIGH>; + status = "disabled"; + }; + uart0: serial@4140000 { compatible = "snps,dw-apb-uart"; reg = <0x04140000 0x100>;