From nobody Mon Feb 9 07:31:56 2026 Received: from cstnet.cn (smtp84.cstnet.cn [159.226.251.84]) (using TLSv1.2 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CA62E2E8B87; Sun, 4 Jan 2026 07:09:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.226.251.84 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767510593; cv=none; b=Xh8cT133ICmQqaDUiCXKuiS+JeLjVnNBgUSegdZwGkCsEaSgreg6E3YjXWlJthb9dCKxew3Mvg+SLUWFsogdYi2dDvCzaKpZ3CR65ibAKrUcoEVsi81f456vuGQZxbJqOBaF0uOzqcTVC4R9Xn4GXtC2lWyeOER6Jlcx7klzhYs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767510593; c=relaxed/simple; bh=cFDluZ3i77HTiwwxapLj5ccEW8V6AGeFF8kB6ZcGHSw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=njHMI9YUf0k9cOXLZUWs3vD7JB+nJglulMbOSFN3tHSzlVja04qoZBORTM7qwJZd4jpZcuQrIXtc0PWqIPgBQTLdrwVUVLlY3SSNOMvzuelHbVeRytd76mPoVY2+QsYN1514t0zIrPTrDKyOQ6krjN6u1xroK3a14BdisBbqnh8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=isrc.iscas.ac.cn; spf=pass smtp.mailfrom=isrc.iscas.ac.cn; arc=none smtp.client-ip=159.226.251.84 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=isrc.iscas.ac.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=isrc.iscas.ac.cn Received: from duge-virtual-machine (unknown [223.160.207.26]) by APP-05 (Coremail) with SMTP id zQCowAAHnA8aElppQBI+Aw--.34953S3; Sun, 04 Jan 2026 15:09:18 +0800 (CST) From: Jiayu Du To: conor@kernel.org Cc: robh@kernel.org, krzk+dt@kernel.org, pjw@kernel.org, palmer@dabbelt.com, aou@eecs.berkeley.edu, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, alex@ghiti.fr, jiayu.riscv@isrc.iscas.ac.cn, cyy@cyyself.name, kingxukai@zohomail.com, TroyMitchell988@gmail.com, gaohan@iscas.ac.cn, me@ziyao.cc Subject: [PATCH v2 1/2] dt-bindings: riscv: canaan: add 100ask K230 boards compatible strings Date: Sun, 4 Jan 2026 15:09:10 +0800 Message-ID: <20260104070911.219588-2-jiayu.riscv@isrc.iscas.ac.cn> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260104070911.219588-1-jiayu.riscv@isrc.iscas.ac.cn> References: <20260104070911.219588-1-jiayu.riscv@isrc.iscas.ac.cn> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-CM-TRANSID: zQCowAAHnA8aElppQBI+Aw--.34953S3 X-Coremail-Antispam: 1UD129KBjvdXoW7Gw1UuF1DJw1fKF1DZryrWFg_yoWDtrg_ua 1xur1kWryUJF9YgFs0kFWIkFW7Aw4SyFykZr9rJ3Wvk343Z3yDZFWvk34Ykr43Cr4Uuwn3 CFs5JrW3ursrCjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbk8FF20E14v26rWj6s0DM7CY07I20VC2zVCF04k26cxKx2IYs7xG 6r1S6rWUM7CIcVAFz4kK6r1j6r18M28IrcIa0xkI8VA2jI8067AKxVWUGwA2048vs2IY02 0Ec7CjxVAFwI0_Gr0_Xr1l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxSw2x7M28EF7xv wVC0I7IYx2IY67AKxVWUJVWUCwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxVW8JVWxJwA2z4 x0Y4vEx4A2jsIE14v26r1j6r4UM28EF7xvwVC2z280aVCY1x0267AKxVW8JVW8Jr1le2I2 62IYc4CY6c8Ij28IcVAaY2xG8wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0E2Ix0cI8IcV AFwI0_Jr0_Jr4lYx0Ex4A2jsIE14v26r1j6r4UMcvjeVCFs4IE7xkEbVWUJVW8JwACjcxG 0xvY0x0EwIxGrwACjI8F5VA0II8E6IAqYI8I648v4I1lFIxGxcIEc7CjxVA2Y2ka0xkIwI 1lc7CjxVAaw2AFwI0_Jw0_GFyl42xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_ Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17 CE14v26r4a6rW5MIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0 I7IYx2IY6xkF7I0E14v26r4j6F4UMIIF0xvE42xK8VAvwI8IcIk0rVWUJVWUCwCI42IY6I 8E87Iv67AKxVWUJVW8JwCI42IY6I8E87Iv6xkF7I0E14v26r4j6r4UJbIYCTnIWIevJa73 UjIFyTuYvjfU8XdbUUUUU X-CM-SenderInfo: 5mld534oul2uny6l223fol2u1dvotugofq/ Content-Type: text/plain; charset="utf-8" K230 CANMV DSHANPI is a development board produced by 100ASK. Add compatible string for the board and its SoM. Signed-off-by: Jiayu Du Acked-by: Rob Herring (Arm) --- The hardware details are available here[1]. [1]: https://github.com/100askTeam/eLinuxAI-TrainingDocs/blob/master/docs/C= anaanK230/part1/01-Introductionhardwareresources.md Documentation/devicetree/bindings/riscv/canaan.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/riscv/canaan.yaml b/Document= ation/devicetree/bindings/riscv/canaan.yaml index f9854ff43ac6..a4866c7cf053 100644 --- a/Documentation/devicetree/bindings/riscv/canaan.yaml +++ b/Documentation/devicetree/bindings/riscv/canaan.yaml @@ -48,6 +48,11 @@ properties: - canaan,k230-usip-lp3-evb - const: canaan,kendryte-k230 =20 + - items: + - const: 100ask,canmv-k230-dshanpi + - const: 100ask,canmv-k230-module-dshanpi + - const: canaan,kendryte-k230 + additionalProperties: true =20 ... --=20 2.52.0 From nobody Mon Feb 9 07:31:56 2026 Received: from cstnet.cn (smtp84.cstnet.cn [159.226.251.84]) (using TLSv1.2 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8684E2E7165; Sun, 4 Jan 2026 07:09:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.226.251.84 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767510593; cv=none; b=BoRFvDKRZYGUCxq/vNs08stmbBip3e0Rb9/r0YEc8Ew5V7RkLpFTMrUOfJWZytd/VnLxoFQulI73n5PO5O/JVNQE5tY49TJRmSKLDoYqyvI2LZHDVCCoIkE65KODA0JpXsgwKLuO4bpRIpVR+lRlRr/6wT1FKCYBoBjJlUmEivQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767510593; c=relaxed/simple; bh=4gHGStv/3qCC7K0BUJ2zZ0x0nNoVnlnbx6BwDFJtq9Q=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=MaKvb0QtTbl0qATaRGvOI6NMHvVWxUVflcN3QhYjP7L1/VPVDxijcf+Ff03BMxjK8PnzUjG8apIy6ts0IAwLYqHPYOiivwf2LcxW5hQ7VDzDOBczwVusw/iNKyvgadUVPJXf0TxpFOxdo1ThrFA7bCB8c018kRfH4+uIOYxpnBI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=isrc.iscas.ac.cn; spf=pass smtp.mailfrom=isrc.iscas.ac.cn; arc=none smtp.client-ip=159.226.251.84 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=isrc.iscas.ac.cn Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=isrc.iscas.ac.cn Received: from duge-virtual-machine (unknown [223.160.207.26]) by APP-05 (Coremail) with SMTP id zQCowAAHnA8aElppQBI+Aw--.34953S4; Sun, 04 Jan 2026 15:09:21 +0800 (CST) From: Jiayu Du To: conor@kernel.org Cc: robh@kernel.org, krzk+dt@kernel.org, pjw@kernel.org, palmer@dabbelt.com, aou@eecs.berkeley.edu, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, alex@ghiti.fr, jiayu.riscv@isrc.iscas.ac.cn, cyy@cyyself.name, kingxukai@zohomail.com, TroyMitchell988@gmail.com, gaohan@iscas.ac.cn, me@ziyao.cc Subject: [PATCH v2 2/2] riscv: dts: canaan: Add initial dshanpi board DT files Date: Sun, 4 Jan 2026 15:09:11 +0800 Message-ID: <20260104070911.219588-3-jiayu.riscv@isrc.iscas.ac.cn> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260104070911.219588-1-jiayu.riscv@isrc.iscas.ac.cn> References: <20260104070911.219588-1-jiayu.riscv@isrc.iscas.ac.cn> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-CM-TRANSID: zQCowAAHnA8aElppQBI+Aw--.34953S4 X-Coremail-Antispam: 1UD129KBjvJXoWxZry8KFy3Aw4fCFWfCryDWrg_yoWrAFyDpr s8urZxGFWI9F9a9FW2g3yIgF43CF4qk34rCr1ayFyUtrWjqFWvkwn3t34rXF18Xr1UX390 yan5ZryxtF1xZ3DanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUmj14x267AKxVWrJVCq3wAFc2x0x2IEx4CE42xK8VAvwI8IcIk0 rVWUuVWrJwAFIxvE14AKwVWUJVWUGwA2048vs2IY020E87I2jVAFwI0_Jryl82xGYIkIc2 x26xkF7I0E14v26ryj6s0DM28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48ve4kI8wA2z4x0 Y4vE2Ix0cI8IcVAFwI0_Jr0_JF4l84ACjcxK6xIIjxv20xvEc7CjxVAFwI0_Gr0_Cr1l84 ACjcxK6I8E87Iv67AKxVWUJVW8JwA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1UM2AI xVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20x vE14v26r1j6r18McIj6I8E87Iv67AKxVWUJVW8JwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xv r2IYc2Ij64vIr41lF7I21c0EjII2zVCS5cI20VAGYxC7M4IIrI8v6xkF7I0E8cxan2IY04 v7MxkF7I0En4kS14v26r1q6r43MxAIw28IcxkI7VAKI48JMxC20s026xCaFVCjc4AY6r1j 6r4UMI8I3I0E5I8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7 AF67AKxVW8ZVWrXwCIc40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r1j6r1xMIIF0xvE 2Ix0cI8IcVCY1x0267AKxVW8JVWxJwCI42IY6xAIw20EY4v20xvaj40_Jr0_JF4lIxAIcV C2z280aVAFwI0_Jr0_Gr1lIxAIcVC2z280aVCY1x0267AKxVW8JVW8JrUvcSsGvfC2Kfnx nUUI43ZEXa7VUbH5lUUUUUU== X-CM-SenderInfo: 5mld534oul2uny6l223fol2u1dvotugofq/ Content-Type: text/plain; charset="utf-8" Add board devicetree for 100ask K230 dashanpi, and also the SoM device utilized by the board. UART0 is enabled as the default console. Signed-off-by: Jiayu Du --- arch/riscv/boot/dts/canaan/Makefile | 1 + .../boot/dts/canaan/k230-canmv-dshanpi.dts | 82 +++++++++++++++++++ .../dts/canaan/k230-canmv-module-dshanpi.dtsi | 30 +++++++ 3 files changed, 113 insertions(+) create mode 100644 arch/riscv/boot/dts/canaan/k230-canmv-dshanpi.dts create mode 100644 arch/riscv/boot/dts/canaan/k230-canmv-module-dshanpi.dt= si diff --git a/arch/riscv/boot/dts/canaan/Makefile b/arch/riscv/boot/dts/cana= an/Makefile index 7d54ea5c6f3d..89cb64bde440 100644 --- a/arch/riscv/boot/dts/canaan/Makefile +++ b/arch/riscv/boot/dts/canaan/Makefile @@ -2,6 +2,7 @@ dtb-$(CONFIG_ARCH_CANAAN) +=3D canaan_kd233.dtb dtb-$(CONFIG_ARCH_CANAAN) +=3D k210_generic.dtb dtb-$(CONFIG_ARCH_CANAAN) +=3D k230-canmv.dtb +dtb-$(CONFIG_ARCH_CANAAN) +=3D k230-canmv-dshanpi.dtb dtb-$(CONFIG_ARCH_CANAAN) +=3D k230-evb.dtb dtb-$(CONFIG_ARCH_CANAAN) +=3D sipeed_maix_bit.dtb dtb-$(CONFIG_ARCH_CANAAN) +=3D sipeed_maix_dock.dtb diff --git a/arch/riscv/boot/dts/canaan/k230-canmv-dshanpi.dts b/arch/riscv= /boot/dts/canaan/k230-canmv-dshanpi.dts new file mode 100644 index 000000000000..4f95b534ee87 --- /dev/null +++ b/arch/riscv/boot/dts/canaan/k230-canmv-dshanpi.dts @@ -0,0 +1,82 @@ +// SPDX-License-Identifier: GPL-2.0 OR MIT +/* + * Copyright (C) 2025 Jiayu Du + */ + +/dts-v1/; + +#include "k230-canmv-module-dshanpi.dtsi" + +/ { + model =3D "100ask CanMV-K230-dshanpi"; + compatible =3D "100ask,canmv-k230-dshanpi", + "100ask,canmv-k230-module-dshanpi", + "canaan,kendryte-k230"; + + aliases { + serial0 =3D &uart0; + }; + + chosen { + stdout-path =3D "serial0:115200n8"; + }; + + vdd_5v: regulator-vdd-5v { + compatible =3D "regulator-fixed"; + regulator-name =3D "vdd_5v"; + regulator-min-microvolt =3D <5000000>; + regulator-max-microvolt =3D <5000000>; + regulator-always-on; + regulator-boot-on; + }; + + vdd_3v3: regulator-vdd-3v3 { + compatible =3D "regulator-fixed"; + regulator-name =3D "vdd_3v3"; + regulator-min-microvolt =3D <3300000>; + regulator-max-microvolt =3D <3300000>; + regulator-always-on; + regulator-boot-on; + vin-supply =3D <&vdd_5v>; + }; + + vdd_1v8: regulator-vdd-1v8 { + compatible =3D "regulator-fixed"; + regulator-name =3D "vdd_1v8"; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; + regulator-always-on; + regulator-boot-on; + vin-supply =3D <&vdd_5v>; + }; +}; + +&pinctrl { + uart0_pins: uart0-pins { + uart0-txd-cfg { + pinmux =3D ; + slew-rate =3D <0>; + drive-strength =3D <7>; + power-source =3D ; + output-enable; + bias-disable; + input-schmitt-enable; + }; + + uart0-rxd-cfg { + pinmux =3D ; + slew-rate =3D <0>; + drive-strength =3D <7>; + power-source =3D ; + input-enable; + bias-disable; + input-schmitt-enable; + }; + }; +}; + +&uart0 { + pinctrl-names =3D "default"; + pinctrl-0 =3D <&uart0_pins>; + status =3D "okay"; +}; diff --git a/arch/riscv/boot/dts/canaan/k230-canmv-module-dshanpi.dtsi b/ar= ch/riscv/boot/dts/canaan/k230-canmv-module-dshanpi.dtsi new file mode 100644 index 000000000000..ed0abc68f321 --- /dev/null +++ b/arch/riscv/boot/dts/canaan/k230-canmv-module-dshanpi.dtsi @@ -0,0 +1,30 @@ +// SPDX-License-Identifier: GPL-2.0 OR MIT +/* + * Copyright (C) 2025 Jiayu Du + */ + +/dts-v1/; + +#include "k230.dtsi" + +/ { + model =3D "100ask CanMV-K230-Module-dshanpi"; + compatible =3D "100ask,canmv-k230-module-dshanpi", + "canaan,kendryte-k230"; + + ddr: memory@0 { + device_type =3D "memory"; + reg =3D <0x0 0x0 0x0 0x40000000>; + }; + + timerx_pulse_in: clock-50m { + compatible =3D "fixed-clock"; + #clock-cells =3D <0>; + clock-frequency =3D <50000000>; + }; +}; + +&sysclk { + clocks =3D <&osc24m>, <&timerx_pulse_in>; + clock-names =3D "osc24m", "timer-pulse-in"; +}; --=20 2.52.0