diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2014-09-11 05:56:56 -0400 |
---|---|---|
committer | Jason Cooper <jason@lakedaemon.net> | 2014-09-13 17:13:33 -0400 |
commit | e8db78dd6af727fdbeefa1fc624bc5d7c572d841 (patch) | |
tree | f2d608d033d194ad91f739d5c170e195eac7e40f | |
parent | 7a6540ca856aeb5adbdee80836af7c2326e55d3b (diff) |
ARM: mvebu: add gpio fan support to Armada 370 RD
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>
-rw-r--r-- | arch/arm/boot/dts/armada-370-rd.dts | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/armada-370-rd.dts b/arch/arm/boot/dts/armada-370-rd.dts index ca13d9c8c5f8..ea61d8c05240 100644 --- a/arch/arm/boot/dts/armada-370-rd.dts +++ b/arch/arm/boot/dts/armada-370-rd.dts | |||
@@ -50,6 +50,13 @@ | |||
50 | }; | 50 | }; |
51 | 51 | ||
52 | internal-regs { | 52 | internal-regs { |
53 | pinctrl { | ||
54 | fan_pins: fan-pins { | ||
55 | marvell,pins = "mpp8"; | ||
56 | marvell,function = "gpio"; | ||
57 | }; | ||
58 | }; | ||
59 | |||
53 | serial@12000 { | 60 | serial@12000 { |
54 | status = "okay"; | 61 | status = "okay"; |
55 | }; | 62 | }; |
@@ -110,6 +117,14 @@ | |||
110 | }; | 117 | }; |
111 | }; | 118 | }; |
112 | 119 | ||
120 | gpio-fan { | ||
121 | compatible = "gpio-fan"; | ||
122 | gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; | ||
123 | gpio-fan,speed-map = <0 0 3000 1>; | ||
124 | pinctrl-0 = <&fan_pins>; | ||
125 | pinctrl-names = "default"; | ||
126 | }; | ||
127 | |||
113 | nand@d0000 { | 128 | nand@d0000 { |
114 | status = "okay"; | 129 | status = "okay"; |
115 | num-cs = <1>; | 130 | num-cs = <1>; |