Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1904299lqg; Mon, 4 Mar 2024 07:16:32 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWZVmhqYki3PjaLcpGNlVOAFJ7HOYaMEyokKqBhHyuOtAFVwu4UBKRA5h4BhBRi8pEIh9KhgFM/TPPn99UFYsgSagUydYF27NjSOKjnww== X-Google-Smtp-Source: AGHT+IEIASsXANadnbrO8hS70TzCDPPxBfZKncvI9cOgGSd9GGyy5qk/RVOOkXzWNsOsHRer2PmD X-Received: by 2002:a2e:b889:0:b0:2d3:b711:9083 with SMTP id r9-20020a2eb889000000b002d3b7119083mr2852589ljp.30.1709565392738; Mon, 04 Mar 2024 07:16:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709565392; cv=pass; d=google.com; s=arc-20160816; b=opezj0kKK1IjRPuRzMj4WQ6iN9NYeQeuDI6w058CElg/tGRungBOaDGHBGM/KCX22M XDx5DubLHiTBGkuMMv8gLFeINtQIeyN0SNmYiVG/oj2aYPPdCvJVdfNlM32AU/v5q3ma dTFaU9PHk1YmIHAzQCyCpzxZjrPkTPzUFOkB30SHJ8tRTWLTu832xAnujHDPJmSegIKr yHU745o8tvRGci+Y0V38bpiGW8F6t5Kl2TEGfkVTqNDOrFUwYG5u99laXycNo/lcYXr5 638kBX0bMrbN1GkDUM3DueY8Pwv7qqDDdRx7fKmtD67GtdFD1+XC+8ID+P2Ao62iRXqs shfQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:subject:cc:to:from :message-id:dkim-signature; bh=j3aOvq2bodsmjXO3Ej4yrzGf1N49aFt+VJq79Wh3FMI=; fh=TFpRczVpCj1VKrdi5nTgmifufla0PMfzaqJ5jtnWufY=; b=bHtfyXyh8imTnlxvbrRF7YvV7xUk9svhwks4y49YhY4j115xU8gevTYGce5VH3WPC1 cWruFJVoo7lrBa9uNWgUjg/WaFnGp/qPFNjEtRShdymTctnElSfFiFXG0AiiJtrMrOpM pxh4wjr/u/IPL6bABIqTINQh7IslgXInsiM1YBwLDZSQZOm3QKJAjGmP7azveDVyH/Ji EzW/qmCTLVbo+BZMguKyQjVd7FkxsgmINkW3BBRItXe3szrowk8nraQSLwiEApN2bYp9 ljBtDCs6XrZFdXSgN/Ufj1N2xzS2C9avAkFWpaC5RQmwtHNY2dROCDEMh6buUX9NE68O xR4g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@qq.com header.s=s201512 header.b=zziNOuqm; arc=pass (i=1 dkim=pass dkdomain=qq.com); spf=pass (google.com: domain of linux-kernel+bounces-90794-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90794-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id b73-20020a509f4f000000b00566db5a10b5si2889777edf.443.2024.03.04.07.16.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 07:16:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-90794-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@qq.com header.s=s201512 header.b=zziNOuqm; arc=pass (i=1 dkim=pass dkdomain=qq.com); spf=pass (google.com: domain of linux-kernel+bounces-90794-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90794-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 6CC1C1F231DA for ; Mon, 4 Mar 2024 15:16:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6DD13495E0; Mon, 4 Mar 2024 15:15:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=qq.com header.i=@qq.com header.b="zziNOuqm" Received: from out162-62-57-252.mail.qq.com (out162-62-57-252.mail.qq.com [162.62.57.252]) (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 DAF301946C for ; Mon, 4 Mar 2024 15:15:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=162.62.57.252 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709565312; cv=none; b=WU6ra37jh91OAj5xq20psH1kSLHRLw7wNYqzVWbXqjrBGiS0sJxooVp3ALtgdiEqDAQpFZHTN1f5gmekg+n6rq8ho4HyboOcbAzSPTU+jj9lghLM3cAwfMiExaAp68mywTG7WQ97lz1i9kn1hWFa/1g9efC2Zukzjyd21WRn7VE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709565312; c=relaxed/simple; bh=UVb+UzDGo6r93A9kFqS+4qMonZQvvkS3RQouaGJ0r58=; h=Message-ID:From:To:Cc:Subject:Date:MIME-Version; b=AsU5JXNu+3CC7og1WqbMSLeTp5CHQrhM0eRGByJkPIa3biaD3DjCaIamFWrEiK+UCEnhEmLsP8zAjcwUJyVjkMJwGsv9gJ3WR3I4uFtE9yatePcOm9O7w2jLlFQ6nQiooLDLhoDrXGk+ZigvLq+5+7oi2laNgfjIeF7WcRPzduw= 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=zziNOuqm; arc=none smtp.client-ip=162.62.57.252 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201512; t=1709565305; bh=j3aOvq2bodsmjXO3Ej4yrzGf1N49aFt+VJq79Wh3FMI=; h=From:To:Cc:Subject:Date; b=zziNOuqmPjts8WAyk2XbyJbjmqbQw5D0C3s63ZH0+yYSt4Ml1NW9F+r3uY51aHwSb 9YTbG4pqrlMsPEXn2MQ1vQajHzFN+x+CSufH9tOMSKTnCg4PU1+89pLkdfBePAbekj TpEUWk9a7vjh1ZDaHKvSpjF1fOOiAvNq5qX8KHsQ= 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: linux-kernel@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