Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2445434rdh; Wed, 27 Sep 2023 02:57:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF4/ZeblkZQ1YrBD5BQSytof2fnzEQXOZUum+Z4U8cAu6RatG/+ssl505Jl0O6qqvb7GRYj X-Received: by 2002:a67:eed6:0:b0:452:6a4d:d40 with SMTP id o22-20020a67eed6000000b004526a4d0d40mr1299091vsp.23.1695808636303; Wed, 27 Sep 2023 02:57:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695808636; cv=none; d=google.com; s=arc-20160816; b=Yr0bq5XzBDxAGOmureYsKM+K2ah8Dg/QZ38OPnx3P6Ai2JRiU2HJQW6YeGvFYWT32Z 8f6oDsr9290OLEQ4acqKEvKKHPI7BxujqBpiwvBPQ5W/xIJNX6VSFg5+hpRVDuT8a/NW uny1C+YyaCYLKbLSVPN42Ugla66d9XMmN5m8YBfA/0boWT9Mybwq5MvugRzgq7ENzXqw eNyTB+ADjLrWNUsnW9HQleo3LKzyQf7ArlMXOoA+vKNeFr+8olILUShMbnGY1xKeo1t9 PRhng6TgfzvMQR5mscAOb2S14NvZXJg9mtvH0ra0ugRKm6zzb+pSaX/iIY4S1BO9iLTg HoUg== 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=MoYbiHoRTBkFkCQeE69Y8EorC+SjrK0dNJelyHZJ5P0=; fh=4/vmEiRarlhfv5n4tbXS4WugKWXq1H4qKW6j7ncUnGc=; b=GoyWQzojVHJctYghIXLtFE90jxJm99eVMntwVW4rXAPiWBipJMdBGgavBnRm2C4XTX 0nfXpKiyNWSlTc3S3/3GIA9IRagdNt4uJJKky3tFVHDqtf3W4iTqqpWUz+y/yv7g1ST2 zIr/h8UcSnrOb5HQLjYC3wqx9i3Y0zlpiTtKWXU8gJ6vCJGEc0vijV+z933cTJ8Mgml6 msAXIrs4aAG8ke7nIDRj4kU4r5OZvDJ9LPtCLx7se94/1twfe6qLA7UG40idEClbW1kd gwPbWHdKAX4/FyCYyALvE4opjaWqgMhSDrPehPUB51HBu8E04xqR+LUf6QF0fIX4/aez 82Gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bDZPOSTv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id e26-20020a63545a000000b00573f6ee58fasi14908154pgm.376.2023.09.27.02.56.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 02:57:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bDZPOSTv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (Postfix) with ESMTP id 1930E82114A9; Wed, 27 Sep 2023 01:55:08 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229634AbjI0IzA (ORCPT + 99 others); Wed, 27 Sep 2023 04:55:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230177AbjI0Iyx (ORCPT ); Wed, 27 Sep 2023 04:54:53 -0400 Received: from mail-ot1-x334.google.com (mail-ot1-x334.google.com [IPv6:2607:f8b0:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE771192; Wed, 27 Sep 2023 01:54:50 -0700 (PDT) Received: by mail-ot1-x334.google.com with SMTP id 46e09a7af769-6bd04558784so6491766a34.3; Wed, 27 Sep 2023 01:54:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695804890; x=1696409690; 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=MoYbiHoRTBkFkCQeE69Y8EorC+SjrK0dNJelyHZJ5P0=; b=bDZPOSTvsbPSfAmWbhJUddREHEhWN5okYfwo6KOZk9C389FElSlQ+2Vs3rQxHs4l36 WSBOwiYigQlJvnREJduVoICUlNhnBwamWQLYQtoni6kTcmJNELKbhPrsaItbAQzw7a9s VU3Qb32VHIDcV21XqZEgKEqvQ2fnStwifFeu3LulOhyTgzpEOOSyrWFPnHp7Tb/WW/PE YDxSQN4qD7Po6nrgkMAxYz/G3IlQlFSZVMR0MQQQQ330EkBQNiK8Y0DDR6nV3/D5oVLs ny7kJQAp+ANMmJEBl7a5tSrWDKSOdbe4FRrHsvFk7Am4KMtVihql8eJXDk7GpFICNMwV AURQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695804890; x=1696409690; 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=MoYbiHoRTBkFkCQeE69Y8EorC+SjrK0dNJelyHZJ5P0=; b=aSmzjAKA1LX7uYMutsEVKf2kpoDPyhN6n6Z9hLg0EhueqzC7ivFp8nCoHVfcqB0wxL rC3RCngbe1mXnJZ523Hx/8TTKpEiepuKNmzWkvx2Pcjvh38gZUm9EfnlmpBUdcvc14VR LxOOzzJnjsGvcGLn5EzLeE4ObTE4L9/gRLDYqBDEf9fq59pbc87VrZQK84S+WNoIwWDM pN7y1X5sUzMOhW2fKNXjmL6tD0f2j0GdTk+5vc4EwTZlMiDyPvQgASxGv/cdITdw0Kn0 SVJM98KY/IdMtK2G6uFjxcEOzNwIctSGAtmUu+fj0O/JiwfuXWlBib9iOM7A6P1Ure3l c8Jw== X-Gm-Message-State: AOJu0YxrNYW6aCw4t2mhKVxIPi5m4QFniyxzJKjcVzuSUj3i7wwG4kn0 3JFFjrAZTYPJabg9KdM+8dY= X-Received: by 2002:a9d:66cf:0:b0:6bd:152f:9918 with SMTP id t15-20020a9d66cf000000b006bd152f9918mr1434562otm.14.1695804889948; Wed, 27 Sep 2023 01:54:49 -0700 (PDT) Received: from localhost.localdomain ([122.8.183.87]) by smtp.gmail.com with ESMTPSA id f6-20020a056830204600b006b92509e76esm2304744otp.32.2023.09.27.01.54.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Sep 2023 01:54:49 -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 v3 00/11] Add Milk-V Pioneer RISC-V board support Date: Wed, 27 Sep 2023 16:54:38 +0800 Message-Id: X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Wed, 27 Sep 2023 01:55:08 -0700 (PDT) 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 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: 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 [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 (9): 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 MAINTAINERS: add two files to sophgo devicetrees entry 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 + .../sophgo,sg2042-clint-mswi.yaml | 42 + .../devicetree/bindings/riscv/cpus.yaml | 1 + .../devicetree/bindings/riscv/sophgo.yaml | 28 + .../timer/sophgo,sg2042-clint-mtimer.yaml | 42 + .../devicetree/bindings/vendor-prefixes.yaml | 4 + MAINTAINERS | 9 + 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 | 1880 +++++++++++++++++ .../boot/dts/sophgo/sg2042-milkv-pioneer.dts | 19 + arch/riscv/boot/dts/sophgo/sg2042.dtsi | 325 +++ arch/riscv/configs/defconfig | 1 + 14 files changed, 2361 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/sophgo,sg2042-clint-mswi.yaml create mode 100644 Documentation/devicetree/bindings/riscv/sophgo.yaml create mode 100644 Documentation/devicetree/bindings/timer/sophgo,sg2042-clint-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