Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp585726ybl; Wed, 21 Aug 2019 02:21:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqx5zbzRea5hupQg9bFCGW+Is1gEZ4xuz54r0ON/qBeN2J9UC4b1W+mpaeD8IVycA3GMLIuW X-Received: by 2002:a17:902:36e:: with SMTP id 101mr30977694pld.51.1566379282960; Wed, 21 Aug 2019 02:21:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566379282; cv=none; d=google.com; s=arc-20160816; b=iKgNQH66LR0k52jqkQwiBKsc69JQ+pYPXoJMvfs4EDcxG686UYJUaHOU7AmQr7bk6P aCFkRBOQx36CkgI7gdPNOBzJc1uWXzAIwa96p0wg762hCGlHGO8P6TIbdXhFEvT7wnNg daOy/GVFnizysHn4RjrR8hVJQG4kDHq54K9nfytFXJ03QjBBoisgWIafL6FBbVX6j9M0 u4Fh6qLSDEPxYST3AVWN+7InVUW8sefQo1hvJhlpwxnyVmTQrbIJJ+D1vnZnvbkDn7Ts C4B0dZB7L6SeZDLqGPPWArWxh+0oRFeXk5YkOkX4iLVmwLyFDvXniToQLGWDolTap7Gw z7uA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:date:cc:to:from:subject :message-id; bh=hcR9TxKzGroCT5y5utsq/VgS5Tf+uB8UlHU+oqMs1H8=; b=pqlO6FF3UOZYnwKLbdzWIm5NFpobXp9PoqfU12Stxpj3igDoXgJ07ywQAAltjaguTL j9OyCPWywpHAxGpqj/asCeJybyxJ7guaf+DCZ6gY50scVqIZhZilF2mSan8EdPOvFmhR mH/nIyZtElg7hg0hWm8P3gXLp7z3yczizy70zto/HW6TEkliwYZQLd8odByPmgleFZ9g XdtjIZWxiFPsTi4uJjYIP834qZyUy/zpwxulrLExQuQwamd9/dGm+2/2DtF7pFiBi9wQ Jx/qs+yj3OMuxOgHRZ9N8p5HhnPzOoB5aWehLjQi4p8Q5vqZ1dpa4hzpoJ3DlqpPyAcf GeiA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u5si14264221plq.207.2019.08.21.02.21.06; Wed, 21 Aug 2019 02:21:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726852AbfHUJUJ (ORCPT + 99 others); Wed, 21 Aug 2019 05:20:09 -0400 Received: from hermes.aosc.io ([199.195.250.187]:43666 "EHLO hermes.aosc.io" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726448AbfHUJUI (ORCPT ); Wed, 21 Aug 2019 05:20:08 -0400 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id 327BF718AC; Wed, 21 Aug 2019 09:20:01 +0000 (UTC) Message-ID: <759c0003961f627c3a172cb81d5779439a83b33b.camel@aosc.io> Subject: Re: [PATCH] ARM64: dts: allwinner: Add devicetree for pine H64 modelA evaluation board From: Icenowy Zheng To: Maxime Ripard , Corentin Labbe Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, linux-sunxi@googlegroups.com, linux-kernel@vger.kernel.org, wens@csie.org, robh+dt@kernel.org, linux-arm-kernel@lists.infradead.org Date: Wed, 21 Aug 2019 17:19:42 +0800 In-Reply-To: <20190820135831.hrvrgqhrvynntkbl@flea> References: <20190808084253.10573-1-clabbe.montjoie@gmail.com> <20190812094000.ebdmhyxx7xzbevef@flea> <20190814131741.GB24324@Red> <20190814133322.dawzv3ityakxtqs4@flea> <20190816093513.GA25042@Red> <20190816113650.hstbi5ntstx3wh4a@flea> <20190816115750.GA24545@Red> <20190816135206.pnf3iperzyhcbg4h@flea> <20190816140016.GA30445@Red> <20190820135831.hrvrgqhrvynntkbl@flea> Organization: Anthon Open-Source Community Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2019-08-20二的 15:58 +0200,Maxime Ripard写道: > On Fri, Aug 16, 2019 at 04:00:16PM +0200, Corentin Labbe wrote: > > On Fri, Aug 16, 2019 at 03:52:06PM +0200, Maxime Ripard wrote: > > > On Fri, Aug 16, 2019 at 01:57:50PM +0200, Corentin Labbe wrote: > > > > On Fri, Aug 16, 2019 at 01:36:50PM +0200, Maxime Ripard wrote: > > > > > On Fri, Aug 16, 2019 at 11:35:13AM +0200, Corentin Labbe > > > > > wrote: > > > > > > On Wed, Aug 14, 2019 at 03:33:22PM +0200, Maxime Ripard > > > > > > wrote: > > > > > > > On Wed, Aug 14, 2019 at 03:17:41PM +0200, Corentin Labbe > > > > > > > wrote: > > > > > > > > On Mon, Aug 12, 2019 at 11:40:00AM +0200, Maxime Ripard > > > > > > > > wrote: > > > > > > > > > On Thu, Aug 08, 2019 at 10:42:53AM +0200, Corentin > > > > > > > > > Labbe 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. > > > > > > > > > > > > > > > > > > > > Signed-off-by: Corentin Labbe < > > > > > > > > > > clabbe.montjoie@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.montjoie@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 = <®_gmac_3v3>; > > > > > > > > > > +}; > > > > > > > > > > > > > > > > > > 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. > > > > > > > > > > > > > > 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) > > > > > > > > > > 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. > > > > > > 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. > > 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-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel