From mboxrd@z Thu Jan 1 00:00:00 1970 From: Beniamino Galvani Date: Sun, 3 Apr 2016 22:17:05 +0200 Subject: [U-Boot] [PATCH v2 8/9] arm: dts: add ethernet node to Meson gxbb In-Reply-To: <20160403160933.GH23166@bill-the-cat> References: <1459667897-2824-1-git-send-email-b.galvani@gmail.com> <1459667897-2824-9-git-send-email-b.galvani@gmail.com> <20160403160933.GH23166@bill-the-cat> Message-ID: <20160403201705.GA4224@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sun, Apr 03, 2016 at 12:09:33PM -0400, Tom Rini wrote: > > Add a node for the Synopsys Designware Ethernet adapter available on > > Meson SoCs to the Meson GXBaby DTS files. The node is not present in > > DTS files used in Linux kernel. > > ... but why is this not yet in the kernel device tree? Has it just not > made it up from the SoC tree? Because kernel doesn't have yet an Ethernet driver for Meson GXBaby to set the platform-specific registers needed to program the MII mode, clocks and other things (the settings that are in patch 9/9 of this submission). And without documentation it's hard to write one and get it right. So this patch adds a new uboot-only node to the DTS for Ethernet. This doesn't seem problematic to me WRT synchronization with kernel DTS because no new bindings or driver changes are needed; and whenever the same node will be added to kernel we'll only have to update it in u-boot. If it is not acceptable to have a DTS different to kernel one, I'll have to find a different solution, any suggestions? Should I use U_BOOT_DEVICE and platform_data inside the board file instead? Maybe I will submit v3 of the series without Ethernet while I figure out this. Beniamino