Message ID | cover.1702862778.git.zhoubinbin@loongson.cn |
---|---|
Headers | show |
Series | LoongArch: Add built-in dtb support | expand |
On 18/12/2023 02:53, Binbin Zhou wrote: > Add DeviceTree file for Loongson-2K2000 processor, which integrates two > 64-bit triple emission superscalar LA364 processor cores. > > Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn> > --- > arch/loongarch/boot/dts/Makefile | 3 +- > .../boot/dts/loongson-2k2000-ref.dts | 73 ++++ > arch/loongarch/boot/dts/loongson-2k2000.dtsi | 311 ++++++++++++++++++ > 3 files changed, 386 insertions(+), 1 deletion(-) > create mode 100644 arch/loongarch/boot/dts/loongson-2k2000-ref.dts > create mode 100644 arch/loongarch/boot/dts/loongson-2k2000.dtsi > > diff --git a/arch/loongarch/boot/dts/Makefile b/arch/loongarch/boot/dts/Makefile > index dc0782315bed..c019d6676f7e 100644 > --- a/arch/loongarch/boot/dts/Makefile > +++ b/arch/loongarch/boot/dts/Makefile > @@ -1,6 +1,7 @@ > # SPDX-License-Identifier: GPL-2.0-only > > dtb-$(CONFIG_MACH_LOONGSON64) = loongson-2k0500-ref.dtb \ > - loongson-2k1000-ref.dtb > + loongson-2k1000-ref.dtb \ > + loongson-2k2000-ref.dtb > > obj-$(CONFIG_BUILTIN_DTB) += $(addsuffix .dtb.o, $(CONFIG_BUILTIN_DTB_NAME)) > diff --git a/arch/loongarch/boot/dts/loongson-2k2000-ref.dts b/arch/loongarch/boot/dts/loongson-2k2000-ref.dts > new file mode 100644 > index 000000000000..ac6b370800fa > --- /dev/null > +++ b/arch/loongarch/boot/dts/loongson-2k2000-ref.dts > @@ -0,0 +1,73 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * Copyright (C) 2023 Loongson Technology Corporation Limited > + */ > + > +/dts-v1/; > + > +#include "loongson-2k2000.dtsi" > + > +/ { > + compatible = "loongson,ls2k2000-ref", "loongson,ls2k2000"; > + model = "Loongson-2K2000 Reference Board"; > + > + aliases { > + serial0 = &uart0; > + }; > + > + chosen { > + stdout-path = "serial0:115200n8"; > + bootargs = "console=ttyS0,115200"; Nope. Best regards, Krzysztof
On Mon, Dec 18, 2023 at 09:52:58AM +0800, Binbin Zhou wrote: > diff --git a/arch/loongarch/boot/dts/loongson-2k0500.dtsi b/arch/loongarch/boot/dts/loongson-2k0500.dtsi > new file mode 100644 > index 000000000000..1dcb6a20fc6c > --- /dev/null > +++ b/arch/loongarch/boot/dts/loongson-2k0500.dtsi > @@ -0,0 +1,274 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + * Copyright (C) 2023 Loongson Technology Corporation Limited > + */ > + > +/dts-v1/; > + > +#include <dt-bindings/interrupt-controller/irq.h> > + > +/ { > + #address-cells = <2>; > + #size-cells = <2>; > + > + cpus { > + #address-cells = <1>; > + #size-cells = <0>; > + > + cpu-map { > + cluster0 { > + core0 { > + cpu = <&cpu0>; > + }; > + }; > + }; You have only one CPU, this should not be needed. > + > + cpu0: cpu@0 { > + compatible = "loongson,la264"; > + device_type = "cpu"; > + reg = <0x0>; > + clocks = <&cpu_clk>; Is this actually a complete description of the cpu? Are there i/d caches etc? Cheers, Conor.