From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out203-205-221-245.mail.qq.com (out203-205-221-245.mail.qq.com [203.205.221.245]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DBEEC14ABC for ; Mon, 4 Mar 2024 15:21:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.205.221.245 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709565682; cv=none; b=N/A5jSjlNQACl3qYy75O1B8YekGJ+rfFjo9PJX6KntWW4KM5lh4uJoHtTTzxtQBBpkH4EXUsHlG/5r+7fcoM5m4JtB3TNdY5sn8qphcrRolwlCBWHBYWhHPB8Dthtjiq9pHonYSP6PklWc7J7uKe4GxfqfDwiSdTdF1lRBr7+Lo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709565682; c=relaxed/simple; bh=UVb+UzDGo6r93A9kFqS+4qMonZQvvkS3RQouaGJ0r58=; h=Message-ID:From:To:Cc:Subject:Date:MIME-Version; b=hxtFfHIITpH8iHKvTwlbb1kRyJpchu7C1kIrY9rJVbj/fBw2Yobna7kYyd71JDc1Z5FuQDSjZzqlU38m1tDFjUfGGj8wsVZWUU7hDKJXdST0gGU8Q1DEQG2EDyfprhutm/B7vFqMaK6JFTN40CqsOUO6Hf1pLoG5f0m92cgOH+4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=cyyself.name; spf=none smtp.mailfrom=cyyself.name; dkim=pass (1024-bit key) header.d=qq.com header.i=@qq.com header.b=QB5LUHqU; arc=none smtp.client-ip=203.205.221.245 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=cyyself.name Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=cyyself.name Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=qq.com header.i=@qq.com header.b="QB5LUHqU" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1709565671; bh=j3aOvq2bodsmjXO3Ej4yrzGf1N49aFt+VJq79Wh3FMI=; h=From:To:Cc:Subject:Date; b=QB5LUHqUgKSiUFFg3PYNVUHIUtLftmBlvW0mjME2WqvCWN9hNbYLuXJRq0qtbFkMf kwB6ZdPDAS+oMZRhW7G+/kSskNcUnU325B3ezHILm6IEVmTauLrKX7cbyIM5gEVGWi k4XtK7FfyxgGUNpKP3W//F+xwx7qVQBjAa+ft6fE= Received: from cyy-pc.lan ([240e:379:2240:e500:994d:62ab:74a6:932b]) by newxmesmtplogicsvrszc5-1.qq.com (NewEsmtp) with SMTP id 3C13D406; Mon, 04 Mar 2024 23:15:01 +0800 X-QQ-mid: xmsmtpt1709565301tiowc6h9o Message-ID: X-QQ-XMAILINFO: MQAOa38Yz/8/VZ9FGJP60gUkkwv9Ys6etbYC0HQzPMG9u1NmtOFAC+KD+70eV4 DALqGINNHW7TlqRmECPbqlydAcDQGZBlLNoQeAkp3PbCC9/6x0SGR2ujaEjYSivx2keWX3GUWpNh 9S0zYADtu4mmoZw0gBHlSHZD8jZszuwacGdV3w4kztTPHnVi1yubqH2bgjf/HbJ8PvoH8foCFy1b XnrJA6XmjKXcNV50feLGAT54IIWAtZsJ2s4PFMOIPZjFoY8wUC79GcUGdP9K3E66IVWOG3i6ck5I FVO9tiDkhmIdQsU60bvjQzJeHHRPo5wZbn/RZR5cjtNpNnfrnZ4X3E5CwNu8mVYvlA33/B0QeXc2 +qDJ6RCkY5yQ84asD6CfEBZhfMHe8HFyatVn9mIzhy73io/irXN0aTe35Afmg5qOpVUsdAWY7zZs znrdKAqP+DaBOz+Z3cdja4jcQWlSs+w+2hzjprmwkWXZTA4Sf0hSpRNVmOyS5QHFpxhU0gYind9C KqxmyatdLSmjUcex/n88dXo30d0KE2DNANH+EdtI/k2fBwruoEXk0+KF7HvYW7yf3IPlVa/X5m8j DV5/yB2ik3ORaQZPYoEstwf8lxjDXQU4BB7XrvVDHvYLMYp80PV9HIP4Eq33lli2UFHeQwnwR1qh yl+PFHbhfZF6AsHRbQM9kpC2I8j7H5j42mRyY0Dg4YBFW4s817m1N1mP3AanQ828Zcwp+RYirX1J nqIsBbLcJ4Ivcp5US1RLfYlmDhGCz3t9GaxTM8+mndH+EYoOvdbYtzdttRCVGZreQ9K7sQqXpjT3 xHYUvoLADbRHuGm4HP7rue78/nThXcPNFoc505i9VOv88LURaVfwGeVJlDT/bzgRhtp8Y5IT2Xp3 k/RV6LsYAA3UOVUCu85vIDggJIRYND50yQDBBhQ1i8HcZLG8ZHAAkZAkQRZ/BgowwVh4IrrAezsv VSuBQ0PAZRutrm2iuK0pN9YGDKykdHdjktSi4nRpEYox4oVT1f8QYarYxhfB9vtQT0qGR+jdhNpa hSsa1tzs8dV56OgiOFGkaDjRWfbQo= X-QQ-XMRINFO: MPJ6Tf5t3I/ycC2BItcBVIA= 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 v2 0/7] riscv: add initial support for Canaan Kendryte K230 Date: Mon, 4 Mar 2024 23:14:38 +0800 X-OQ-MSGID: <20240304151438.758641-1-cyy@cyyself.name> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit K230 is an ideal chip for testing RISC-V Vector 1.0 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 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: Allow SOC_CANAAN with MMU for K230 riscv: dts: add initial canmv-k230 and k230-evb dts riscv: config: enable SOC_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 | 5 +- arch/riscv/boot/dts/canaan/Makefile | 2 + arch/riscv/boot/dts/canaan/canmv-k230.dts | 24 +++ arch/riscv/boot/dts/canaan/k230-evb.dts | 24 +++ arch/riscv/boot/dts/canaan/k230.dtsi | 140 ++++++++++++++++++ arch/riscv/configs/defconfig | 1 + 10 files changed, 203 insertions(+), 4 deletions(-) create mode 100644 arch/riscv/boot/dts/canaan/canmv-k230.dts create mode 100644 arch/riscv/boot/dts/canaan/k230-evb.dts create mode 100644 arch/riscv/boot/dts/canaan/k230.dtsi base-commit: 45e0b0fd6dc574101825ac2738b890da024e4cda prerequisite-patch-id: 2374c56c0032e616e45854d2bc2bb1073996313d Dependencies: https://lore.kernel.org/linux-riscv/tencent_88FEE0A2C5E0852436A2F1A1087E6803380A@qq.com/ -- 2.43.0