ARM: dts: am57xx-beagle-x15: Add GPIO controlled fan node
PATCH 1/1 ARM: dts: am57xx-beagle-x15: Add GPIO controlled fan node
From: "Menon, Nishanth" <[email protected]>
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.
---
Depends on the following:
https://patchwork.kernel.org/patch/5439201/
https://patchwork.kernel.org/patch/5439191/
enable and disable can be controlled by
echo '1' > /sys/class/hwmon/hwmon0/fan1_target
and
echo '0' > /sys/class/hwmon/hwmon0/fan1_target
requires CONFIG_GPIO_PALMAS and CONFIG_SENSORS_GPIO_FAN to be operational Applies on
https://git.kernel.org/cgit/linux/kernel/git/tmlind/linux-omap.git/log/?h=omap-for-v3.19/dt-v2
arch/arm/boot/dts/am57xx-beagle-x15.dts | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
arch/arm/boot/dts/am57xx-beagle-x15.dts +15 -0
@@ -80,6 +80,15 @@ default-state = "off"; }; }; + + gpio_fan { + /* Based on 5v 500mA AFB02505HHB */ + compatible = "gpio-fan"; + pinctrl-names = "default"; + gpios = <&tps659038_gpio 1 GPIO_ACTIVE_HIGH>; + gpio-fan,speed-map = <0 0 + 13000 1>; + }; }; &dra7_pmx_core {
@@ -314,6 +323,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
Quoted 1 line · Nishanth Menon
From: "Menon, Nishanth" <[email protected]>
do you want to sanitize your name ?
Quoted 27 lines
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.
Signed-off-by Nishanth Menon <[email protected]>---
Depends on the following:
https://patchwork.kernel.org/patch/5439201/
https://patchwork.kernel.org/patch/5439191/enable and disable can be controlled by
echo '1' >/sys/class/hwmon/hwmon0/fan1_target
and
echo '0' >/sys/class/hwmon/hwmon0/fan1_targetrequires
CONFIG_GPIO_PALMASandCONFIG_SENSORS_GPIO_FANto be operational Applies on
https://git.kernel.org/cgit/linux/kernel/git/tmlind/linux-omap.git/log/?h=omap-for-v3.19/dt-v2arch/arm/boot/dts/am57xx-beagle-x15.dts | 15 +++++++++++++++ 1 file changed, 15 insertions(+)arch/arm/boot/dts/am57xx-beagle-x15.dts +0
-0
arch/arm/boot/dts/am57xx-beagle-x15.dts line 87
Quoted 8 lines
arch/arm/boot/dts/am57xx-beagle-x15.dts +5
-0@@ -80,6 +80,15 @@ default-state = "off"; }; }; + + gpio_fan { + /* Based on 5v 500mA AFB02505HHB */ + compatible = "gpio-fan"; + pinctrl-names = "default";
not needed.
Quoted 23 lines
arch/arm/boot/dts/am57xx-beagle-x15.dts +10
-0+ gpios = <&tps659038_gpio 1 GPIO_ACTIVE_HIGH>; + gpio-fan,speed-map = <0 0 + 13000 1>; + }; }; &dra7_pmx_core {@@ -314,6 +323,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
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/20141205/db78dda6/attachment.sig>
PATCH v2 1/1 ARM: dts: am57xx-beagle-x15: Add GPIO controlled fan node
In reply to Nishanth MenonTPS 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.
---
V2: review comment updates
review comments update
- Sanitized outlook-ified name back to normal ;)
- removed unnecessary pinctrl-names property.
V1: https://patchwork.kernel.org/patch/5444911/
Depends on the following:
https://patchwork.kernel.org/patch/5439201/
https://patchwork.kernel.org/patch/5439191/
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
https://git.kernel.org/cgit/linux/kernel/git/tmlind/linux-omap.git/log/?h=omap-for-v3.19/dt-v2
arch/arm/boot/dts/am57xx-beagle-x15.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
arch/arm/boot/dts/am57xx-beagle-x15.dts +14 -0
@@ -80,6 +80,14 @@ default-state = "off"; }; }; + + 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 {
@@ -314,6 +322,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
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.
Signed-off-by Nishanth Menon <[email protected]>
Applying into omap-for-v3.20/dt thanks.
Tony
Quoted 64 lines
---
V2: review comment updates
review comments update
- Sanitized outlook-ified name back to normal ;)
- removed unnecessary pinctrl-names property.
V1: https://patchwork.kernel.org/patch/5444911/Depends on the following:
https://patchwork.kernel.org/patch/5439201/
https://patchwork.kernel.org/patch/5439191/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_targetand
echo '0' >/sys/class/hwmon/hwmon0/fan1_targetTest log: http://slexy.org/view/s2T0ajh46z
requires
CONFIG_GPIO_PALMASandCONFIG_SENSORS_GPIO_FANto be operational Applies on
https://git.kernel.org/cgit/linux/kernel/git/tmlind/linux-omap.git/log/?h=omap-for-v3.19/dt-v2arch/arm/boot/dts/am57xx-beagle-x15.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+)arch/arm/boot/dts/am57xx-beagle-x15.dts +14
-0@@ -80,6 +80,14 @@ default-state = "off"; }; }; + + 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 {@@ -314,6 +322,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
Quoted 10 lines · Tony Lindgren
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.
Signed-off-by Nishanth Menon <[email protected]>Applying into omap-for-v3.20/dt thanks.
Tony
Could you pick up the very latest rev:
https://patchwork.kernel.org/patch/5569521/ ?
Quoted 65 lines
Quoted 65 lines
---
V2: review comment updates
review comments update
- Sanitized outlook-ified name back to normal ;)
- removed unnecessary pinctrl-names property.
V1: https://patchwork.kernel.org/patch/5444911/Depends on the following:
https://patchwork.kernel.org/patch/5439201/
https://patchwork.kernel.org/patch/5439191/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_targetand
echo '0' >/sys/class/hwmon/hwmon0/fan1_targetTest log: http://slexy.org/view/s2T0ajh46z
requires
CONFIG_GPIO_PALMASandCONFIG_SENSORS_GPIO_FANto be operational Applies on
https://git.kernel.org/cgit/linux/kernel/git/tmlind/linux-omap.git/log/?h=omap-for-v3.19/dt-v2arch/arm/boot/dts/am57xx-beagle-x15.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+)arch/arm/boot/dts/am57xx-beagle-x15.dts +14
-0@@ -80,6 +80,14 @@ default-state = "off"; }; }; + + 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 {@@ -314,6 +322,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
Signature · 2 lines
Regards, Nishanth Menon
Quoted 6 lines · Nishanth Menon
Quoted 5 lines · Tony Lindgren
Quoted 4 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.
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
Signed-off-by Nishanth Menon <[email protected]>Applying into omap-for-v3.20/dt thanks.
Tony
Could you pick up the very latest rev:
https://patchwork.kernel.org/patch/5569521/ ?
Yeah sorry just noticed I had tagged two versions, will use the v4 instead.
Regards,
Tony