* [PATCH] arm64: dts: rockchip: helios64: Add support for two PWM fans
@ 2021-05-10 9:06 Uwe Kleine-König
2021-05-14 12:20 ` Heiko Stuebner
0 siblings, 1 reply; 3+ messages in thread
From: Uwe Kleine-König @ 2021-05-10 9:06 UTC (permalink / raw)
To: Heiko Stuebner; +Cc: Rob Herring, devicetree, linux-rockchip, Aditya Prayoga
On the helios64 board the two connectors P6 and P7 are supposed to
power two fans. Add the corresponding pwm-fan devices.
Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org>
---
.../dts/rockchip/rk3399-kobol-helios64.dts | 24 +++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dts b/arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dts
index 39a1d276bd05..1dd9535520b2 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dts
@@ -58,6 +58,20 @@ led-1 {
};
};
+ fan1 {
+ /* fan connected to P7 */
+ compatible = "pwm-fan";
+ pwms = <&pwm0 0 40000 0>;
+ cooling-levels = <0 80 170 255>;
+ };
+
+ fan2 {
+ /* fan connected to P6 */
+ compatible = "pwm-fan";
+ pwms = <&pwm1 0 40000 0>;
+ cooling-levels = <0 80 170 255>;
+ };
+
vcc1v8_sys_s0: vcc1v8-sys-s0 {
compatible = "regulator-fixed";
regulator-name = "vcc1v8_sys_s0";
@@ -352,6 +366,16 @@ &pmu_io_domains {
status = "okay";
};
+&pwm0 {
+ /* pwm-fan on P7 */
+ status = "okay";
+};
+
+&pwm1 {
+ /* pwm-fan on P6 */
+ status = "okay";
+};
+
&sdhci {
bus-width = <8>;
mmc-hs200-1_8v;
--
2.30.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] arm64: dts: rockchip: helios64: Add support for two PWM fans
2021-05-10 9:06 [PATCH] arm64: dts: rockchip: helios64: Add support for two PWM fans Uwe Kleine-König
@ 2021-05-14 12:20 ` Heiko Stuebner
2021-05-16 19:39 ` Uwe Kleine-König
0 siblings, 1 reply; 3+ messages in thread
From: Heiko Stuebner @ 2021-05-14 12:20 UTC (permalink / raw)
To: Uwe Kleine-König
Cc: Heiko Stuebner, devicetree, linux-rockchip, Aditya Prayoga, Rob Herring
On Mon, 10 May 2021 11:06:07 +0200, Uwe Kleine-König wrote:
> On the helios64 board the two connectors P6 and P7 are supposed to
> power two fans. Add the corresponding pwm-fan devices.
Applied, thanks!
[1/1] arm64: dts: rockchip: helios64: Add support for two PWM fans
commit: 271b66414df0b172c936b3cfd1894b7939f84165
Adapted the ordering "fan*" above "led*".
Best regards,
--
Heiko Stuebner <heiko@sntech.de>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] arm64: dts: rockchip: helios64: Add support for two PWM fans
2021-05-14 12:20 ` Heiko Stuebner
@ 2021-05-16 19:39 ` Uwe Kleine-König
0 siblings, 0 replies; 3+ messages in thread
From: Uwe Kleine-König @ 2021-05-16 19:39 UTC (permalink / raw)
To: Heiko Stuebner; +Cc: devicetree, linux-rockchip, Aditya Prayoga, Rob Herring
[-- Attachment #1.1: Type: text/plain, Size: 487 bytes --]
On 5/14/21 2:20 PM, Heiko Stuebner wrote:
> On Mon, 10 May 2021 11:06:07 +0200, Uwe Kleine-König wrote:
>> On the helios64 board the two connectors P6 and P7 are supposed to
>> power two fans. Add the corresponding pwm-fan devices.
>
> Applied, thanks!
>
> [1/1] arm64: dts: rockchip: helios64: Add support for two PWM fans
> commit: 271b66414df0b172c936b3cfd1894b7939f84165
>
> Adapted the ordering "fan*" above "led*".
Oh indeed. Thanks
Best regards
Uwe
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-05-16 19:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-10 9:06 [PATCH] arm64: dts: rockchip: helios64: Add support for two PWM fans Uwe Kleine-König
2021-05-14 12:20 ` Heiko Stuebner
2021-05-16 19:39 ` Uwe Kleine-König
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).