summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVishal Patel <vishal.patel@xilinx.com>2022-05-11 11:52:49 +0200
committerMichal Simek <michal.simek@amd.com>2022-05-18 13:17:54 +0200
commit07f8e78af0637204e5ae33067d6ca17d34b181f6 (patch)
tree633661a8ad28b1b6efb720cce7b073dcc31272cf
parentd59fac2f3f247470708a1aed1af96802a05e0e61 (diff)
downloadu-boot-07f8e78af0637204e5ae33067d6ca17d34b181f6.tar.gz
u-boot-07f8e78af0637204e5ae33067d6ca17d34b181f6.tar.bz2
u-boot-07f8e78af0637204e5ae33067d6ca17d34b181f6.zip
arm64: zynqmp: Add pwm-fan node and fix ttc0 pwm-cells property
Add pwm-fan node to control fan through hwmon and change pwm-cells property to 3 to allow fancontrol utility to function correctly. Signed-off-by: Vishal Patel <vishal.patel@xilinx.com> Signed-off-by: Michal Simek <michal.simek@amd.com> Link: https://lore.kernel.org/r/21b4dfce3e45136a468974ea3dedca03320e27b8.1652262769.git.michal.simek@amd.com
-rw-r--r--arch/arm/dts/zynqmp-sm-k26-revA.dts11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/dts/zynqmp-sm-k26-revA.dts b/arch/arm/dts/zynqmp-sm-k26-revA.dts
index a2c88dc34c..8b2cd512da 100644
--- a/arch/arm/dts/zynqmp-sm-k26-revA.dts
+++ b/arch/arm/dts/zynqmp-sm-k26-revA.dts
@@ -87,12 +87,23 @@
<&xilinx_ams 24>, <&xilinx_ams 25>, <&xilinx_ams 26>,
<&xilinx_ams 27>, <&xilinx_ams 28>, <&xilinx_ams 29>;
};
+
+ pwm-fan {
+ compatible = "pwm-fan";
+ status = "okay";
+ pwms = <&ttc0 2 40000 0>;
+ };
};
&modepin_gpio {
label = "modepin";
};
+&ttc0 {
+ status = "okay";
+ #pwm-cells = <3>;
+};
+
&uart1 { /* MIO36/MIO37 */
status = "okay";
};