]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/linux-3.14.x-lamobo-r1-fix-sata-pwr.patch
tor: update to 0.2.6.9
[ipfire-2.x.git] / src / patches / linux-3.14.x-lamobo-r1-fix-sata-pwr.patch
CommitLineData
8602108e
AF
1From 7f558e6e8abee42cc966e2cb64be0de875797e07 Mon Sep 17 00:00:00 2001
2From: Arne Fitzenreiter <arne_f@ipfire.org>
3Date: Fri, 20 Feb 2015 10:01:26 +0100
4Subject: [PATCH] sun7i: dts: lamobo-r1: fix sata pwr regulator pin.
5
6Lamobo-R1 use PB3 instead of PB8 for controlling the SATA power regulator.
7---
8 arch/arm/boot/dts/sun7i-a20-lamobo-r1.dts | 18 ++++++++++++++++++
9 1 file changed, 18 insertions(+)
10
11diff --git a/arch/arm/boot/dts/sun7i-a20-lamobo-r1.dts b/arch/arm/boot/dts/sun7i-a20-lamobo-r1.dts
12index 1eb6c9b..d634d2f 100644
13--- a/arch/arm/boot/dts/sun7i-a20-lamobo-r1.dts
14+++ b/arch/arm/boot/dts/sun7i-a20-lamobo-r1.dts
15@@ -166,6 +166,16 @@
16 reg = <1>;
17 };
18 };
19+
20+ pio: pinctrl@01c20800 {
21+ ahci_pwr_pin_a: ahci_pwr_pin@0 {
22+ allwinner,pins = "PB3";
23+ allwinner,function = "gpio_out";
24+ allwinner,drive = <0>;
25+ allwinner,pull = <0>;
26+ };
27+ };
28+
29 };
30
31 leds {
32@@ -181,6 +191,14 @@
33 };
34
35 reg_ahci_5v: ahci-5v {
36+ compatible = "regulator-fixed";
37+ pinctrl-names = "default";
38+ pinctrl-0 = <&ahci_pwr_pin_a>;
39+ regulator-name = "ahci-5v";
40+ regulator-min-microvolt = <5000000>;
41+ regulator-max-microvolt = <5000000>;
42+ enable-active-high;
43+ gpio = <&pio 1 3 0>;
44 status = "okay";
45 };
46
47--
481.8.5.2
49