riscv: dts: canaan: Correct the formatting issues about k230 dts

Correct the errors in the spacing format, and move the aliases from
the SoC's dtsi to the board's dts, since it's more standard.

Signed-off-by: Jiayu Du <jiayu.riscv@isrc.iscas.ac.cn>
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
This commit is contained in:
Jiayu Du 2025-12-27 17:23:54 +08:00 committed by Conor Dooley
parent 980512a5ca
commit f7e74a96da
3 changed files with 9 additions and 5 deletions

View File

@ -9,6 +9,10 @@ / {
model = "Canaan CanMV-K230";
compatible = "canaan,canmv-k230", "canaan,kendryte-k230";
aliases {
serial0 = &uart0;
};
chosen {
stdout-path = "serial0:115200n8";
};

View File

@ -9,6 +9,10 @@ / {
model = "Kendryte K230 EVB";
compatible = "canaan,k230-usip-lp3-evb", "canaan,kendryte-k230";
aliases {
serial0 = &uart0;
};
chosen {
stdout-path = "serial0:115200n8";
};

View File

@ -11,10 +11,6 @@ / {
#size-cells = <2>;
compatible = "canaan,kendryte-k230";
aliases {
serial0 = &uart0;
};
cpus {
#address-cells = <1>;
#size-cells = <0>;
@ -75,7 +71,7 @@ soc {
ranges;
plic: interrupt-controller@f00000000 {
compatible = "canaan,k230-plic" ,"thead,c900-plic";
compatible = "canaan,k230-plic", "thead,c900-plic";
reg = <0xf 0x00000000 0x0 0x04000000>;
interrupts-extended = <&cpu0_intc 11>, <&cpu0_intc 9>;
interrupt-controller;