Skip to contentSkip to conversation

LoongArch: dts: Add more support device ndoes to Loongson-2K

PATCH Superseded Binbin Zhou 3 participants 5 messages May 8, 2024 – May 9, 2024

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

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
index 8aefb0c12672..62dad6297e82 100644
@@ -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
#2 lore raw

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.

---
 .../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
index 8aefb0c12672..62dad6297e82 100644

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.

#3 lore raw

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.

---
 .../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
index 8aefb0c12672..62dad6297e82 100644
@@ -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.

#4 lore raw

PATCH 2/2 LoongArch: dts: Add new supported device nodes to Loongson-2K2000

In reply to Binbin Zhou

By 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
index 74b99bd234cc..52daf41d7af4 100644
@@ -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