* [PATCH 0/2] Label the fans on Kobol Helios64
@ 2026-10-18 4:54 Igor Velkov via B4 Relay
2026-10-18 4:54 ` [PATCH 1/2] dt-bindings: hwmon: pwm-fan: Reference the common fan schema Igor Velkov via B4 Relay
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Igor Velkov via B4 Relay @ 2026-10-18 4:54 UTC (permalink / raw)
To: Guenter Roeck, Jean Delvare, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Heiko Stuebner
Cc: linux-hwmon, devicetree, linux-arm-kernel, linux-rockchip,
linux-kernel, Igor Velkov
Helios64 has two identical PWM fans, and userspace can tell them apart
only by their platform device names. Patch 1 makes pwm-fan.yaml
reference fan-common.yaml, as Rob suggested, which also allows label;
the hwmon core already exposes it as the label attribute. Patch 2 names
the fans after their headers, P6 and P7.
To: Guenter Roeck <linux@roeck-us.net>
To: Jean Delvare <jdelvare@suse.com>
To: Rob Herring <robh@kernel.org>
To: Krzysztof Kozlowski <krzk+dt@kernel.org>
To: Conor Dooley <conor+dt@kernel.org>
To: Heiko Stuebner <heiko@sntech.de>
Cc: linux-hwmon@vger.kernel.org
Cc: devicetree@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-rockchip@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Igor Velkov <iav@iav.lv>
---
Igor Velkov (2):
dt-bindings: hwmon: pwm-fan: Reference the common fan schema
arm64: dts: rockchip: Label the fans on Kobol Helios64
.../devicetree/bindings/hwmon/pwm-fan.yaml | 22 +++++-----------------
.../boot/dts/rockchip/rk3399-kobol-helios64.dts | 4 ++--
2 files changed, 7 insertions(+), 19 deletions(-)
---
base-commit: d2abcbb905b0e4b2e06b257fa1e5bcf4faa6dbda
change-id: 20261018-helios64-fan-label-a173ae71bebe
Best regards,
--
Igor Velkov <iav@iav.lv>
^ permalink raw reply [flat|nested] 6+ messages in thread* [PATCH 1/2] dt-bindings: hwmon: pwm-fan: Reference the common fan schema
2026-10-18 4:54 [PATCH 0/2] Label the fans on Kobol Helios64 Igor Velkov via B4 Relay
@ 2026-10-18 4:54 ` Igor Velkov via B4 Relay
2026-10-30 15:38 ` Rob Herring (Arm)
2026-10-30 19:52 ` Guenter Roeck
2026-10-18 4:55 ` [PATCH 2/2] arm64: dts: rockchip: Label the fans on Kobol Helios64 Igor Velkov via B4 Relay
2026-11-01 22:16 ` (subset) [PATCH 0/2] " Heiko Stuebner
2 siblings, 2 replies; 6+ messages in thread
From: Igor Velkov via B4 Relay @ 2026-10-18 4:54 UTC (permalink / raw)
To: Guenter Roeck, Jean Delvare, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Heiko Stuebner
Cc: linux-hwmon, devicetree, linux-arm-kernel, linux-rockchip,
linux-kernel, Igor Velkov
From: Igor Velkov <iav@iav.lv>
pwm-fan predates fan-common.yaml and repeats several of its properties.
Reference the common schema, drop the duplicated properties and keep
only the constraints specific to PWM fans.
This also allows label, which the hwmon core exposes as the label
attribute.
Link: https://lore.kernel.org/r/20250106173805.GA501301-robh@kernel.org
Assisted-by: LLM
Signed-off-by: Igor Velkov <iav@iav.lv>
---
.../devicetree/bindings/hwmon/pwm-fan.yaml | 22 +++++-----------------
1 file changed, 5 insertions(+), 17 deletions(-)
diff --git a/Documentation/devicetree/bindings/hwmon/pwm-fan.yaml b/Documentation/devicetree/bindings/hwmon/pwm-fan.yaml
index 6a24851fd80d..b5407ed52976 100644
--- a/Documentation/devicetree/bindings/hwmon/pwm-fan.yaml
+++ b/Documentation/devicetree/bindings/hwmon/pwm-fan.yaml
@@ -10,19 +10,18 @@ maintainers:
- Jean Delvare <jdelvare@suse.com>
- Guenter Roeck <linux@roeck-us.net>
+allOf:
+ - $ref: fan-common.yaml#
+
properties:
compatible:
const: pwm-fan
cooling-levels:
description: PWM duty cycle values corresponding to thermal cooling states.
- $ref: /schemas/types.yaml#/definitions/uint32-array
items:
maximum: 255
- fan-supply:
- description: Phandle to the regulator that provides power to the fan.
-
interrupts:
description:
This contains an interrupt specifier for each fan tachometer output
@@ -51,26 +50,14 @@ properties:
Time to wait in microseconds after start when stopped.
pulses-per-revolution:
- description:
- Define the number of pulses per fan revolution for each tachometer
- input as an integer.
- $ref: /schemas/types.yaml#/definitions/uint32
minimum: 1
- maximum: 4
default: 2
- pwms:
- description: The PWM that is used to control the fan.
- maxItems: 1
-
- "#cooling-cells":
- const: 2
-
required:
- compatible
- pwms
-additionalProperties: false
+unevaluatedProperties: false
examples:
- |
@@ -114,4 +101,5 @@ examples:
interrupt-parent = <&gpio5>;
interrupts = <1 IRQ_TYPE_EDGE_FALLING>;
pulses-per-revolution = <2>;
+ label = "CPU fan";
};
--
2.43.0
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [PATCH 1/2] dt-bindings: hwmon: pwm-fan: Reference the common fan schema
2026-10-18 4:54 ` [PATCH 1/2] dt-bindings: hwmon: pwm-fan: Reference the common fan schema Igor Velkov via B4 Relay
@ 2026-10-30 15:38 ` Rob Herring (Arm)
2026-10-30 19:52 ` Guenter Roeck
1 sibling, 0 replies; 6+ messages in thread
From: Rob Herring (Arm) @ 2026-10-30 15:38 UTC (permalink / raw)
To: Igor Velkov
Cc: Heiko Stuebner, linux-hwmon, Krzysztof Kozlowski, Jean Delvare,
linux-kernel, linux-rockchip, Guenter Roeck, linux-arm-kernel,
Conor Dooley, devicetree
On Sun, 18 Oct 2026 07:54:59 +0300, Igor Velkov wrote:
> pwm-fan predates fan-common.yaml and repeats several of its properties.
> Reference the common schema, drop the duplicated properties and keep
> only the constraints specific to PWM fans.
>
> This also allows label, which the hwmon core exposes as the label
> attribute.
>
> Link: https://lore.kernel.org/r/20250106173805.GA501301-robh@kernel.org
> Assisted-by: LLM
> Signed-off-by: Igor Velkov <iav@iav.lv>
> ---
> .../devicetree/bindings/hwmon/pwm-fan.yaml | 22 +++++-----------------
> 1 file changed, 5 insertions(+), 17 deletions(-)
>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 1/2] dt-bindings: hwmon: pwm-fan: Reference the common fan schema
2026-10-18 4:54 ` [PATCH 1/2] dt-bindings: hwmon: pwm-fan: Reference the common fan schema Igor Velkov via B4 Relay
2026-10-30 15:38 ` Rob Herring (Arm)
@ 2026-10-30 19:52 ` Guenter Roeck
1 sibling, 0 replies; 6+ messages in thread
From: Guenter Roeck @ 2026-10-30 19:52 UTC (permalink / raw)
To: Igor Velkov
Cc: Jean Delvare, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Heiko Stuebner, linux-hwmon, devicetree, linux-arm-kernel,
linux-rockchip, linux-kernel
On Sun, Oct 18, 2026 at 07:54:59AM +0300, Igor Velkov wrote:
> From: Igor Velkov <iav@iav.lv>
>
> pwm-fan predates fan-common.yaml and repeats several of its properties.
> Reference the common schema, drop the duplicated properties and keep
> only the constraints specific to PWM fans.
>
> This also allows label, which the hwmon core exposes as the label
> attribute.
>
> Link: https://lore.kernel.org/r/20250106173805.GA501301-robh@kernel.org
> Signed-off-by: Igor Velkov <iav@iav.lv>
> Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Applied.
Thanks,
Guenter
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 2/2] arm64: dts: rockchip: Label the fans on Kobol Helios64
2026-10-18 4:54 [PATCH 0/2] Label the fans on Kobol Helios64 Igor Velkov via B4 Relay
2026-10-18 4:54 ` [PATCH 1/2] dt-bindings: hwmon: pwm-fan: Reference the common fan schema Igor Velkov via B4 Relay
@ 2026-10-18 4:55 ` Igor Velkov via B4 Relay
2026-11-01 22:16 ` (subset) [PATCH 0/2] " Heiko Stuebner
2 siblings, 0 replies; 6+ messages in thread
From: Igor Velkov via B4 Relay @ 2026-10-18 4:55 UTC (permalink / raw)
To: Guenter Roeck, Jean Delvare, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Heiko Stuebner
Cc: linux-hwmon, devicetree, linux-arm-kernel, linux-rockchip,
linux-kernel, Igor Velkov
From: Igor Velkov <iav@iav.lv>
Name each fan after the header it plugs into, so that userspace can
tell the two apart through the hwmon label attribute.
Assisted-by: LLM
Signed-off-by: Igor Velkov <iav@iav.lv>
---
arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dts | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dts b/arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dts
index 63ad79b4c8ac..a206827903e9 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dts
@@ -70,8 +70,8 @@ clkin_gmac: external-gmac-clock {
};
fan1 {
- /* fan connected to P7 */
compatible = "pwm-fan";
+ label = "P7";
pwms = <&pwm0 0 40000 0>;
cooling-levels = <0 80 170 255>;
interrupt-parent = <&gpio4>;
@@ -81,8 +81,8 @@ fan1 {
};
fan2 {
- /* fan connected to P6 */
compatible = "pwm-fan";
+ label = "P6";
pwms = <&pwm1 0 40000 0>;
cooling-levels = <0 80 170 255>;
interrupt-parent = <&gpio4>;
--
2.43.0
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: (subset) [PATCH 0/2] Label the fans on Kobol Helios64
2026-10-18 4:54 [PATCH 0/2] Label the fans on Kobol Helios64 Igor Velkov via B4 Relay
2026-10-18 4:54 ` [PATCH 1/2] dt-bindings: hwmon: pwm-fan: Reference the common fan schema Igor Velkov via B4 Relay
2026-10-18 4:55 ` [PATCH 2/2] arm64: dts: rockchip: Label the fans on Kobol Helios64 Igor Velkov via B4 Relay
@ 2026-11-01 22:16 ` Heiko Stuebner
2 siblings, 0 replies; 6+ messages in thread
From: Heiko Stuebner @ 2026-11-01 22:16 UTC (permalink / raw)
To: Guenter Roeck, Jean Delvare, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Igor Velkov
Cc: Heiko Stuebner, linux-hwmon, devicetree, linux-arm-kernel,
linux-rockchip, linux-kernel
On Sun, 18 Oct 2026 07:54:58 +0300, Igor Velkov wrote:
> Helios64 has two identical PWM fans, and userspace can tell them apart
> only by their platform device names. Patch 1 makes pwm-fan.yaml
> reference fan-common.yaml, as Rob suggested, which also allows label;
> the hwmon core already exposes it as the label attribute. Patch 2 names
> the fans after their headers, P6 and P7.
>
> To: Guenter Roeck <linux@roeck-us.net>
> To: Jean Delvare <jdelvare@suse.com>
> To: Rob Herring <robh@kernel.org>
> To: Krzysztof Kozlowski <krzk+dt@kernel.org>
> To: Conor Dooley <conor+dt@kernel.org>
> To: Heiko Stuebner <heiko@sntech.de>
> Cc: linux-hwmon@vger.kernel.org
> Cc: devicetree@vger.kernel.org
> Cc: linux-arm-kernel@lists.infradead.org
> Cc: linux-rockchip@lists.infradead.org
> Cc: linux-kernel@vger.kernel.org
>
> [...]
Applied, thanks!
[2/2] arm64: dts: rockchip: Label the fans on Kobol Helios64
commit: f80a26e10a39dd51061513db96fb525244e5e890
Best regards,
--
Heiko Stuebner <heiko@sntech.de>
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2026-11-01 22:16 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-18 4:54 [PATCH 0/2] Label the fans on Kobol Helios64 Igor Velkov via B4 Relay
2026-10-18 4:54 ` [PATCH 1/2] dt-bindings: hwmon: pwm-fan: Reference the common fan schema Igor Velkov via B4 Relay
2026-10-30 15:38 ` Rob Herring (Arm)
2026-10-30 19:52 ` Guenter Roeck
2026-10-18 4:55 ` [PATCH 2/2] arm64: dts: rockchip: Label the fans on Kobol Helios64 Igor Velkov via B4 Relay
2026-11-01 22:16 ` (subset) [PATCH 0/2] " Heiko Stuebner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®