Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2889131lqz; Wed, 3 Apr 2024 11:22:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVhmbsbaORcx1Mxe5MucccTufi5uNnKNEs5RjTp8hWuv8TWIc8UGg+lBKCbaoAnsd24EMqz6ZI9b0h+9ukJC8ym0yNeMyJ9d78ezjrTjg== X-Google-Smtp-Source: AGHT+IGDxtMFJbFjpvT875eo0/CrnZACgCfJBNJkmq3EtNJvbege3mvuHMcd8uYYUfMvm+jzyl8m X-Received: by 2002:a05:620a:4090:b0:789:fb12:e338 with SMTP id f16-20020a05620a409000b00789fb12e338mr278177qko.60.1712168563928; Wed, 03 Apr 2024 11:22:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712168563; cv=pass; d=google.com; s=arc-20160816; b=s198NheE0vWcCJQ1BYZf3BQdDawJez96H7BFgPyYXnm9NkmQ0Eg9Bx+aon6KHzGzZV QVqHiWY9zSnOB5ChGH2/sJpHmOZR7hJGf1YEYXrY0DVDjnTuOnxtWX5hxQmXJk7URdOL oGeaAInVuOxzg61lK8t8yXSUbagBeICAwd5pgdrEvzw1AHdde3SmklVv2m6pJTRTppHo gzcWA42hKkh4HNytVSdJpWFqO4/egNNB/Y2WHk49CBeObZIgXfV4etQ73ie7nVYMsCFp gpyBUpBYKxgEYzRJ/7AUDlpo4ReQBT+0Z27jq1aemNtEDM1Fi46qVYtoLa7W9xgb6QAL uQ6Q== 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:message-id:to:from:cc:in-reply-to :subject:date:dkim-signature; bh=LoPxyy6ZZevKYMVQQwthSJ0EL7SyRC2E5s9/TcAwzlA=; fh=qPcXEI0X7XK3bn2aWVmciA52B9/5w4vziuKptg7SZBo=; b=UZ0mddVqFbOM8PV7724CG5zrtw36qEw4EMnmRK4KjWljnjTJYruxGpXHSC8pBcYE+z 5B48y8GvfK/MERe8YHgAiKMlKu1QNYClxeWNoH+3Iep2YnOAhFtnSbTdHV4H5gCs6kzK cRJ5RVUul5oqUrr5/8xGNVUyYaGk5SZt/4GV2XPxoz0WkKQET950GHNWdjK4n8SztzFI 1JElQpcc1L6BP3OOYOmMkBM4Bxp4d7lzd+t/fxr0orrrvHCd5Vfebm6nLA7YZmVOHuaf PB2M5P542vO79xFz0lxqQ0WzZZT3XsALRFQJGYriA20QtvoPSFjixUYQFg0vwNMUI8yy tv2Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@dabbelt-com.20230601.gappssmtp.com header.s=20230601 header.b=ZwCD8duL; arc=pass (i=1 spf=pass spfdomain=dabbelt.com dkim=pass dkdomain=dabbelt-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-130435-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130435-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 a11-20020a05620a102b00b0078a3fe706cfsi15190705qkk.10.2024.04.03.11.22.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 11:22:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-130435-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=@dabbelt-com.20230601.gappssmtp.com header.s=20230601 header.b=ZwCD8duL; arc=pass (i=1 spf=pass spfdomain=dabbelt.com dkim=pass dkdomain=dabbelt-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-130435-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130435-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 F2D101C24D74 for ; Wed, 3 Apr 2024 18:22:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EF9A815444A; Wed, 3 Apr 2024 18:22:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=dabbelt-com.20230601.gappssmtp.com header.i=@dabbelt-com.20230601.gappssmtp.com header.b="ZwCD8duL" Received: from mail-pf1-f181.google.com (mail-pf1-f181.google.com [209.85.210.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 230B0153593 for ; Wed, 3 Apr 2024 18:22:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712168530; cv=none; b=mNekSalGbmugKaW9nwVxUHm0jm40TheEOdJpI2ZzqZBiPKrxbd3kqWBLf/ZLEugj44X+BU2tw52AocanwIXHh2ByMG9Q4/Bl4PzHbKUS6ZgE8iaYd5D09ag9TreCo5Hm3j4NgRK2JLf4Qw5ZbraZGOU+gsMkhhYjFOHDJPsbv4w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712168530; c=relaxed/simple; bh=YLQ5ks3ozTKHgLjWeRoai9T7IQizj8Dx9UVCzQpSmEY=; h=Date:Subject:In-Reply-To:CC:From:To:Message-ID:Mime-Version: Content-Type; b=tgJBfi4bw2mJQQp1M2584cQE1WaurHypsd3myV5PIkzz4PL5iTHyG26RAbA+PyjCx5KbyFlnpRHcsZ+EV+ILMre+Y0UAKUe/zRREHZttQe1Y9egeuPuXTbIivBknrmSDHRdVrjuhI2IA6kj6+V8srj65W6/WtHzSV40ymrH0fYc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=dabbelt.com; spf=pass smtp.mailfrom=dabbelt.com; dkim=pass (2048-bit key) header.d=dabbelt-com.20230601.gappssmtp.com header.i=@dabbelt-com.20230601.gappssmtp.com header.b=ZwCD8duL; arc=none smtp.client-ip=209.85.210.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=dabbelt.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=dabbelt.com Received: by mail-pf1-f181.google.com with SMTP id d2e1a72fcca58-6e6f4ad4c57so75467b3a.2 for ; Wed, 03 Apr 2024 11:22:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20230601.gappssmtp.com; s=20230601; t=1712168527; x=1712773327; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:from:to:cc:subject:date:message-id :reply-to; bh=LoPxyy6ZZevKYMVQQwthSJ0EL7SyRC2E5s9/TcAwzlA=; b=ZwCD8duLiCKuvl/u7C9SdR5KA7kiEXzgg9lxw5OSzEdw1T/wGKr5yIscD1y5u8+1Jb rEiSIY56Ll0uhQLmfdAoYDC2Lnttb2XuguTUokKOEAkOSgyPOVOeTbfdqd+d1/f0AuVo h8r9YkjwWATqXl4T36os3jswsTUuZ5CfYf4W4jAwrW70gP0R98mB3cW2EL1Lv7GwSJ+u IGStBP4q+9l/L56Zy1gtiAKzSTq4eu/zZP/Mgi9eROxXuNemHFjFOFK6sdKFwtKQP6NY JiCveokbXC5BI6xt1xgStRdF5YPEeiOsqUFpFv+xZ9FBnstn8e8UP3lxmzylyZu/pqXh +gSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712168527; x=1712773327; h=content-transfer-encoding:mime-version:message-id:to:from:cc :in-reply-to:subject:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=LoPxyy6ZZevKYMVQQwthSJ0EL7SyRC2E5s9/TcAwzlA=; b=nL+oVsbTW7WcGGY0HdObzfXzuJk50tUHcqfEnr89lOOXFcCEgSUOFsT7endfVKC/Cu 933kQhhdfzbsiT9LR9p4XkP3QuqXvhVUp9LVWoVPEifjJ196L7ouUTqbi8wW/MjjpTDh DkAnIGOXt8XjVc3ymtvH5Byzf6fpudLumljm9YwlVbiG+46ZpOeGLYKcWEyGv1bhY2As 0/rlyajnFPO5I3uMkg6eVKdryRgvN6JkrNYmOFrYBzWuHqvRvVSHqKplmiC2W7DqiiSd +87TduRHyRaJsrVeYVZC2BpK3fRDy1G7C6W+5vMpw6YnPWjDLrhYqsYhZsfcMataahJA 91Ng== X-Forwarded-Encrypted: i=1; AJvYcCVCug5nhyookxfK0+s8QLxPEbuQqgwu0xvGzvDg1MJz8Bhvex9R6rUFH67cLPPW1gubhmiKUbwov97ct3STJRpgigSlsJsIJi6LeX2/ X-Gm-Message-State: AOJu0YwfrsC8L1FfdXEj7bIK0HuHXMSnGftoS2vgejZR90q9iUJwFaq/ fyXo8lNJnbSPkyAqaKAwIABbnb7bIEnIx5fORu8SaKKqvpoWIIZR409x784wOm8= X-Received: by 2002:a05:6a20:734b:b0:1a3:48da:1090 with SMTP id v11-20020a056a20734b00b001a348da1090mr568998pzc.14.1712168527301; Wed, 03 Apr 2024 11:22:07 -0700 (PDT) Received: from localhost ([192.184.165.199]) by smtp.gmail.com with ESMTPSA id d9-20020a17090ad3c900b0029b77fbeb7fsm14038311pjw.16.2024.04.03.11.22.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 11:22:06 -0700 (PDT) Date: Wed, 03 Apr 2024 11:22:06 -0700 (PDT) X-Google-Original-Date: Wed, 03 Apr 2024 11:21:50 PDT (-0700) Subject: Re: [PATCH v6 00/11] riscv: add initial support for Canaan Kendryte K230 In-Reply-To: CC: linux-riscv@lists.infradead.org, Conor Dooley , dlemoal@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, Paul Walmsley , aou@eecs.berkeley.edu, guoren@kernel.org, mturquette@baylibre.com, sboyd@kernel.org, linus.walleij@linaro.org, p.zabel@pengutronix.de, linux-gpio@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, cyy@cyyself.name From: Palmer Dabbelt To: cyy@cyyself.name Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On Sat, 23 Mar 2024 05:09:42 PDT (-0700), cyy@cyyself.name wrote: > 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 v5: > - Deprecate SOC_CANAAN and use SOC_CANAAN_K210 for K210 SoCs > - Modify existing K210 drivers depends on SOC_CANAAN_K210 symbol > - Reword dts commit message > - Modify dts to use Full 512MB memory > - Rebase to linux mainline master > > 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 (11): > 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 > soc: canaan: Deprecate SOC_CANAAN and use SOC_CANAAN_K210 for K210 > clk: k210: Deprecate SOC_CANAAN and use SOC_CANAAN_K210 > pinctrl: k210: Deprecate SOC_CANAAN and use SOC_CANAAN_K210 > reset: k210: Deprecate SOC_CANAAN and use 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 > > base-commit: 8e938e39866920ddc266898e6ae1fffc5c8f51aa Acked-by: Palmer Dabbelt