ARM: mvebu: add gpio fan support to Armada 370 RD
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 11 Sep 2014 09:56:56 +0000 (11:56 +0200)
committerJason Cooper <jason@lakedaemon.net>
Sat, 13 Sep 2014 21:13:33 +0000 (21:13 +0000)
The Armada 370 RD platform has a GPIO-controlled fan on MPP8, so this
commit adds the relevant hardware description to Armada 370 RD Device
Tree.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Acked-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lkml.kernel.org/r/1410429419-29820-2-git-send-email-thomas.petazzoni@free-electrons.com
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
arch/arm/boot/dts/armada-370-rd.dts

index ca13d9c8c5f81d8ba382372775be68856bf44c5d..ea61d8c05240360d68a8b8a8b36cf00801799752 100644 (file)
                };
 
                internal-regs {
+                       pinctrl {
+                               fan_pins: fan-pins {
+                                       marvell,pins = "mpp8";
+                                       marvell,function = "gpio";
+                               };
+                       };
+
                        serial@12000 {
                                status = "okay";
                        };
                                };
                        };
 
+                       gpio-fan {
+                               compatible = "gpio-fan";
+                               gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
+                               gpio-fan,speed-map = <0 0 3000 1>;
+                               pinctrl-0 = <&fan_pins>;
+                               pinctrl-names = "default";
+                       };
+
                        nand@d0000 {
                                status = "okay";
                                num-cs = <1>;