Received: by 10.192.165.148 with SMTP id m20csp550921imm; Fri, 4 May 2018 15:00:49 -0700 (PDT) X-Google-Smtp-Source: AB8JxZp2hhSkedZOOgfakvG1dZXWsCztvrinmIEIcB+Tqtup0Y/jNk+uo6sA5k71OTPIrPV4rVjJ X-Received: by 2002:a63:3dca:: with SMTP id k193-v6mr23408577pga.435.1525471249675; Fri, 04 May 2018 15:00:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525471249; cv=none; d=google.com; s=arc-20160816; b=xIe1j6zhc1r+Tnh/eYYM+k7Q60rX8KB0+Ge5iVm4sRtZZ4ntIs1gCntcfs2k7GTZQR Od/f+6ZIyUTPdo3HPNzXN7KW3dA9SK3WiksOQzARJoTsXEiUfR1mqevvgTiI2wGFcSuS ZWe7d//rdLBBHQaZVn3KooBuQB9fV5vMI8v8KeyZQaSwNY7zBJrZJaEArPjflj4M8eDh 31xdjbQA23ibgQAnCl0mT2MwG46KEcJZzbbbAoz577sBJduaqEthIO2r8DSJfCzs0Osv QROwyU/S02RHUWVBu8g3N1YAAdXFfrSEyK+LrdVxKyO6PqA3nXZpHhBkohTTJl1UPq+a 5AnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=O0fkksPLRNL8yUTMupTi7deJt6grF+4sErhhRZmUAN0=; b=FeakBvGg5KzUC/74zgXxF3kiYYdOzyDryYKyYEnuTxPUSqVGeWJ9kpbWY/XuQ5vHlF eIVoaLebqAgYJucSXsl4HzgP6l5YS1pLUXFYeukbBo/WpFQY5giO49UiJGIxwwUuL5RN Zft0cBdjVXUqMEm4ni76bA97LpgJ832cPcjYyrpAsMa3pq8lXRefGt0A36N4UeKJE7vY FM1t5kKnUdZeJNojhMrxUAxExogQVTtXOmHqfiCzlViCFaJmgue6ffPerV5Pl5GLn7h1 RybxR0/qTjEO0elYFrOTLtqafr4vCp2mnM/gDqqJuuYmqpjOiPHtmlr00oeMslYRKd87 A2mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@orpaltech.com header.s=mailru header.b=VsQYtENN; 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 n3-v6si10842472pgp.344.2018.05.04.15.00.35; Fri, 04 May 2018 15:00:49 -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=@orpaltech.com header.s=mailru header.b=VsQYtENN; 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 S1751742AbeEDV7M (ORCPT + 99 others); Fri, 4 May 2018 17:59:12 -0400 Received: from smtp41.i.mail.ru ([94.100.177.101]:40256 "EHLO smtp41.i.mail.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751611AbeEDV7L (ORCPT ); Fri, 4 May 2018 17:59:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=orpaltech.com; s=mailru; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject; bh=O0fkksPLRNL8yUTMupTi7deJt6grF+4sErhhRZmUAN0=; b=VsQYtENNlaUGb+zLm5j3zVn797V8KK+hlh0tEYBg1qxmVcvLAjd7MY/nJTimMvaW7izC35Tqx/2fDlnWLJ3SqFj0HYDhPbOK5lPLpwNqp4MB20xgK2mZCHzo+3ySDFbdCcDbBDeEStsIVSOz3UwERpo3Ij2cPcCVZ6qkFrEF+oI=; Received: by smtp41.i.mail.ru with esmtpa (envelope-from ) id 1fEijM-0003gY-MS; Sat, 05 May 2018 00:59:09 +0300 Subject: Re: [PATCH 7/7] ARM: dts: sun7i: Add dts file for the A20-linova1-7 HMI To: Giulio Benetti Cc: Maxime Ripard , devicetree@vger.kernel.org, David Airlie , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Chen-Yu Tsai , Thierry Reding , linux-arm-kernel@lists.infradead.org References: <1521662593-25468-1-git-send-email-giulio.benetti@micronovasrl.com> <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> From: Sergey Suloev Message-ID: <644bcd2f-3479-3f3c-3aef-9db3d565c133@orpaltech.com> Date: Sat, 5 May 2018 00:59:07 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Authentication-Results: smtp41.i.mail.ru; auth=pass smtp.auth=ssuloev@orpaltech.com smtp.mailfrom=ssuloev@orpaltech.com X-7FA49CB5: 0D63561A33F958A56573C4F049493D76E5612043B11318BEEE928EAF31F0B597725E5C173C3A84C39B8A9203B41872914D79FA29767958C080CB4917E5AABA03C4224003CC836476C0CAF46E325F83A50BF2EBBBDD9D6B0F9A3D58A9A349F5073B503F486389A921A5CC5B56E945C8DA X-Mailru-Sender: C5364AD02485212F3ACDC11E67D84917ADBECDE50454D9FA405676EBE7B368AD069BFC61DABEEB110841D3AAAB1726C63DDE9B364B0DF289264D2CD8C2503E8C22A194DADEED8EEDCA01A23BA9CD1BE7ED14614B50AE0675 X-Mras: OK Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Giulio, On 05/05/2018 12:52 AM, Giulio Benetti wrote: > Hi Maxime! > > Il 04/05/2018 10:06, Maxime Ripard ha scritto: >> Hi, >> >> 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 syntax, >>>>> 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 can >>>>> choose to apply them dynamically, for example based on an EEPROM or >>>>> some other metric to see which combination you have. >>>> >>>> Ah, this is interesting. I'm going to experiment with that. >>>> >>> >>> I'm struggling against this, I don't really know how to proceed, >>> except keeping monolithic dts files including other dtsi files. >>> >>> 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.git/tree/arch/arm/boot/dts?h=topic/renesas-overlays >>> >>> >>> 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 >>> spoken >>> about right? >> >> Yes. You don't have to do that though, you can just rely on dtc to >> compile them, outside of the linux build system. >> >>> 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 >>> .dtso >>> files, but on mainline there seems to be nothing about that. >> >> 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 >> >> (even though the overlays themselves use the legacy syntax and >> shouldn't really be used an examples) > > Everything works now! > Thank you very much! > I've setted up a Repo on Github to give an example on how make it work > with no pain: > https://github.com/micronovasrl/linova-dtoverlays > > 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. > > 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? > > Thank you a lot for your help and time again! > > Best regards! > I'd highly recommend you to look at Armbian overlay support: it is easy and elegant. https://github.com/armbian/build/blob/master/patch/kernel/sunxi-next/add-overlay-compilation-support.patch https://github.com/armbian/build/blob/master/patch/kernel/sunxi-next/add-sunxi-overlays.patch Sergey