Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp974952ybl; Fri, 16 Aug 2019 07:02:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqz7By2IFf1o5EJy4G6qv57RYW140EVr2UU5ZJ5HCYOdH6xrw9OUmOh4wHHbgJBr7qro1K0G X-Received: by 2002:a63:9318:: with SMTP id b24mr7863698pge.31.1565964178691; Fri, 16 Aug 2019 07:02:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565964178; cv=none; d=google.com; s=arc-20160816; b=yOXdyyCmYKAdmIS90fPLE9h1kwUuYuKhNCg+tNs8DQZHHgoOrun1d6EFLRwNzmbYVh Ktz8i3Iph6/Q3PGYNRnrXZnm4zW8npd1hgx6d6y4Mw5JF6uDPSJQLy7BJfhmc2exE1MU 6+93m4JanKgibsayvhy4qwA6V2q1niULKThrz2hzlTKQsBB1pI8h0dLvQZfgN9XGI4TG 9dMA8t7w0YECHVGExEXKLvgqItJfI6xI9GFUJRDIz47PmVbRKB03YB5fhzsdCMJAp83N GVtHHL2hAY1vgd0CNgiCFJoCOotq4rmxkocsHywqYJ0hLAQ+llEbgpZHVpJvbERIgT8x ScDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=DrJ7gCAK6Th5zBxxKayy7enXiUTo1ZEKcmR+4YN2Rw4=; b=TTd6+nCkJLDZreNktqNDTbY3/XW4vAxCTz6chkeQPnCbaUigYpZKaTGZQBV5wPHGf2 qBPB1cV9XfIs/u7ftqgj+B/M9Z8GMPiGMfnHFX0bLcLpSWF0BQBNzpQmbpQcrJbUC8fR qPb+uo0fQvYatbepclP4emakztWwsPjL8xuKlKfGiJDXBCr0E8gCBF4vy8BZVIDohNEL e4jb5VmVxWjmbH4xdkqHMJ535kXalcM4ozO1r5ckZVzx7GUCXkUszaO957Kdrq4rMd8a uJqgXoI3uCSwwabwfDeuIJEkxbqd0Xsw6oLS3lWpMi4NjNSaBgUJa9PvfWcOPobGCKFV fPqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VDnmgj+6; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s38si3851398pgl.138.2019.08.16.07.02.32; Fri, 16 Aug 2019 07:02:58 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VDnmgj+6; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727405AbfHPOAX (ORCPT + 99 others); Fri, 16 Aug 2019 10:00:23 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:47088 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727261AbfHPOAX (ORCPT ); Fri, 16 Aug 2019 10:00:23 -0400 Received: by mail-wr1-f68.google.com with SMTP id z1so1631722wru.13; Fri, 16 Aug 2019 07:00:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=DrJ7gCAK6Th5zBxxKayy7enXiUTo1ZEKcmR+4YN2Rw4=; b=VDnmgj+6StJGZ+K5QyAby+MNXEojjAj0I0IufNcfA6R19fyc/aMJaNxHntHu+WS4Rv e1p01bO8GNFtJgNc9ujxYszMA7YOvObenjE2IeF035Vntcx+M9vVmep6ruiz4GhbvZtK o1CVumwevwOW/073/HmhEKOIlBHl14iiC8KwQQ7Ap3V8MIooeKB1TpSIP/v3G5nSvnYT +9h1TwHZHk2KEeES3WQim4LDDLKLdGEH2bIYJE7hrkxshmRO6yVzsxFdPWjYyeiJPCoP 0FuTeVT9HzdYEfFGyKMY7ItbjdyXQa7oXm7qFWDebGDB2cYY96unduoALB+KxnLfcVp3 P8+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=DrJ7gCAK6Th5zBxxKayy7enXiUTo1ZEKcmR+4YN2Rw4=; b=TvU/x7BUBHsBDUZWZnf9JemyyXcqqyMFzcWtYzYgz0unlKsYzhna07srrEIjEYwtL4 Z3OoEElBGlszobJXbZOfU9cE/yTaKMrYSxP3ptZTUOh0K9iRLAAMyhWfR0owltiyOPl3 IgWUL4wwjXtVcXIUAE4PXaKdm8v+LNcYoBA0BWPtiz6SL4k6EEn14bfgKJ18gQwckV3R ig4GGsay1AefJxGKhX+wTq+qUtfU5F78pkCc0W47/rSdybH0EU3cl64Erj5dMvy6hKbi rXwYbkZHMl9q08my4MfNXeR30uIctE0IvSeAUXg68fEfCkiJbz/uQlcoZX3I5ahTPY5W LL0A== X-Gm-Message-State: APjAAAVchEdTO1KJv9Q8w1FvpYVTqHEQIN8mHHVPwqsWK9dpAtm8gRNI SLCti8WfcpUJoqCK4YYYhV4= X-Received: by 2002:a5d:6383:: with SMTP id p3mr11873239wru.34.1565964019972; Fri, 16 Aug 2019 07:00:19 -0700 (PDT) Received: from Red ([2a01:cb1d:147:7200:2e56:dcff:fed2:c6d6]) by smtp.googlemail.com with ESMTPSA id z6sm17459434wre.76.2019.08.16.07.00.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Aug 2019 07:00:19 -0700 (PDT) Date: Fri, 16 Aug 2019 16:00:16 +0200 From: Corentin Labbe To: Maxime Ripard Cc: mark.rutland@arm.com, robh+dt@kernel.org, wens@csie.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com Subject: Re: [PATCH] ARM64: dts: allwinner: Add devicetree for pine H64 modelA evaluation board Message-ID: <20190816140016.GA30445@Red> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190816135206.pnf3iperzyhcbg4h@flea> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > > > > > > > > --- > > > > > > > > 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 > > > > > > > > + */ > > > > > > > > + > > > > > > > > +#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. > > 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