Modify fan control device tree nodes to enable Yorktown
- Yorktown uses different GPIO for the fan control than Enterprise, so
remove the pin definition from the -som tree, and set to disabled. In
the -phanbell and -yorktown trees, set the gpio and set status to okay.
Change-Id: Ifb2d38d08fa23b7338a31b38ff6a10f177d46c55
diff --git a/arch/arm64/boot/dts/freescale/fsl-imx8mq-phanbell.dts b/arch/arm64/boot/dts/freescale/fsl-imx8mq-phanbell.dts
index 8df4540..f942685 100644
--- a/arch/arm64/boot/dts/freescale/fsl-imx8mq-phanbell.dts
+++ b/arch/arm64/boot/dts/freescale/fsl-imx8mq-phanbell.dts
@@ -56,6 +56,11 @@
busfreq {
status = "disabled";
};
+
+ fan: gpio_fan {
+ gpios = <&gpio3 5 GPIO_ACTIVE_LOW>;
+ status = "okay";
+ };
};
&iomuxc {
diff --git a/arch/arm64/boot/dts/freescale/fsl-imx8mq-som.dtsi b/arch/arm64/boot/dts/freescale/fsl-imx8mq-som.dtsi
index 0733ea7..6fefcb7 100644
--- a/arch/arm64/boot/dts/freescale/fsl-imx8mq-som.dtsi
+++ b/arch/arm64/boot/dts/freescale/fsl-imx8mq-som.dtsi
@@ -71,9 +71,9 @@
fan: gpio_fan {
compatible = "gpio-fan";
- gpios = <&gpio3 5 GPIO_ACTIVE_LOW>;
gpio-fan,speed-map = <0 0>, <8600 1>;
#cooling-cells = <2>;
+ status = "disabled";
};
};
diff --git a/arch/arm64/boot/dts/freescale/fsl-imx8mq-yorktown.dts b/arch/arm64/boot/dts/freescale/fsl-imx8mq-yorktown.dts
index 5fa406c..036ddd7 100644
--- a/arch/arm64/boot/dts/freescale/fsl-imx8mq-yorktown.dts
+++ b/arch/arm64/boot/dts/freescale/fsl-imx8mq-yorktown.dts
@@ -26,6 +26,11 @@
google,model = "edgetpu-audio-card";
status = "okay";
};
+
+ fan: gpio_fan {
+ gpios = <&gpio3 13 GPIO_ACTIVE_LOW>;
+ status = "okay";
+ };
};