diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2017-07-17 22:48:31 +0200 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2017-09-18 20:34:55 +0200 |
commit | 3b88f74bbe9134465a84234e1e7400af585f8c2b (patch) | |
tree | 6c8767c77eb1f0ba2647ac3a4ce76826953f3301 /target/linux/sunxi/patches-4.9/0022-arm64-allwinner-pine64-add-MMC-support.patch | |
parent | 34a422794ddab738408edc7e3980ccbc14f28af4 (diff) | |
download | upstream-3b88f74bbe9134465a84234e1e7400af585f8c2b.tar.gz upstream-3b88f74bbe9134465a84234e1e7400af585f8c2b.tar.bz2 upstream-3b88f74bbe9134465a84234e1e7400af585f8c2b.zip |
sunxi: Backport patches from kernel 4.11 for A64
This backports some more patches from kernel 4.11 adding more devices
to the device tree of the A64 SoC.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Diffstat (limited to 'target/linux/sunxi/patches-4.9/0022-arm64-allwinner-pine64-add-MMC-support.patch')
-rw-r--r-- | target/linux/sunxi/patches-4.9/0022-arm64-allwinner-pine64-add-MMC-support.patch | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/target/linux/sunxi/patches-4.9/0022-arm64-allwinner-pine64-add-MMC-support.patch b/target/linux/sunxi/patches-4.9/0022-arm64-allwinner-pine64-add-MMC-support.patch new file mode 100644 index 0000000000..c60e5104cf --- /dev/null +++ b/target/linux/sunxi/patches-4.9/0022-arm64-allwinner-pine64-add-MMC-support.patch @@ -0,0 +1,62 @@ +From ebe3ae29c6314217edf40d9ee23c36d610ff0fb8 Mon Sep 17 00:00:00 2001 +From: Andre Przywara <andre.przywara@arm.com> +Date: Tue, 10 Jan 2017 01:22:31 +0000 +Subject: arm64: allwinner: pine64: add MMC support + +All Pine64 boards connect an micro-SD card slot to the first MMC +controller. +Enable the respective DT node and specify the (always-on) regulator +and card-detect pin. +As a micro-SD slot does not feature a write-protect switch, we disable +this feature. + +Signed-off-by: Andre Przywara <andre.przywara@arm.com> +Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> +Acked-by: Chen-Yu Tsai <wens@csie.org> +--- + arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts | 20 ++++++++++++++++++++ + 1 file changed, 20 insertions(+) + +--- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts ++++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts +@@ -44,6 +44,8 @@ + + #include "sun50i-a64.dtsi" + ++#include <dt-bindings/gpio/gpio.h> ++ + / { + model = "Pine64"; + compatible = "pine64,pine64", "allwinner,sun50i-a64"; +@@ -55,6 +57,13 @@ + chosen { + stdout-path = "serial0:115200n8"; + }; ++ ++ reg_vcc3v3: vcc3v3 { ++ compatible = "regulator-fixed"; ++ regulator-name = "vcc3v3"; ++ regulator-min-microvolt = <3300000>; ++ regulator-max-microvolt = <3300000>; ++ }; + }; + + &ehci1 { +@@ -71,6 +80,17 @@ + bias-pull-up; + }; + ++&mmc0 { ++ pinctrl-names = "default"; ++ pinctrl-0 = <&mmc0_pins>; ++ vmmc-supply = <®_vcc3v3>; ++ cd-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>; ++ cd-inverted; ++ disable-wp; ++ bus-width = <4>; ++ status = "okay"; ++}; ++ + &ohci1 { + status = "okay"; + }; |