Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1827415rdb; Mon, 9 Oct 2023 04:29:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFjqU78ZKZK02IFOqXIX721Z8+FaJki1hutQoc91J8XB35DfRm8Emmz+fkGuAfyF4DDAv6I X-Received: by 2002:a05:6a20:3cac:b0:15d:9ee7:1816 with SMTP id b44-20020a056a203cac00b0015d9ee71816mr19228127pzj.10.1696850987510; Mon, 09 Oct 2023 04:29:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1696850987; cv=pass; d=google.com; s=arc-20160816; b=mfEVDK61f5OulYfZWvwDYvw0zwl0VFsdlY/ukogxuUaxxPKFe4+d3o93as2G6mqGT4 vbqCs+cqAeiq/Lxl2Ec5bFQOP8JLsVRJbG6AWL6GUeoHN5GEpOkIyB9MD47UiYWscRJJ gepGCKzxvaezQTWs82M0vOPyd89B70AJL0c8YdxDXKSK/P1AxUJI+YdrXF5bBDPuJrUu d96aNoTUVWo/ENcLHPwjqDI3BrwN0X+pVVjdcAf3la1Trz0QS7NsvFSx5VJXjMC4JCAE 9SxBB/LgRMRMYBJ/AQP0MRwpJG7412Q8BZ7ZcI5EMIjL5mM6BWWHn8SDk5Bal3jFVUuK bcPA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=2+1BGYS35byXM3ZXqk+EWNZDHTEcSKdJczyWZtjyM8c=; fh=OGvOkw3MWgiYZScLOy2UnDebf3bUtwJu/JxyM869cd4=; b=tqO3KFHKuOZwKULmsVIz+A5CLkGec18vgPP04vG/Vd2tw0SLGVoRInyoWbwBGS2pyM AbAgRcRQNRGrF6t5rFsY2RSQbEYR1C0JFFp1qIRRdHeCObYQ5EN/CLjsUujuVywEbKCd rqCAv6EIKN4m1Pxt+57jTZM7+iHpjm0jt5b4sekhrgDBR9whIU24743gKeJh7Dzw4M8B EDH/tXJpsCcZbRgiVFZuztaieeRN2HPfWRYY/t5CUihCfpcMsLNGD0mjKURIoUYiHyg5 9K0tYG1DtjBnAhEhGe4Ql0RzPOO/fN5G4nU4v9cRVErEQ0rrKtdWe/6YTDGDWnQORvAk rWIA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b="UOgUp/uD"; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id s196-20020a6377cd000000b00565f4166f4bsi9441494pgc.284.2023.10.09.04.29.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Oct 2023 04:29:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b="UOgUp/uD"; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id E46D18034A52; Mon, 9 Oct 2023 04:29:41 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346222AbjJIL3X (ORCPT + 99 others); Mon, 9 Oct 2023 07:29:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346230AbjJIL3I (ORCPT ); Mon, 9 Oct 2023 07:29:08 -0400 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> Content-Transfer-Encoding: 8bit Content-Type: text/plain 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> 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/qP6rYLnuUP4oV7xU8ryjuOTnXYbePlVkswvT3yHzdZNUcxJSRRIoogazJrgPhD9TCDCHrIOKc90ryjN4rMCJWT2nhuKXSPgbYBKeb7V8jEPBxVNAjxPwPcOm30TFD0EjmTKkXd44njn3OdiIslzbixrLEOZDtWzsP1p9PwdqrvH4dJlA/BakAQGoyb6FY/sytJVadrgpxLMP7HzUcMV/4XncypgIdDKmxnV2jZkeqo5UVt7DkRf9O6XCwjdHVbmQZKMnW2HEVyPzZmmrEK3bEF+KKZxVRAiLkKDUovUgrWZ7My4R1HrS0KpSb5kIWwO0mIXnygDpsXqAPc8uuNVSY1p57vWjzacsIoEOvJEv7WyauQ4r6/SVCL1E0Td+kkkCWh7vbk+TtIA2s2g2Lv77FsbM7OqzW3zC3cN1hGJsfUYaDDXHqju0Xxlt20Z4v3oTwojHNEcAN06BuVJ4LzG1ps0LarPnjmdF9iLjNtDsmuxX2vm8E3dBDk/BcY8dpZ741gZE103EJ7rLJHf2fGcY25sKnc3wLcZSU5Nro5GK97y/CsY X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?UcFGCkOHv7s3dFGJR/CBRoArxRxd3VK3eToNWlYn6KV7MzlzEkKqDfrXyr7w?= =?us-ascii?Q?Afz14C1b6+hnYhJxLMSFHC2jHOUeKq1dG+fAjYMFfC8v52BHNfGBuwu5okrS?= =?us-ascii?Q?W+6DRH0mmKkF+CDgvkdqMdtDHnnzHYerFAQEE3eu1JlYS0q3tuRjk+syZtv+?= =?us-ascii?Q?Myy86VR0RG/jsRk/fomK8717tE/rCz13hFFMIS+T7q4KV8/AfLekgAmD/ecG?= =?us-ascii?Q?fmPmXtwtmXS8fZeYwqy2VauM3MIfShb+vO1vPnyuNKlNVta6a1SBO0UIwuTC?= =?us-ascii?Q?fyaL15qA164eUvXkkc0CWektm0ojNRVk9jIouRx7L5KyYTBW0d79V3jfBz5p?= =?us-ascii?Q?FbfV6ligloTSWciaN3liXXk12QQ1lG3TmrTgTM4IDo1uPyTnKJXJUXUlq6WN?= =?us-ascii?Q?ZInpUMuNgRWv4yB273/o5ubV8GBx5sQV5pmz2qvHXru+i+DzLoB0d1EDg8Ty?= =?us-ascii?Q?K+we8mzn1/3ucXbu3ZhIvWoxdYusm386O8bN9bhjIXMuwVhEj56qC7S6x6xN?= =?us-ascii?Q?z3XznnIDkqvgzqzT2tHmk+qinl/bQSiANlayvn529QhwsYiuK4anRGGqbWZK?= =?us-ascii?Q?xan1OG7aTJ1p4ZIjJkahuKrvdFrO/UpUhL2WcsPpir4RKeXT2XH6Lo3EJUQO?= =?us-ascii?Q?I9ZjrvyHeE7VJ+1HDYi9JWAALaJ0COBtBmEN3MDLDP1zu5in803wW6xUKi69?= =?us-ascii?Q?hLpJxfAB7GpKjg1E/Y3GxQ5cyNgKI4g1xr7AKb2hxjqGl2gOf51BAR18Igam?= =?us-ascii?Q?hxRPMmW4rhx8CocD5/YN9qXJ84GMqeZ+LXrIIYR5kg/VUazqJVvF3fXaWA1K?= =?us-ascii?Q?nOlkMwkRAMtEQWZTphQItNuu2P+jge2KS+QGmwV4qnH29nNryMRJnXuaKiN+?= =?us-ascii?Q?O4mRhtnh7+PH0dpWji7QJz4KcLxoL8/sNEbh29cnu4HEgS5YsnViH/vNFI8J?= =?us-ascii?Q?TTzPMoT7JIxhWfMqVGEuMPgU9HGBvAW9mQmE7QtLLMFSTXd7HfpBnZIA0WGw?= =?us-ascii?Q?yFnLtl1VLpae5MqP3fFLhtbiQoa7nNU/cDtz8t2XYnbZidQo//DHZoMXbIi9?= =?us-ascii?Q?2XpK5WSyBN/drHF0cwKnFt+GJ/t3jUY/worvye+a+g1nqoQlkNjm6n9hTepD?= =?us-ascii?Q?3X4Ojme1MCpXmd0MjWKVy8viejUgf3NsbhK9yv8KtxrwRDQRQXmyC7jQYEhS?= =?us-ascii?Q?f68rso70y/knpMroDdNz2Y6yGKuXporTPjCA4+5W5AS4L8/uKeBW7QVgQHs?= =?us-ascii?Q?=3D?= 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=3.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_SBL_CSS, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Mon, 09 Oct 2023 04:29:42 -0700 (PDT) X-Spam-Level: ** 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 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>; + }; + }; +}; -- 2.42.0