LoongArch: dts: Add more support device ndoes to Loongson-2K
Subsystems (2)
cover LoongArch: dts: Add more support device ndoes to Loongson-2K
Hi all:
Now, more Loongson-2K related deviers are supported, this patchset add these device nodes to dts files.
Thanks.
Binbin Zhou (2):
LoongArch: dts: Add new supported device nodes to Loongson-2K0500
LoongArch: dts: Add new supported device nodes to Loongson-2K2000
.../boot/dts/loongson-2k0500-ref.dts | 4 + arch/loongarch/boot/dts/loongson-2k0500.dtsi | 81 ++++++++++++++++++- .../boot/dts/loongson-2k2000-ref.dts | 4 + arch/loongarch/boot/dts/loongson-2k2000.dtsi | 44 +++++++++- 4 files changed, 126 insertions(+), 7 deletions(-)
Signature · 1 line
2.43.0
PATCH 1/2 LoongArch: dts: Add new supported device nodes to Loongson-2K0500
By now, more Loongson-2K0500 related drivers are supported, such as clock controller, thermal controller, and dma controller. Now we add these device nodes to the Loongson-2K0500 dts file.
--- .../boot/dts/loongson-2k0500-ref.dts | 4 + arch/loongarch/boot/dts/loongson-2k0500.dtsi | 81 ++++++++++++++++++- 2 files changed, 82 insertions(+), 3 deletions(-)
arch/loongarch/boot/dts/loongson-2k0500-ref.dts +4 -0
@@ -41,6 +41,10 @@ linux,cma { }; }; +&clk { + status = "okay"; +}; + &gmac0 { status = "okay";
arch/loongarch/boot/dts/loongson-2k0500.dtsi +78 -3
116 lines not on this page · raw message
Signature · 1 line
2.43.0
Re: [PATCH v1 1/2] LoongArch: dts: Add new supported device nodes to Loongson-2K0500
Quoted 15 lines · Binbin Zhou
By now, more Loongson-2K0500 related drivers are supported, such as clock controller, thermal controller, and dma controller. Now we add these device nodes to the Loongson-2K0500 dts file.
Signed-off-by Binbin Zhou <[email protected]>--- .../boot/dts/loongson-2k0500-ref.dts | 4 + arch/loongarch/boot/dts/loongson-2k0500.dtsi | 81 ++++++++++++++++++- 2 files changed, 82 insertions(+), 3 deletions(-)arch/loongarch/boot/dts/loongson-2k0500-ref.dts +0
-0
arch/loongarch/boot/dts/loongson-2k0500-ref.dts linux,cma { · line 46
Quoted 6 lines
arch/loongarch/boot/dts/loongson-2k0500-ref.dts +3
-0@@ -41,6 +41,10 @@ linux,cma { }; }; +&clk { + status = "okay"; +};
For most devices, doing the "disable in dtsi, enable in dts" approach is the right thing to do, but for things like clock-controllers or architectural interrupt controllers that no-one is going to disable since they'll not have a usable system otherwise, it's not needed.
Cheers,
Conor.
Re: [PATCH v1 1/2] LoongArch: dts: Add new supported device nodes to Loongson-2K0500
Quoted 20 lines · Conor Dooley
Quoted 18 lines · Binbin Zhou
By now, more Loongson-2K0500 related drivers are supported, such as clock controller, thermal controller, and dma controller. Now we add these device nodes to the Loongson-2K0500 dts file.
Signed-off-by Binbin Zhou <[email protected]>--- .../boot/dts/loongson-2k0500-ref.dts | 4 + arch/loongarch/boot/dts/loongson-2k0500.dtsi | 81 ++++++++++++++++++- 2 files changed, 82 insertions(+), 3 deletions(-)arch/loongarch/boot/dts/loongson-2k0500-ref.dts +0
-0@@ -41,6 +41,10 @@ linux,cma { }; };
Quoted 9 lines
arch/loongarch/boot/dts/loongson-2k0500-ref.dts linux,cma { · line 46
Quoted 3 lines
arch/loongarch/boot/dts/loongson-2k0500-ref.dts +3
-0+&clk { + status = "okay"; +};For most devices, doing the "disable in dtsi, enable in dts" approach is the right thing to do, but for things like clock-controllers or architectural interrupt controllers that no-one is going to disable since they'll not have a usable system otherwise, it's not needed.
Hi Conor:
Yes, as you said, it is not needed here. I will check it again.
Thanks.
Binbin
Quoted 2 lines
Cheers,
Conor.
PATCH 2/2 LoongArch: dts: Add new supported device nodes to Loongson-2K2000
In reply to Binbin ZhouBy now, more Loongson-2K2000 related drivers are supported, such as clock controller and thermal controller.
Now we add these device nodes to the Loongson-2K2000 dts file.
--- .../boot/dts/loongson-2k2000-ref.dts | 4 ++ arch/loongarch/boot/dts/loongson-2k2000.dtsi | 44 +++++++++++++++++-- 2 files changed, 44 insertions(+), 4 deletions(-)
arch/loongarch/boot/dts/loongson-2k2000-ref.dts +4 -0
@@ -39,6 +39,10 @@ linux,cma { }; }; +&clk { + status = "okay"; +}; + &sata { status = "okay"; };
arch/loongarch/boot/dts/loongson-2k2000.dtsi +40 -4
85 lines not on this page · raw message
Signature · 1 line
2.43.0