hostapd: add acs feature indication
[openwrt/openwrt.git] / target / linux / sunxi / patches-4.9 / 0022-arm64-allwinner-pine64-add-MMC-support.patch
1 From ebe3ae29c6314217edf40d9ee23c36d610ff0fb8 Mon Sep 17 00:00:00 2001
2 From: Andre Przywara <andre.przywara@arm.com>
3 Date: Tue, 10 Jan 2017 01:22:31 +0000
4 Subject: arm64: allwinner: pine64: add MMC support
5
6 All Pine64 boards connect an micro-SD card slot to the first MMC
7 controller.
8 Enable the respective DT node and specify the (always-on) regulator
9 and card-detect pin.
10 As a micro-SD slot does not feature a write-protect switch, we disable
11 this feature.
12
13 Signed-off-by: Andre Przywara <andre.przywara@arm.com>
14 Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
15 Acked-by: Chen-Yu Tsai <wens@csie.org>
16 ---
17 arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts | 20 ++++++++++++++++++++
18 1 file changed, 20 insertions(+)
19
20 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts
21 +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts
22 @@ -44,6 +44,8 @@
23
24 #include "sun50i-a64.dtsi"
25
26 +#include <dt-bindings/gpio/gpio.h>
27 +
28 / {
29 model = "Pine64";
30 compatible = "pine64,pine64", "allwinner,sun50i-a64";
31 @@ -55,6 +57,13 @@
32 chosen {
33 stdout-path = "serial0:115200n8";
34 };
35 +
36 + reg_vcc3v3: vcc3v3 {
37 + compatible = "regulator-fixed";
38 + regulator-name = "vcc3v3";
39 + regulator-min-microvolt = <3300000>;
40 + regulator-max-microvolt = <3300000>;
41 + };
42 };
43
44 &ehci1 {
45 @@ -71,6 +80,17 @@
46 bias-pull-up;
47 };
48
49 +&mmc0 {
50 + pinctrl-names = "default";
51 + pinctrl-0 = <&mmc0_pins>;
52 + vmmc-supply = <&reg_vcc3v3>;
53 + cd-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>;
54 + cd-inverted;
55 + disable-wp;
56 + bus-width = <4>;
57 + status = "okay";
58 +};
59 +
60 &ohci1 {
61 status = "okay";
62 };