From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AA0C6C54798 for ; Tue, 5 Mar 2024 20:02:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Date:Subject:Cc:To:From: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=X5zgzYbtgw1I+fcwlN+j/EnyLqlUXM9+uX2aPHx8x1w=; b=B2BEfPRXioJRfd YulO3Mo6VHD9OGYia0c8ioo03qWP1wl4ewpcBoW32T6d3UvhoGLsDi6O/0pjzUMBuVOtTVvEAqfk0 baxxwNd/fIirpOk5/Xe8zC/tBAgRei8AoeSPVxlhTAad22tCSc5cLD97wCUlPSHOUXJ2WrDchcyT3 wvqOD3IaYveBy64h8RD6mnO317LfbZMiFqAUjSHOM182U3vnyfttdWyObV+FjVQcSNJ1eG64L4kRv YdPwaFtv6tesGarip9br1KRmM4VWOncfxsuyFJDXK0RO+le9PAOLqCYbvGKpMvEctnVNrZyB69w/L 9KLg27woRj1y03ieHJzw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rhazF-0000000F79o-3HM0; Tue, 05 Mar 2024 20:02:05 +0000 Received: from out203-205-221-240.mail.qq.com ([203.205.221.240]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rhazB-0000000F77z-2RVx for linux-riscv@lists.infradead.org; Tue, 05 Mar 2024 20:02:03 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1709668913; bh=cHmCFhzjQmxjiNqsDl0m9Uelp7ld1D0aXxbUUYXrZ/E=; h=From:To:Cc:Subject:Date; b=kmeBwvaR0Jwc4STMSNQmrRcvipVeLZOLXVdlUvOK4BxOWsAMkPUQZ4L1YrYUcpTE9 m+RKnmPVx36VZPAHvOf57ElP28PMEcrcYrdIAHVZ/bQp9GYNqBDRmUmEc2wy8yL/22 xfT1KPn72rwhKU9hJjye6fHxf118oDhi8Es8ZWVo= Received: from cyy-pc.lan ([240e:379:2267:e200:bd8:e8f9:fb59:de48]) by newxmesmtplogicsvrszb9-0.qq.com (NewEsmtp) with SMTP id 6B832F1; Wed, 06 Mar 2024 04:01:43 +0800 X-QQ-mid: xmsmtpt1709668903trqjfe3fw Message-ID: X-QQ-XMAILINFO: M1rD3f8svNznRKnYlSRS18UmXXg8kIV313+naVSPlm4p7IzHGy8U6VsZfh9InS QrWrAO9+vqdcDgS9mSFD/jb6Y+HMG7ue1/bDNK38rTB6If4sOC2YbZW0PyWDus7cELyGWv0FXJFv RPHitH+dT0bdjETfloH/5qLpYLUyzXhk10Qwd/ZCdN2p927KyhosElZvKPljcKWwJZdjjz2tYrVT ddxKyi+ljphBllx+wQp+1O0p/Lq4n8I5mUbC3xR2sO9p6fqkZNh/GM4ZCAfAQkABKhoKN5mZMhGT J+7bB6qsKGv8Bgahj9f6pn2cW4r1A9HCqBuBWXOMlCBeD8W2IXB1Jbc+sxFO4yGctj8WeWrqh+tv aSlsLUGLkG23fhZqSExr3/xHbGnWxQLuJBlY8+oz0rp2INEbyHomGDVZPOco5d6OcyNBUSl2hZNJ oZOjLMgQpE1tJtrZJS+CkIh6LgVe7IpBKbEvt//9jYd+XoQORpKZtBDmVJL1vcJ3QXM6YRwH4IPl gFWV4+ZLs6x8wwpFnqomfS30BL4drlaZ29n6A098GTnfvL4snIlEToqoBZ6RBG6W5/fIk9MU9lZf WjlVovR2ZjIVUH53q1KefIoydcA3hez0DWJwOauTQHXqP6Q9IYYc9g1LhrF1mD4RjAhZcTs3Qtxh Vgk085gDaJaKN0TWGn7JXQhauiIp+QRxipfjAJ8bsloHb6/YmwnDnrWVBHIAQTMndX2462aoY32q DaxoU8i2nMaadeTjsp+vSMt8/7MsCIxsocQVlFrcHsTwIQiEaMBBs8NCDnwvU8pP2G/SZb1tOh1t w325x4MNchroZAMA9aRsuY1pyj7Y2SrATWXs7EXE2S9avmhjtrVQ0ORQlPSJdd3X0pPKGsfE7+58 lhTm1PD6Cj1tp5vUE13oC9wX7APYPjuuA9K0FBwkE70zsC/Kx2GUBENaPCDI2Nj21jP4XoHD364O U+SGdAfTrNFdETEzQsYg3in/etj+sq/6mePUdca6jAOMVE8JpW70rAklR43BB7w/kNRFANsWhEa3 sldsQdmZCoOf4wSA2JocNTWwJtXtZC0gbmd993xH25QGjuEN4glS8ZcUQ8s7bxkgR4WnOYHE4bZG F74L/u X-QQ-XMRINFO: OWPUhxQsoeAVDbp3OJHYyFg= From: Yangyu Chen To: linux-riscv@lists.infradead.org Cc: Conor Dooley , Damien Le Moal , Rob Herring , Krzysztof Kozlowski , Paul Walmsley , Palmer Dabbelt , Albert Ou , Guo Ren , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Yangyu Chen Subject: [PATCH v5 0/7] riscv: add initial support for Canaan Kendryte K230 Date: Wed, 6 Mar 2024 04:01:37 +0800 X-OQ-MSGID: <20240305200137.1092612-1-cyy@cyyself.name> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240305_120202_014612_9C065664 X-CRM114-Status: GOOD ( 12.24 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org K230 is an ideal chip for RISC-V Vector 1.0 evaluation now. Add initial support for it to allow more people to participate in building drivers to mainline for it. This kernel has been tested upon factory SDK [1] with k230_evb_only_linux_defconfig and patched mainline opensbi [2] to skip locked pmp and successfully booted to busybox on initrd with this log [3]. [1] https://github.com/kendryte/k230_sdk [2] https://github.com/cyyself/opensbi/tree/k230 [3] https://gist.github.com/cyyself/b9445f38cc3ba1094924bd41c9086176 Changes since v4: - Reword commit message on dts that the B-ext version of c908 is 1.0 rather than 1.0-rc1 v4: https://lore.kernel.org/linux-riscv/tencent_587730262984A011834F42D0563BC6B10405@qq.com/ Changes since v3: - Refactor Kconfig.soc which uses ARCH_CANAAN for regular Canaan SoCs and rename SOC_CANAAN to SOC_CANAAN_K210 for K210 in patch [5/7] - Sort dt-binding stings on Cannan SoCs in alphanumerical order v3: https://lore.kernel.org/linux-riscv/tencent_BB2364BBF1812F4E304F7BDDD11E57356605@qq.com/ Changes since v2: - Add MIT License to dts file - Sort dt-binding stings in alphanumerical order - Sort filename in dts Makefile in alphanumerical order - Rename canmv-k230.dts to k230-canmv.dts v2: https://lore.kernel.org/linux-riscv/tencent_64A9B4B31C2D70D5633042461AC9F80C0509@qq.com/ Changes since v1: - Patch dt-bindings in clint and plic - Use enum in K230 compatible dt bindings - Fix dts to pass `make dtbs_check` - Add more details in commit message v1: https://lore.kernel.org/linux-riscv/tencent_E15F8FE0B6769E6338AE690C7F4844A31706@qq.com/ Yangyu Chen (7): dt-bindings: riscv: Add T-HEAD C908 compatible dt-bindings: add Canaan K230 boards compatible strings dt-bindings: timer: Add Canaan K230 CLINT dt-bindings: interrupt-controller: Add Canaan K230 PLIC riscv: Kconfig.socs: Split ARCH_CANAAN and SOC_CANAAN_K210 riscv: dts: add initial canmv-k230 and k230-evb dts riscv: config: enable ARCH_CANAAN in defconfig .../sifive,plic-1.0.0.yaml | 1 + .../devicetree/bindings/riscv/canaan.yaml | 8 +- .../devicetree/bindings/riscv/cpus.yaml | 1 + .../bindings/timer/sifive,clint.yaml | 1 + arch/riscv/Kconfig.socs | 8 +- arch/riscv/Makefile | 2 +- arch/riscv/boot/dts/canaan/Makefile | 2 + arch/riscv/boot/dts/canaan/k230-canmv.dts | 24 +++ arch/riscv/boot/dts/canaan/k230-evb.dts | 24 +++ arch/riscv/boot/dts/canaan/k230.dtsi | 140 ++++++++++++++++++ arch/riscv/configs/defconfig | 1 + arch/riscv/configs/nommu_k210_defconfig | 3 +- .../riscv/configs/nommu_k210_sdcard_defconfig | 3 +- drivers/clk/Kconfig | 4 +- drivers/pinctrl/Kconfig | 4 +- drivers/reset/Kconfig | 4 +- drivers/soc/Makefile | 2 +- drivers/soc/canaan/Kconfig | 4 +- 18 files changed, 220 insertions(+), 16 deletions(-) create mode 100644 arch/riscv/boot/dts/canaan/k230-canmv.dts create mode 100644 arch/riscv/boot/dts/canaan/k230-evb.dts create mode 100644 arch/riscv/boot/dts/canaan/k230.dtsi -- 2.43.0 _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv