From 8602108e6c71295034cb1c64168fe212b1211128 Mon Sep 17 00:00:00 2001 From: Arne Fitzenreiter Date: Fri, 20 Feb 2015 16:13:10 +0100 Subject: [PATCH] kernel: fix lamobo-r1 sata power regulator. --- lfs/linux | 3 ++ .../linux-3.14.x-lamobo-r1-fix-sata-pwr.patch | 49 +++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 src/patches/linux-3.14.x-lamobo-r1-fix-sata-pwr.patch diff --git a/lfs/linux b/lfs/linux index 4e6e9ec26..ef30fa673 100644 --- a/lfs/linux +++ b/lfs/linux @@ -177,6 +177,9 @@ ifeq "$(KCFG)" "-multi" # Install switch api userspace header cd $(DIR_APP) && install -v -m644 include/uapi/linux/switch.h /usr/include/linux/ + + # Fix Lamobo-R1 SATA Power + cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/linux-3.14.x-lamobo-r1-fix-sata-pwr.patch endif ifeq "$(KCFG)" "-rpi" diff --git a/src/patches/linux-3.14.x-lamobo-r1-fix-sata-pwr.patch b/src/patches/linux-3.14.x-lamobo-r1-fix-sata-pwr.patch new file mode 100644 index 000000000..1c0f994b2 --- /dev/null +++ b/src/patches/linux-3.14.x-lamobo-r1-fix-sata-pwr.patch @@ -0,0 +1,49 @@ +From 7f558e6e8abee42cc966e2cb64be0de875797e07 Mon Sep 17 00:00:00 2001 +From: Arne Fitzenreiter +Date: Fri, 20 Feb 2015 10:01:26 +0100 +Subject: [PATCH] sun7i: dts: lamobo-r1: fix sata pwr regulator pin. + +Lamobo-R1 use PB3 instead of PB8 for controlling the SATA power regulator. +--- + arch/arm/boot/dts/sun7i-a20-lamobo-r1.dts | 18 ++++++++++++++++++ + 1 file changed, 18 insertions(+) + +diff --git a/arch/arm/boot/dts/sun7i-a20-lamobo-r1.dts b/arch/arm/boot/dts/sun7i-a20-lamobo-r1.dts +index 1eb6c9b..d634d2f 100644 +--- a/arch/arm/boot/dts/sun7i-a20-lamobo-r1.dts ++++ b/arch/arm/boot/dts/sun7i-a20-lamobo-r1.dts +@@ -166,6 +166,16 @@ + reg = <1>; + }; + }; ++ ++ pio: pinctrl@01c20800 { ++ ahci_pwr_pin_a: ahci_pwr_pin@0 { ++ allwinner,pins = "PB3"; ++ allwinner,function = "gpio_out"; ++ allwinner,drive = <0>; ++ allwinner,pull = <0>; ++ }; ++ }; ++ + }; + + leds { +@@ -181,6 +191,14 @@ + }; + + reg_ahci_5v: ahci-5v { ++ compatible = "regulator-fixed"; ++ pinctrl-names = "default"; ++ pinctrl-0 = <&ahci_pwr_pin_a>; ++ regulator-name = "ahci-5v"; ++ regulator-min-microvolt = <5000000>; ++ regulator-max-microvolt = <5000000>; ++ enable-active-high; ++ gpio = <&pio 1 3 0>; + status = "okay"; + }; + +-- +1.8.5.2 + -- 2.39.2