All of lore.kernel.org
 help / color / mirror / Atom feed
From: martin.blumenstingl@googlemail.com (Martin Blumenstingl)
To: linus-amlogic@lists.infradead.org
Subject: [PATCH 3/3] ARM64: dts: amlogic: enable sd_emmc_b on all Tronsmart Vega S95 devices
Date: Sat, 25 Jun 2016 18:34:46 +0200	[thread overview]
Message-ID: <20160625163446.7245-4-martin.blumenstingl@googlemail.com> (raw)
In-Reply-To: <20160625163446.7245-1-martin.blumenstingl@googlemail.com>

sd_emmc_b is routed to the SD-card. Unlike p20x there is no GPIO
regulator, meaning it only supports 3.3V (which seems to be hard-wired).

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
---
 .../boot/dts/amlogic/meson-gxbb-vega-s95.dtsi      | 27 ++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi
index b003729..3a77829 100644
--- a/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi
+++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi
@@ -53,6 +53,17 @@
 	chosen {
 		stdout-path = "serial0:115200n8";
 	};
+
+	mmc_iv: fixed-regulator {
+		compatible = "regulator-fixed";
+
+		regulator-name = "mmc-supply";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+
+		regulator-always-on;
+		regulator-boot-on;
+	};
 };
 
 &uart_A {
@@ -73,3 +84,19 @@
 	pinctrl-0 = <&eth_pins>;
 	pinctrl-names = "default";
 };
+
+&sd_emmc_b {
+	status = "okay";
+	pinctrl-0 = <&sdcard_pins>;
+	pinctrl-names = "default";
+
+	bus-width = <4>;
+	cap-sd-highspeed;
+	max-frequency = <100000000>;
+
+	cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_HIGH>;
+	cd-inverted;
+
+	vmmc-supply = <&mmc_iv>;
+	voltage-ranges = <3300 3300>;
+};
-- 
2.9.0

  parent reply	other threads:[~2016-06-25 16:34 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-25 16:34 [RFC] improve support for the Tronsmart Vega S95 devices Martin Blumenstingl
2016-06-25 16:34 ` [PATCH 1/3] ARM64: dts: amlogic: enable ethernet on all " Martin Blumenstingl
2016-07-08  1:09   ` Andreas Färber
2016-06-25 16:34 ` [PATCH 2/3] ARM64: dts: amlogic: enable uart_A " Martin Blumenstingl
2016-06-25 16:34 ` Martin Blumenstingl [this message]
2016-07-08  0:49   ` [PATCH 3/3] ARM64: dts: amlogic: enable sd_emmc_b " Andreas Färber
2016-07-08 22:25     ` Andreas Färber
2016-06-27 15:46 ` [RFC] improve support for the " Kevin Hilman
     [not found] ` <20160625163446.7245-1-martin.blumenstingl-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
2016-08-15 13:38   ` [PATCH 0/3] eMMC, SD-card and ethernet support for Vega S95 boards Martin Blumenstingl
2016-08-15 13:38     ` Martin Blumenstingl
     [not found]     ` <20160815133811.19646-1-martin.blumenstingl-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
2016-08-15 13:38       ` [PATCH 1/3] ARM64: dts: amlogic: SD card support for all Tronsmart Vega S95 devices Martin Blumenstingl
2016-08-15 13:38         ` Martin Blumenstingl
2016-08-15 13:38       ` [PATCH 2/3] ARM64: dts: amlogic: eMMC " Martin Blumenstingl
2016-08-15 13:38         ` Martin Blumenstingl
2016-08-15 13:38       ` [PATCH 3/3] ARM64: dts: amlogic: enable ethernet on " Martin Blumenstingl
2016-08-15 13:38         ` Martin Blumenstingl
2016-09-04 18:29       ` [PATCH v2 0/3] eMMC, SD-card and ethernet support for Vega S95 boards Martin Blumenstingl
2016-09-04 18:29         ` Martin Blumenstingl
     [not found]         ` <20160904182903.1841-1-martin.blumenstingl-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
2016-09-04 18:29           ` [PATCH v2 1/3] ARM64: dts: amlogic: SD card support for all Tronsmart Vega S95 devices Martin Blumenstingl
2016-09-04 18:29             ` Martin Blumenstingl
2016-09-04 18:29           ` [PATCH v2 2/3] ARM64: dts: amlogic: eMMC " Martin Blumenstingl
2016-09-04 18:29             ` Martin Blumenstingl
2016-09-04 18:29           ` [PATCH v2 3/3] ARM64: dts: amlogic: enable ethernet on " Martin Blumenstingl
2016-09-04 18:29             ` Martin Blumenstingl
2016-09-07 20:06           ` [PATCH v2 0/3] eMMC, SD-card and ethernet support for Vega S95 boards Kevin Hilman
2016-09-07 20:06             ` Kevin Hilman
     [not found]             ` <7h37lbtqyk.fsf-rdvid1DuHRBWk0Htik3J/w@public.gmane.org>
2016-09-07 20:50               ` Kevin Hilman
2016-09-07 20:50                 ` Kevin Hilman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160625163446.7245-4-martin.blumenstingl@googlemail.com \
    --to=martin.blumenstingl@googlemail.com \
    --cc=linus-amlogic@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.