Thread (4 messages) 4 messages, 2 authors, 2019-07-31

Re: [PATCH] arm64: dts: allwinner: a64: Enable eMMC on A64-OLinuXino

From: Sunil Mohan Adapa <hidden>
Date: 2019-07-27 06:50:04

On 26/07/19 10:42 pm, Chen-Yu Tsai wrote:
On Sat, Jul 27, 2019 at 10:03 AM Sunil Mohan Adapa [off-list ref] wrote:
quoted
A64-OLinuXino board has three variants that have eMMC support. Add support for
eMMC on boards that have it.

This patch has been tested on A64-OLinuXino-1Ge16GW with Linux 5.0 from Debain.
Basic benchmarks using Flexible IO Tester show reasonable performance from the
eMMC.

eMMC - Random Write: 23.1MiB/s
eMMC - Sequential Write: 74.5MiB/s
SD Card - Random Write: 1690KiB/s
SD Card - Sequential Write: 11.0MiB/s

Signed-off-by: Sunil Mohan Adapa <redacted>
Tested-by: Sunil Mohan Adapa <redacted>

From: Martin Ayotte <redacted>
Link: https://github.com/armbian/build/commit/174953de1eb09e6aa1ef7075066b573dba625398
Signed-off-by: Sunil Mohan Adapa <redacted>
---
 .../boot/dts/allwinner/sun50i-a64-olinuxino.dts | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts b/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts
index 01a9a52edae4..751273f514fb 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts
+++ b/arch/arm64/boot/dts/allwinner/sun50i-a64-olinuxino.dts
@@ -81,6 +81,13 @@
                status = "okay";
        };

+       reg_vcc3v3: vcc3v3 {
+               compatible = "regulator-fixed";
+               regulator-name = "vcc3v3";
+               regulator-min-microvolt = <3300000>;
+               regulator-max-microvolt = <3300000>;
+       };
+
        wifi_pwrseq: wifi_pwrseq {
                compatible = "mmc-pwrseq-simple";
                reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */
@@ -155,6 +162,16 @@
        };
 };

+&mmc2 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&mmc2_pins>;
+       vmmc-supply = <&reg_vcc3v3>;
Both VCC (vmmc-supply) and VCCQ (vqmmc-supply) are wired to DCDC1.
There is no fixed regulator. Please accurately describe the hardware.
Thank you for the review. Do to my limited experience in the area, I
could not figure this out despite spending some time with the driver and
schematics. I was able to verify that some of the other descriptions are
correct. I will update the patch accordingly and test it.
Also if Olimex never released any A64-OlinuXinos with NAND flash,
then we could merge this. Otherwise we'd have to have separate
versions, or do overlays.
Currently, Olimex has no A64-OLinuXinos with NAND flash. However, I am
unable to make a call on whether or not to have separate versions or
overlays.
quoted
+       bus-width = <8>;
+       non-removable;
+       cap-mmc-hw-reset;
+       status = "okay";
+};
+
 &ohci0 {
        status = "okay";
 };
--
2.20.1
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help