diff options
author | Andre Przywara <andre.przywara@arm.com> | 2017-01-09 20:22:31 -0500 |
---|---|---|
committer | Maxime Ripard <maxime.ripard@free-electrons.com> | 2017-01-30 05:37:38 -0500 |
commit | ebe3ae29c6314217edf40d9ee23c36d610ff0fb8 (patch) | |
tree | 5e7ffa2f6fecacdce9ebbfea37b9f3022ce037b0 | |
parent | 22be992faea70b95bcb48e2d5efa41733fcfeab7 (diff) |
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>
-rw-r--r-- | arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts index cf9105179bcb..c680ed385da3 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-pine64.dts | |||
@@ -44,6 +44,8 @@ | |||
44 | 44 | ||
45 | #include "sun50i-a64.dtsi" | 45 | #include "sun50i-a64.dtsi" |
46 | 46 | ||
47 | #include <dt-bindings/gpio/gpio.h> | ||
48 | |||
47 | / { | 49 | / { |
48 | model = "Pine64"; | 50 | model = "Pine64"; |
49 | compatible = "pine64,pine64", "allwinner,sun50i-a64"; | 51 | compatible = "pine64,pine64", "allwinner,sun50i-a64"; |
@@ -55,6 +57,13 @@ | |||
55 | chosen { | 57 | chosen { |
56 | stdout-path = "serial0:115200n8"; | 58 | stdout-path = "serial0:115200n8"; |
57 | }; | 59 | }; |
60 | |||
61 | reg_vcc3v3: vcc3v3 { | ||
62 | compatible = "regulator-fixed"; | ||
63 | regulator-name = "vcc3v3"; | ||
64 | regulator-min-microvolt = <3300000>; | ||
65 | regulator-max-microvolt = <3300000>; | ||
66 | }; | ||
58 | }; | 67 | }; |
59 | 68 | ||
60 | &ehci1 { | 69 | &ehci1 { |
@@ -71,6 +80,17 @@ | |||
71 | bias-pull-up; | 80 | bias-pull-up; |
72 | }; | 81 | }; |
73 | 82 | ||
83 | &mmc0 { | ||
84 | pinctrl-names = "default"; | ||
85 | pinctrl-0 = <&mmc0_pins>; | ||
86 | vmmc-supply = <®_vcc3v3>; | ||
87 | cd-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>; | ||
88 | cd-inverted; | ||
89 | disable-wp; | ||
90 | bus-width = <4>; | ||
91 | status = "okay"; | ||
92 | }; | ||
93 | |||
74 | &ohci1 { | 94 | &ohci1 { |
75 | status = "okay"; | 95 | status = "okay"; |
76 | }; | 96 | }; |