summaryrefslogtreecommitdiffstats
path: root/arch/arm64
diff options
context:
space:
mode:
authorUwe Kleine-König <uwe@kleine-koenig.org>2021-05-10 11:06:07 +0200
committerHeiko Stuebner <heiko@sntech.de>2021-05-14 14:17:17 +0200
commit271b66414df0b172c936b3cfd1894b7939f84165 (patch)
treedecce3393785b0376a93a7b8e5fe5427b3c8946f /arch/arm64
parentb82f8e2992534aab0fa762a37376be30df263701 (diff)
downloadlinux-stable-271b66414df0b172c936b3cfd1894b7939f84165.tar.gz
linux-stable-271b66414df0b172c936b3cfd1894b7939f84165.tar.bz2
linux-stable-271b66414df0b172c936b3cfd1894b7939f84165.zip
arm64: dts: rockchip: Add support for two PWM fans on helios64
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> Link: https://lore.kernel.org/r/20210510090607.970145-1-uwe@kleine-koenig.org Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Diffstat (limited to 'arch/arm64')
-rw-r--r--arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dts24
1 files changed, 24 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dts b/arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dts
index 19485b552bc4..9d4a0885fd12 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3399-kobol-helios64.dts
@@ -40,6 +40,20 @@
#clock-cells = <0>;
};
+ 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>;
+ };
+
leds {
compatible = "gpio-leds";
pinctrl-names = "default";
@@ -352,6 +366,16 @@
status = "okay";
};
+&pwm0 {
+ /* pwm-fan on P7 */
+ status = "okay";
+};
+
+&pwm1 {
+ /* pwm-fan on P6 */
+ status = "okay";
+};
+
&sdhci {
bus-width = <8>;
mmc-hs200-1_8v;