From patchwork Wed Sep 20 06:33:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chen Wang X-Patchwork-Id: 14248 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp3928078vqi; Tue, 19 Sep 2023 23:59:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF6qRgAwgfsCX49e0QqGkjXppv83a6mqsNib+SQUpGwIWZxexvwUQpL+4DPkDVD9nJKlvWw X-Received: by 2002:a17:90a:ca14:b0:274:1b8c:da01 with SMTP id x20-20020a17090aca1400b002741b8cda01mr1658345pjt.33.1695193179774; Tue, 19 Sep 2023 23:59:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695193179; cv=none; d=google.com; s=arc-20160816; b=sm3MJfFKrh6q5qb6ruFjFLIWRPCW2ZoCtLyYvQ26oHovpFOKmjHQPOV0L5u5M5ONOi HasTAZsHi44TTbcqFXbL2pKsEmWmr9a4x73r73S4LRVDIA4xeTMdR6gEGWjbn+552yYB Mc4iW3np9KaeJCLGltMxtx6/xjz9M5BQTk69z1zRgIt84Jor124ZyihhgRPJnjS6uIKb uFTYwR0pfaRr3Tp7Qwx0IppcmB3aaIKzk5SU5ANPUcf0qdgU8X5TpuZHQEXt+iTEH+jf EcFOZToJTsu7jWVSNr6Cu6NvvklMzptBPVro2ZUw3CZeM9/q3mufoMFqGf/E0b7ET1zs ybug== 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=+O3AJdPC6+mmDlzoTLR1My0ueM7+QDiCckAE4a7Rtso=; fh=bQJKLQMHSx8zRMKVWETn2inbFK2Baz+k7BY3gTlhRws=; b=EfnBviNqMkrKOqLYauvrSNfBqj5EV6uS0qOwTQMEylN6SJKCBP72lnsQebrjjMzjDf FNqT9ifWYQBNJhyAHzbQ3xfYBjSvDN+KnMH0AkYecCYiV15Pc6p7N8nJ4bjge7+HKV7H 8jrEF1pv3C7X9PAmilBIY/wTvN/v4/nuQ+QqUPpT9d0HaYnf1y+xdOOsT7bQHhvZnidk Q/LSEnrU04qsv/MkXogHa4z1tKChcfWv2Is5WNg90hgiqSkP2yYRs5e9GfSvYQl1uy1T +7N3i8NeaFrWRkdgymJxrcUpSu5wL02Ea5fgaPZcVT9+kjARxEegVKMz2qnwhflIvz7K 7Qbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=PliHGNJ8; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id mv16-20020a17090b199000b00262ebe643a2si897301pjb.186.2023.09.19.23.59.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 23:59:39 -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=@gmail.com header.s=20230601 header.b=PliHGNJ8; 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; 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 howler.vger.email (Postfix) with ESMTP id 73F0C827142D; Tue, 19 Sep 2023 23:34:32 -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 S233197AbjITGed (ORCPT + 26 others); Wed, 20 Sep 2023 02:34:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233173AbjITGeb (ORCPT ); Wed, 20 Sep 2023 02:34:31 -0400 Received: from mail-oa1-x2d.google.com (mail-oa1-x2d.google.com [IPv6:2001:4860:4864:20::2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA1249F; Tue, 19 Sep 2023 23:34:25 -0700 (PDT) Received: by mail-oa1-x2d.google.com with SMTP id 586e51a60fabf-1c50438636fso3857579fac.1; Tue, 19 Sep 2023 23:34:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695191665; x=1695796465; 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=+O3AJdPC6+mmDlzoTLR1My0ueM7+QDiCckAE4a7Rtso=; b=PliHGNJ8Ke6wwc30w9e4fvOwiTb+F2wtQ60qa8KHoNdOjB1VcMC/kzBNKjpFI3W4E8 3eCU32Sz3kGzprsf0ygWbfCgJQD8BVWyAGG8qtjxEiiEHWZQ/m285F8zEeDhkKvhnup8 ourAvSP6YZQNwfffCbYI2ZX5wEnA1skPx4nK2SxWVRkEx+XDN2f0rie1n/tr235meg/d f54iGOo+ZYM6oQ4CK0wHQ9mGs1kr/PKp6Z1KoY9uBgqLnwSwUF09TA2vKUj3k313/PXS cubNrk5RR0B/7V9es3eYEj6aAfOd+HHUAVkGd2ryiRPp3yvLtVJ4EhwnlY2c6K7cq9J2 /kSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695191665; x=1695796465; 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=+O3AJdPC6+mmDlzoTLR1My0ueM7+QDiCckAE4a7Rtso=; b=g/CWZnd0AFMIXrLJYJVMQPTOOy0s6JV9CaNkyr8SRpDRnhWyp2sGKww4pdNaOHK0++ gkUc02H89sQPnNrgfBgHZSFnGEeNYBrMMaBMkmRmu/EJAEJbDkxokzoFN/+2K3iK+RxY W+BesSiiBUqgFu7EFbitfjdWZ9zCpcPfttK1keB6opHti+TQew6Xhaa1PxivMvUMil3t atohX5K3/bmXOzhNWxKliNL6KssQ1ooQkCXe+hHoM2mXw3YNhG//cTrlKWGpCGjGwY5D ZfX4OQK7/d47YGQ3d9s7LF7499eQV9ENP5Zdc+fQ0qP1rOvyxeqf7kcfsM7E/yunjuo6 KuTA== X-Gm-Message-State: AOJu0Yx11ZUZfhzcRtsS6tiK6pBEktohJgUeCLFU/1TJncaT5KidU7pS A+qwLHtcrLo1LonzbA1Ktbc= X-Received: by 2002:a05:6870:d404:b0:1c8:d72a:d6b8 with SMTP id i4-20020a056870d40400b001c8d72ad6b8mr1885261oag.36.1695191664887; Tue, 19 Sep 2023 23:34:24 -0700 (PDT) Received: from localhost.localdomain ([122.8.183.87]) by smtp.gmail.com with ESMTPSA id r21-20020a056870625500b001d4f1ec39b3sm6842515oak.23.2023.09.19.23.34.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 23:34:24 -0700 (PDT) From: Chen Wang X-Google-Original-From: Chen Wang To: aou@eecs.berkeley.edu, chao.wei@sophgo.com, conor@kernel.org, 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, palmer@dabbelt.com, paul.walmsley@sifive.com, robh+dt@kernel.org, xiaoguang.xing@sophgo.com Cc: Chen Wang Subject: [PATCH v2 00/11] Add Milk-V Pioneer RISC-V board support Date: Wed, 20 Sep 2023 14:33:48 +0800 Message-Id: X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 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 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 (howler.vger.email [0.0.0.0]); Tue, 19 Sep 2023 23:34:32 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777538883992262163 X-GMAIL-MSGID: 1777538883992262163 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 Reviewed-by: Guo Ren Reviewed-by: Guo Ren Reviewed-by: Guo Ren Reviewed-by: Guo Ren Reviewed-by: Guo Ren Reviewed-by: Guo Ren Acked-by: Conor Dooley --- 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 base-commit: 0bb80ecc33a8fb5a682236443c1e740d5c917d1d