Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2673635rdb; Wed, 4 Oct 2023 08:11:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEo1tvh21RXBX0mUR6xwaPcCE9PSiM5WYC3MCLl5sAm8fX7Ikc77BXBdCj8/Zwu5Nmdd6LM X-Received: by 2002:a05:6a00:391d:b0:68e:4303:edb8 with SMTP id fh29-20020a056a00391d00b0068e4303edb8mr2807043pfb.30.1696432296330; Wed, 04 Oct 2023 08:11:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696432296; cv=none; d=google.com; s=arc-20160816; b=ObroueZVHD1Hgz8gP4nUM5E6cIW6r74o7D/IIqr6emtse4ha6VLqbIN9rp1UBKFHSu Yo+q52CB0MYTmoS3pkoPS8lMZP0xi6rUMI9n7UWGG8Ac0PGc/HbD8IrzS87u3XcLob6F DaVjsIlwZ2uUIZZ7+ll5GkBc1qYTxoGkU1/ZDoEqDne/WLID+ysNYI3vgONA7/MXR55A G/7fAnI9L5BZcQtCnBYLhS854NTlnOKFAwdCJRAM7Lc7zA78a92djpxya9ukjBB9Hcc1 bqgx2T1HmcNuZKq4dTN9/1i0G0lyAyZQwApbC8yuxUk6t0GyP1xrfmp/7ZVys73sCifx qVWg== 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:date:subject:cc:to:from:dkim-signature; bh=nJqHnUlx2VOSGtYh5XeNz8W9/poCSBylKJ6mcsi9iaI=; fh=KMXUl7ON9f56QcO+HDHFtLwinFBqneHVKFh989UtKzs=; b=Ic2XBN2XJGq3Y5nsef0xdum2f628Gky/k0wbcIIUCazgaVwrwlBizeCIq/hWzPqhuH qgOlq8toBq1iNbkq0sQcvzrSau/lvbl9JI6dZeBA90LJB1Ter/ZLDr15pKegAkogDxGM TvgSLjgRlhVbijEmi2LeJwYr24z0xRtz9yxesykZ5p3JFoOFNrZ0/j/qGBAfKjOrQK95 RlL9/fPWNant95uBhDmPySLOqhGoPndKy1Z57VtnQY2y8yqIr1eOrotDw26w2EhNI11O eLApDwPUONTDhh5o8J8ioFckK+JJWScQnqGzAiwJZR5G1EkiasyTphvKX2XJ+rPNThqk Fjmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="VQ7MNWe/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id s30-20020a63925e000000b00578e2b20624si4020524pgn.72.2023.10.04.08.11.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 08:11:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="VQ7MNWe/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 643B88217050; Wed, 4 Oct 2023 08:11:35 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243098AbjJDPLe (ORCPT + 99 others); Wed, 4 Oct 2023 11:11:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233438AbjJDPLe (ORCPT ); Wed, 4 Oct 2023 11:11:34 -0400 Received: from mail-oi1-x22a.google.com (mail-oi1-x22a.google.com [IPv6:2607:f8b0:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8F0BBF; Wed, 4 Oct 2023 08:11:28 -0700 (PDT) Received: by mail-oi1-x22a.google.com with SMTP id 5614622812f47-3af608eb367so1481553b6e.2; Wed, 04 Oct 2023 08:11:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696432288; x=1697037088; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=nJqHnUlx2VOSGtYh5XeNz8W9/poCSBylKJ6mcsi9iaI=; b=VQ7MNWe/5sXltSKnaqEPdRYMg/JFUPMF7Q0NtqxC28LpiMEVBqi1vfP9Z3vNLL169Z lI/n/b127wW+oEBMnuiWNafneYblg+UNsY2wOsNEGNEfP45NPtL8kfyY+PnnfNEZpxod BTF1yAd8+7qGg3ZrzUBe36LIeJOBtZzDs3o0xiyDz4e0PaezMnOjsnQaLEPxqaFFSB+o VfepUNDHieELl5FPr4b/J9yfed4RqwasNaEM27y3jXNT1Gsc6unot1tj9ljx1rzM37DL 6FQGBD+0krz1x90B1HmIXaqukwFT1+22vLMpZiFLbBBAxx65Qe+70BqMYmdH3M4wlB0S pkXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696432288; x=1697037088; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=nJqHnUlx2VOSGtYh5XeNz8W9/poCSBylKJ6mcsi9iaI=; b=Bo+JiGeRgu9xtCPd5baDyty8LkgJYCxHxz885hmN1Cz2/LVYuLPjofNO57+bae1Qx4 zom26Qb9HAIHOfbtvJ/RqtkOc6zVI1A+yuWgLjrX2pwk4RGyx9o5Wp8H3zOUrm8t4WrV lHdfPGskx8CX8ykWeldz3JvOO9RuvAW+sPV94e9DWRHPa632lHgMKIXktUBuDqe/k+p0 q+UQU4o3XFygHxnuMiAAeM6qsO8dbCCECSyIwcW8ZKwIMtMlP9gpoREcGLdYxUl+CsiF MYKtZDY2AEhdx5kTVmeHl58A5eZ7Fap642Lqv3uv06IMUTqZJ7ghu52Qx5SvIOYcLYw7 wGkg== X-Gm-Message-State: AOJu0YzS3ois2w9gm91m0PRtG4yPGlJEuy0d7ROGQEPG3vIK5T8UAtsU Et3GgzRvLNxSCF5PdKZEiTI= X-Received: by 2002:a05:6808:14ca:b0:3a7:2524:6d3b with SMTP id f10-20020a05680814ca00b003a725246d3bmr3288573oiw.12.1696432288133; Wed, 04 Oct 2023 08:11:28 -0700 (PDT) Received: from localhost.localdomain ([122.8.183.87]) by smtp.gmail.com with ESMTPSA id l13-20020a54450d000000b003af795e6ac9sm530282oil.26.2023.10.04.08.11.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 08:11:27 -0700 (PDT) From: Chen Wang To: aou@eecs.berkeley.edu, chao.wei@sophgo.com, conor@kernel.org, devicetree@vger.kernel.org, guoren@kernel.org, jszhang@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, palmer@dabbelt.com, paul.walmsley@sifive.com, robh+dt@kernel.org, xiaoguang.xing@sophgo.com, apatel@ventanamicro.com Cc: Chen Wang Subject: [PATCH v4 00/10] Add Milk-V Pioneer RISC-V board support Date: Wed, 4 Oct 2023 23:11:01 +0800 Message-Id: X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham 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 (snail.vger.email [0.0.0.0]); Wed, 04 Oct 2023 08:11:35 -0700 (PDT) From: Chen Wang 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 v4: The patch series is based on v6.6-rc1. You can simply review or test the patches at the link [6]. - Update bindings files for sg2042 clint as per intput from reviewers: - rename filename from sophgo,sg2042-clint-mswi/sg2042-clint-mtimer to thead,c900-aclint-mswi/thead,c900-aclint-mtimer. - rename compatible strings accordingly. - Update dts as per input from reviewers: don't use macro for cpus's isa properties; use new compatible strings for mtimer/mswi of clint. - Use only one email-address for SoB. Changes in v3 [v3]: The patch series is based on v6.6-rc1. You can simply review or test the patches at the link [5]. - add new vendor specific compatible strings to identify timer/mswi for sg2042 clint - updated maintainers info. for sophgo devicetree - remove the quirk changes for uart - updated dts, such as: - add "riscv,isa-base"/"riscv,isa-extensions" for cpus - update l2 cache node's name - remove memory and pmu nodes - fixed other issues as per input from reviewers. Changes in v2 [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. Changes in v1: The patch series is based on v6.6-rc1. 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 [5]: https://github.com/unicornx/linux-riscv/commits/milkv-pioneer-minimal-v3 [6]: https://github.com/unicornx/linux-riscv/commits/milkv-pioneer-minimal-v4 [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/ [v2]:https://lore.kernel.org/linux-riscv/cover.1695189879.git.wangchen20@iscas.ac.cn/ [v3]:https://lore.kernel.org/linux-riscv/cover.1695804418.git.unicornxw@gmail.com/ --- 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 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 Inochi Amaoto (2): dt-bindings: timer: Add Sophgo sg2042 CLINT timer dt-bindings: interrupt-controller: Add Sophgo sg2042 CLINT mswi .../sifive,plic-1.0.0.yaml | 1 + .../thead,c900-aclint-mswi.yaml | 43 + .../devicetree/bindings/riscv/cpus.yaml | 1 + .../devicetree/bindings/riscv/sophgo.yaml | 28 + .../timer/thead,c900-aclint-mtimer.yaml | 43 + .../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 | 2000 +++++++++++++++++ .../boot/dts/sophgo/sg2042-milkv-pioneer.dts | 19 + arch/riscv/boot/dts/sophgo/sg2042.dtsi | 325 +++ arch/riscv/configs/defconfig | 1 + 14 files changed, 2481 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/thead,c900-aclint-mswi.yaml create mode 100644 Documentation/devicetree/bindings/riscv/sophgo.yaml create mode 100644 Documentation/devicetree/bindings/timer/thead,c900-aclint-mtimer.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 base-commit: 0bb80ecc33a8fb5a682236443c1e740d5c917d1d -- 2.25.1