All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC] improve support for the Tronsmart Vega S95 devices
@ 2016-06-25 16:34 Martin Blumenstingl
  2016-06-25 16:34 ` [PATCH 1/3] ARM64: dts: amlogic: enable ethernet on all " Martin Blumenstingl
                   ` (4 more replies)
  0 siblings, 5 replies; 28+ messages in thread
From: Martin Blumenstingl @ 2016-06-25 16:34 UTC (permalink / raw)
  To: linus-amlogic

This series enables the following functionality:
- ethernet support
- enable uart_A (serial1) to which the bluetooth device is attached
  (currently not usable yet because the clocks for the WIFI + BT combo
  chip are not set up yet)
- SD-card support

Please note that this is an RFC because it was only tested on a *CLONE*
of the "Tronsmart Vega S95 Meta". According to the .dts of my device
and all Tronsmart Vega S95 devices everything which was enabled in this
series should be identical across all devices.

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [PATCH 1/3] ARM64: dts: amlogic: enable ethernet on all Tronsmart Vega S95 devices
  2016-06-25 16:34 [RFC] improve support for the Tronsmart Vega S95 devices Martin Blumenstingl
@ 2016-06-25 16:34 ` 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
                   ` (3 subsequent siblings)
  4 siblings, 1 reply; 28+ messages in thread
From: Martin Blumenstingl @ 2016-06-25 16:34 UTC (permalink / raw)
  To: linus-amlogic

All of these have a Realtek Gbit RGMII PHY.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
---
 arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi | 6 ++++++
 1 file changed, 6 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 54bb7c7..e36b509 100644
--- a/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi
+++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi
@@ -60,3 +60,9 @@
 	pinctrl-names = "default";
 
 };
+
+&ethmac {
+	status = "okay";
+	pinctrl-0 = <&eth_pins>;
+	pinctrl-names = "default";
+};
-- 
2.9.0

^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [PATCH 2/3] ARM64: dts: amlogic: enable uart_A on all Tronsmart Vega S95 devices
  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-06-25 16:34 ` Martin Blumenstingl
  2016-06-25 16:34 ` [PATCH 3/3] ARM64: dts: amlogic: enable sd_emmc_b " Martin Blumenstingl
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 28+ messages in thread
From: Martin Blumenstingl @ 2016-06-25 16:34 UTC (permalink / raw)
  To: linus-amlogic

An UART bluetooth device is attached to this serial port.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
---
 arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi | 7 +++++++
 1 file changed, 7 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 e36b509..b003729 100644
--- a/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi
+++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi
@@ -47,6 +47,7 @@
 
 	aliases {
 		serial0 = &uart_AO;
+		serial1 = &uart_A;
 	};
 
 	chosen {
@@ -54,6 +55,12 @@
 	};
 };
 
+&uart_A {
+	status = "okay";
+	pinctrl-0 = <&uart_a_pins>;
+	pinctrl-names = "default";
+};
+
 &uart_AO {
 	status = "okay";
 	pinctrl-0 = <&uart_ao_a_pins>;
-- 
2.9.0

^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [PATCH 3/3] ARM64: dts: amlogic: enable sd_emmc_b on all Tronsmart Vega S95 devices
  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-06-25 16:34 ` [PATCH 2/3] ARM64: dts: amlogic: enable uart_A " Martin Blumenstingl
@ 2016-06-25 16:34 ` Martin Blumenstingl
  2016-07-08  0:49   ` 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>
  4 siblings, 1 reply; 28+ messages in thread
From: Martin Blumenstingl @ 2016-06-25 16:34 UTC (permalink / raw)
  To: linus-amlogic

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

^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [RFC] improve support for the Tronsmart Vega S95 devices
  2016-06-25 16:34 [RFC] improve support for the Tronsmart Vega S95 devices Martin Blumenstingl
                   ` (2 preceding siblings ...)
  2016-06-25 16:34 ` [PATCH 3/3] ARM64: dts: amlogic: enable sd_emmc_b " Martin Blumenstingl
@ 2016-06-27 15:46 ` Kevin Hilman
       [not found] ` <20160625163446.7245-1-martin.blumenstingl-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
  4 siblings, 0 replies; 28+ messages in thread
From: Kevin Hilman @ 2016-06-27 15:46 UTC (permalink / raw)
  To: linus-amlogic

Martin Blumenstingl <martin.blumenstingl@googlemail.com> writes:

> This series enables the following functionality:
> - ethernet support
> - enable uart_A (serial1) to which the bluetooth device is attached
>   (currently not usable yet because the clocks for the WIFI + BT combo
>   chip are not set up yet)
> - SD-card support
>
> Please note that this is an RFC because it was only tested on a *CLONE*
> of the "Tronsmart Vega S95 Meta". According to the .dts of my device
> and all Tronsmart Vega S95 devices everything which was enabled in this
> series should be identical across all devices.

I'll let Andreas (or anyone else with a this board) verify if this
series works on the Vega S95 Meta.)

Kevin

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [PATCH 3/3] ARM64: dts: amlogic: enable sd_emmc_b on all Tronsmart Vega S95 devices
  2016-06-25 16:34 ` [PATCH 3/3] ARM64: dts: amlogic: enable sd_emmc_b " Martin Blumenstingl
@ 2016-07-08  0:49   ` Andreas Färber
  2016-07-08 22:25     ` Andreas Färber
  0 siblings, 1 reply; 28+ messages in thread
From: Andreas Färber @ 2016-07-08  0:49 UTC (permalink / raw)
  To: linus-amlogic

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

-- 
SUSE Linux GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany
GF: Felix Imend?rffer, Jane Smithard, Graham Norton
HRB 21284 (AG N?rnberg)

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [PATCH 1/3] ARM64: dts: amlogic: enable ethernet on all Tronsmart Vega S95 devices
  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
  0 siblings, 0 replies; 28+ messages in thread
From: Andreas Färber @ 2016-07-08  1:09 UTC (permalink / raw)
  To: linus-amlogic

Am 25.06.2016 um 18:34 schrieb Martin Blumenstingl:
> All of these have a Realtek Gbit RGMII PHY.
> 
> Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
> ---
>  arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi | 6 ++++++
>  1 file changed, 6 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 54bb7c7..e36b509 100644
> --- a/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi
> +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi
> @@ -60,3 +60,9 @@
>  	pinctrl-names = "default";
>  
>  };
> +
> +&ethmac {
> +	status = "okay";
> +	pinctrl-0 = <&eth_pins>;
> +	pinctrl-names = "default";
> +};

Detected okay on Vega S95 Telos,

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

Thanks,
Andreas

-- 
SUSE Linux GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany
GF: Felix Imend?rffer, Jane Smithard, Graham Norton
HRB 21284 (AG N?rnberg)

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [PATCH 3/3] ARM64: dts: amlogic: enable sd_emmc_b on all Tronsmart Vega S95 devices
  2016-07-08  0:49   ` Andreas Färber
@ 2016-07-08 22:25     ` Andreas Färber
  0 siblings, 0 replies; 28+ messages in thread
From: Andreas Färber @ 2016-07-08 22:25 UTC (permalink / raw)
  To: linus-amlogic

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

-- 
SUSE Linux GmbH, Maxfeldstr. 5, 90409 N?rnberg, Germany
GF: Felix Imend?rffer, Jane Smithard, Graham Norton
HRB 21284 (AG N?rnberg)

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [PATCH 0/3] eMMC, SD-card and ethernet support for Vega S95 boards
  2016-06-25 16:34 [RFC] improve support for the Tronsmart Vega S95 devices Martin Blumenstingl
@ 2016-08-15 13:38     ` Martin Blumenstingl
  2016-06-25 16:34 ` [PATCH 2/3] ARM64: dts: amlogic: enable uart_A " Martin Blumenstingl
                       ` (3 subsequent siblings)
  4 siblings, 0 replies; 28+ messages in thread
From: Martin Blumenstingl @ 2016-08-15 13:38 UTC (permalink / raw)
  To: linux-amlogic-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	khilman-rdvid1DuHRBWk0Htik3J/w, carlo-KA+7E9HrN00dnm+yROfE0A
  Cc: will.deacon-5wv7dgnIgG8, catalin.marinas-5wv7dgnIgG8,
	mark.rutland-5wv7dgnIgG8, robh+dt-DgEjT+Ai2ygdnm+yROfE0A,
	devicetree-u79uwXL29TY76Z2rM5mHXA, Martin Blumenstingl

This adds support for the internal eMMC, the SD-card slot and ethernet on
all Tronsmart S95 Vega boards.
There are some S95 Vega Meta clones out there where the bootloader does
not configure the ethernet registers correctly, leading to non-working
ethernet. This will be fixed in a separate series. Boards which are not
suffering from broken bootloaders have fully working ethernet.

Changes since the RFC:
- added eMMC support
- renamed fixed 3V3 regulator so it can be re-used for eMMC

Martin Blumenstingl (3):
  ARM64: dts: amlogic: SD card support for all Tronsmart Vega S95
    devices
  ARM64: dts: amlogic: eMMC support for all Tronsmart Vega S95 devices
  ARM64: dts: amlogic: enable ethernet on all Tronsmart Vega S95 devices

 .../boot/dts/amlogic/meson-gxbb-vega-s95.dtsi      | 67 ++++++++++++++++++++++
 1 file changed, 67 insertions(+)

-- 
2.9.3

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [PATCH 0/3] eMMC, SD-card and ethernet support for Vega S95 boards
@ 2016-08-15 13:38     ` Martin Blumenstingl
  0 siblings, 0 replies; 28+ messages in thread
From: Martin Blumenstingl @ 2016-08-15 13:38 UTC (permalink / raw)
  To: linus-amlogic

This adds support for the internal eMMC, the SD-card slot and ethernet on
all Tronsmart S95 Vega boards.
There are some S95 Vega Meta clones out there where the bootloader does
not configure the ethernet registers correctly, leading to non-working
ethernet. This will be fixed in a separate series. Boards which are not
suffering from broken bootloaders have fully working ethernet.

Changes since the RFC:
- added eMMC support
- renamed fixed 3V3 regulator so it can be re-used for eMMC

Martin Blumenstingl (3):
  ARM64: dts: amlogic: SD card support for all Tronsmart Vega S95
    devices
  ARM64: dts: amlogic: eMMC support for all Tronsmart Vega S95 devices
  ARM64: dts: amlogic: enable ethernet on all Tronsmart Vega S95 devices

 .../boot/dts/amlogic/meson-gxbb-vega-s95.dtsi      | 67 ++++++++++++++++++++++
 1 file changed, 67 insertions(+)

-- 
2.9.3

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [PATCH 1/3] ARM64: dts: amlogic: SD card support for all Tronsmart Vega S95 devices
  2016-08-15 13:38     ` Martin Blumenstingl
@ 2016-08-15 13:38         ` Martin Blumenstingl
  -1 siblings, 0 replies; 28+ messages in thread
From: Martin Blumenstingl @ 2016-08-15 13:38 UTC (permalink / raw)
  To: linux-amlogic-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	khilman-rdvid1DuHRBWk0Htik3J/w, carlo-KA+7E9HrN00dnm+yROfE0A
  Cc: will.deacon-5wv7dgnIgG8, catalin.marinas-5wv7dgnIgG8,
	mark.rutland-5wv7dgnIgG8, robh+dt-DgEjT+Ai2ygdnm+yROfE0A,
	devicetree-u79uwXL29TY76Z2rM5mHXA, 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-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
Tested-by: Andreas Färber <afaerber-l3A5Bk7waGM@public.gmane.org>
---
 .../boot/dts/amlogic/meson-gxbb-vega-s95.dtsi      | 26 ++++++++++++++++++++++
 1 file changed, 26 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 54bb7c7..4572ce2 100644
--- a/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi
+++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi
@@ -52,6 +52,16 @@
 	chosen {
 		stdout-path = "serial0:115200n8";
 	};
+
+	vcc_3v3: regulator@0 {
+		compatible = "regulator-fixed";
+
+		regulator-name = "VCC3V3";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+
+		regulator-always-on;
+	};
 };
 
 &uart_AO {
@@ -60,3 +70,19 @@
 	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 = <&vcc_3v3>;
+	voltage-ranges = <3300 3300>;
+};
-- 
2.9.3

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [PATCH 1/3] ARM64: dts: amlogic: SD card support for all Tronsmart Vega S95 devices
@ 2016-08-15 13:38         ` Martin Blumenstingl
  0 siblings, 0 replies; 28+ messages in thread
From: Martin Blumenstingl @ 2016-08-15 13:38 UTC (permalink / raw)
  To: linus-amlogic

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>
Tested-by: Andreas F?rber <afaerber@suse.de>
---
 .../boot/dts/amlogic/meson-gxbb-vega-s95.dtsi      | 26 ++++++++++++++++++++++
 1 file changed, 26 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 54bb7c7..4572ce2 100644
--- a/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi
+++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi
@@ -52,6 +52,16 @@
 	chosen {
 		stdout-path = "serial0:115200n8";
 	};
+
+	vcc_3v3: regulator at 0 {
+		compatible = "regulator-fixed";
+
+		regulator-name = "VCC3V3";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+
+		regulator-always-on;
+	};
 };
 
 &uart_AO {
@@ -60,3 +70,19 @@
 	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 = <&vcc_3v3>;
+	voltage-ranges = <3300 3300>;
+};
-- 
2.9.3

^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [PATCH 2/3] ARM64: dts: amlogic: eMMC support for all Tronsmart Vega S95 devices
  2016-08-15 13:38     ` Martin Blumenstingl
@ 2016-08-15 13:38         ` Martin Blumenstingl
  -1 siblings, 0 replies; 28+ messages in thread
From: Martin Blumenstingl @ 2016-08-15 13:38 UTC (permalink / raw)
  To: linux-amlogic-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	khilman-rdvid1DuHRBWk0Htik3J/w, carlo-KA+7E9HrN00dnm+yROfE0A
  Cc: will.deacon-5wv7dgnIgG8, catalin.marinas-5wv7dgnIgG8,
	mark.rutland-5wv7dgnIgG8, robh+dt-DgEjT+Ai2ygdnm+yROfE0A,
	devicetree-u79uwXL29TY76Z2rM5mHXA, Martin Blumenstingl

This adds eMMC support for all Tronsmart Vega S95 devices using
sd_emmc_c. This is implemented similar to the p20x boards (meaning it
uses fixed regulators).

Signed-off-by: Martin Blumenstingl <martin.blumenstingl-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
---
 .../boot/dts/amlogic/meson-gxbb-vega-s95.dtsi      | 35 ++++++++++++++++++++++
 1 file changed, 35 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 4572ce2..af2e38e 100644
--- a/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi
+++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi
@@ -62,6 +62,21 @@
 
 		regulator-always-on;
 	};
+
+	vcc_1v8: regulator@1 {
+		compatible = "regulator-fixed";
+
+		regulator-name = "VCC1V8";
+		regulator-min-microvolt = <1800000>;
+		regulator-max-microvolt = <1800000>;
+
+		regulator-always-on;
+	};
+
+	emmc_pwrseq: emmc-pwrseq {
+		compatible = "mmc-pwrseq-emmc";
+		reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>;
+	};
 };
 
 &uart_AO {
@@ -86,3 +101,23 @@
 	vmmc-supply = <&vcc_3v3>;
 	voltage-ranges = <3300 3300>;
 };
+
+&sd_emmc_c {
+	status = "okay";
+	pinctrl-0 = <&emmc_pins>;
+	pinctrl-names = "default";
+
+	bus-width = <8>;
+	cap-sd-highspeed;
+	cap-mmc-highspeed;
+	max-frequency = <200000000>;
+	non-removable;
+	disable-wp;
+	mmc-ddr-1_8v;
+	mmc-hs200-1_8v;
+
+	mmc-pwrseq = <&emmc_pwrseq>;
+	voltage-ranges = <1800 3300>;
+	vmmc-supply = <&vcc_3v3>;
+	vmmcq-sumpply = <&vcc_1v8>;
+};
-- 
2.9.3

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [PATCH 2/3] ARM64: dts: amlogic: eMMC support for all Tronsmart Vega S95 devices
@ 2016-08-15 13:38         ` Martin Blumenstingl
  0 siblings, 0 replies; 28+ messages in thread
From: Martin Blumenstingl @ 2016-08-15 13:38 UTC (permalink / raw)
  To: linus-amlogic

This adds eMMC support for all Tronsmart Vega S95 devices using
sd_emmc_c. This is implemented similar to the p20x boards (meaning it
uses fixed regulators).

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
---
 .../boot/dts/amlogic/meson-gxbb-vega-s95.dtsi      | 35 ++++++++++++++++++++++
 1 file changed, 35 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 4572ce2..af2e38e 100644
--- a/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi
+++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi
@@ -62,6 +62,21 @@
 
 		regulator-always-on;
 	};
+
+	vcc_1v8: regulator at 1 {
+		compatible = "regulator-fixed";
+
+		regulator-name = "VCC1V8";
+		regulator-min-microvolt = <1800000>;
+		regulator-max-microvolt = <1800000>;
+
+		regulator-always-on;
+	};
+
+	emmc_pwrseq: emmc-pwrseq {
+		compatible = "mmc-pwrseq-emmc";
+		reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>;
+	};
 };
 
 &uart_AO {
@@ -86,3 +101,23 @@
 	vmmc-supply = <&vcc_3v3>;
 	voltage-ranges = <3300 3300>;
 };
+
+&sd_emmc_c {
+	status = "okay";
+	pinctrl-0 = <&emmc_pins>;
+	pinctrl-names = "default";
+
+	bus-width = <8>;
+	cap-sd-highspeed;
+	cap-mmc-highspeed;
+	max-frequency = <200000000>;
+	non-removable;
+	disable-wp;
+	mmc-ddr-1_8v;
+	mmc-hs200-1_8v;
+
+	mmc-pwrseq = <&emmc_pwrseq>;
+	voltage-ranges = <1800 3300>;
+	vmmc-supply = <&vcc_3v3>;
+	vmmcq-sumpply = <&vcc_1v8>;
+};
-- 
2.9.3

^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [PATCH 3/3] ARM64: dts: amlogic: enable ethernet on all Tronsmart Vega S95 devices
  2016-08-15 13:38     ` Martin Blumenstingl
@ 2016-08-15 13:38         ` Martin Blumenstingl
  -1 siblings, 0 replies; 28+ messages in thread
From: Martin Blumenstingl @ 2016-08-15 13:38 UTC (permalink / raw)
  To: linux-amlogic-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	khilman-rdvid1DuHRBWk0Htik3J/w, carlo-KA+7E9HrN00dnm+yROfE0A
  Cc: will.deacon-5wv7dgnIgG8, catalin.marinas-5wv7dgnIgG8,
	mark.rutland-5wv7dgnIgG8, robh+dt-DgEjT+Ai2ygdnm+yROfE0A,
	devicetree-u79uwXL29TY76Z2rM5mHXA, Martin Blumenstingl

All of these have a Realtek Gbit RGMII PHY.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
Tested-by: Andreas Färber <afaerber-l3A5Bk7waGM@public.gmane.org>
---
 arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi | 6 ++++++
 1 file changed, 6 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 af2e38e..5f50109 100644
--- a/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi
+++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi
@@ -86,6 +86,12 @@
 
 };
 
+&ethmac {
+	status = "okay";
+	pinctrl-0 = <&eth_pins>;
+	pinctrl-names = "default";
+};
+
 &sd_emmc_b {
 	status = "okay";
 	pinctrl-0 = <&sdcard_pins>;
-- 
2.9.3

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [PATCH 3/3] ARM64: dts: amlogic: enable ethernet on all Tronsmart Vega S95 devices
@ 2016-08-15 13:38         ` Martin Blumenstingl
  0 siblings, 0 replies; 28+ messages in thread
From: Martin Blumenstingl @ 2016-08-15 13:38 UTC (permalink / raw)
  To: linus-amlogic

All of these have a Realtek Gbit RGMII PHY.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Tested-by: Andreas F?rber <afaerber@suse.de>
---
 arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi | 6 ++++++
 1 file changed, 6 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 af2e38e..5f50109 100644
--- a/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi
+++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi
@@ -86,6 +86,12 @@
 
 };
 
+&ethmac {
+	status = "okay";
+	pinctrl-0 = <&eth_pins>;
+	pinctrl-names = "default";
+};
+
 &sd_emmc_b {
 	status = "okay";
 	pinctrl-0 = <&sdcard_pins>;
-- 
2.9.3

^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [PATCH v2 0/3] eMMC, SD-card and ethernet support for Vega S95 boards
  2016-08-15 13:38     ` Martin Blumenstingl
@ 2016-09-04 18:29         ` Martin Blumenstingl
  -1 siblings, 0 replies; 28+ messages in thread
From: Martin Blumenstingl @ 2016-09-04 18:29 UTC (permalink / raw)
  To: linux-amlogic-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	khilman-rdvid1DuHRBWk0Htik3J/w, carlo-KA+7E9HrN00dnm+yROfE0A
  Cc: will.deacon-5wv7dgnIgG8, catalin.marinas-5wv7dgnIgG8,
	mark.rutland-5wv7dgnIgG8, robh+dt-DgEjT+Ai2ygdnm+yROfE0A,
	devicetree-u79uwXL29TY76Z2rM5mHXA, afaerber-l3A5Bk7waGM,
	Martin Blumenstingl

This adds support for the internal eMMC, the SD-card slot and ethernet on
all Tronsmart S95 Vega boards.
There are some S95 Vega Meta clones out there where the bootloader does
not configure the ethernet registers correctly, leading to non-working
ethernet. This will be fixed in a separate series. Boards which are not
suffering from broken bootloaders have fully working ethernet.

Changes since v1:
- rebased after latest updates which added the IR decoder to
  meson-gxbb-vega-s95.dtsi

Changes since the RFC:
- added eMMC support
- renamed fixed 3V3 regulator so it can be re-used for eMMC


Martin Blumenstingl (3):
  ARM64: dts: amlogic: SD card support for all Tronsmart Vega S95
    devices
  ARM64: dts: amlogic: eMMC support for all Tronsmart Vega S95 devices
  ARM64: dts: amlogic: enable ethernet on all Tronsmart Vega S95 devices

 .../boot/dts/amlogic/meson-gxbb-vega-s95.dtsi      | 67 ++++++++++++++++++++++
 1 file changed, 67 insertions(+)

-- 
2.9.3

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [PATCH v2 0/3] eMMC, SD-card and ethernet support for Vega S95 boards
@ 2016-09-04 18:29         ` Martin Blumenstingl
  0 siblings, 0 replies; 28+ messages in thread
From: Martin Blumenstingl @ 2016-09-04 18:29 UTC (permalink / raw)
  To: linus-amlogic

This adds support for the internal eMMC, the SD-card slot and ethernet on
all Tronsmart S95 Vega boards.
There are some S95 Vega Meta clones out there where the bootloader does
not configure the ethernet registers correctly, leading to non-working
ethernet. This will be fixed in a separate series. Boards which are not
suffering from broken bootloaders have fully working ethernet.

Changes since v1:
- rebased after latest updates which added the IR decoder to
  meson-gxbb-vega-s95.dtsi

Changes since the RFC:
- added eMMC support
- renamed fixed 3V3 regulator so it can be re-used for eMMC


Martin Blumenstingl (3):
  ARM64: dts: amlogic: SD card support for all Tronsmart Vega S95
    devices
  ARM64: dts: amlogic: eMMC support for all Tronsmart Vega S95 devices
  ARM64: dts: amlogic: enable ethernet on all Tronsmart Vega S95 devices

 .../boot/dts/amlogic/meson-gxbb-vega-s95.dtsi      | 67 ++++++++++++++++++++++
 1 file changed, 67 insertions(+)

-- 
2.9.3

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [PATCH v2 1/3] ARM64: dts: amlogic: SD card support for all Tronsmart Vega S95 devices
  2016-09-04 18:29         ` Martin Blumenstingl
@ 2016-09-04 18:29             ` Martin Blumenstingl
  -1 siblings, 0 replies; 28+ messages in thread
From: Martin Blumenstingl @ 2016-09-04 18:29 UTC (permalink / raw)
  To: linux-amlogic-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	khilman-rdvid1DuHRBWk0Htik3J/w, carlo-KA+7E9HrN00dnm+yROfE0A
  Cc: will.deacon-5wv7dgnIgG8, catalin.marinas-5wv7dgnIgG8,
	mark.rutland-5wv7dgnIgG8, robh+dt-DgEjT+Ai2ygdnm+yROfE0A,
	devicetree-u79uwXL29TY76Z2rM5mHXA, afaerber-l3A5Bk7waGM,
	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-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
Tested-by: Andreas Färber <afaerber-l3A5Bk7waGM@public.gmane.org>
---
 .../boot/dts/amlogic/meson-gxbb-vega-s95.dtsi      | 26 ++++++++++++++++++++++
 1 file changed, 26 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 560770e..e9ead47 100644
--- a/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi
+++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi
@@ -52,6 +52,16 @@
 	chosen {
 		stdout-path = "serial0:115200n8";
 	};
+
+	vcc_3v3: regulator@0 {
+		compatible = "regulator-fixed";
+
+		regulator-name = "VCC3V3";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+
+		regulator-always-on;
+	};
 };
 
 &uart_AO {
@@ -66,3 +76,19 @@
 	pinctrl-0 = <&remote_input_ao_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 = <&vcc_3v3>;
+	voltage-ranges = <3300 3300>;
+};
-- 
2.9.3

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [PATCH v2 1/3] ARM64: dts: amlogic: SD card support for all Tronsmart Vega S95 devices
@ 2016-09-04 18:29             ` Martin Blumenstingl
  0 siblings, 0 replies; 28+ messages in thread
From: Martin Blumenstingl @ 2016-09-04 18:29 UTC (permalink / raw)
  To: linus-amlogic

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>
Tested-by: Andreas F?rber <afaerber@suse.de>
---
 .../boot/dts/amlogic/meson-gxbb-vega-s95.dtsi      | 26 ++++++++++++++++++++++
 1 file changed, 26 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 560770e..e9ead47 100644
--- a/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi
+++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi
@@ -52,6 +52,16 @@
 	chosen {
 		stdout-path = "serial0:115200n8";
 	};
+
+	vcc_3v3: regulator at 0 {
+		compatible = "regulator-fixed";
+
+		regulator-name = "VCC3V3";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+
+		regulator-always-on;
+	};
 };
 
 &uart_AO {
@@ -66,3 +76,19 @@
 	pinctrl-0 = <&remote_input_ao_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 = <&vcc_3v3>;
+	voltage-ranges = <3300 3300>;
+};
-- 
2.9.3

^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [PATCH v2 2/3] ARM64: dts: amlogic: eMMC support for all Tronsmart Vega S95 devices
  2016-09-04 18:29         ` Martin Blumenstingl
@ 2016-09-04 18:29             ` Martin Blumenstingl
  -1 siblings, 0 replies; 28+ messages in thread
From: Martin Blumenstingl @ 2016-09-04 18:29 UTC (permalink / raw)
  To: linux-amlogic-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	khilman-rdvid1DuHRBWk0Htik3J/w, carlo-KA+7E9HrN00dnm+yROfE0A
  Cc: will.deacon-5wv7dgnIgG8, catalin.marinas-5wv7dgnIgG8,
	mark.rutland-5wv7dgnIgG8, robh+dt-DgEjT+Ai2ygdnm+yROfE0A,
	devicetree-u79uwXL29TY76Z2rM5mHXA, afaerber-l3A5Bk7waGM,
	Martin Blumenstingl

This adds eMMC support for all Tronsmart Vega S95 devices using
sd_emmc_c. This is implemented similar to the p20x boards (meaning it
uses fixed regulators).

Signed-off-by: Martin Blumenstingl <martin.blumenstingl-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
---
 .../boot/dts/amlogic/meson-gxbb-vega-s95.dtsi      | 35 ++++++++++++++++++++++
 1 file changed, 35 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 e9ead47..4573bac 100644
--- a/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi
+++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi
@@ -62,6 +62,21 @@
 
 		regulator-always-on;
 	};
+
+	vcc_1v8: regulator@1 {
+		compatible = "regulator-fixed";
+
+		regulator-name = "VCC1V8";
+		regulator-min-microvolt = <1800000>;
+		regulator-max-microvolt = <1800000>;
+
+		regulator-always-on;
+	};
+
+	emmc_pwrseq: emmc-pwrseq {
+		compatible = "mmc-pwrseq-emmc";
+		reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>;
+	};
 };
 
 &uart_AO {
@@ -92,3 +107,23 @@
 	vmmc-supply = <&vcc_3v3>;
 	voltage-ranges = <3300 3300>;
 };
+
+&sd_emmc_c {
+	status = "okay";
+	pinctrl-0 = <&emmc_pins>;
+	pinctrl-names = "default";
+
+	bus-width = <8>;
+	cap-sd-highspeed;
+	cap-mmc-highspeed;
+	max-frequency = <200000000>;
+	non-removable;
+	disable-wp;
+	mmc-ddr-1_8v;
+	mmc-hs200-1_8v;
+
+	mmc-pwrseq = <&emmc_pwrseq>;
+	voltage-ranges = <1800 3300>;
+	vmmc-supply = <&vcc_3v3>;
+	vmmcq-sumpply = <&vcc_1v8>;
+};
-- 
2.9.3

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [PATCH v2 2/3] ARM64: dts: amlogic: eMMC support for all Tronsmart Vega S95 devices
@ 2016-09-04 18:29             ` Martin Blumenstingl
  0 siblings, 0 replies; 28+ messages in thread
From: Martin Blumenstingl @ 2016-09-04 18:29 UTC (permalink / raw)
  To: linus-amlogic

This adds eMMC support for all Tronsmart Vega S95 devices using
sd_emmc_c. This is implemented similar to the p20x boards (meaning it
uses fixed regulators).

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
---
 .../boot/dts/amlogic/meson-gxbb-vega-s95.dtsi      | 35 ++++++++++++++++++++++
 1 file changed, 35 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 e9ead47..4573bac 100644
--- a/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi
+++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi
@@ -62,6 +62,21 @@
 
 		regulator-always-on;
 	};
+
+	vcc_1v8: regulator at 1 {
+		compatible = "regulator-fixed";
+
+		regulator-name = "VCC1V8";
+		regulator-min-microvolt = <1800000>;
+		regulator-max-microvolt = <1800000>;
+
+		regulator-always-on;
+	};
+
+	emmc_pwrseq: emmc-pwrseq {
+		compatible = "mmc-pwrseq-emmc";
+		reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>;
+	};
 };
 
 &uart_AO {
@@ -92,3 +107,23 @@
 	vmmc-supply = <&vcc_3v3>;
 	voltage-ranges = <3300 3300>;
 };
+
+&sd_emmc_c {
+	status = "okay";
+	pinctrl-0 = <&emmc_pins>;
+	pinctrl-names = "default";
+
+	bus-width = <8>;
+	cap-sd-highspeed;
+	cap-mmc-highspeed;
+	max-frequency = <200000000>;
+	non-removable;
+	disable-wp;
+	mmc-ddr-1_8v;
+	mmc-hs200-1_8v;
+
+	mmc-pwrseq = <&emmc_pwrseq>;
+	voltage-ranges = <1800 3300>;
+	vmmc-supply = <&vcc_3v3>;
+	vmmcq-sumpply = <&vcc_1v8>;
+};
-- 
2.9.3

^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [PATCH v2 3/3] ARM64: dts: amlogic: enable ethernet on all Tronsmart Vega S95 devices
  2016-09-04 18:29         ` Martin Blumenstingl
@ 2016-09-04 18:29             ` Martin Blumenstingl
  -1 siblings, 0 replies; 28+ messages in thread
From: Martin Blumenstingl @ 2016-09-04 18:29 UTC (permalink / raw)
  To: linux-amlogic-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	khilman-rdvid1DuHRBWk0Htik3J/w, carlo-KA+7E9HrN00dnm+yROfE0A
  Cc: will.deacon-5wv7dgnIgG8, catalin.marinas-5wv7dgnIgG8,
	mark.rutland-5wv7dgnIgG8, robh+dt-DgEjT+Ai2ygdnm+yROfE0A,
	devicetree-u79uwXL29TY76Z2rM5mHXA, afaerber-l3A5Bk7waGM,
	Martin Blumenstingl

All of these have a Realtek Gbit RGMII PHY.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org>
Tested-by: Andreas Färber <afaerber-l3A5Bk7waGM@public.gmane.org>
---
 arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi | 6 ++++++
 1 file changed, 6 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 4573bac..463185d 100644
--- a/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi
+++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi
@@ -92,6 +92,12 @@
 	pinctrl-names = "default";
 };
 
+&ethmac {
+	status = "okay";
+	pinctrl-0 = <&eth_pins>;
+	pinctrl-names = "default";
+};
+
 &sd_emmc_b {
 	status = "okay";
 	pinctrl-0 = <&sdcard_pins>;
-- 
2.9.3

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 28+ messages in thread

* [PATCH v2 3/3] ARM64: dts: amlogic: enable ethernet on all Tronsmart Vega S95 devices
@ 2016-09-04 18:29             ` Martin Blumenstingl
  0 siblings, 0 replies; 28+ messages in thread
From: Martin Blumenstingl @ 2016-09-04 18:29 UTC (permalink / raw)
  To: linus-amlogic

All of these have a Realtek Gbit RGMII PHY.

Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Tested-by: Andreas F?rber <afaerber@suse.de>
---
 arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi | 6 ++++++
 1 file changed, 6 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 4573bac..463185d 100644
--- a/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi
+++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-vega-s95.dtsi
@@ -92,6 +92,12 @@
 	pinctrl-names = "default";
 };
 
+&ethmac {
+	status = "okay";
+	pinctrl-0 = <&eth_pins>;
+	pinctrl-names = "default";
+};
+
 &sd_emmc_b {
 	status = "okay";
 	pinctrl-0 = <&sdcard_pins>;
-- 
2.9.3

^ permalink raw reply related	[flat|nested] 28+ messages in thread

* Re: [PATCH v2 0/3] eMMC, SD-card and ethernet support for Vega S95 boards
  2016-09-04 18:29         ` Martin Blumenstingl
@ 2016-09-07 20:06             ` Kevin Hilman
  -1 siblings, 0 replies; 28+ messages in thread
From: Kevin Hilman @ 2016-09-07 20:06 UTC (permalink / raw)
  To: Martin Blumenstingl
  Cc: linux-amlogic-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
	carlo-KA+7E9HrN00dnm+yROfE0A, will.deacon-5wv7dgnIgG8,
	catalin.marinas-5wv7dgnIgG8, mark.rutland-5wv7dgnIgG8,
	robh+dt-DgEjT+Ai2ygdnm+yROfE0A,
	devicetree-u79uwXL29TY76Z2rM5mHXA, afaerber-l3A5Bk7waGM

Hi Marrtin,

Martin Blumenstingl <martin.blumenstingl-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> writes:

> This adds support for the internal eMMC, the SD-card slot and ethernet on
> all Tronsmart S95 Vega boards.
> There are some S95 Vega Meta clones out there where the bootloader does
> not configure the ethernet registers correctly, leading to non-working
> ethernet. This will be fixed in a separate series. Boards which are not
> suffering from broken bootloaders have fully working ethernet.
>
> Changes since v1:
> - rebased after latest updates which added the IR decoder to
>   meson-gxbb-vega-s95.dtsi
>
> Changes since the RFC:
> - added eMMC support
> - renamed fixed 3V3 regulator so it can be re-used for eMMC
>
>
> Martin Blumenstingl (3):
>   ARM64: dts: amlogic: SD card support for all Tronsmart Vega S95
>     devices
>   ARM64: dts: amlogic: eMMC support for all Tronsmart Vega S95 devices
>   ARM64: dts: amlogic: enable ethernet on all Tronsmart Vega S95 devices

I've applied the ethernet one, but I'm going to wait on the SD/eMMC
patches until the driver is finalized for the other one.

Thanks,

Kevin
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [PATCH v2 0/3] eMMC, SD-card and ethernet support for Vega S95 boards
@ 2016-09-07 20:06             ` Kevin Hilman
  0 siblings, 0 replies; 28+ messages in thread
From: Kevin Hilman @ 2016-09-07 20:06 UTC (permalink / raw)
  To: linus-amlogic

Hi Marrtin,

Martin Blumenstingl <martin.blumenstingl@googlemail.com> writes:

> This adds support for the internal eMMC, the SD-card slot and ethernet on
> all Tronsmart S95 Vega boards.
> There are some S95 Vega Meta clones out there where the bootloader does
> not configure the ethernet registers correctly, leading to non-working
> ethernet. This will be fixed in a separate series. Boards which are not
> suffering from broken bootloaders have fully working ethernet.
>
> Changes since v1:
> - rebased after latest updates which added the IR decoder to
>   meson-gxbb-vega-s95.dtsi
>
> Changes since the RFC:
> - added eMMC support
> - renamed fixed 3V3 regulator so it can be re-used for eMMC
>
>
> Martin Blumenstingl (3):
>   ARM64: dts: amlogic: SD card support for all Tronsmart Vega S95
>     devices
>   ARM64: dts: amlogic: eMMC support for all Tronsmart Vega S95 devices
>   ARM64: dts: amlogic: enable ethernet on all Tronsmart Vega S95 devices

I've applied the ethernet one, but I'm going to wait on the SD/eMMC
patches until the driver is finalized for the other one.

Thanks,

Kevin

^ permalink raw reply	[flat|nested] 28+ messages in thread

* Re: [PATCH v2 0/3] eMMC, SD-card and ethernet support for Vega S95 boards
  2016-09-07 20:06             ` Kevin Hilman
@ 2016-09-07 20:50                 ` Kevin Hilman
  -1 siblings, 0 replies; 28+ messages in thread
From: Kevin Hilman @ 2016-09-07 20:50 UTC (permalink / raw)
  To: Martin Blumenstingl
  Cc: linux-amlogic, Carlo Caione, Will Deacon, Catalin Marinas,
	Mark Rutland, Rob Herring, devicetree, Andreas Färber

On Wed, Sep 7, 2016 at 1:06 PM, Kevin Hilman <khilman-rdvid1DuHRBWk0Htik3J/w@public.gmane.org> wrote:
> Hi Marrtin,
>
> Martin Blumenstingl <martin.blumenstingl-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> writes:
>
>> This adds support for the internal eMMC, the SD-card slot and ethernet on
>> all Tronsmart S95 Vega boards.
>> There are some S95 Vega Meta clones out there where the bootloader does
>> not configure the ethernet registers correctly, leading to non-working
>> ethernet. This will be fixed in a separate series. Boards which are not
>> suffering from broken bootloaders have fully working ethernet.
>>
>> Changes since v1:
>> - rebased after latest updates which added the IR decoder to
>>   meson-gxbb-vega-s95.dtsi
>>
>> Changes since the RFC:
>> - added eMMC support
>> - renamed fixed 3V3 regulator so it can be re-used for eMMC
>>
>>
>> Martin Blumenstingl (3):
>>   ARM64: dts: amlogic: SD card support for all Tronsmart Vega S95
>>     devices
>>   ARM64: dts: amlogic: eMMC support for all Tronsmart Vega S95 devices
>>   ARM64: dts: amlogic: enable ethernet on all Tronsmart Vega S95 devices
>
> I've applied the ethernet one, but I'm going to wait on the SD/eMMC
> patches until the driver is finalized for the other one.

Oops, I replied on the wrong thread, but just to be clear, I applied
v2 of the ethernet patch, though it doesn't make too much difference
in this case.

Kevin
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 28+ messages in thread

* [PATCH v2 0/3] eMMC, SD-card and ethernet support for Vega S95 boards
@ 2016-09-07 20:50                 ` Kevin Hilman
  0 siblings, 0 replies; 28+ messages in thread
From: Kevin Hilman @ 2016-09-07 20:50 UTC (permalink / raw)
  To: linus-amlogic

On Wed, Sep 7, 2016 at 1:06 PM, Kevin Hilman <khilman@baylibre.com> wrote:
> Hi Marrtin,
>
> Martin Blumenstingl <martin.blumenstingl@googlemail.com> writes:
>
>> This adds support for the internal eMMC, the SD-card slot and ethernet on
>> all Tronsmart S95 Vega boards.
>> There are some S95 Vega Meta clones out there where the bootloader does
>> not configure the ethernet registers correctly, leading to non-working
>> ethernet. This will be fixed in a separate series. Boards which are not
>> suffering from broken bootloaders have fully working ethernet.
>>
>> Changes since v1:
>> - rebased after latest updates which added the IR decoder to
>>   meson-gxbb-vega-s95.dtsi
>>
>> Changes since the RFC:
>> - added eMMC support
>> - renamed fixed 3V3 regulator so it can be re-used for eMMC
>>
>>
>> Martin Blumenstingl (3):
>>   ARM64: dts: amlogic: SD card support for all Tronsmart Vega S95
>>     devices
>>   ARM64: dts: amlogic: eMMC support for all Tronsmart Vega S95 devices
>>   ARM64: dts: amlogic: enable ethernet on all Tronsmart Vega S95 devices
>
> I've applied the ethernet one, but I'm going to wait on the SD/eMMC
> patches until the driver is finalized for the other one.

Oops, I replied on the wrong thread, but just to be clear, I applied
v2 of the ethernet patch, though it doesn't make too much difference
in this case.

Kevin

^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2016-09-07 20:50 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 ` [PATCH 3/3] ARM64: dts: amlogic: enable sd_emmc_b " Martin Blumenstingl
2016-07-08  0:49   ` 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

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.