From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_2 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A06CCC433E0 for ; Thu, 14 May 2020 06:47:21 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 5510B205CB for ; Thu, 14 May 2020 06:47:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5510B205CB Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=buserror.net Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 49N2CW0qXTzDqd1 for ; Thu, 14 May 2020 16:47:19 +1000 (AEST) Authentication-Results: lists.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=buserror.net (client-ip=165.227.176.147; helo=baldur.buserror.net; envelope-from=oss@buserror.net; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=buserror.net Received: from baldur.buserror.net (baldur.buserror.net [165.227.176.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 49N2931lHVzDqcJ for ; Thu, 14 May 2020 16:45:11 +1000 (AEST) Received: from [2601:449:8480:af0:12bf:48ff:fe84:c9a0] by baldur.buserror.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1jZ7a4-00089d-4T; Thu, 14 May 2020 01:42:56 -0500 Message-ID: <6456c742fa178b54aadff5f0d4d7f28cb47c93a2.camel@buserror.net> From: Scott Wood To: Darren Stevens Date: Thu, 14 May 2020 01:42:55 -0500 In-Reply-To: <4fb03d6874.55cfc4a1@auth.smtp.1and1.co.uk> References: <20200507223025.0164b95b@Cyrus.lan> <4fb03d6874.55cfc4a1@auth.smtp.1and1.co.uk> Organization: Red Hat Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2601:449:8480:af0:12bf:48ff:fe84:c9a0 X-SA-Exim-Rcpt-To: darren@stevens-zone.net, linuxppc-dev@lists.ozlabs.org, chzigotzky@xenosoft.de X-SA-Exim-Mail-From: oss@buserror.net Subject: Re: powerpc/mpc85xx: Add Cyrus P5040 device tree source X-SA-Exim-Version: 4.2.1 (built Tue, 02 Aug 2016 21:08:31 +0000) X-SA-Exim-Scanned: Yes (on baldur.buserror.net) X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linuxppc-dev@lists.ozlabs.org, chzigotzky@xenosoft.de Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" On Wed, 2020-05-13 at 23:02 +0100, Darren Stevens wrote: > Hello Scott > > On 08/05/2020, Scott Wood wrote: > > On Thu, 2020-05-07 at 22:30 +0100, Darren Stevens wrote: > > > > > > +/include/ "p5040si-pre.dtsi" > > > + > > > +/ { > > > + model = "varisys,CYRUS5040"; > > > + compatible = "varisys,CYRUS"; > > > > Is this board 100% compatible with the Cyrus P5020 board, down to every > > last > > quirk, except for the SoC plugged into it? If not, they shouldn't have > > the > > same compatible. If they are, then couldn't everything in this file but > > the > > SoC include be moved to a dtsi shared with cyrus_p5020.dts? > > It's not 100% compatible, the mdio ports map to different fman ports, but > both as are 'corenet generic' boards, I added varisys,CYRUS so it would be > detected in corenet_generic.c - support for the 5020 was added by Andy > Flemming, I've just tried to copy what he did. > > I can add another entry to the table, but do we realy want a separate entry > in the table for every supported board rather than using the device tree for > similar boards? A separate compatible for each board is generally what we've done, as it allows for the possibility of board-specific quirks. At least it's just a table entry; back in the day it used to be a separate file. :-P That said, if you're pretty sure that all potentially relevant differences are described elsewhere in the device tree, I wouldn't mind too much if it becomes: compatible = "varisys,CYRUS5040", "varisys,CYRUS"; -Scott