From 8d2efa966a62e7d2f346d00999cd1b816e1cf069 Mon Sep 17 00:00:00 2001 From: wangjianxin Date: Wed, 24 Jul 2024 08:41:18 +0800 Subject: [PATCH] k230 uart dts enable Signed-off-by: wangjianxin --- arch/riscv/boot/dts/canaan/k230-canmv-01studio.dts | 7 +++++++ arch/riscv/boot/dts/canaan/k230-canmv.dts | 7 +++++++ arch/riscv/boot/dts/canaan/k230-evb.dts | 7 +++++++ arch/riscv/boot/dts/canaan/k230d-canmv.dts | 6 ++++++ 4 files changed, 27 insertions(+) diff --git a/arch/riscv/boot/dts/canaan/k230-canmv-01studio.dts b/arch/riscv/boot/dts/canaan/k230-canmv-01studio.dts index 813cdbaf524b9..4dd6924f1c921 100644 --- a/arch/riscv/boot/dts/canaan/k230-canmv-01studio.dts +++ b/arch/riscv/boot/dts/canaan/k230-canmv-01studio.dts @@ -9,6 +9,10 @@ model = "Canaan CanMV-K230"; compatible = "canaan,canmv-k230", "canaan,kendryte-k230"; + aliases { + serial3 = &uart3; + }; + chosen { stdout-path = "serial0:115200n8"; }; @@ -22,6 +26,9 @@ &uart0 { status = "okay"; }; +&uart3 { + status = "okay"; +}; &mmc_sd0{ status = "okay"; no-1-8-v; diff --git a/arch/riscv/boot/dts/canaan/k230-canmv.dts b/arch/riscv/boot/dts/canaan/k230-canmv.dts index 5831d860e6c3d..cc3feec6f653f 100644 --- a/arch/riscv/boot/dts/canaan/k230-canmv.dts +++ b/arch/riscv/boot/dts/canaan/k230-canmv.dts @@ -9,6 +9,10 @@ model = "Canaan CanMV-K230"; compatible = "canaan,canmv-k230", "canaan,kendryte-k230"; + aliases { + serial3 = &uart3; + }; + chosen { stdout-path = "serial0:115200n8"; }; @@ -22,6 +26,9 @@ &uart0 { status = "okay"; }; +&uart3 { + status = "okay"; +}; &mmc_sd1{ status = "okay"; no-1-8-v; diff --git a/arch/riscv/boot/dts/canaan/k230-evb.dts b/arch/riscv/boot/dts/canaan/k230-evb.dts index 6ddfffa188322..ebb95f4450a07 100644 --- a/arch/riscv/boot/dts/canaan/k230-evb.dts +++ b/arch/riscv/boot/dts/canaan/k230-evb.dts @@ -9,6 +9,10 @@ model = "Kendryte K230 EVB"; compatible = "canaan,k230-usip-lp3-evb", "canaan,kendryte-k230"; + aliases { + serial3 = &uart3; + }; + chosen { stdout-path = "serial0:115200n8"; }; @@ -22,6 +26,9 @@ &uart0 { status = "okay"; }; +&uart3 { + status = "okay"; +}; &mmc_sd1{ status = "okay"; diff --git a/arch/riscv/boot/dts/canaan/k230d-canmv.dts b/arch/riscv/boot/dts/canaan/k230d-canmv.dts index 1bcac71923b9e..de2ed149e32b0 100644 --- a/arch/riscv/boot/dts/canaan/k230d-canmv.dts +++ b/arch/riscv/boot/dts/canaan/k230d-canmv.dts @@ -8,6 +8,9 @@ / { model = "Canaan CanMV-K230"; compatible = "canaan,canmv-k230", "canaan,kendryte-k230"; + aliases { + serial2 = &uart2; + }; chosen { stdout-path = "serial0:115200n8"; @@ -24,6 +27,9 @@ &uart0 { status = "okay"; }; +&uart2 { + status = "okay"; +}; &mmc_sd1{ status = "okay"; no-1-8-v;