Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2289155rdb; Fri, 8 Dec 2023 04:09:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IGv77pCz+iwk1Tz53vpYptLZmln1qJJmwOzRa7FHo7Bl3i8tDK5zoVgzrT8HJ0vN7+gfigo X-Received: by 2002:a05:6a20:7292:b0:187:9521:92b4 with SMTP id o18-20020a056a20729200b00187952192b4mr3899984pzk.19.1702037377128; Fri, 08 Dec 2023 04:09:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1702037377; cv=pass; d=google.com; s=arc-20160816; b=UzLw1mIWkfqLQZCs2oadTmVCmHT8ui+BflLyfbfJoWq+D1aziN/C3wQIV85IKp/ZIG 6qHTP1b9b0+ds7DGPBAqew5jOXo370trXM+CoKtQvFW2wHTr/x+/8aGmv3fOIG7PJLqT 2z2/Ca4u1NsqyY5Fxdrequ3QWEweFNe48MV+ABY5X8rKbxBSYpHueEpF5bjqvlMttxlP A5SgGHFEDtsLAb57zoggWAdnfzeFcDZX6cFq0THsVAABBL1ljGeUtzyF7EYSU9EFkwNd YIy/5CM+2o/wILEh2Cl5cgIosOSlKWPUiOY07CakSEPoek0S/igyo7XeYDqe9QXM1jrI ndcg== 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 :in-reply-to:from:content-language:references:to:subject:cc :user-agent:date:message-id:dkim-signature; bh=HpJmEg+77XNoZNVqU6ruu2hW3NgqZYEg/LY6WRscGOo=; fh=OOnUYRQKAoQPwAdBMGzWXbtgFznkMe3gnKEGjNGTS1Q=; b=DHVgr1iZ34w+5ReAWlXtiHf9CQmB+i7g7fomjFeviNUU1bQAH9iQopbOn1XpXdIWu2 AQXmnbxz216anjsTZuCTTjXAit2UBIlYVnGo1dbVKvLQRJPwO2+BYMkecj1gtvbynBcE pjIY5asclhp/r175QH01BWKaLyXu4pE4HPevdFMdEUXS/rtQwh09yc/v9Cq7MUoidsUX fObRK7fhs8bxeXkm8GIZqscRLG4UGAchQm/czc5iBQ68xunbOwOVODjspru7BvIE6XU6 amUQ4a1QbD8iiqYalhLDCQ/RKlK1W15+LUH3UQfzHstutYmA1nIH+Iv3JFwJzimwFGPG b01w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=feVaHrCe; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id ay18-20020a056a00301200b006cdf615b690si1506361pfb.149.2023.12.08.04.09.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 04:09:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=feVaHrCe; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id D289C8022C5D; Fri, 8 Dec 2023 04:09:29 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230256AbjLHMJL (ORCPT + 99 others); Fri, 8 Dec 2023 07:09:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52194 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229600AbjLHMJJ (ORCPT ); Fri, 8 Dec 2023 07:09:09 -0500 Received: from JPN01-OS0-obe.outbound.protection.outlook.com (mail-os0jpn01olkn2085.outbound.protection.outlook.com [40.92.98.85]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 29418173B; Fri, 8 Dec 2023 04:09:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TYRvGWUITYo8m3Od2cXzziKpcjQpDxbGr7iR5yIIEgOUsEG9h6xCKehizHi1BV+MCRsDNq8zkr9Wh0Ejnt9clbUltlXFNr3dkcdYp9nlFe93P74VPki1vS47Lg8/3/5css8WPb20bhpl794pWG9JPKR17n27cVkD2g58VFigk9vYzDk4WKyL/X7Q0GHn2gowuIhxoNXOFXMOHlzRVCqyD9RlczcJ1n+hP4CLs2j1r2BR5szwxRRnK6rsqwxjDfzgShymriLr1tAq0eAApLW7pX1+/y6uNNn3NETFGjkfEy0hMGx/BU/SlRBpeiOIPOaUKUrGf5ACChwOsg8jlzRl0A== 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=HpJmEg+77XNoZNVqU6ruu2hW3NgqZYEg/LY6WRscGOo=; b=JFMXvqJiS9HSG0kyHyBPkfxq7LKdx2SSbpLs9SNzkb2qw4u96VmOzs/UgRsqqj4OSPnj1NbaMCdFd++OomN5w1WyXdBdBqH6B9/Ftf8oehnf7o6PHjHRuPryMmg7sOMCjntnxhWvyXRVi5eJ9LM0qsZOclmSamyhssWdOsHhDDMbkGK5g9ZfmydJgP2Amk9pzr9L7tnjaxfSbed3PhfBrBKcQiX5r+5sLkgtjIneOPyDgDyydJnJ6pefPBaRuXdSbIFIKgqsAR1FLefgtUjMP8zCd87kNcyU3sPhxhPWBxacuS7urLvh+uPYyQProlKxWeXwtkfeo5B1HaRIS1wqxg== 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=HpJmEg+77XNoZNVqU6ruu2hW3NgqZYEg/LY6WRscGOo=; b=feVaHrCe4UEGuTnTXshYouHB0tNo9t0lzDgf8/0kWjG/pxwRU5HRxYFvtl9+PnBFK+pIOV3W72+66eVNTezuJkCRpucBacuumXW38yhSUAeA+28I8jCx4oOxKTGNZd5D0YhHCxpOcXA4/z6nRYBWuAjfPZjgGQhS8SCYj8pdW8DJ1y7pfdAqZC5chse+Fsy4RDdKbx3vsbBt287bUmx/LjTZlD5GomigU09j2uRZQUx5L05BGetLxv4x4ejBM2+kJB3AzkHnKVhvyoobkpsARndiBoClmjD0sO9JYtJv/QJ2udmC8wVIjNZglfEL+OMOM8Larc2/gUJu8fz6uJZgmg== Received: from TY3P286MB2611.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:23e::10) by TYCP286MB3522.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:3a6::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7068.28; Fri, 8 Dec 2023 12:09:06 +0000 Received: from TY3P286MB2611.JPNP286.PROD.OUTLOOK.COM ([fe80::6801:95d7:c963:398a]) by TY3P286MB2611.JPNP286.PROD.OUTLOOK.COM ([fe80::6801:95d7:c963:398a%5]) with mapi id 15.20.7068.028; Fri, 8 Dec 2023 12:09:06 +0000 Message-ID: Date: Fri, 8 Dec 2023 20:08:59 +0800 User-Agent: Mozilla Thunderbird Cc: wiagn233@outlook.com, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, leyfoon.tan@starfivetech.com Subject: Re: [PATCH v3 6/6] riscv: dts: starfive: Add initial StarFive JH8100 device tree To: Sia Jee Heng , kernel@esmil.dk, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, krzk@kernel.org, conor+dt@kernel.org, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, daniel.lezcano@linaro.org, tglx@linutronix.de, conor@kernel.org, anup@brainfault.org, gregkh@linuxfoundation.org, jirislaby@kernel.org, michal.simek@amd.com, michael.zhu@starfivetech.com, drew@beagleboard.org References: <20231201121410.95298-1-jeeheng.sia@starfivetech.com> <20231201121410.95298-7-jeeheng.sia@starfivetech.com> Content-Language: en-US From: Shengyu Qu In-Reply-To: <20231201121410.95298-7-jeeheng.sia@starfivetech.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-TMN: [v0UyNsc5owoA+UoSze+rvHGHgZVp30zKTKsQDEflvrD+rtJ6N5/I8N82fB+bOFfc] X-ClientProxiedBy: SG2PR01CA0185.apcprd01.prod.exchangelabs.com (2603:1096:4:189::19) To TY3P286MB2611.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:23e::10) X-Microsoft-Original-Message-ID: <85a2c038-ea89-4081-9cb5-1db4bd5f47a0@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TY3P286MB2611:EE_|TYCP286MB3522:EE_ X-MS-Office365-Filtering-Correlation-Id: 714439ad-f605-480e-d9ae-08dbf7e6798e X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 1YMk6fP8UwPy2PsaVNVMWI1+AYjo219GHHxx+THaFiJfRTcldjyJmDWr+34/zO6hBjufeQASyVD8Z1bT6gqLJeMuhRsKjzHD3TbAhi6zfSO9z1Lrolq9li1vwcWlISQ06EzX7XnOxd6m196lbfyhey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FUWlnK2IrRkxFQVFka3Z4WCtzWHlzM0d1czkvbXE5UFJW?= =?utf-8?B?d3RrNG5vcUsxOGY5Ri9FSm5ka2tJVVJWc2ZkQWNzLzJuMHl2Ry9nMDVBVDlR?= =?utf-8?B?dEVpZkV1Y3h4K2N2TGZkdHpidks5UlhXM2Q0bXhyQ01wL0FXb1YrN2pFR3Vn?= =?utf-8?B?R25hM1o4MTN2WlpHQU5OWXNCRitNZytrY2FGdHRRYSszVldya0Jsb2JIcVk5?= =?utf-8?B?aWpQMFJjNWxyNElLY25sQng5a0lIOHlDUG1CWkQ1M2xscmdSSHF3THN1MXFG?= =?utf-8?B?Q0lOTisyUzF5dXg5L2dLK2JCS1RJc0h5cC8yVXJLTkhBaGxzdlF5Z1lKcHVP?= =?utf-8?B?eEQxUTRjTnNPQXk2cXAyUGUyUXE5RjBzYUkvZzVHOHZ2d3hVOHVPVHdLcTA4?= =?utf-8?Q?rerk2kNuEQJ40xNAmU=3D?= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 714439ad-f605-480e-d9ae-08dbf7e6798e X-MS-Exchange-CrossTenant-AuthSource: TY3P286MB2611.JPNP286.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Dec 2023 12:09:06.0507 (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: TYCP286MB3522 X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Fri, 08 Dec 2023 04:09:30 -0800 (PST) Hello Sia, Does the dubhe-80 cores actually support vector? Or vector support doesn't exist on actual silicon? Best regards, Shengyu > Add initial device tree for the StarFive JH8100 RISC-V SoC. > > Signed-off-by: Sia Jee Heng > Reviewed-by: Ley Foon Tan > --- > arch/riscv/boot/dts/starfive/Makefile | 2 + > arch/riscv/boot/dts/starfive/jh8100-evb.dts | 28 ++ > arch/riscv/boot/dts/starfive/jh8100.dtsi | 378 ++++++++++++++++++++ > 3 files changed, 408 insertions(+) > create mode 100644 arch/riscv/boot/dts/starfive/jh8100-evb.dts > create mode 100644 arch/riscv/boot/dts/starfive/jh8100.dtsi > > diff --git a/arch/riscv/boot/dts/starfive/Makefile b/arch/riscv/boot/dts/starfive/Makefile > index 0141504c0f5c..ef5c7331c7ec 100644 > --- a/arch/riscv/boot/dts/starfive/Makefile > +++ b/arch/riscv/boot/dts/starfive/Makefile > @@ -10,3 +10,5 @@ dtb-$(CONFIG_ARCH_STARFIVE) += jh7100-starfive-visionfive-v1.dtb > > dtb-$(CONFIG_ARCH_STARFIVE) += jh7110-starfive-visionfive-2-v1.2a.dtb > dtb-$(CONFIG_ARCH_STARFIVE) += jh7110-starfive-visionfive-2-v1.3b.dtb > + > +dtb-$(CONFIG_ARCH_STARFIVE) += jh8100-evb.dtb > diff --git a/arch/riscv/boot/dts/starfive/jh8100-evb.dts b/arch/riscv/boot/dts/starfive/jh8100-evb.dts > new file mode 100644 > index 000000000000..c16bc25d8988 > --- /dev/null > +++ b/arch/riscv/boot/dts/starfive/jh8100-evb.dts > @@ -0,0 +1,28 @@ > +// SPDX-License-Identifier: GPL-2.0 OR MIT > +/* > + * Copyright (c) 2021-2023 StarFive Technology Co., Ltd. > + */ > + > +#include "jh8100.dtsi" > + > +/ { > + model = "StarFive JH8100 EVB"; > + compatible = "starfive,jh8100-evb", "starfive,jh8100"; > + > + aliases { > + serial0 = &uart0; > + }; > + > + chosen { > + stdout-path = "serial0:115200n8"; > + }; > + > + memory@40000000 { > + device_type = "memory"; > + reg = <0x0 0x40000000 0x2 0x00000000>; > + }; > +}; > + > +&uart0 { > + status = "okay"; > +}; > diff --git a/arch/riscv/boot/dts/starfive/jh8100.dtsi b/arch/riscv/boot/dts/starfive/jh8100.dtsi > new file mode 100644 > index 000000000000..f26aff5c1ddf > --- /dev/null > +++ b/arch/riscv/boot/dts/starfive/jh8100.dtsi > @@ -0,0 +1,378 @@ > +// SPDX-License-Identifier: GPL-2.0 OR MIT > +/* > + * Copyright (c) 2021-2023 StarFive Technology Co., Ltd. > + */ > + > +/dts-v1/; > + > +/ { > + compatible = "starfive,jh8100"; > + #address-cells = <2>; > + #size-cells = <2>; > + > + cpus { > + #address-cells = <1>; > + #size-cells = <0>; > + timebase-frequency = <4000000>; > + > + cpu0: cpu@0 { > + compatible = "starfive,dubhe-80", "riscv"; > + capacity-dmips-mhz = <768>; > + d-cache-block-size = <64>; > + d-cache-sets = <512>; > + d-cache-size = <32768>; > + d-tlb-sets = <1>; > + d-tlb-size = <48>; > + device_type = "cpu"; > + i-cache-block-size = <64>; > + i-cache-sets = <512>; > + i-cache-size = <32768>; > + i-tlb-sets = <1>; > + i-tlb-size = <48>; > + mmu-type = "riscv,sv48"; > + next-level-cache = <&l2c0>; > + reg = <0x0>; > + riscv,isa = "rv64imafdch"; > + riscv,isa-base = "rv64i"; > + riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "h", "zicntr", > + "zicsr", "zifencei", "zihintpause", "zihpm", > + "zba", "zbb", "zbs", "sscofpmf"; > + tlb-split; > + > + cpu0_intc: interrupt-controller { > + compatible = "riscv,cpu-intc"; > + interrupt-controller; > + #interrupt-cells = <1>; > + }; > + }; > + > + cpu1: cpu@1 { > + compatible = "starfive,dubhe-80", "riscv"; > + capacity-dmips-mhz = <768>; > + d-cache-block-size = <64>; > + d-cache-sets = <512>; > + d-cache-size = <32768>; > + d-tlb-sets = <1>; > + d-tlb-size = <48>; > + device_type = "cpu"; > + i-cache-block-size = <64>; > + i-cache-sets = <512>; > + i-cache-size = <32768>; > + i-tlb-sets = <1>; > + i-tlb-size = <48>; > + mmu-type = "riscv,sv48"; > + next-level-cache = <&l2c1>; > + reg = <0x1>; > + riscv,isa = "rv64imafdch"; > + riscv,isa-base = "rv64i"; > + riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "h", "zicntr", > + "zicsr", "zifencei", "zihintpause", "zihpm", > + "zba", "zbb", "zbs", "sscofpmf"; > + tlb-split; > + > + cpu1_intc: interrupt-controller { > + compatible = "riscv,cpu-intc"; > + interrupt-controller; > + #interrupt-cells = <1>; > + }; > + }; > + > + cpu2: cpu@2 { > + compatible = "starfive,dubhe-90", "riscv"; > + capacity-dmips-mhz = <1024>; > + d-cache-block-size = <64>; > + d-cache-sets = <1024>; > + d-cache-size = <65536>; > + d-tlb-sets = <1>; > + d-tlb-size = <48>; > + device_type = "cpu"; > + i-cache-block-size = <64>; > + i-cache-sets = <1024>; > + i-cache-size = <65536>; > + i-tlb-sets = <1>; > + i-tlb-size = <48>; > + mmu-type = "riscv,sv48"; > + next-level-cache = <&l2c2>; > + reg = <0x2>; > + riscv,isa = "rv64imafdch"; > + riscv,isa-base = "rv64i"; > + riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "h", "zicntr", > + "zicsr", "zifencei", "zihintpause", "zihpm", > + "zba", "zbb", "zbs", "sscofpmf"; > + tlb-split; > + > + cpu2_intc: interrupt-controller { > + compatible = "riscv,cpu-intc"; > + interrupt-controller; > + #interrupt-cells = <1>; > + }; > + }; > + > + cpu3: cpu@3 { > + compatible = "starfive,dubhe-90", "riscv"; > + capacity-dmips-mhz = <1024>; > + d-cache-block-size = <64>; > + d-cache-sets = <1024>; > + d-cache-size = <65536>; > + d-tlb-sets = <1>; > + d-tlb-size = <48>; > + device_type = "cpu"; > + i-cache-block-size = <64>; > + i-cache-sets = <1024>; > + i-cache-size = <65536>; > + i-tlb-sets = <1>; > + i-tlb-size = <48>; > + mmu-type = "riscv,sv48"; > + next-level-cache = <&l2c2>; > + reg = <0x3>; > + riscv,isa = "rv64imafdch"; > + riscv,isa-base = "rv64i"; > + riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "h", "zicntr", > + "zicsr", "zifencei", "zihintpause", "zihpm", > + "zba", "zbb", "zbs", "sscofpmf"; > + tlb-split; > + > + cpu3_intc: interrupt-controller { > + compatible = "riscv,cpu-intc"; > + interrupt-controller; > + #interrupt-cells = <1>; > + }; > + }; > + > + cpu4: cpu@4 { > + compatible = "starfive,dubhe-90", "riscv"; > + capacity-dmips-mhz = <1024>; > + d-cache-block-size = <64>; > + d-cache-sets = <1024>; > + d-cache-size = <65536>; > + d-tlb-sets = <1>; > + d-tlb-size = <48>; > + device_type = "cpu"; > + i-cache-block-size = <64>; > + i-cache-sets = <1024>; > + i-cache-size = <65536>; > + i-tlb-sets = <1>; > + i-tlb-size = <48>; > + mmu-type = "riscv,sv48"; > + next-level-cache = <&l2c2>; > + reg = <0x4>; > + riscv,isa = "rv64imafdch"; > + riscv,isa-base = "rv64i"; > + riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "h", "zicntr", > + "zicsr", "zifencei", "zihintpause", "zihpm", > + "zba", "zbb", "zbs", "sscofpmf"; > + tlb-split; > + > + cpu4_intc: interrupt-controller { > + compatible = "riscv,cpu-intc"; > + interrupt-controller; > + #interrupt-cells = <1>; > + }; > + }; > + > + cpu5: cpu@5 { > + compatible = "starfive,dubhe-90", "riscv"; > + capacity-dmips-mhz = <1024>; > + d-cache-block-size = <64>; > + d-cache-sets = <1024>; > + d-cache-size = <65536>; > + d-tlb-sets = <1>; > + d-tlb-size = <48>; > + device_type = "cpu"; > + i-cache-block-size = <64>; > + i-cache-sets = <1024>; > + i-cache-size = <65536>; > + i-tlb-sets = <1>; > + i-tlb-size = <48>; > + mmu-type = "riscv,sv48"; > + next-level-cache = <&l2c2>; > + reg = <0x5>; > + riscv,isa = "rv64imafdch"; > + riscv,isa-base = "rv64i"; > + riscv,isa-extensions = "i", "m", "a", "f", "d", "c", "h", "zicntr", > + "zicsr", "zifencei", "zihintpause", "zihpm", > + "zba", "zbb", "zbs", "sscofpmf"; > + tlb-split; > + > + cpu5_intc: interrupt-controller { > + compatible = "riscv,cpu-intc"; > + interrupt-controller; > + #interrupt-cells = <1>; > + }; > + }; > + > + cpu-map { > + cluster0 { > + core0 { > + cpu = <&cpu0>; > + }; > + }; > + > + cluster1 { > + core0 { > + cpu = <&cpu1>; > + }; > + }; > + > + cluster2 { > + core0 { > + cpu = <&cpu2>; > + }; > + > + core1 { > + cpu = <&cpu3>; > + }; > + > + core2 { > + cpu = <&cpu4>; > + }; > + > + core3 { > + cpu = <&cpu5>; > + }; > + }; > + }; > + > + l2c0: cache-controller-0 { > + compatible = "cache"; > + cache-block-size = <64>; > + cache-level = <2>; > + cache-sets = <512>; > + cache-size = <0x40000>; > + cache-unified; > + next-level-cache = <&l3_cache>; > + }; > + > + l2c1: cache-controller-1 { > + compatible = "cache"; > + cache-block-size = <64>; > + cache-level = <2>; > + cache-sets = <512>; > + cache-size = <0x40000>; > + cache-unified; > + next-level-cache = <&l3_cache>; > + }; > + > + l2c2: cache-controller-2{ > + compatible = "cache"; > + cache-block-size = <64>; > + cache-level = <2>; > + cache-sets = <4096>; > + cache-size = <0x200000>; > + cache-unified; > + next-level-cache = <&l3_cache>; > + }; > + > + l3_cache: cache-controller-3 { > + compatible = "cache"; > + cache-block-size = <64>; > + cache-level = <3>; > + cache-sets = <8192>; > + cache-size = <0x400000>; > + cache-unified; > + }; > + }; > + > + clk_uart: clk-uart { > + compatible = "fixed-clock"; /* Initial clock handler for UART */ > + #clock-cells = <0>; > + clock-frequency = <24000000>; > + }; > + > + soc { > + compatible = "simple-bus"; > + interrupt-parent = <&plic>; > + #address-cells = <2>; > + #size-cells = <2>; > + ranges; > + > + clint: clint@2000000 { > + compatible = "starfive,jh8100-clint", "sifive,clint0"; > + reg = <0x0 0x2000000 0x0 0x10000>; > + interrupts-extended = <&cpu0_intc 3>, <&cpu0_intc 7>, > + <&cpu1_intc 3>, <&cpu1_intc 7>, > + <&cpu2_intc 3>, <&cpu2_intc 7>, > + <&cpu3_intc 3>, <&cpu3_intc 7>, > + <&cpu4_intc 3>, <&cpu4_intc 7>, > + <&cpu5_intc 3>, <&cpu5_intc 7>; > + }; > + > + plic: interrupt-controller@c000000 { > + #interrupt-cells = <1>; > + #address-cells = <0>; > + compatible = "starfive,jh8100-plic", "sifive,plic-1.0.0"; > + reg = <0x0 0x0c000000 0x0 0x4000000>; > + riscv,ndev = <200>; > + interrupt-controller; > + interrupts-extended = <&cpu0_intc 11>, <&cpu1_intc 11>, > + <&cpu0_intc 9>, <&cpu1_intc 9>, > + <&cpu2_intc 11>, <&cpu3_intc 11>, > + <&cpu4_intc 11>, <&cpu5_intc 11>, > + <&cpu2_intc 9>, <&cpu3_intc 9>, > + <&cpu4_intc 9>, <&cpu5_intc 9>; > + }; > + > + uart0: serial@12160000 { > + compatible = "starfive,jh8100-uart", "cdns,uart-r1p8"; > + reg = <0x0 0x12160000 0x0 0x10000>; > + clock-names = "uart_clk", "pclk"; > + clocks = <&clk_uart>, <&clk_uart>; > + interrupts = <67>; > + status = "disabled"; > + }; > + > + uart1: serial@12170000 { > + compatible = "starfive,jh8100-uart", "cdns,uart-r1p8"; > + reg = <0x0 0x12170000 0x0 0x10000>; > + clock-names = "uart_clk", "pclk"; > + clocks = <&clk_uart>, <&clk_uart>; > + interrupts = <68>; > + status = "disabled"; > + }; > + > + uart2: serial@12180000 { > + compatible = "starfive,jh8100-uart", "cdns,uart-r1p8"; > + reg = <0x0 0x12180000 0x0 0x10000>; > + clock-names = "uart_clk", "pclk"; > + clocks = <&clk_uart>, <&clk_uart>; > + interrupts = <69>; > + status = "disabled"; > + }; > + > + uart3: serial@12190000 { > + compatible = "starfive,jh8100-uart", "cdns,uart-r1p8"; > + reg = <0x0 0x12190000 0x0 0x10000>; > + clock-names = "uart_clk", "pclk"; > + clocks = <&clk_uart>, <&clk_uart>; > + interrupts = <70>; > + status = "disabled"; > + }; > + > + uart4: serial@121a0000 { > + compatible = "starfive,jh8100-uart", "cdns,uart-r1p8"; > + reg = <0x0 0x121a0000 0x0 0x10000>; > + clock-names = "uart_clk", "pclk"; > + clocks = <&clk_uart>, <&clk_uart>; > + interrupts = <71>; > + status = "disabled"; > + }; > + > + uart5: serial@127d0000 { > + compatible = "starfive,jh8100-uart", "cdns,uart-r1p8"; > + reg = <0x0 0x127d0000 0x0 0x10000>; > + clock-names = "uart_clk", "pclk"; > + clocks = <&clk_uart>, <&clk_uart>; > + interrupts = <72>; > + status = "disabled"; > + }; > + > + uart6: serial@127e0000 { > + compatible = "starfive,jh8100-uart", "cdns,uart-r1p8"; > + reg = <0x0 0x127e0000 0x0 0x10000>; > + clock-names = "uart_clk", "pclk"; > + clocks = <&clk_uart>, <&clk_uart>; > + interrupts = <73>; > + status = "disabled"; > + }; > + }; > +};