Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp2511224ybg; Thu, 24 Oct 2019 10:48:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqyME6JEYHPsgOMuFGlOX2ymrSQjUs+RWaiFRm3pEKlwETI/Sv1Ev2hicBy4V3dGAsIaDIUD X-Received: by 2002:a50:895c:: with SMTP id f28mr12748556edf.125.1571939308705; Thu, 24 Oct 2019 10:48:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571939308; cv=none; d=google.com; s=arc-20160816; b=ZQSKjWpul/pZ6OxAAGdnc0Uamj7PVnVfsA7mK4jTK1/8OP2UcR6DvIxui0Ah7/3srK uE41jXcub0cgJCXvXb+gVnOZ4E15GpDZSp/IbLmnqa4Ndct+YEyHEznqtxtBUPFOqg59 lwcjpWEERfh7gEqcItBMZptd3b0qeSHt1Ml7T8LmA6/d5HpbLZCBBFBFVGqOxlfIxPX8 +W1MP9Hl9BqcBjUzZAoZmZaarcP1d+w+qolCsOoGUf9RIi2/kh8NCjIJDr6/ncPjIfqx C8abEboDUPWEqv0y5wi+Atcru4jkvVLMu+rXUAbTOxS0faa72CaHgJOisuDejOrbRGsT UbJw== 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=r+v++LJz2UtADy1cS2OkPl2XbtGtt1rFLT7PbQVU178=; b=ygT0pxf9f/Se6NGYU6BiINiqfDcPcZKLC9iYBF3BYB9NWReMiQIcIzsWBxdTlEnR/3 xbpOve5HMvLyMZV5x3LmV2wg7Q5K7ROn7lkK+UCyB3C3QMbBFOD8cIzyrrGRKowr+vdD cWq4NKiQ6vX8Yk+8Vok6LNsaIyZEDp6srtTR9xPZd+TKp95PrcDDJHyWqQRdeIFHOMZ7 YhCG834diuij3xq/mozb2MpIKRexoK12FPMs5kzrR1O5fqxmRpux6eVIoLT5ugQ7VErj PMZRJw4d8Vmjro8v6s+SWiO5WQ2YixvhaFEKrfkuibEu+6QxFb/RVlV53/xA5ooeSb2S vdNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@0x0f.com header.s=google header.b=Ffyvbloh; 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 h18si4245450edh.352.2019.10.24.10.48.03; Thu, 24 Oct 2019 10:48:28 -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=@0x0f.com header.s=google header.b=Ffyvbloh; 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 S2406338AbfJXBrk (ORCPT + 99 others); Wed, 23 Oct 2019 21:47:40 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:46780 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726925AbfJXBrk (ORCPT ); Wed, 23 Oct 2019 21:47:40 -0400 Received: by mail-pf1-f195.google.com with SMTP id b25so3964pfi.13 for ; Wed, 23 Oct 2019 18:47:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=0x0f.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=r+v++LJz2UtADy1cS2OkPl2XbtGtt1rFLT7PbQVU178=; b=FfyvblohnumehZApPiCnRaZxuyFEHdqk5OyDTBEOP+BfOTBvUjkFq6SSx4hsS/iPs1 omQJinbl9mu6pQnGVTsqhimfp9y+eLEp1dgFM5P58PG5vQz9PKTPuIqnjJtYLtWLFVTZ 8tAL70O/gmliWAM0nMpyEBRzzKwHsjQKI+Mso= 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=r+v++LJz2UtADy1cS2OkPl2XbtGtt1rFLT7PbQVU178=; b=qpynnleXJQvPflnclpvtLZg9TWryHBuZSssuLpOnWBi53D7ZCIezPYtIMkerqjr7d6 /lY9vi60cduFmWBgkhan3JEFrS+KO19+KqHOvpJGVoSvUfHCSmG5wpAlh7hH/CdKsmnH jIqyByCCCGfp4jDDMM+CgbFSInPxGhtvdgMMdQPShzzuEagSm7f+XH2w4+ja/Vx02cZX v4x2sLfEahYm+hiozPDQPwS9S1W8L7fktZE2tdQXiZW+6B/VtT4GLplhz5mD6j1TT1t/ FCnFNCgFvzRlM3xkzIaDlkZnmVoqhTUacWoPkgBYyMj4X5KWGOs1ufIMLFs13uyFRebA of8g== X-Gm-Message-State: APjAAAWQlczk3N8LCuSQvFascYrpbNk5LbIc410gbUdYNCv0GiZHlfeH f+6f6wEDZ0NS1YcgTgqTTdpAEQ== X-Received: by 2002:aa7:9105:: with SMTP id 5mr11748563pfh.245.1571881658843; Wed, 23 Oct 2019 18:47:38 -0700 (PDT) Received: from goma (p1092222-ipngn200709sizuokaden.shizuoka.ocn.ne.jp. [220.106.235.222]) by smtp.gmail.com with ESMTPSA id y138sm25464902pfb.174.2019.10.23.18.47.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Oct 2019 18:47:37 -0700 (PDT) Date: Thu, 24 Oct 2019 10:47:33 +0900 From: Daniel Palmer To: Rob Herring Cc: "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 1/4] dt-bindings: arm: Initial MStar vendor prefixes and compatible strings Message-ID: <20191024014731.GA3731@goma> References: <20191014061617.10296-1-daniel@0x0f.com> <20191023200228.GA29675@bogus> <20191023224357.GA26445@goma> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Wed, Oct 23, 2019 at 06:45:29PM -0500, Rob Herring wrote: > > I used the sunxi file as a template and thought they had some > > reason to do that. I'll change it to just GPL-2.0. > > That wasn't a choice, but dual license it please. Will do. > Sounds like you want: > > items: > - const: thingyjp,breadbee > - enum: > - mstar,infinity > - mstar,infinity3 > > If one board can do both chips. Though if the same PCB is populated > differently beyond the SoC, then maybe 2 board compatibles makes > sense. You can take one chip off and swap it with the other without any PCB/component changes but as I've been working on both chips there are a few differences coming up that means you can't use the same DT for both configurations. For example the ethernet phy needs to be configured differently, the i1 SoC has less instances of the DMA controller blocks and so on. The version of the chip can be detected from a register and I had considered patching over the differences based on that but I couldn't find an example of doing it within the kernel. So I'm detecting the chip version in u-boot and loading the right DT there. > Why not use the part numbers (msc313...)? I had initially done that when I thought i1 was the msc31e and i3 was the msc313e. For the i1 the only part I have found so far is the msc313 but the i3 is a series of around 4 or 5 different configurations of the same SoC with differing amounts of DDR and pins. This is like the AllWinner V3S and S3/S3L where the same V3 SoC is packaged differently. As there is no source of this information that appears on a google search I've started documenting it at http://linux-chenxing.org/ I think the only place the actual chip model will need to be used will be a compatible string for the pinctrl driver to setup the right pin numbers. Thanks, Daniel