Skip to contentSkip to conversation

arm: dts: nuvoton: gsj: Enable Nuvoton fan filter

PATCH In review Willy Tu 2 participants 5 messages Apr 24, 2021 – May 27, 2021 Device tree bindings

lore
Share & tools
lore

Willy Tu

author
#0 lore raw

PATCH 1/1 arm: dts: nuvoton: gsj: Enable Nuvoton fan filter

gsj platform sometimes also see low fan speed issue that can be partly prevented with this fan filter.

---
 arch/arm/boot/dts/nuvoton-npcm730-gsj.dts | 3 +++
 1 file changed, 3 insertions(+)
arch/arm/boot/dts/nuvoton-npcm730-gsj.dts +3 -0
index 3ff116aaacb3..86facfc08c6e 100644
@@ -408,18 +408,21 @@ fan@0 {
 		reg = <0x00>;
 		fan-tach-ch = /bits/ 8 <0x00 0x01>;
 		cooling-levels = <127 255>;
+		fan_filter_en;
 	};
 
 	fan@1 {
 		reg = <0x01>;
 		fan-tach-ch = /bits/ 8 <0x02 0x03>;
 		cooling-levels = /bits/ 8 <127 255>;
+		fan_filter_en;
 	};
 
 	fan@2 {
 		reg = <0x02>;
 		fan-tach-ch = /bits/ 8 <0x04 0x05>;
 		cooling-levels = /bits/ 8 <127 255>;
+		fan_filter_en;
 	};
 };
 

--
2.31.1.498.g6c1eba8ee3d-goog

author
#1 lore raw

ping

Quoted 39 lines · Willy Tu

gsj platform sometimes also see low fan speed issue that can be partly prevented with this fan filter.

---
 arch/arm/boot/dts/nuvoton-npcm730-gsj.dts | 3 +++
 1 file changed, 3 insertions(+)
arch/arm/boot/dts/nuvoton-npcm730-gsj.dts +3 -1
index 3ff116aaacb3..86facfc08c6e 100644
@@ -408,18 +408,21 @@ fan@0 {
                reg = <0x00>;
                fan-tach-ch = /bits/ 8 <0x00 0x01>;
                cooling-levels = <127 255>;
+               fan_filter_en;
        };
 
        fan@1 {
                reg = <0x01>;
                fan-tach-ch = /bits/ 8 <0x02 0x03>;
                cooling-levels = /bits/ 8 <127 255>;
+               fan_filter_en;
        };
 
        fan@2 {
                reg = <0x02>;
                fan-tach-ch = /bits/ 8 <0x04 0x05>;
                cooling-levels = /bits/ 8 <127 255>;
+               fan_filter_en;
        };
 };
 
--

2.31.1.498.g6c1eba8ee3d-goog

#2 lore raw
Quoted 7 lines · Willy Tu

ping

Quoted 3 lines · Willy Tu

gsj platform sometimes also see low fan speed issue that can be partly prevented with this fan filter.

This property is not supported by the kernel, so it will not do anything. Do you intend to submit driver support?

Quoted 35 lines
Quoted 35 lines
---
 arch/arm/boot/dts/nuvoton-npcm730-gsj.dts | 3 +++
 1 file changed, 3 insertions(+)
arch/arm/boot/dts/nuvoton-npcm730-gsj.dts +3 -1
index 3ff116aaacb3..86facfc08c6e 100644
@@ -408,18 +408,21 @@ fan@0 {
                reg = <0x00>;
                fan-tach-ch = /bits/ 8 <0x00 0x01>;
                cooling-levels = <127 255>;
+               fan_filter_en;
        };
 
        fan@1 {
                reg = <0x01>;
                fan-tach-ch = /bits/ 8 <0x02 0x03>;
                cooling-levels = /bits/ 8 <127 255>;
+               fan_filter_en;
        };
 
        fan@2 {
                reg = <0x02>;
                fan-tach-ch = /bits/ 8 <0x04 0x05>;
                cooling-levels = /bits/ 8 <127 255>;
+               fan_filter_en;
        };
 };
 
--

2.31.1.498.g6c1eba8ee3d-goog

author
#3 lore raw

ah, good catch.

I didn't realize that was the case. It looks like it is up to Nuvoton to upstream it.

https://github.com/Nuvoton-Israel/linux/blob/NPCM-5.10-OpenBMC/drivers/hwmon/npcm750-pwm-fan.c#L800

Or maybe I can just make the change for them? Not sure.

Willy Tu

Quoted 49 lines · Joel Stanley
Quoted 7 lines · Willy Tu

ping

Quoted 3 lines · Willy Tu

gsj platform sometimes also see low fan speed issue that can be partly prevented with this fan filter.

This property is not supported by the kernel, so it will not do anything. Do you intend to submit driver support?

Quoted 7 lines

Review

Quoted 7 lines
---
 arch/arm/boot/dts/nuvoton-npcm730-gsj.dts | 3 +++
 1 file changed, 3 insertions(+)
(quoted diff) +0 -0

b/arch/arm/boot/dts/nuvoton-npcm730-gsj.dts

Quoted 28 lines
Quoted 28 lines

index 3ff116aaacb3..86facfc08c6e 100644

arch/arm/boot/dts/nuvoton-npcm730-gsj.dts +3 -1
@@ -408,18 +408,21 @@ fan@0 {
                reg = <0x00>;
                fan-tach-ch = /bits/ 8 <0x00 0x01>;
                cooling-levels = <127 255>;
+               fan_filter_en;
        };
 
        fan@1 {
                reg = <0x01>;
                fan-tach-ch = /bits/ 8 <0x02 0x03>;
                cooling-levels = /bits/ 8 <127 255>;
+               fan_filter_en;
        };
 
        fan@2 {
                reg = <0x02>;
                fan-tach-ch = /bits/ 8 <0x04 0x05>;
                cooling-levels = /bits/ 8 <127 255>;
+               fan_filter_en;
        };
 };
 
--

2.31.1.498.g6c1eba8ee3d-goog

#4 lore raw

Hi WIlly,

I know that Google's mail clients make this harder than it should be, but please do not top post when replying on the mailing list.

Quoted 8 lines · Willy Tu

ah, good catch.

I didn't realize that was the case. It looks like it is up to Nuvoton to upstream it.

https://github.com/Nuvoton-Israel/linux/blob/NPCM-5.10-OpenBMC/drivers/hwmon/npcm750-pwm-fan.c#L800

Or maybe I can just make the change for them? Not sure.

I suggest sending a patch to mainline to support the features that Nuvoton have in that tree.

Cheers,

Joel

Quoted 52 lines

Willy Tu

Quoted 48 lines · Joel Stanley
Quoted 7 lines · Willy Tu

ping

Quoted 3 lines · Willy Tu

gsj platform sometimes also see low fan speed issue that can be partly prevented with this fan filter.

This property is not supported by the kernel, so it will not do anything. Do you intend to submit driver support?

Quoted 35 lines
Quoted 35 lines
---
 arch/arm/boot/dts/nuvoton-npcm730-gsj.dts | 3 +++
 1 file changed, 3 insertions(+)
arch/arm/boot/dts/nuvoton-npcm730-gsj.dts +3 -1
index 3ff116aaacb3..86facfc08c6e 100644
@@ -408,18 +408,21 @@ fan@0 {
                reg = <0x00>;
                fan-tach-ch = /bits/ 8 <0x00 0x01>;
                cooling-levels = <127 255>;
+               fan_filter_en;
        };
 
        fan@1 {
                reg = <0x01>;
                fan-tach-ch = /bits/ 8 <0x02 0x03>;
                cooling-levels = /bits/ 8 <127 255>;
+               fan_filter_en;
        };
 
        fan@2 {
                reg = <0x02>;
                fan-tach-ch = /bits/ 8 <0x04 0x05>;
                cooling-levels = /bits/ 8 <127 255>;
+               fan_filter_en;
        };
 };
 
--

2.31.1.498.g6c1eba8ee3d-goog