From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Likely Subject: Re: [RFC] Device Tree Overlays Proposal (Was Re: capebus moving omap_devices to mach-omap2) Date: Fri, 9 Nov 2012 12:06:02 +0000 Message-ID: References: <6AE080B68D46FC4BA2D2769E68D765B708174B7D@039-SN2MPN1-023.039d.mgd.msft.net> <20121105232218.GA8284@atomide.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20121105232218.GA8284-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Sender: "devicetree-discuss" To: Tony Lindgren Cc: Kevin Hilman , Wood Scott-B07421 , Matt Porter , Tabi Timur-B04825 , Koen Kooi , Pantelis Antoniou , linux-kernel , Felipe Balbi , Deepak Saxena , Russ Dill , "linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org" List-Id: devicetree@vger.kernel.org On Mon, Nov 5, 2012 at 11:22 PM, Tony Lindgren wrote: > Hi, > > * Tabi Timur-B04825 [121105 13:42]: >> On Mon, Nov 5, 2012 at 2:40 PM, Grant Likely wrote: >> >> > Jane is building custom BeagleBone expansion boards called 'capes'. She >> > can boot the system with a stock BeagleBoard device tree, but additional >> > data is needed before a cape can be used. She could replace the FDT file >> > used by U-Boot with one that contains the extra data, but she uses the >> > same Linux system image regardless of the cape, and it is inconvenient >> > to have to select a different device tree at boot time depending on the >> > cape. >> >> What's wrong with having the boot loader detect the presence of the >> Cape and update the device tree accordingly? We do this all the time >> in U-Boot. Doing stuff like reading EEPROMs and testing for the >> presence of hardware is easier in U-Boot than in Linux. >> >> For configurations that can be determined by the boot loader, I'm not >> sure overlays are practical. > > I guess the beaglebone capes could be stackable and hotpluggable if > handled carefully enough. And even if it can't on the beaglebone, it will happen somewhere else. I don't want to exclude that use-case just because nobody thought about it. g.