[PATCH] ARM64: dts: allwinner: Add devicetree for pine H64 modelA evaluation board

59 views
Skip to first unread message

Corentin Labbe

unread,
Aug 8, 2019, 4:42:59 AM8/8/19
to mark.r...@arm.com, mri...@kernel.org, rob...@kernel.org, we...@csie.org, devic...@vger.kernel.org, linux-ar...@lists.infradead.org, linux-...@vger.kernel.org, linux...@googlegroups.com, Corentin Labbe
This patch adds the evaluation variant of the model A of the PineH64.
The model A has the same size of the pine64 and has a PCIE slot.

The only devicetree difference with current pineH64, is the PHY
regulator.

Signed-off-by: Corentin Labbe <clabbe....@gmail.com>
---
arch/arm64/boot/dts/allwinner/Makefile | 1 +
.../sun50i-h6-pine-h64-modelA-eval.dts | 26 +++++++++++++++++++
2 files changed, 27 insertions(+)
create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64-modelA-eval.dts

diff --git a/arch/arm64/boot/dts/allwinner/Makefile b/arch/arm64/boot/dts/allwinner/Makefile
index f6db0611cb85..9a02166cbf72 100644
--- a/arch/arm64/boot/dts/allwinner/Makefile
+++ b/arch/arm64/boot/dts/allwinner/Makefile
@@ -25,3 +25,4 @@ dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-orangepi-3.dtb
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-orangepi-lite2.dtb
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-orangepi-one-plus.dtb
dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-pine-h64.dtb
+dtb-$(CONFIG_ARCH_SUNXI) += sun50i-h6-pine-h64-modelA-eval.dtb
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64-modelA-eval.dts b/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64-modelA-eval.dts
new file mode 100644
index 000000000000..d8ff02747efe
--- /dev/null
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-pine-h64-modelA-eval.dts
@@ -0,0 +1,26 @@
+// SPDX-License-Identifier: (GPL-2.0+ or MIT)
+/*
+ * Copyright (C) 2019 Corentin Labbe <clabbe....@gmail.com>
+ */
+
+#include "sun50i-h6-pine-h64.dts"
+
+/ {
+ model = "Pine H64 model A evaluation board";
+ compatible = "pine64,pine-h64-modelA-eval", "allwinner,sun50i-h6";
+
+ reg_gmac_3v3: gmac-3v3 {
+ compatible = "regulator-fixed";
+ regulator-name = "vcc-gmac-3v3";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ startup-delay-us = <100000>;
+ gpio = <&pio 2 16 GPIO_ACTIVE_HIGH>;
+ enable-active-high;
+ };
+
+};
+
+&emac {
+ phy-supply = <&reg_gmac_3v3>;
+};
--
2.21.0

Clément Péron

unread,
Aug 8, 2019, 10:50:49 AM8/8/19
to clabbe....@gmail.com, Mark Rutland, mri...@kernel.org, Rob Herring, Chen-Yu Tsai, devicetree, linux-arm-kernel, linux-kernel, linux-sunxi
Hi,

On Thu, 8 Aug 2019 at 10:42, Corentin Labbe <clabbe....@gmail.com> wrote:
>
> This patch adds the evaluation variant of the model A of the PineH64.
> The model A has the same size of the pine64 and has a PCIE slot.
>
> The only devicetree difference with current pineH64, is the PHY
> regulator.

You also need to add the board in
"Documentation/devicetree/bindings/arm/sunxi.yaml"

Regards,
Clément
> --
> You received this message because you are subscribed to the Google Groups "linux-sunxi" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi...@googlegroups.com.
> To view this discussion on the web, visit https://groups.google.com/d/msgid/linux-sunxi/20190808084253.10573-1-clabbe.montjoie%40gmail.com.

Jernej Škrabec

unread,
Aug 12, 2019, 6:57:01 AM8/12/19
to linux...@googlegroups.com, clabbe....@gmail.com, mark.r...@arm.com, mri...@kernel.org, rob...@kernel.org, we...@csie.org, devic...@vger.kernel.org, linux-ar...@lists.infradead.org, linux-...@vger.kernel.org
Dne četrtek, 08. avgust 2019 ob 10:42:53 CEST je Corentin Labbe napisal(a):
> This patch adds the evaluation variant of the model A of the PineH64.
> The model A has the same size of the pine64 and has a PCIE slot.
>
> The only devicetree difference with current pineH64, is the PHY
> regulator.

I have Model A board which also needs ddc-en-gpios property for HDMI connector
in order for HDMI to work correctly. Otherwise it will just use 1024x768
resolution. Can you confirm that?

Best regards,
Jernej

Corentin Labbe

unread,
Aug 14, 2019, 9:07:57 AM8/14/19
to Clément Péron, Mark Rutland, mri...@kernel.org, Rob Herring, Chen-Yu Tsai, devicetree, linux-arm-kernel, linux-kernel, linux-sunxi
On Thu, Aug 08, 2019 at 04:50:35PM +0200, Clément Péron wrote:
> Hi,
>
> On Thu, 8 Aug 2019 at 10:42, Corentin Labbe <clabbe....@gmail.com> wrote:
> >
> > This patch adds the evaluation variant of the model A of the PineH64.
> > The model A has the same size of the pine64 and has a PCIE slot.
> >
> > The only devicetree difference with current pineH64, is the PHY
> > regulator.
>
> You also need to add the board in
> "Documentation/devicetree/bindings/arm/sunxi.yaml"
>
> Regards,
> Clément
>

Done, thanks

Regards

Corentin Labbe

unread,
Aug 14, 2019, 9:17:46 AM8/14/19
to Maxime Ripard, mark.r...@arm.com, rob...@kernel.org, we...@csie.org, devic...@vger.kernel.org, linux-ar...@lists.infradead.org, linux-...@vger.kernel.org, linux...@googlegroups.com
On Mon, Aug 12, 2019 at 11:40:00AM +0200, Maxime Ripard wrote:
> I might be missing some context here, but I'm pretty sure that the
> initial intent of the pine h64 DTS was to support the model A all
> along.
>

The regulator changed between modelA and B.
See this old patchset (supporting modelA) https://patchwork.kernel.org/patch/10539149/ for example.

Corentin Labbe

unread,
Aug 14, 2019, 9:20:06 AM8/14/19
to Jernej Škrabec, linux...@googlegroups.com, mark.r...@arm.com, mri...@kernel.org, rob...@kernel.org, we...@csie.org, devic...@vger.kernel.org, linux-ar...@lists.infradead.org, linux-...@vger.kernel.org
On Mon, Aug 12, 2019 at 12:56:56PM +0200, Jernej Škrabec wrote:
> Dne četrtek, 08. avgust 2019 ob 10:42:53 CEST je Corentin Labbe napisal(a):
> > This patch adds the evaluation variant of the model A of the PineH64.
> > The model A has the same size of the pine64 and has a PCIE slot.
> >
> > The only devicetree difference with current pineH64, is the PHY
> > regulator.
>
> I have Model A board which also needs ddc-en-gpios property for HDMI connector
> in order for HDMI to work correctly. Otherwise it will just use 1024x768
> resolution. Can you confirm that?
>
> Best regards,
> Jernej
>

Sorry I didnt use at all video stuff (like HDMI), so I cannot answer now.

Could you send me a patch against my future v2 and I could test with/without.

Regards

Clément Péron

unread,
Aug 14, 2019, 9:29:07 AM8/14/19
to clabbe....@gmail.com, Jernej Škrabec, linux-sunxi, Mark Rutland, Maxime Ripard, Rob Herring, Chen-Yu Tsai, devicetree, linux-arm-kernel, linux-kernel
Hi,

On Wed, 14 Aug 2019 at 15:20, Corentin Labbe <clabbe....@gmail.com> wrote:
>
> On Mon, Aug 12, 2019 at 12:56:56PM +0200, Jernej Škrabec wrote:
> > Dne četrtek, 08. avgust 2019 ob 10:42:53 CEST je Corentin Labbe napisal(a):
> > > This patch adds the evaluation variant of the model A of the PineH64.
> > > The model A has the same size of the pine64 and has a PCIE slot.
> > >
> > > The only devicetree difference with current pineH64, is the PHY
> > > regulator.
> >
> > I have Model A board which also needs ddc-en-gpios property for HDMI connector
> > in order for HDMI to work correctly. Otherwise it will just use 1024x768
> > resolution. Can you confirm that?

Schematics Rev A:
http://files.pine64.org/doc/Pine%20H64/Pine%20H64%20Ver1.1-20180104.pdf

Rev B:
http://files.pine64.org/doc/Pine%20H64/PINE-H6-model-B-20181212-schematic.pdf

There is a DDC_EN on REV A not on REV B

Regards,
Clément

> >
> > Best regards,
> > Jernej
> >
>
> Sorry I didnt use at all video stuff (like HDMI), so I cannot answer now.
>
> Could you send me a patch against my future v2 and I could test with/without.
>
> Regards
>
> --
> You received this message because you are subscribed to the Google Groups "linux-sunxi" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi...@googlegroups.com.
> To view this discussion on the web, visit https://groups.google.com/d/msgid/linux-sunxi/20190814132001.GC24324%40Red.

Corentin Labbe

unread,
Aug 16, 2019, 5:35:19 AM8/16/19
to Maxime Ripard, mark.r...@arm.com, rob...@kernel.org, we...@csie.org, devic...@vger.kernel.org, linux-ar...@lists.infradead.org, linux-...@vger.kernel.org, linux...@googlegroups.com
On Wed, Aug 14, 2019 at 03:33:22PM +0200, Maxime Ripard wrote:
> I'm not sure what your point is, but mine is that everything about the
> model A should be in sun50i-h6-pine-h64.dts.
>

model A and B are different enough for distinct dtb, (see sub-thread on HDMI difference for an other difference than PHY regulator)
And clearly, the current dtb is for model B.

So do you mean that we need to create a new dtb for model B ? (and hack the current back to model A ?)

Regards

Jernej Škrabec

unread,
Aug 16, 2019, 5:50:41 AM8/16/19
to linux...@googlegroups.com, peron...@gmail.com, clabbe....@gmail.com, Mark Rutland, Maxime Ripard, Rob Herring, Chen-Yu Tsai, devicetree, linux-arm-kernel, linux-kernel
Dne sreda, 14. avgust 2019 ob 15:28:53 CEST je Clément Péron napisal(a):
I don't have access to my Model A board currently, but this should suffice:

&connector {
ddc-en-gpios = <&pio 7 2 GPIO_ACTIVE_HIGH>; /* PH2 */
};

Best regards,
Jernej

Corentin Labbe

unread,
Aug 16, 2019, 7:57:55 AM8/16/19
to Maxime Ripard, mark.r...@arm.com, rob...@kernel.org, we...@csie.org, devic...@vger.kernel.org, linux-ar...@lists.infradead.org, linux-...@vger.kernel.org, linux...@googlegroups.com
On Fri, Aug 16, 2019 at 01:36:50PM +0200, Maxime Ripard wrote:
> I don't mind having separate DTBs for model A and model B.
>
> > And clearly, the current dtb is for model B.
>
> That DTS was added almost a year before the model B was announced, and
> no commit to that file mention the model B, so it's definitely not
> clear.

Normal it was added for model A (without any ethernet/HDMI support, so nothing distinct from model B), and the modelB ethernet/HDMI support cames after.

>
> > So do you mean that we need to create a new dtb for model B ? (and
> > hack the current back to model A ?)
>
> I'd prefer not to hack anything, but yes
>

Since model A is not public (only evaluations boards exists), the probability of a production model A is low and the current dtb is perfect for model B , could you reconsider this ?

Corentin Labbe

unread,
Aug 16, 2019, 10:00:22 AM8/16/19
to Maxime Ripard, mark.r...@arm.com, rob...@kernel.org, we...@csie.org, devic...@vger.kernel.org, linux-ar...@lists.infradead.org, linux-...@vger.kernel.org, linux...@googlegroups.com
On Fri, Aug 16, 2019 at 03:52:06PM +0200, Maxime Ripard wrote:
> Changing the board a DT is meant to halfway through the development is
> definitely not ok.
>
> > > > So do you mean that we need to create a new dtb for model B ? (and
> > > > hack the current back to model A ?)
> > >
> > > I'd prefer not to hack anything, but yes
> > >
> >
> > Since model A is not public (only evaluations boards exists), the
> > probability of a production model A is low and the current dtb is
> > perfect for model B , could you reconsider this ?
>
> I mean, you could buy it, so it's definitely public.

Where ? official pineh64 site speaks only of modelB.

>
> Model A also had HDMI, and it doesn't look like there's anything
> particularly specific with that board.

A subthread just say the opposite, modelA need something more for HDMI
https://lkml.org/lkml/2019/8/12/394

>
> On the Ethernet side, the only thing that changes is the regulator /
> GPIO being used to enable the PHY?
>

Yes

Icenowy Zheng

unread,
Aug 21, 2019, 5:20:10 AM8/21/19
to Maxime Ripard, Corentin Labbe, mark.r...@arm.com, devic...@vger.kernel.org, linux...@googlegroups.com, linux-...@vger.kernel.org, we...@csie.org, rob...@kernel.org, linux-ar...@lists.infradead.org
在 2019-08-20二的 15:58 +0200,Maxime Ripard写道:
> It's not available anymore, but it used to be.

There're never model A boards that are really sold. When model A is put
on the website, its stock is always 0.

Only model B boards are really sold.

BTW from my communication with TL Lim, model A will get redesigned to
get the software compatiblity with model B, if it's going to be re-
available on the market again. So all known difference will be not
difference between models, but difference between sample version and
final version. But even if the new model A is out, it will still need a
different devicetree with model B, as PCIe is model-A-only feature, and
model A will have no on-board Wi-Fi (model B has RTL8723BS on-board).

>
> > > Model A also had HDMI, and it doesn't look like there's anything
> > > particularly specific with that board.
> >
> > A subthread just say the opposite, modelA need something more for
> > HDMI
> > https://lkml.org/lkml/2019/8/12/394
>
> Right, but that's not in the DT at the moment.
>
> Maxime
>
> --
> Maxime Ripard, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com
> _______________________________________________
> linux-arm-kernel mailing list
> linux-ar...@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

Reply all
Reply to author
Forward
0 new messages