diff mbox

[3/3] ARM64: dts: amlogic: enable sd_emmc_b on all Tronsmart Vega S95 devices

Message ID 20160625163446.7245-4-martin.blumenstingl@googlemail.com (mailing list archive)
State RFC
Headers show

Commit Message

Martin Blumenstingl June 25, 2016, 4:34 p.m. UTC
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(+)

Comments

Andreas Färber July 8, 2016, 12:49 a.m. UTC | #1
Am 25.06.2016 um 18:34 schrieb Martin Blumenstingl:
> 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 {
[snip]

This does not build on next-20160707 - what branch is this based on?

Thanks,
Andreas
Andreas Färber July 8, 2016, 10:25 p.m. UTC | #2
Am 08.07.2016 um 02:49 schrieb Andreas Färber:
> Am 25.06.2016 um 18:34 schrieb Martin Blumenstingl:
>> 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 {
> [snip]
> 
> This does not build on next-20160707 - what branch is this based on?

Apparently linux-amlogic.git v4.7/integ.

Tested-by: Andreas Färber <afaerber@suse.de>

Thanks again,
Andreas
diff mbox

Patch

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>;
+};