Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp6839lqs; Mon, 4 Mar 2024 13:05:05 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXjMF/M0E+7Z9SbdwDyBabl4yz5oZjugAJZXRHGkWMsQNYmcoBji+Mq7dMdsytI2Z99Im1A3H1SI58PSxAQi2rlY4z8gz+G2adHyUH4pw== X-Google-Smtp-Source: AGHT+IFTja/2pFHvC/gB3/9oDVSG8Yuqu/7KSK1wwtH9JwGK0gO9UoibwV5DclgM5BFcHW9Ktep7 X-Received: by 2002:a05:622a:181e:b0:42e:b310:1f71 with SMTP id t30-20020a05622a181e00b0042eb3101f71mr42429qtc.49.1709586304817; Mon, 04 Mar 2024 13:05:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709586304; cv=pass; d=google.com; s=arc-20160816; b=kanv7dkXztG9SplVWz9t1g/9tPmhlMFz8ZQmQb6jqEidiTL2WFpNefzKAVEx3vQ2w9 d5BKtq6wQ6GoZy6PjV6qjAcpQLdTcDvnbIUdaW2eEzIXbhNlxcdbWdA/fb7WPvRo9s4k peczcdeKy69WX08GT2PXHwa7YGnOZ6oGW9+HK8LGDZz5Pf8+DP4dkYqYzwr4Vup6wN+D xF9I6BDXH3aOk1nauergWxHw4lVj8lkfyctRwsqNHMUotXYrK6FsH9RnycakMTEid++k kJKbGWTPMjEskF3tWAT28paWQfeIaIfFrxIFkPgUTXccx2GTE/wC1zY+YMPdUWlgamFr xKrw== 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=GFMJlJjTlI/YnjqaRDuRJEvR/O/AOIAkbGZdzMRZ1v0=; fh=TFpRczVpCj1VKrdi5nTgmifufla0PMfzaqJ5jtnWufY=; b=oyCAh1QvY1vsW8yLfKOuonSLTBV5GNS4E1S0/Kj02+fPFlW2nv6Y5U8//xV/sUZGa4 nQQ+pdDzizX36uqG7DiASz+UP3F1HYGXd07r2qjHNtmCR9JKbHfoslL5oU+05NHHpbXR mdP0oC7+fqSG8SLMG00c1MegmrjmM52CQ/jC7WkJdPd0ypwa0yBy6tjImNZpqfh662Fn nv/0iZwlIdiv14JiWBWiVusGikLOZtYAScZ7F/Tq/r3suPfjTcNiMOdqTYBk4xPUbsjK Gcqmt9Ar/CS96TRjiVfKjNibuE1r+YmQr4j95O+gBH+sbP7wM66UC9yXiT9KxfBM0wha itmg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@qq.com header.s=s201512 header.b=Y9XH6vec; arc=pass (i=1 dkim=pass dkdomain=qq.com); spf=pass (google.com: domain of linux-kernel+bounces-91269-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91269-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id p3-20020a05622a00c300b0042e897fd376si10886131qtw.766.2024.03.04.13.05.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 13:05:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-91269-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@qq.com header.s=s201512 header.b=Y9XH6vec; arc=pass (i=1 dkim=pass dkdomain=qq.com); spf=pass (google.com: domain of linux-kernel+bounces-91269-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-91269-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 535661C20619 for ; Mon, 4 Mar 2024 21:05:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 99BDE1F5F6; Mon, 4 Mar 2024 21:04:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=qq.com header.i=@qq.com header.b="Y9XH6vec" Received: from out162-62-57-49.mail.qq.com (out162-62-57-49.mail.qq.com [162.62.57.49]) (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 AC2C51CAA9 for ; Mon, 4 Mar 2024 21:04:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=162.62.57.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709586284; cv=none; b=oAS4Lzd/JZbBTG1l9oTIAOyfi8ls/YKAw0qZJxBCKAtX2Udt2D6CJqs0R8v05Z8mPWq5jRSNKDCmi+dcoEMLNAnsimC5BVgq/k1D/dUpa7eFG5f8kjJjDMAtHEHZO8jvQ0rJAAIXljKocXX5SoAmyC7c4VfJxt8ZNxmCtFHNleY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709586284; c=relaxed/simple; bh=Tw6Vginuy7S095bACk50UnmKKPupKBfXrXjYBWULZyE=; h=Message-ID:From:To:Cc:Subject:Date:MIME-Version; b=glKxS8rWClvHuP2g6rj2FgF5YXvOLWzoW0+wu7biQeEjBplXcDXSIKYqfvqnCAess9OIWrdZJfiij0E5ZP1nON19mbX9K1+R6dnYRzAXWQJu1iIDeLrrQFhZqSPpyif1VqMkFBgUegzWrVzY7yi36yawVqFCso/VG72Za0paocg= 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=Y9XH6vec; arc=none smtp.client-ip=162.62.57.49 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=1709586276; bh=GFMJlJjTlI/YnjqaRDuRJEvR/O/AOIAkbGZdzMRZ1v0=; h=From:To:Cc:Subject:Date; b=Y9XH6vec7VecGyC+qUpR5WS7gAphXv1mDq3MeWyze30OlEeSV8lRbv/FJXi7aeghm LJf+8yHAkIe2DkLhFUdPiqWfYZRP7wPbFi++duJj8Gf/9esBp0Bz5s2+HUJ6O4JEuY KpbueOpbM9pEB81kn7QrNGNXrVRjepSGsaqA9reo= Received: from cyy-pc.lan ([240e:379:2240:e500:994d:62ab:74a6:932b]) by newxmesmtplogicsvrszb6-0.qq.com (NewEsmtp) with SMTP id 11F9664F; Tue, 05 Mar 2024 05:04:31 +0800 X-QQ-mid: xmsmtpt1709586271t3nxb2zjd Message-ID: X-QQ-XMAILINFO: OOnbKU/qCQQlTfJAqINLSh0d4KoIoE+5EG42uJPeTXDuDxpVHH4R5nzqxk1Ct5 NW7LDGxcpXuOVjHMhG8ahYOt/uaDlZzhmWYtv+/b2580LFjJJ9xS4+lr6KmiiYri0Bke+VWzYxhy sPqdPDEcfzc341a9H4kUVehG5L0/ociq/P2j+GnN8gkPhcxzkbpQgbo7NxDP2kGPLeAwA8bPWwVV p6fJVOv1KFwUc7WukryBd07MbPSMEwNrTEGbvLr07Z1CQjk5aJZ7Gri89VxKv0X2jxXJJpZA3kV/ s54fnlvwjfare/3qqfxBkGS4oRU+yekg3anKR8VdvdE5S+A7y/GX+AXDvLwB9TpsKZ9zg8uHQ/QW /Ii7c6QOKtY03P+NoPalujMCajnQsLk9PermHgKU+F6WiY3U+aeyt09OST52VALFAGXLnZfinU3a z1w8wh5pk6ZFQyqEIt0qI8n6PWpTNj+JZVYyi74e8rL/G2GcWeeZO4bAJekU9m+K22E94hDKbNDZ v4KwIiiMfHmFhn0uggiLcnMvv4aY2a/9ScF3K7PI6AkyQJaunwaUjX33EQAgvTOipfgw5dU8rKCP v+ox8MaJnn5eguzT+ikx7RbczyZxXdvIOsmX4o33pke+xFK0PF4hv/7VXvA43t1wHp+gHFtBioro LawTYZXJeGy3qcef21pbQVQBqHBL/XaDoAa/6XFw9lDi2Ejw1pOjuBS8kA9eRVlJoeCQUo2lE0/7 w2xsFCzoyvB0YRmk+leqY29Fw7UQFkAtiQrSsLJeJduZqkvvztOCk295T+SGpDROGFrVHjxKf2Bx 4gtlcVpwz1fnPEKnAHhSVMatX3MSMHF0Q80Py6nhArxU3B1fynNJkMUx9pCgHs0eKP71Bhfij/p4 ODic4vcVBJyH2IEnrtVudlPX4TzFPiz4g9A5gNU/f84w2kWws5JkLc5hcFG4d1rZ9jSJ8Lcp5WsG U0BewuP0ZT/Jvl0LzYg+byRNH6ZF5NL31PjksCgaY7pLEPyJLrbtSuFUAPpAQh20oGvGu0U2/cWW zF1OhNdhXalt1jbpHt X-QQ-XMRINFO: Mp0Kj//9VHAxr69bL5MkOOs= 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 v3 0/7] riscv: add initial support for Canaan Kendryte K230 Date: Tue, 5 Mar 2024 05:03:21 +0800 X-OQ-MSGID: <20240304210321.777296-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 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 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: 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/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 + 10 files changed, 203 insertions(+), 4 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 base-commit: 45e0b0fd6dc574101825ac2738b890da024e4cda prerequisite-patch-id: 2374c56c0032e616e45854d2bc2bb1073996313d Dependencies: https://lore.kernel.org/linux-riscv/tencent_88FEE0A2C5E0852436A2F1A1087E6803380A@qq.com/ -- 2.43.0