All of lore.kernel.org
 help / color / mirror / Atom feed
* BananaPi M2 Zero: Add HDMI out and ethernet
@ 2021-02-28 16:16 Pieter Beers
  2021-02-28 16:16 ` [PATCH 1/2] ARM: dts: sunxi: h2-plus-bananapi-m2-zero: Add HDMI out Pieter Beers
  2021-02-28 16:16 ` Pieter Beers
  0 siblings, 2 replies; 11+ messages in thread
From: Pieter Beers @ 2021-02-28 16:16 UTC (permalink / raw)
  To: mripard, wens, linux-arm-kernel, jernej.skrabec

I'm sending two patches to enable HDMI out and ethernet on the BananaPi M2 Zero. Please let me know whether they can be accepted in the current form, or whether I need to do anything in addition.

Jernej Škrabec found my HDMI out patch, and wrote that seemed good to go. He also let me know that the ethernet patch would probably be rejected, since the BananaPi M2 Zero does not come with a physical RJ-45 port. 
However, it does come with a four-hole dedicated ethernet header. I thought, since the presence of such a header is, as far as I know, enough to enable UART tty, then perhaps the same might go for ethernet? In any 
case, it would be very nice if you can accept the HDMI out patch, and nicer still if you could also accept the ethernet patch!

Kind regards,

Pieter Beers

[PATCH 1/2] ARM: dts: sunxi: h2-plus-bananapi-m2-zero: Add HDMI out
[PATCH 2/2] ARM: dts: sunxi: h2-plus-bananapi-m2-zero: Add ethernet


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* [PATCH 1/2] ARM: dts: sunxi: h2-plus-bananapi-m2-zero: Add HDMI out
  2021-02-28 16:16 BananaPi M2 Zero: Add HDMI out and ethernet Pieter Beers
@ 2021-02-28 16:16 ` Pieter Beers
  2021-03-02  9:19   ` Maxime Ripard
  2021-02-28 16:16 ` Pieter Beers
  1 sibling, 1 reply; 11+ messages in thread
From: Pieter Beers @ 2021-02-28 16:16 UTC (permalink / raw)
  To: mripard, wens, linux-arm-kernel, jernej.skrabec; +Cc: Pieter Beers

Add HDMI out, including the display engine, to the BananaPi
M2 Zero.

Signed-off-by: Pieter Beers <pjbrs@floorenpj.xs4all.nl>
---
 .../dts/sun8i-h2-plus-bananapi-m2-zero.dts    | 25 +++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts b/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts
index e76d56a3df9c..d339a26662cb 100644
--- a/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts
+++ b/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts
@@ -26,6 +26,17 @@
 		stdout-path = "serial0:115200n8";
 	};
 
+	connector {
+		compatible = "hdmi-connector";
+		type = "a";
+
+		port {
+			hdmi_con_in: endpoint {
+				remote-endpoint = <&hdmi_out_con>;
+			};
+		};
+	};
+
 	leds {
 		compatible = "gpio-leds";
 
@@ -107,6 +118,20 @@
 	};
 };
 
+&de {
+	status = "okay";
+};
+
+&hdmi {
+	status = "okay";
+};
+
+&hdmi_out {
+	hdmi_out_con: endpoint {
+		remote-endpoint = <&hdmi_con_in>;
+	};
+};
+
 &ohci0 {
 	status = "okay";
 };
-- 
2.17.5


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* [PATCH 2/2] ARM: dts: sunxi: h2-plus-bananapi-m2-zero: Add ethernet
  2021-02-28 16:16 BananaPi M2 Zero: Add HDMI out and ethernet Pieter Beers
  2021-02-28 16:16 ` [PATCH 1/2] ARM: dts: sunxi: h2-plus-bananapi-m2-zero: Add HDMI out Pieter Beers
@ 2021-02-28 16:16 ` Pieter Beers
  1 sibling, 0 replies; 11+ messages in thread
From: Pieter Beers @ 2021-02-28 16:16 UTC (permalink / raw)
  To: mripard, wens, linux-arm-kernel, jernej.skrabec; +Cc: Pieter Beers

This patch enables the ethernet driver for the BananaPi M2 Zero

The BananaPi M2 Zero does not have an RJ-45 interface, but it
does feature a four-hole header to which an RJ-45 port can be
connected, for a 100 Mbps ethernet link.

Signed-off-by: Pieter Beers <pjbrs@floorenpj.xs4all.nl>
---
 arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts b/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts
index d339a26662cb..d35a978b243d 100644
--- a/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts
+++ b/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts
@@ -240,3 +240,10 @@
 	 */
 	status = "okay";
 };
+
+&emac {
+	status = "okay";
+	phy-handle = <&int_mii_phy>;
+	phy-mode = "mii";
+	allwinner,leds-active-low;
+};
-- 
2.17.5


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH 1/2] ARM: dts: sunxi: h2-plus-bananapi-m2-zero: Add HDMI out
  2021-02-28 16:16 ` [PATCH 1/2] ARM: dts: sunxi: h2-plus-bananapi-m2-zero: Add HDMI out Pieter Beers
@ 2021-03-02  9:19   ` Maxime Ripard
  2021-03-02 17:25     ` Jernej Škrabec
  0 siblings, 1 reply; 11+ messages in thread
From: Maxime Ripard @ 2021-03-02  9:19 UTC (permalink / raw)
  To: Pieter Beers; +Cc: wens, jernej.skrabec, linux-arm-kernel


[-- Attachment #1.1: Type: text/plain, Size: 1256 bytes --]

Hi,

On Sun, Feb 28, 2021 at 05:16:56PM +0100, Pieter Beers wrote:
> Add HDMI out, including the display engine, to the BananaPi
> M2 Zero.
> 
> Signed-off-by: Pieter Beers <pjbrs@floorenpj.xs4all.nl>
> ---
>  .../dts/sun8i-h2-plus-bananapi-m2-zero.dts    | 25 +++++++++++++++++++
>  1 file changed, 25 insertions(+)
> 
> diff --git a/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts b/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts
> index e76d56a3df9c..d339a26662cb 100644
> --- a/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts
> +++ b/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts
> @@ -26,6 +26,17 @@
>  		stdout-path = "serial0:115200n8";
>  	};
>  
> +	connector {
> +		compatible = "hdmi-connector";
> +		type = "a";
> +
> +		port {
> +			hdmi_con_in: endpoint {
> +				remote-endpoint = <&hdmi_out_con>;
> +			};
> +		};
> +	};
> +
>  	leds {
>  		compatible = "gpio-leds";
>  
> @@ -107,6 +118,20 @@
>  	};
>  };
>  
> +&de {
> +	status = "okay";
> +};
> +
> +&hdmi {
> +	status = "okay";
> +};
> +
> +&hdmi_out {
> +	hdmi_out_con: endpoint {
> +		remote-endpoint = <&hdmi_con_in>;
> +	};
> +};
> +

These nodes should be ordered by alphabetical order

Thanks!
Maxime

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

[-- Attachment #2: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: Re: [PATCH 1/2] ARM: dts: sunxi: h2-plus-bananapi-m2-zero: Add HDMI out
  2021-03-02  9:19   ` Maxime Ripard
@ 2021-03-02 17:25     ` Jernej Škrabec
  2021-03-04 19:14       ` [PATCH 0/2 v2] BananaPi M2 Zero: Add HDMI-out and ethernet Pieter Beers
  0 siblings, 1 reply; 11+ messages in thread
From: Jernej Škrabec @ 2021-03-02 17:25 UTC (permalink / raw)
  To: Pieter Beers, Maxime Ripard; +Cc: wens, linux-arm-kernel

Hi!

Dne torek, 02. marec 2021 ob 10:19:25 CET je Maxime Ripard napisal(a):
> Hi,
> 
> On Sun, Feb 28, 2021 at 05:16:56PM +0100, Pieter Beers wrote:
> > Add HDMI out, including the display engine, to the BananaPi
> > M2 Zero.
> > 
> > Signed-off-by: Pieter Beers <pjbrs@floorenpj.xs4all.nl>
> > ---
> >  .../dts/sun8i-h2-plus-bananapi-m2-zero.dts    | 25 +++++++++++++++++++
> >  1 file changed, 25 insertions(+)
> > 
> > diff --git a/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts b/arch/
arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts
> > index e76d56a3df9c..d339a26662cb 100644
> > --- a/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts
> > +++ b/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts
> > @@ -26,6 +26,17 @@
> >  		stdout-path = "serial0:115200n8";
> >  	};
> >  
> > +	connector {
> > +		compatible = "hdmi-connector";
> > +		type = "a";

I didn't noticed earlier, but BananaPi M2 Zero has mini HDMI, so type should 
be set to "c" here.

Best regards,
Jernej

> > +
> > +		port {
> > +			hdmi_con_in: endpoint {
> > +				remote-endpoint = 
<&hdmi_out_con>;
> > +			};
> > +		};
> > +	};
> > +
> >  	leds {
> >  		compatible = "gpio-leds";
> >  
> > @@ -107,6 +118,20 @@
> >  	};
> >  };
> >  
> > +&de {
> > +	status = "okay";
> > +};
> > +
> > +&hdmi {
> > +	status = "okay";
> > +};
> > +
> > +&hdmi_out {
> > +	hdmi_out_con: endpoint {
> > +		remote-endpoint = <&hdmi_con_in>;
> > +	};
> > +};
> > +
> 
> These nodes should be ordered by alphabetical order
> 
> Thanks!
> Maxime
> 



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* [PATCH 0/2 v2] BananaPi M2 Zero: Add HDMI-out and ethernet
  2021-03-02 17:25     ` Jernej Škrabec
@ 2021-03-04 19:14       ` Pieter Beers
  2021-03-04 19:14         ` [PATCH 1/2] ARM: dts: sunxi: h2-plus-bananapi-m2-zero: Add HDMI out Pieter Beers
  2021-03-04 19:14         ` [PATCH 2/2] ARM: dts: sunxi: h2-plus-bananapi-m2-zero: Add ethernet Pieter Beers
  0 siblings, 2 replies; 11+ messages in thread
From: Pieter Beers @ 2021-03-04 19:14 UTC (permalink / raw)
  To: mripard, jernej.skrabec, wens, linux-arm-kernel

Hi, I'm resending my patches that add HDMI out and ethernet to the BananaPi M2 Zero device tree. This time, I put all new nodes in alphabetical order and changed the hdmi connector type to "c" (mini-hdmi).

Kind regards,

Pieter Beers

[PATCH 1/2] ARM: dts: sunxi: h2-plus-bananapi-m2-zero: Add HDMI out
[PATCH 2/2] ARM: dts: sunxi: h2-plus-bananapi-m2-zero: Add ethernet


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* [PATCH 1/2] ARM: dts: sunxi: h2-plus-bananapi-m2-zero: Add HDMI out
  2021-03-04 19:14       ` [PATCH 0/2 v2] BananaPi M2 Zero: Add HDMI-out and ethernet Pieter Beers
@ 2021-03-04 19:14         ` Pieter Beers
  2021-03-04 19:30           ` Jernej Škrabec
  2021-03-08 15:15           ` Maxime Ripard
  2021-03-04 19:14         ` [PATCH 2/2] ARM: dts: sunxi: h2-plus-bananapi-m2-zero: Add ethernet Pieter Beers
  1 sibling, 2 replies; 11+ messages in thread
From: Pieter Beers @ 2021-03-04 19:14 UTC (permalink / raw)
  To: mripard, jernej.skrabec, wens, linux-arm-kernel; +Cc: Pieter Beers

Add HDMI out, including the display engine, to the BananaPi
M2 Zero.

Signed-off-by: Pieter Beers <pjbrs@floorenpj.xs4all.nl>
---
 .../dts/sun8i-h2-plus-bananapi-m2-zero.dts    | 25 +++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts b/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts
index e76d56a3df9c..9c7b370b836d 100644
--- a/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts
+++ b/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts
@@ -26,6 +26,17 @@
 		stdout-path = "serial0:115200n8";
 	};
 
+	connector {
+		compatible = "hdmi-connector";
+		type = "c";
+
+		port {
+			hdmi_con_in: endpoint {
+				remote-endpoint = <&hdmi_out_con>;
+			};
+		};
+	};
+
 	leds {
 		compatible = "gpio-leds";
 
@@ -74,10 +85,24 @@
 	cpu-supply = <&reg_vdd_cpux>;
 };
 
+&de {
+	status = "okay";
+};
+
 &ehci0 {
 	status = "okay";
 };
 
+&hdmi {
+	status = "okay";
+};
+
+&hdmi_out {
+	hdmi_out_con: endpoint {
+		remote-endpoint = <&hdmi_con_in>;
+	};
+};
+
 &mmc0 {
 	vmmc-supply = <&reg_vcc3v3>;
 	bus-width = <4>;
-- 
2.17.5


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* [PATCH 2/2] ARM: dts: sunxi: h2-plus-bananapi-m2-zero: Add ethernet
  2021-03-04 19:14       ` [PATCH 0/2 v2] BananaPi M2 Zero: Add HDMI-out and ethernet Pieter Beers
  2021-03-04 19:14         ` [PATCH 1/2] ARM: dts: sunxi: h2-plus-bananapi-m2-zero: Add HDMI out Pieter Beers
@ 2021-03-04 19:14         ` Pieter Beers
  2021-03-08 15:46           ` Maxime Ripard
  1 sibling, 1 reply; 11+ messages in thread
From: Pieter Beers @ 2021-03-04 19:14 UTC (permalink / raw)
  To: mripard, jernej.skrabec, wens, linux-arm-kernel; +Cc: Pieter Beers

This patch enables the ethernet driver for the BananaPi M2 Zero

The BananaPi M2 Zero does not have an RJ-45 interface, but it
does feature a four-hole header to which an RJ-45 port can be
connected, for a 100 Mbps ethernet link.

Signed-off-by: Pieter Beers <pjbrs@floorenpj.xs4all.nl>
---
 arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts b/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts
index 9c7b370b836d..1e87fc190ed3 100644
--- a/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts
+++ b/arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts
@@ -93,6 +93,13 @@
 	status = "okay";
 };
 
+&emac {
+	status = "okay";
+	phy-handle = <&int_mii_phy>;
+	phy-mode = "mii";
+	allwinner,leds-active-low;
+};
+
 &hdmi {
 	status = "okay";
 };
-- 
2.17.5


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH 1/2] ARM: dts: sunxi: h2-plus-bananapi-m2-zero: Add HDMI out
  2021-03-04 19:14         ` [PATCH 1/2] ARM: dts: sunxi: h2-plus-bananapi-m2-zero: Add HDMI out Pieter Beers
@ 2021-03-04 19:30           ` Jernej Škrabec
  2021-03-08 15:15           ` Maxime Ripard
  1 sibling, 0 replies; 11+ messages in thread
From: Jernej Škrabec @ 2021-03-04 19:30 UTC (permalink / raw)
  To: mripard, wens, linux-arm-kernel, Pieter Beers; +Cc: Pieter Beers

Hi!

Dne četrtek, 04. marec 2021 ob 20:14:55 CET je Pieter Beers napisal(a):
> Add HDMI out, including the display engine, to the BananaPi
> M2 Zero.
> 
> Signed-off-by: Pieter Beers <pjbrs@floorenpj.xs4all.nl>

This looks good now, so:

Reviewed-by: Jernej Skrabec <jernej.skrabec@siol.net>

Nit: In future, please include patch version in all patches, not only cover 
letter.

Best regards,
Jernej



_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH 1/2] ARM: dts: sunxi: h2-plus-bananapi-m2-zero: Add HDMI out
  2021-03-04 19:14         ` [PATCH 1/2] ARM: dts: sunxi: h2-plus-bananapi-m2-zero: Add HDMI out Pieter Beers
  2021-03-04 19:30           ` Jernej Škrabec
@ 2021-03-08 15:15           ` Maxime Ripard
  1 sibling, 0 replies; 11+ messages in thread
From: Maxime Ripard @ 2021-03-08 15:15 UTC (permalink / raw)
  To: Pieter Beers; +Cc: jernej.skrabec, wens, linux-arm-kernel


[-- Attachment #1.1: Type: text/plain, Size: 228 bytes --]

On Thu, Mar 04, 2021 at 08:14:55PM +0100, Pieter Beers wrote:
> Add HDMI out, including the display engine, to the BananaPi
> M2 Zero.
> 
> Signed-off-by: Pieter Beers <pjbrs@floorenpj.xs4all.nl>

Applied, thanks
Maxime

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

[-- Attachment #2: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

* Re: [PATCH 2/2] ARM: dts: sunxi: h2-plus-bananapi-m2-zero: Add ethernet
  2021-03-04 19:14         ` [PATCH 2/2] ARM: dts: sunxi: h2-plus-bananapi-m2-zero: Add ethernet Pieter Beers
@ 2021-03-08 15:46           ` Maxime Ripard
  0 siblings, 0 replies; 11+ messages in thread
From: Maxime Ripard @ 2021-03-08 15:46 UTC (permalink / raw)
  To: Pieter Beers; +Cc: jernej.skrabec, wens, linux-arm-kernel


[-- Attachment #1.1: Type: text/plain, Size: 466 bytes --]

Hi,

On Thu, Mar 04, 2021 at 08:14:56PM +0100, Pieter Beers wrote:
> This patch enables the ethernet driver for the BananaPi M2 Zero
> 
> The BananaPi M2 Zero does not have an RJ-45 interface, but it
> does feature a four-hole header to which an RJ-45 port can be
> connected, for a 100 Mbps ethernet link.
> 
> Signed-off-by: Pieter Beers <pjbrs@floorenpj.xs4all.nl>

All the optional features of a board are typically handled by an
overlay.

Maxime

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

[-- Attachment #2: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2021-03-08 15:47 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-28 16:16 BananaPi M2 Zero: Add HDMI out and ethernet Pieter Beers
2021-02-28 16:16 ` [PATCH 1/2] ARM: dts: sunxi: h2-plus-bananapi-m2-zero: Add HDMI out Pieter Beers
2021-03-02  9:19   ` Maxime Ripard
2021-03-02 17:25     ` Jernej Škrabec
2021-03-04 19:14       ` [PATCH 0/2 v2] BananaPi M2 Zero: Add HDMI-out and ethernet Pieter Beers
2021-03-04 19:14         ` [PATCH 1/2] ARM: dts: sunxi: h2-plus-bananapi-m2-zero: Add HDMI out Pieter Beers
2021-03-04 19:30           ` Jernej Škrabec
2021-03-08 15:15           ` Maxime Ripard
2021-03-04 19:14         ` [PATCH 2/2] ARM: dts: sunxi: h2-plus-bananapi-m2-zero: Add ethernet Pieter Beers
2021-03-08 15:46           ` Maxime Ripard
2021-02-28 16:16 ` Pieter Beers

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.