Received: by 10.192.165.148 with SMTP id m20csp2775202imm; Mon, 7 May 2018 00:30:56 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqKxHo0FmRTtmJjSXU06YpoD9byzkIjLlHCmSDTxKW+qjRAvp5YIdnEU6NHpHknsk7pu6/H X-Received: by 2002:a65:6395:: with SMTP id h21-v6mr3015789pgv.267.1525678256000; Mon, 07 May 2018 00:30:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525678255; cv=none; d=google.com; s=arc-20160816; b=csXxvi3ciyGERMWdyWa3lVvo7j6MV0pxxKw1LVCH4Ek9PKaSQigyNFp2/1MOr2FYiS Puc9NHBuT0x+VjirRaV0PxtV/zVCSWZUfxtnlFB9ty7bgojd3HRgbmq1vMm8KNAfH0/T rUIwYLm5HW3ciqW4uBHKW2teEh2UR/fEc3Hz9kHn6hbhSpt0BZ/w4O9BmeDlUf32qc/E c90FtlhbfVhvXlh5i/5xsvJP7jWd7IGirKFVyYQMnRpD/XI8d8D8SjrMY/VSLWDnAFHt zAVfv+Tav+cm21i8d1xxoO/ZtZTpiKQq5Xp1ko7joCMKBtDmOgeiGFYHhTKv5/npYwNj 0Zww== 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:arc-authentication-results; bh=tjek91k3D8oobgm0vl9z3crwY8c1zgLXpQg3FhQjEnk=; b=S2hrKABrmotW7ehDLNR/grPpxGXEcd6kjrpNh+Rkc2cQKQHhZFKlwAjyolWKPxhxsN kiNN+U17G9OEvqL9U6VGkO0RV4vhQcjWBw4+u+ltvylAjUCpWOrGUmMhjPi9fyTMCJAY JIVlsI0k7BeSJAqvLdy6+wX6GcVPnRPumxn3BmyIAwEa47NnxK3XD70wApb13CyYwAyp Gbmc8ARILfaOwiy3vrjI9XuRKjJD/0IYoVzf6Tz17xqzg/2viBzvnmpbtpJXiSZDbwM4 8mjOWLRUZSxP4YCEb94KYJN5pDMXHgPTqLoabD4DYotcvvOJ1x4tJLoa5qn4QJNVbxWk dDCg== 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 b2-v6si9283140pgc.569.2018.05.07.00.30.39; Mon, 07 May 2018 00:30:55 -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 S1751903AbeEGHa3 (ORCPT + 99 others); Mon, 7 May 2018 03:30:29 -0400 Received: from mail.bootlin.com ([62.4.15.54]:43390 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750980AbeEGHa0 (ORCPT ); Mon, 7 May 2018 03:30:26 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 6DF58207BD; Mon, 7 May 2018 09:30:23 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.bootlin.com (Postfix) with ESMTPSA id 2E535207B7; Mon, 7 May 2018 09:30:13 +0200 (CEST) Date: Mon, 7 May 2018 09:30:13 +0200 From: Maxime Ripard To: Giulio Benetti Cc: Thierry Reding , David Airlie , Chen-Yu Tsai , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 7/7] ARM: dts: sun7i: Add dts file for the A20-linova1-7 HMI Message-ID: <20180507073013.dvtbmwi4ora6tdj2@flea> References: <1521662593-25468-7-git-send-email-giulio.benetti@micronovasrl.com> <20180322180508.my64gobhh5rc2x2m@flea> <8ef3b259-03b4-6987-286e-36ff627a8b76@micronovasrl.com> <20180424084137.7xfwji2gcibxavvt@flea> <03a02abb-e95c-b4ec-748f-907c0af67969@micronovasrl.com> <20180425184016.xktppxw7egddr7li@flea> <42feccc9-1d09-9ff2-3ccc-1dea63bacfb6@micronovasrl.com> <839d2560-0250-9b3a-8019-4e83d9e931e2@micronovasrl.com> <20180504080652.dniwaqqhbeuknp7y@flea> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="o7fuc4npexahvokm" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180323 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --o7fuc4npexahvokm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, May 04, 2018 at 11:52:59PM +0200, Giulio Benetti wrote: > Hi Maxime! >=20 > Il 04/05/2018 10:06, Maxime Ripard ha scritto: > > Hi, > >=20 > > On Wed, May 02, 2018 at 06:41:34PM +0200, Giulio Benetti wrote: > > > > > You don't have to handcode the fragments anymore with the new syn= tax, > > > > > and U-Boot makes it really trivial to use if you use the FIT image > > > > > format to have multiple overlays bundled in the same image. You c= an > > > > > choose to apply them dynamically, for example based on an EEPROM = or > > > > > some other metric to see which combination you have. > > > >=20 > > > > Ah, this is interesting. I'm going to experiment with that. > > > >=20 > > >=20 > > > I'm struggling against this, I don't really know how to proceed, > > > except keeping monolithic dts files including other dtsi files. > > >=20 > > > About dt-overlays I've tried to look around lot of time, > > > but the only thing I've found is this: > > > https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers= =2Egit/tree/arch/arm/boot/dts?h=3Dtopic/renesas-overlays > > >=20 > > > where they use .dtso tagging them as "/plugin/;" > > > and compile all .dtso found in dts folder. > > > Then they obtain .dtbo files that should be the dt-overlays we have s= poken > > > about right? > >=20 > > Yes. You don't have to do that though, you can just rely on dtc to > > compile them, outside of the linux build system. > >=20 > > > What I can't understand is if there's a real standard at this time to > > > follow, because on renesas-driver they use their way to handle all .d= tso > > > files, but on mainline there seems to be nothing about that. > >=20 > > I'm not sure what you mean here. It's just fragments of device tree, > > that have to be compiled using dtc, that's it. You can use the Linux > > build system infrastructure to do that, or you can build your own > > simpler one. That's really up to you. See for example > > https://github.com/NextThingCo/CHIP-dt-overlays/blob/master/Makefile > >=20 > > (even though the overlays themselves use the legacy syntax and > > shouldn't really be used an examples) >=20 > Everything works now! > Thank you very much! > I've setted up a Repo on Github to give an example on how make it work wi= th > no pain: > https://github.com/micronovasrl/linova-dtoverlays >=20 > At the moment it's a mess all around, but it's working and give an idea on > how to make it work. Though I'm going to clean it up well as a base for > linova dtoverlays. >=20 > Ah, btw, can you confirm me that base dts file must be compiled outside > kernel with: > dtc -@ .... > Otherwise as in-tree dts with make dtbs "-@" argument is not passed. > Right? You should use DTC_FLAGS=3D'-@' Maxime --=20 Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com --o7fuc4npexahvokm Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE0VqZU19dR2zEVaqr0rTAlCFNr3QFAlrwAIQACgkQ0rTAlCFN r3SVLw/+LDFHwA0c8/mSHzlpzdmP/6fgR7yVzo0kZSEglnGdAdT6w1VeAQR18wNS Zlce+zpJPayARbe3Srp4Sm2epC6CeS0m2hEClrvuOT3tEJP9MNTsOwFm2KlHPg0Y ZZiq2A/LM11cOCZNg6K5KZyskOzd4LAO9ssmeDtKDd8bxzfU0M5P53qNuTwK7AJ4 64Ih0sKM9pCiY4bnj9TOoFJF90he6ofSyXYVCe20d7m6FU2vl1L1fT0fKk1ovOS5 Ugvw+Fg2/63SQXsOGvmQW7OWSGD+mRiqXunwfkxgvfo/rOpBZMSpbUYvbgCp52Hc i1kvvX3cdaQuJw9dpnvpuxpfMkB7oRjlNpuP1SXDSjVCYvtya6vuzXJC+b5WCWhD 77gVxs5Sf0kwpo0hJw8OMwW1IlFv7e+DQr1vseE06PEN2NXhNfOXhwHLQES7sQTc o/j3KiGUiTIqcXfdo1tt10T9Yk1LQaVDq8tA/2LXoPQH+FL+kdZQqYBT5TYAIn+M NbnuaPcBQSNNM3pkJtW3aO8ehFG3/010nsCDMejCVK1XNjI1GlXguoDsrI0OGHoU D4GyA8zUNruqB5z3788YDD/1Xph3Gil/AXJefT2yGrnvesmSJD+7MPOLuNO6vCVh Isx3ruQNTU4B5lXGlNCK8DJqUytZNH2LllceQBR1tAmqBFkaG7A= =20SU -----END PGP SIGNATURE----- --o7fuc4npexahvokm--