Skip to contentSkip to conversation

ARM: dts: am57xx-beagle-x15: Add GPIO controlled fan node

PATCH Superseded Nishanth Menon 3 participants 6 messages Jan 5, 2015 – Jan 8, 2015 Device tree bindings

lore
Share & tools
lore
#0 lore raw

PATCH v4 1/1 ARM: dts: am57xx-beagle-x15: Add GPIO controlled fan node

TPS gpio now controls a 5v 500mA TL5209 regulator which may be supply a fan (such as AFB02505HHB) over J1 connector for various purposes. Provide device tree node to enable the same.

---
V4: Change format of the speed-map used.
V3: https://patchwork.kernel.org/patch/5562121/
V2: https://patchwork.kernel.org/patch/5445111/
V1: https://patchwork.kernel.org/patch/5444911/

Enable and disable can be controlled by (post the RPM, it finds closest match - even a 1 will do)

echo '13000' > /sys/class/hwmon/hwmon0/fan1_target and
echo '0' > /sys/class/hwmon/hwmon0/fan1_target

Test log: http://slexy.org/view/s2T0ajh46z

requires CONFIG_GPIO_PALMAS and CONFIG_SENSORS_GPIO_FAN to be operational Applies on v3.19-rc1

 arch/arm/boot/dts/am57xx-beagle-x15.dts |   14 ++++++++++++++
 1 file changed, 14 insertions(+)
arch/arm/boot/dts/am57xx-beagle-x15.dts +14 -0
index 6c2e8e4..c5d4cea 100644
@@ -80,6 +80,14 @@
 			default-state = "off";
 		};
 	};
+
+	gpio_fan: gpio_fan {
+		/* Based on 5v 500mA AFB02505HHB */
+		compatible = "gpio-fan";
+		gpios =  <&tps659038_gpio 1 GPIO_ACTIVE_HIGH>;
+		gpio-fan,speed-map = <0     0>,
+				     <13000 1>;
+	};
 };
 
 &dra7_pmx_core {
@@ -394,6 +402,12 @@
 			wakeup-source;
 			ti,palmas-long-press-seconds = <12>;
 		};
+
+		tps659038_gpio: tps659038_gpio {
+			compatible = "ti,palmas-gpio";
+			gpio-controller;
+			#gpio-cells = <2>;
+		};
 	};
 
 	tmp102: tmp102 at 48 {
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH v4 1/1 ARM: dts: am57xx-beagle-x15: Add GPIO controlled fan node

Quoted 5 lines · Nishanth Menon

TPS gpio now controls a 5v 500mA TL5209 regulator which may be supply a fan (such as AFB02505HHB) over J1 connector for various purposes. Provide device tree node to enable the same.

have already reviewed this one previously:

Quoted 60 lines

---
V4: Change format of the speed-map used.
V3: https://patchwork.kernel.org/patch/5562121/
V2: https://patchwork.kernel.org/patch/5445111/
V1: https://patchwork.kernel.org/patch/5444911/

Enable and disable can be controlled by (post the RPM, it finds closest match - even a 1 will do)

echo '13000' > /sys/class/hwmon/hwmon0/fan1_target and
echo '0' > /sys/class/hwmon/hwmon0/fan1_target

Test log: http://slexy.org/view/s2T0ajh46z

requires CONFIG_GPIO_PALMAS and CONFIG_SENSORS_GPIO_FAN to be operational Applies on v3.19-rc1

 arch/arm/boot/dts/am57xx-beagle-x15.dts |   14 ++++++++++++++
 1 file changed, 14 insertions(+)
arch/arm/boot/dts/am57xx-beagle-x15.dts +14 -0
index 6c2e8e4..c5d4cea 100644
@@ -80,6 +80,14 @@
 			default-state = "off";
 		};
 	};
+
+	gpio_fan: gpio_fan {
+		/* Based on 5v 500mA AFB02505HHB */
+		compatible = "gpio-fan";
+		gpios =  <&tps659038_gpio 1 GPIO_ACTIVE_HIGH>;
+		gpio-fan,speed-map = <0     0>,
+				     <13000 1>;
+	};
 };
 
 &dra7_pmx_core {
@@ -394,6 +402,12 @@
 			wakeup-source;
 			ti,palmas-long-press-seconds = <12>;
 		};
+
+		tps659038_gpio: tps659038_gpio {
+			compatible = "ti,palmas-gpio";
+			gpio-controller;
+			#gpio-cells = <2>;
+		};
 	};
 
 	tmp102: tmp102 at 48 {
Signature · 6 lines
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Signature · 8 lines
balbi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20150105/c8a96ffe/attachment.sig>
#2 lore raw

PATCH v4 1/1 ARM: dts: am57xx-beagle-x15: Add GPIO controlled fan node

Quoted 10 lines · Felipe Balbi
Quoted 5 lines · Nishanth Menon

TPS gpio now controls a 5v 500mA TL5209 regulator which may be supply a fan (such as AFB02505HHB) over J1 connector for various purposes. Provide device tree node to enable the same.

have already reviewed this one previously:

Applying this into omap-for-v3.20/dt instead of the earlier version thanks.

Tony

Quoted 63 lines
Quoted 60 lines

---
V4: Change format of the speed-map used.
V3: https://patchwork.kernel.org/patch/5562121/
V2: https://patchwork.kernel.org/patch/5445111/
V1: https://patchwork.kernel.org/patch/5444911/

Enable and disable can be controlled by (post the RPM, it finds closest match - even a 1 will do)

echo '13000' > /sys/class/hwmon/hwmon0/fan1_target and
echo '0' > /sys/class/hwmon/hwmon0/fan1_target

Test log: http://slexy.org/view/s2T0ajh46z

requires CONFIG_GPIO_PALMAS and CONFIG_SENSORS_GPIO_FAN to be operational Applies on v3.19-rc1

 arch/arm/boot/dts/am57xx-beagle-x15.dts |   14 ++++++++++++++
 1 file changed, 14 insertions(+)
arch/arm/boot/dts/am57xx-beagle-x15.dts +14 -0
index 6c2e8e4..c5d4cea 100644
@@ -80,6 +80,14 @@
 			default-state = "off";
 		};
 	};
+
+	gpio_fan: gpio_fan {
+		/* Based on 5v 500mA AFB02505HHB */
+		compatible = "gpio-fan";
+		gpios =  <&tps659038_gpio 1 GPIO_ACTIVE_HIGH>;
+		gpio-fan,speed-map = <0     0>,
+				     <13000 1>;
+	};
 };
 
 &dra7_pmx_core {
@@ -394,6 +402,12 @@
 			wakeup-source;
 			ti,palmas-long-press-seconds = <12>;
 		};
+
+		tps659038_gpio: tps659038_gpio {
+			compatible = "ti,palmas-gpio";
+			gpio-controller;
+			#gpio-cells = <2>;
+		};
 	};
 
 	tmp102: tmp102 at 48 {
Signature · 6 lines
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Signature · 1 line
balbi
#3 lore raw

PATCH v4 1/1 ARM: dts: am57xx-beagle-x15: Add GPIO controlled fan node

In reply to Nishanth Menon
Quoted 14 lines · Nishanth Menon

TPS gpio now controls a 5v 500mA TL5209 regulator which may be supply a fan (such as AFB02505HHB) over J1 connector for various purposes. Provide device tree node to enable the same.

---
V4: Change format of the speed-map used.
V3: https://patchwork.kernel.org/patch/5562121/
V2: https://patchwork.kernel.org/patch/5445111/
V1: https://patchwork.kernel.org/patch/5444911/

Enable and disable can be controlled by (post the RPM, it finds closest match - even a 1 will do)

Quoted 7 lines

echo '13000' > /sys/class/hwmon/hwmon0/fan1_target and
echo '0' > /sys/class/hwmon/hwmon0/fan1_target

Test log: http://slexy.org/view/s2T0ajh46z

requires CONFIG_GPIO_PALMAS and CONFIG_SENSORS_GPIO_FAN to be operational

oh, perhaps add these as modules to omap2plus_defconfig ?

Signature · 8 lines
balbi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20150105/a348b300/attachment.sig>
#4 lore raw

PATCH v4 1/1 ARM: dts: am57xx-beagle-x15: Add GPIO controlled fan node

Quoted 19 lines · Felipe Balbi
Quoted 18 lines · Nishanth Menon

TPS gpio now controls a 5v 500mA TL5209 regulator which may be supply a fan (such as AFB02505HHB) over J1 connector for various purposes. Provide device tree node to enable the same.

---
V4: Change format of the speed-map used.
V3: https://patchwork.kernel.org/patch/5562121/
V2: https://patchwork.kernel.org/patch/5445111/
V1: https://patchwork.kernel.org/patch/5444911/

Enable and disable can be controlled by (post the RPM, it finds closest match - even a 1 will do)

echo '13000' > /sys/class/hwmon/hwmon0/fan1_target and
echo '0' > /sys/class/hwmon/hwmon0/fan1_target

Quoted 6 lines
Quoted 3 lines

Test log: http://slexy.org/view/s2T0ajh46z

requires CONFIG_GPIO_PALMAS and CONFIG_SENSORS_GPIO_FAN to be operational

oh, perhaps add these as modules to omap2plus_defconfig ?

In a different patch I suppose if Tony wants it that way.

Signature · 2 lines
Regards,
Nishanth Menon
#5 lore raw

PATCH v4 1/1 ARM: dts: am57xx-beagle-x15: Add GPIO controlled fan node

Quoted 20 lines · Nishanth Menon
Quoted 19 lines · Felipe Balbi
Quoted 18 lines · Nishanth Menon

TPS gpio now controls a 5v 500mA TL5209 regulator which may be supply a fan (such as AFB02505HHB) over J1 connector for various purposes. Provide device tree node to enable the same.

---
V4: Change format of the speed-map used.
V3: https://patchwork.kernel.org/patch/5562121/
V2: https://patchwork.kernel.org/patch/5445111/
V1: https://patchwork.kernel.org/patch/5444911/

Enable and disable can be controlled by (post the RPM, it finds closest match - even a 1 will do)

echo '13000' > /sys/class/hwmon/hwmon0/fan1_target and
echo '0' > /sys/class/hwmon/hwmon0/fan1_target

Quoted 8 lines
Quoted 6 lines
Quoted 3 lines

Test log: http://slexy.org/view/s2T0ajh46z

requires CONFIG_GPIO_PALMAS and CONFIG_SENSORS_GPIO_FAN to be operational

oh, perhaps add these as modules to omap2plus_defconfig ?

In a different patch I suppose if Tony wants it that way.

right, different patch :-)

Signature · 8 lines
balbi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20150105/29c9fa89/attachment.sig>