From mboxrd@z Thu Jan 1 00:00:00 1970 From: maxime.ripard@bootlin.com (Maxime Ripard) Date: Sat, 29 Sep 2018 17:47:54 +0200 Subject: [PATCH 1/2] arm64: dts: allwinner: Olimex A64-OLinuXino: enable eMMC. In-Reply-To: References: <20180919141815.18737-1-rodrigo@tjader.xyz> <20180921142811.h5jraemk565alh3i@flea> <20180925090139.qbu6tqav5oth7zkw@flea> <20180927081711.llmwnvpu73loe5iv@flea> Message-ID: <20180929154754.abz3byvrufvnf4dq@flea> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Thu, Sep 27, 2018 at 11:49:20AM -0300, Rodrigo Exterck?tter Tj?der wrote: > On Thu, Sep 27, 2018 at 5:17 AM Maxime Ripard wrote: > > > > On Tue, Sep 25, 2018 at 02:47:59PM -0300, Rodrigo Exterck?tter Tj?der wrote: > > > On Tue, Sep 25, 2018 at 6:01 AM Maxime Ripard wrote: > > > > We can't really do that, unfortunately. If the device tree name was to > > > > change for a given board, we'd break all the build systems, boot > > > > scripts and distros out there. > > > > > > What if we keep the device tree for the version without WiFi and eMMC > > > with the current name and create new device trees for the other two > > > versions? > > > > Wifi and Bluetooth should be dealt with with overlays in this case, > > and since the eMMC is already enabled, then there's nothing to do, I > > guess. > > It's WiFi that is already enabled, not eMMC. Only one of the three > variants has WiFi. Ah, right, sorry. In the board that doesn't have an emmc, are the pins usable for something else? > We can't even remove a node from a device tree? Removing the WiFi node > from the current tree would make it correspond to the variant with the > least features. Not really. How pissed would you be if you were a user, had wifi running on your board, you upgrade your kernel, and then it's just gone? :) > About device tree overlays, I read overlay-notes.txt, but I went > looking for an example with "git grep /plugin/ arch" and it came > empty. Is this approach not used for other boards? It is, it's simply not stored in the kernel, but through other third party repos. > Does the overlay approach make the device available at boot time? That > is important for a storage device such as eMMC. > > I went with the separate dts approach because that's what I saw was > done for other similar cases, like Pine64 and Pine64+, OLinuXino-LIME2 > and its variant with eMMC, among others. Yeah, but in all these cases, it was done from day one, not after the facts. Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: