Received: by 2002:a05:6358:795:b0:dc:4c66:fc3e with SMTP id n21csp230736rwj; Sat, 29 Oct 2022 02:05:08 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5FYj4K86it3+XJkUOw4qSa6UbIbEJp52H8MdHzsE0gUxSD+Cpv0HLO59Y7DTBEjVYCnB7g X-Received: by 2002:a05:6402:a47:b0:462:a70e:31a6 with SMTP id bt7-20020a0564020a4700b00462a70e31a6mr3422826edb.233.1667034308370; Sat, 29 Oct 2022 02:05:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667034308; cv=none; d=google.com; s=arc-20160816; b=06wc9fc2+a6FGUmGQhd4tDMhPYHigRMfjAvidw5wJ3irkXsOv3dZxNLA31LBo2fF1k owyrgwFNN+pWKpSiAbpL1/KLF7gS+8+XYoy8fDdo92wLS5JoG8shl5bFOK2tFS0J3O2f nz50y3v+zTbKOwdxqQ1Pwc/4BiGDKkXYELYZWv+VBI2cljt0Y2g5s0pSlukVJQgKWk2z OWqVZ0sLirA7y31fX7ikm0E7jCZYEmZxktbbGm5ZXg+JqVW8dXHalIZ/wbXt/99T3QZ2 uoIg56JBxj3W3BWskoL/+SzHAfiM38KVl7owFTmUOxzU9Gxiu5rNyRywMTtlNKB4bPlW 0gqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :in-reply-to:from:content-language:references:cc:to:subject :user-agent:mime-version:date:message-id; bh=IKbx4tIxlrXRzmX0qaUrOFwphXsviaigqJ6Gu5ZgGAg=; b=Uwg15XE/98ki3puqepgELj6KrTT9loywGrVtSorCHXchP4sNXe5sWy+r+V4C+cZf96 zq2erF3b6VpixOUHLHVpGOBTwvu6ddhzdVn8YqGufQGYLgDmqyFIwnbDlDxWSx/GjX+S 9Bh+Qlc2WAfa0c/L8MsZ1uFU6l23L2Hi96eNCmwVvkTsLd7JfYP8ALYlf20A4IvyoE63 +dMUsBelyBgMKg9XIueEmf/B/yUNPTzelKYd6Fhj2yEsItY0nsFglDo0xntsMaoyt0go qTF3Q6HJPLO5MmPqHcJ6UygQ9qD4CoLXOax7PBdpCt8GmEZ7SbLVMpqVxKxoKoF07Vj1 9Rtg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sh31-20020a1709076e9f00b0073d7111c8e7si1369963ejc.710.2022.10.29.02.04.43; Sat, 29 Oct 2022 02:05:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229824AbiJ2ISq (ORCPT + 99 others); Sat, 29 Oct 2022 04:18:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229457AbiJ2ISp (ORCPT ); Sat, 29 Oct 2022 04:18:45 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.155.67.158]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A48C1A52EA; Sat, 29 Oct 2022 01:18:42 -0700 (PDT) X-QQ-mid: bizesmtp87t1667031502tp57gzwl Received: from [192.168.1.231] ( [183.27.97.92]) by bizesmtp.qq.com (ESMTP) with id ; Sat, 29 Oct 2022 16:18:20 +0800 (CST) X-QQ-SSF: 01000000000000B0B000B00A0000000 X-QQ-FEAT: Xz3VOcA7Mr0ufGvzXNoh6TuMbfMiHqSs6DvufBwTWeiVDGCqal+16D3xUcS7i q9kSmz8gLzMGhc8x8OoKNlpzjIq0e8/fH3+5jlI9NSeobDa9jGYkSQbFKkg4H0gJWh9/G23 7tw+RvBRwMl0FX9FrPxMqJq5r6xVUvqx+QOpktPeyA8l/Y/3Gf95fd1UhMZNbzT06JZNZ5b v0zY/R2sDa28NowoPGrmKkegKld3MOhCBxE3jBs+EWTAq1pAZxh31RXB3wb583vqs59F0BN EIhECwE/YFE5BOXou4yXGRpnS6k4ydyHq2AJpe1LkDAbkQwbjn2cXaCEOCqSsgN8KiZMNoq NzMJnGWICgOSvXbErIKUikk96KsLQXHEoGc3PyD0X/oa3hf4Nw= X-QQ-GoodBg: 0 Message-ID: <45F9A056FE1D6D23+fa337149-3574-1687-0695-15e554e24cbd@linux.starfivetech.com> Date: Sat, 29 Oct 2022 16:18:19 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.3.2 Subject: Re: [PATCH v1 28/30] RISC-V: Add StarFive JH7110 VisionFive2 board device tree To: Conor Dooley Cc: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Daniel Lezcano , Thomas Gleixner , Marc Zyngier , Philipp Zabel , Stephen Boyd , Michael Turquette , Linus Walleij , Emil Renner Berthing , linux-kernel@vger.kernel.org References: <20220929143225.17907-1-hal.feng@linux.starfivetech.com> <20220930075353.6842-1-hal.feng@linux.starfivetech.com> Content-Language: en-US From: Hal Feng In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:linux.starfivetech.com:qybglogicsvr:qybglogicsvr2 X-Spam-Status: No, score=0.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA, NICE_REPLY_A,SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 1 Oct 2022 12:14:49 +0100, Conor Dooley wrote: > On Fri, Sep 30, 2022 at 03:53:53PM +0800, Hal Feng wrote: > > From: Emil Renner Berthing > > > > Add a minimal device tree for StarFive JH7110 VisionFive2 board. > > Support booting and basic clock/reset/pinctrl/uart drivers. > > > > I would like to see a link to the publicly available datasheet or > documentation for the board (and for the SoC in patch 28) please. All documents can be found at RVspace Documentation Center maintained by StarFive. The related documents of JH7110 SoC and VisionFive2 board are as follows. StarFive JH7110 SoC: https://doc-en.rvspace.org/Doc_Center/jh7110.html StarFive VisionFive2 board: https://doc-en.rvspace.org/Doc_Center/visionfive_2.html > > > Signed-off-by: Emil Renner Berthing > > Signed-off-by: Jianlong Huang > > Ditto from patch 28 re: the SoB chain. > > > Signed-off-by: Hal Feng > > --- > > > diff --git a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-v2.dts b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-v2.dts > > new file mode 100644 > > index 000000000000..6b9fe32c7eac > > --- /dev/null > > +++ b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-v2.dts > > @@ -0,0 +1,91 @@ > > +// SPDX-License-Identifier: GPL-2.0 OR MIT > > +/* > > + * Copyright (C) 2022 StarFive Technology Co., Ltd. > > + * Copyright (C) 2022 Emil Renner Berthing > > + */ > > + > > +/dts-v1/; > > +#include "jh7110.dtsi" > > +#include > > +#include > > + > > +/ { > > + model = "StarFive VisionFive V2"; > > + compatible = "starfive,visionfive-v2", "starfive,jh7110"; > > + > > + aliases { > > + serial0 = &uart0; > > + }; > > Should we also have a chosen node here? Will add it. Thanks. > > > + > > + cpus { > > + timebase-frequency = <4000000>; > > + }; > > + > > + memory@40000000 { > > + device_type = "memory"; > > + reg = <0x0 0x40000000 0x1 0x0>; > > What is going to happen to the 2 GB variant if they attempt to use this > devicetree? The VisionFive2 board now has 4GB version and 8GB version only. Before linux startup, we will change this property in dtb through u-boot to make sure the board can boot up with the correct memory size. > > > + }; > > + > > + reserved-memory { > > + #address-cells = <2>; > > + #size-cells = <2>; > > + ranges; > > + > > + linux,cma { > > + compatible = "shared-dma-pool"; > > + reusable; > > + size = <0x0 0x20000000>; > > + alignment = <0x0 0x1000>; > > + alloc-ranges = <0x0 0xa0000000 0x0 0x20000000>; > > + linux,cma-default; > > + }; > > + > > + e24_mem: e24@c0000000 { > > I had a conversation previously with Icenowy [0] about the e24 on the > jh7100 that didn't really come to a conclusion about how to represent > it there - but looks like you've decided that it should be a remoteproc > for the jh7100? Yes, we treat it as a remoteproc outside the cpus node. But after communication with my colleagues, I found that all nodes in "reserved-memory" are not used in the minimal support for VisionFive2 board. So for this series, I would like to remove "reserved-memory" in v2. > > Is this another situation where peripherals appear at different > addresses for the e24 compared to the u74s? Or has that changed for the> jh7100, and really the e24 should be described in the CPUs node? If it > is the latter, you can pick the first patch from [0] into your series. > > 0 - https://lore.kernel.org/linux-riscv/e8543838cd221ab6699da16c985eed7514daa786.camel@icenowy.me> > + reg = <0x0 0xc0110000 0x0 0xf0000>; > > + no-map; > > + }; > > + > > + xrp_reserved: xrpbuffer@f0000000 { > > "Following the generic-names recommended practice, node names should > reflect the purpose of the node (ie. “framebuffer” or “dma-pool”)." > > I tried googling around for an explanation for what the xrp was, and all > I could find was this out-of-tree text binding: > https://github.com/foss-xtensa/xrp/blob/master/xrp-kernel/cdns%2Cxrp-hw-simple%2Cv1.txt The name is from the device driver of HiFi4 DSP provided by Cadence, which is not in the mainline. "xrp" is a short name of "Xtensa Remote Processing". Best regards, Hal