From patchwork Mon Oct 9 11:26:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inochi Amaoto X-Patchwork-Id: 731621 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BDB85156C3 for ; Mon, 9 Oct 2023 11:29:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=outlook.com header.i=@outlook.com header.b="UOgUp/uD" Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02olkn2085.outbound.protection.outlook.com [40.92.44.85]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 492DFD8; Mon, 9 Oct 2023 04:28:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BHhQpcLAkIDYwPu/FShq6LgvPGPf9SQmg0NVa5s2tctK0DovxozvZGJ0VQqyNFab77xIegVB1p6M7H5d2dRHmuxjaLmN5QVZHSahFETVuMf6R9yrCQSc+s3wCluHfcfBEXOxdQMUj6IaTc9wjqEaHOv1OGCj2DZEfY+9XEE2cnDZGEaoRWYzfWPTfUBrLe/ra5RUjoF1OUdu4gcMfUIiSsvguMQqlgiSGuLo2LM4WiIN10IQMnkIiMvQajWA8r6xYNFCMlb6CRGA77kLCUy56B9FT5O+ofrsQkNyZmeXdmbc6I21QO8ztYTiIionqUhVCnBQqbD8xL/18URa9m3aYg== 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=2+1BGYS35byXM3ZXqk+EWNZDHTEcSKdJczyWZtjyM8c=; b=W+1reOLF/lOwNSs8sgkztst6AQtIVf52vpIp58YwtYtFuLkQJkzGCG/lH+StPKpJZSGl0fAxAueExMSeaUKSJxYwML9FbFIrdF6KeeaUGK8N97e/qfA1HTbsGIeWAIrSL7O00wXr0QY9td16axBuR4sFltjfe+AgdnMVAV/4NKAeJANZFSPS9kMEDEaRrZkxSMthIWsaOaoKBx94bHBRDgjvtQRhH0GMcCYiKw2be2gktlmXJsy4UarfCk+BzDSvnDs03zwZsgeQJ6e2MNFuff+ePGGGHGgNcuenPg8nCcs+8+f5W/dQ3L1GR+7cxBfI0bMo3084aj903PG5EvkY7Q== 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=2+1BGYS35byXM3ZXqk+EWNZDHTEcSKdJczyWZtjyM8c=; b=UOgUp/uDoL4qGPsi4sg9LugDJLQ76v868r4kmTgTTUJ6w1FrfqEzVvaprT+4denEmRWZch158NkXZ/NXvVlxQk/DSh8KMqc7IYQxHCxZWTq8cts5Zl8vE7pjqRm2CXVh3VdKD/AKqjgxvP7dJAjNPCKV7bcF3Hl4Y4VbVoo521xX5q4cF5WI7hm+RwOigAjGmbq/HSC/JuxNG5/rsPgq/I78OD0JpyV+xz2S2EDVtItDxCY2keX0r7YUVcdtG89pPrNxQribMRS6VuC0uX708roI4UgdW+Co0jkd9kGgA+BByhSBBzQ6PSxBM5QQMXZrwidDF6wtmILzPt3HChEhmA== Received: from IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) by PH0PR20MB6129.namprd20.prod.outlook.com (2603:10b6:510:2a2::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.37; Mon, 9 Oct 2023 11:27:12 +0000 Received: from IA1PR20MB4953.namprd20.prod.outlook.com ([fe80::d050:882f:a8a7:8263]) by IA1PR20MB4953.namprd20.prod.outlook.com ([fe80::d050:882f:a8a7:8263%5]) with mapi id 15.20.6838.040; Mon, 9 Oct 2023 11:27:12 +0000 From: Inochi Amaoto To: Chao Wei , Chen Wang , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou Cc: Jisheng Zhang , Inochi Amaoto , devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 6/7] riscv: dts: sophgo: add initial CV1812H SoC device tree Date: Mon, 9 Oct 2023 19:26:37 +0800 Message-ID: X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231009112642.477337-1-inochiama@outlook.com> References: <20231009112642.477337-1-inochiama@outlook.com> X-TMN: [gN82ku7+V+Gow7wpWdWNQlBBzqIBIoRIZCYd0yusia8=] X-ClientProxiedBy: TYWP286CA0020.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:262::7) To IA1PR20MB4953.namprd20.prod.outlook.com (2603:10b6:208:3af::19) X-Microsoft-Original-Message-ID: <20231009112642.477337-6-inochiama@outlook.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: IA1PR20MB4953:EE_|PH0PR20MB6129:EE_ X-MS-Office365-Filtering-Correlation-Id: f85887a1-2fc1-4e33-b26b-08dbc8baadf1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: foFJ4Twe8arYK17s7OUuW5rT7dR/bMR5oDAVL4ANVCjaWVS3vYDlOMVuHBBZNcl7NvHOLERMYb8Px3lD/qP6rYLnuUP4oV7xU8ryjuOTnXYbePlVkswvT3yHzdZNUcxJSRRIoogazJrgPhD9TCDC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C7S6x6xNz3XznnIDkqvgzqzT2tHmk+qinl/bQSiANlayvn529QhwsYiuK4anRGGqbWZKxan1OG7aTJ1p4ZIjJkahuKrvdFrO/UpUhL2WcsPpir4RKeXT2XH6Lo3EJUQOI9ZjrvyHeE7VJ+1HDYi9JWAALaJ0COBtBmEN3MDLDP1zu5in803wW6xUKi69hLpJxfAB7GpKjg1E/Y3GxQ5cyNgKI4g1xr7AKb2hxjqGl2gOf51BAR18IgamhxRPMmW4rhx8CocD5/YN9qXJ84GMqeZ+LXrIIYR5kg/VUazqJVvF3fXaWA1KnOlkMwkRAMtEQWZTphQItNuu2P+jge2KS+QGmwV4qnH29nNryMRJnXuaKiN+O4mRhtnh7+PH0dpWji7QJz4KcLxoL8/sNEbh29cnu4HEgS5YsnViH/vNFI8JTTzPMoT7JIxhWfMqVGEuMPgU9HGBvAW9mQmE7QtLLMFSTXd7HfpBnZIA0WGwyFnLtl1VLpae5MqP3fFLhtbiQoa7nNU/cDtz8t2XYnbZidQo//DHZoMXbIi92XpK5WSyBN/drHF0cwKnFt+GJ/t3jUY/worvye+a+g1nqoQlkNjm6n9hTepD3X4Ojme1MCpXmd0MjWKVy8viejUgf3NsbhK9yv8KtxrwRDQRQXmyC7jQYEhSf68rso70y/knpMroDdNz2Y6yGKuXporTPjCA4+5W5AS4L8/uKeBW7QVgQHs= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: f85887a1-2fc1-4e33-b26b-08dbc8baadf1 X-MS-Exchange-CrossTenant-AuthSource: IA1PR20MB4953.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Oct 2023 11:27:12.3718 (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: PH0PR20MB6129 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Add initial device tree for the CV1812H RISC-V SoC by SOPHGO. Signed-off-by: Inochi Amaoto --- arch/riscv/boot/dts/sophgo/cv1812h.dtsi | 36 +++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 arch/riscv/boot/dts/sophgo/cv1812h.dtsi -- 2.42.0 diff --git a/arch/riscv/boot/dts/sophgo/cv1812h.dtsi b/arch/riscv/boot/dts/sophgo/cv1812h.dtsi new file mode 100644 index 000000000000..3864d34b0100 --- /dev/null +++ b/arch/riscv/boot/dts/sophgo/cv1812h.dtsi @@ -0,0 +1,36 @@ +// SPDX-License-Identifier: (GPL-2.0 OR MIT) +/* + * Copyright (C) 2023 Inochi Amaoto + */ + +#include +#include "cv180x.dtsi" + +/ { + compatible = "sophgo,cv1812h"; + + memory@80000000 { + device_type = "memory"; + reg = <0x80000000 0x10000000>; + }; + + soc { + interrupt-parent = <&plic>; + + plic: interrupt-controller@70000000 { + compatible = "sophgo,cv1812h-plic", "thead,c900-plic"; + reg = <0x70000000 0x4000000>; + interrupts-extended = <&cpu0_intc 11>, <&cpu0_intc 9>; + interrupt-controller; + #address-cells = <0>; + #interrupt-cells = <2>; + riscv,ndev = <101>; + }; + + clint: timer@74000000 { + compatible = "sophgo,cv1812h-clint", "thead,c900-clint"; + reg = <0x74000000 0x10000>; + interrupts-extended = <&cpu0_intc 3>, <&cpu0_intc 7>; + }; + }; +};