Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1718227rdb; Wed, 20 Sep 2023 18:38:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEawTnE234RdfSbTJgvs+32ogWPmRxp2rwg+aDhKZCDjAInqNbgUt7Zqk8PovVylPz58U2H X-Received: by 2002:a05:6a20:440d:b0:134:d4d3:f0a5 with SMTP id ce13-20020a056a20440d00b00134d4d3f0a5mr3909562pzb.2.1695260302364; Wed, 20 Sep 2023 18:38:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695260302; cv=none; d=google.com; s=arc-20160816; b=tgIYj8fluxY8LQWIe9rKWyEyYEZw/MVxkAFzW3+dGxSSgEtXSRhiZ3nyy7FrynIylI z7FpgkOmOY+JeiYh+nd3MJVdPEQIw/XgPs7z6lN8Uy9luHnFZ4rsFGD+24kEx8uNIXAn BO6GlypGh98nlEy3Z2C3exf/sVeDlgpYi+jKeut4DIIkgW5KJioh1jZzj9L4ytwhFPJg 7lcV6qa2adKULqfAvWSPM01LQrHdJ1QOqKVdPgK4G+WumiAcfuM0IXGTCkETBRNn3zLC wHEzCxj55LZt2WW89vy/Eb5iq7Cty7U1LfeNya7GNRah4xN31UuiDWBXoLkoo+fKfzEx D7yQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:to:from:cc:in-reply-to:subject:date:dkim-signature; bh=zPVlO2IEEO/6nSEB/eijM1OQHKXd4fySTb02GTapUFA=; fh=Lls3l53xbaNodD9E8Ia/wyPYXwijKEVTIslK5dtFGMM=; b=aKX3t7SpEr74r7QoZUDwS42Sw0qMv+Z7ASHPHmCas+48u1CFMk4g3oFnKm87FmpOiF rHM9bG4lnMm3J+onaG0SxB1E5Ptzm53yowYz28ZIRWdNjBeQKxWvYxjrgE671xMqOmj9 sjHSH0LtOgm8Ka8Nu0BVS/Go/6IOMpVditqDaekiHOdcRpYQK3srKB+J/pvuW0lRCO0B 2sMyGT2Ow9ACH0xKoPskX4G93xm8JXch254tMWOyBaA5wRFbD6b7hmAxHj6JjQf6mIRR qouyF5dQGzkr3NqGrkpN8GSbl+eS8yGpeC/bVQZheA/Q4dI6ZKXYC8YHEEVcB6XCYTFC c1UQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dabbelt-com.20230601.gappssmtp.com header.s=20230601 header.b=CRt748bS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id nd10-20020a17090b4cca00b00274b4dfd6d3si2746346pjb.128.2023.09.20.18.38.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 18:38:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@dabbelt-com.20230601.gappssmtp.com header.s=20230601 header.b=CRt748bS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 0C055825A9B6; Wed, 20 Sep 2023 08:22:53 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235097AbjITPWt (ORCPT + 99 others); Wed, 20 Sep 2023 11:22:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234610AbjITPWq (ORCPT ); Wed, 20 Sep 2023 11:22:46 -0400 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9FF8A83 for ; Wed, 20 Sep 2023 08:22:39 -0700 (PDT) Received: by mail-pl1-x633.google.com with SMTP id d9443c01a7336-1c465d59719so31000135ad.1 for ; Wed, 20 Sep 2023 08:22:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20230601.gappssmtp.com; s=20230601; t=1695223359; x=1695828159; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:from:to:cc:subject:date:message-id :reply-to; bh=zPVlO2IEEO/6nSEB/eijM1OQHKXd4fySTb02GTapUFA=; b=CRt748bStygZPLYOV9dYeFU754scHa7TUTZdvadPjFSVTTFaW7RtfriJCiVRVshl2O r42lkP+zJH+Ef14VC03beh6G86EWxlOl4XN6Q2xpUXEV+VvEDBHl55RF62JpGVLQj87U OOUXFqtImyaUiFoYt0A6gtYnXqeECuRDFAnnVikOra4e4FcbHPff3QvG2vvjGCs9ERQ/ surUrVZHuibSH9OQ8we3xordUnCA4Ex6TuiB3OmifurOSgPC/mO0numFW9jC/t6TzJYI lj9L0pRLE30tNcSjRbpMRPIDSd2t9XhmRij33zGr5VmejM6VLrvAcpGCaObmqulVhRme 6aiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695223359; x=1695828159; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=zPVlO2IEEO/6nSEB/eijM1OQHKXd4fySTb02GTapUFA=; b=RRJJRApPBxg4pMG8W8jtV1Oiiu5g3RmMS7JSAdE4MegFZsehO9A2tT/3L3v1bXBvZa r3hJDohw7X4BCYGA4lE5IjElUpSbum/dlGkZEtfw7xa8gM/Zw7w7FTvlXO2C212HJJsC 798QH6ScE41oDA+v85GfsHwtBE0UubqbV9BOI7/KQsKKa0eW371Thh+txfECMajrQvTu gg2UdWnUGhNYkw1thGtC6RArhVh9Ap+dTlk7VxN5pNLbZZI/cqIFpL+anc4eem5t9q4Q RApmclyCrVyNLwcGaciwUaQDyLBnszqpKsp0pxSteN3+2ot3Qs6wd2Md6MtYj3Kmrnmr UoNQ== X-Gm-Message-State: AOJu0YwGnORWjxSc64IBvQZJx+mQGvh/C8/rz2C6uiwhWCuJt7cGI9aU cCdPqZemUy2GFLYkDp97GDiosQ== X-Received: by 2002:a17:902:bd43:b0:1b3:9d13:34b3 with SMTP id b3-20020a170902bd4300b001b39d1334b3mr2337093plx.37.1695223358955; Wed, 20 Sep 2023 08:22:38 -0700 (PDT) Received: from localhost ([51.52.155.79]) by smtp.gmail.com with ESMTPSA id h10-20020a170902f7ca00b001c46f1e15edsm6633148plw.271.2023.09.20.08.22.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 08:22:38 -0700 (PDT) Date: Wed, 20 Sep 2023 08:22:38 -0700 (PDT) X-Google-Original-Date: Wed, 20 Sep 2023 08:22:35 PDT (-0700) Subject: Re: [PATCH v2 00/11] Add Milk-V Pioneer RISC-V board support In-Reply-To: CC: aou@eecs.berkeley.edu, chao.wei@sophgo.com, Conor Dooley , devicetree@vger.kernel.org, emil.renner.berthing@canonical.com, guoren@kernel.org, jszhang@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, Paul Walmsley , robh+dt@kernel.org, xiaoguang.xing@sophgo.com, wangchen20@iscas.ac.cn From: Palmer Dabbelt To: unicornxw@gmail.com Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 20 Sep 2023 08:22:53 -0700 (PDT) On Tue, 19 Sep 2023 23:33:48 PDT (-0700), unicornxw@gmail.com wrote: > Milk-V Pioneer [1] is a developer motherboard based on SOPHON SG2042 [2] > in a standard mATX form factor. Add minimal device > tree files for the SG2042 SOC and the Milk-V Pioneer board. > > Now only support basic uart drivers to boot up into a basic console. > > Thanks, > Chen > > --- > > Changes in v2: > The patch series is based on v6.6-rc1. You can simply review or test > the patches at the link [4]. > - Improve format for comment of commitments as per input from last review. > - Improve format of DTS as per input from last review. > - Remove numa related stuff from DTS. This part is just for optimization, may > add it later if really needed. > > Previous versions: > v1: due to it is not sent in thread, I have listed permlinks of the patchset > [v1-0/12] ~ [v1-12/12] here for quick reference. You can simply review or > test the patches at the link [3]. > > [1]: https://milkv.io/pioneer > [2]: https://en.sophgo.com/product/introduce/sg2042.html > [3]: https://github.com/unicornx/linux-riscv/commits/milkv-pioneer-minimal > [4]: https://github.com/unicornx/linux-riscv/commits/milkv-pioneer-minimal-v2 > [v1-0/12]:https://lore.kernel.org/linux-riscv/20230915070856.117514-1-wangchen20@iscas.ac.cn/ > [v1-1/12]:https://lore.kernel.org/linux-riscv/20230915071005.117575-1-wangchen20@iscas.ac.cn/ > [v1-2/12]:https://lore.kernel.org/linux-riscv/20230915071409.117692-1-wangchen20@iscas.ac.cn/ > [v1-3/12]:https://lore.kernel.org/linux-riscv/20230915072242.117935-1-wangchen20@iscas.ac.cn/ > [v1-4/12]:https://lore.kernel.org/linux-riscv/20230915072333.117991-1-wangchen20@iscas.ac.cn/ > [v1-5/12]:https://lore.kernel.org/linux-riscv/20230915072358.118045-1-wangchen20@iscas.ac.cn/ > [v1-6/12]:https://lore.kernel.org/linux-riscv/20230915072415.118100-1-wangchen20@iscas.ac.cn/ > [v1-7/12]:https://lore.kernel.org/linux-riscv/20230915072431.118154-1-wangchen20@iscas.ac.cn/ > [v1-8/12]:https://lore.kernel.org/linux-riscv/20230915072451.118209-1-wangchen20@iscas.ac.cn/ > [v1-9/12]:https://lore.kernel.org/linux-riscv/20230915072517.118266-1-wangchen20@iscas.ac.cn/ > [v1-10/12]:https://lore.kernel.org/linux-riscv/20230915072558.118325-1-wangchen20@iscas.ac.cn/ > [v1-11/12]:https://lore.kernel.org/linux-riscv/20230915072624.118388-1-wangchen20@iscas.ac.cn/ > [v1-12/12]:https://lore.kernel.org/linux-riscv/20230915072653.118448-1-wangchen20@iscas.ac.cn/ > > --- > > Chen Wang (8): > riscv: Add SOPHGO SOC family Kconfig support > dt-bindings: vendor-prefixes: add milkv/sophgo > dt-bindings: riscv: add sophgo sg2042 bindings > dt-bindings: riscv: Add T-HEAD C920 compatibles > dt-bindings: interrupt-controller: Add SOPHGO's SG2042 PLIC > riscv: dts: add initial SOPHGO SG2042 SoC device tree > riscv: dts: sophgo: add Milk-V Pioneer board device tree > riscv: defconfig: enable SOPHGO SoC > > Emil Renner Berthing (2): > dt-bindings: serial: snps-dw-apb-uart: Add Sophgo SG2042 uarts > serial: 8250_dw: Add Sophgo SG2042 support > > Inochi Amaoto (1): > dt-bindings: timer: Add Sophgo sg2042 clint > > .../sifive,plic-1.0.0.yaml | 1 + > .../devicetree/bindings/riscv/cpus.yaml | 1 + > .../devicetree/bindings/riscv/sophgo.yaml | 28 + > .../bindings/serial/snps-dw-apb-uart.yaml | 1 + > .../bindings/timer/sifive,clint.yaml | 8 + > .../devicetree/bindings/vendor-prefixes.yaml | 4 + > MAINTAINERS | 7 + > arch/riscv/Kconfig.socs | 5 + > arch/riscv/boot/dts/Makefile | 1 + > arch/riscv/boot/dts/sophgo/Makefile | 3 + > arch/riscv/boot/dts/sophgo/sg2042-cpus.dtsi | 1744 +++++++++++++++++ > .../boot/dts/sophgo/sg2042-milkv-pioneer.dts | 19 + > arch/riscv/boot/dts/sophgo/sg2042.dtsi | 439 +++++ > arch/riscv/configs/defconfig | 1 + > drivers/tty/serial/8250/8250_dw.c | 5 +- > 15 files changed, 2265 insertions(+), 2 deletions(-) > create mode 100644 Documentation/devicetree/bindings/riscv/sophgo.yaml > create mode 100644 arch/riscv/boot/dts/sophgo/Makefile > create mode 100644 arch/riscv/boot/dts/sophgo/sg2042-cpus.dtsi > create mode 100644 arch/riscv/boot/dts/sophgo/sg2042-milkv-pioneer.dts > create mode 100644 arch/riscv/boot/dts/sophgo/sg2042.dtsi Given this is the first sg2042 and it appears to have a few errata (the FP rounding issues and the special fence for starvation), I think we want to make sure we figure out how to provide that information to userspace. > base-commit: 0bb80ecc33a8fb5a682236443c1e740d5c917d1d