From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from vps0.lunn.ch ([185.16.172.187]:39176 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726079AbfH2BJN (ORCPT ); Wed, 28 Aug 2019 21:09:13 -0400 Date: Thu, 29 Aug 2019 03:09:08 +0200 From: Andrew Lunn Subject: Re: [PATCH v2 mvebu-dt64 3/3] arm64: dts: marvell: add DTS for Turris Mox Message-ID: <20190829010908.GC32178@lunn.ch> References: <20190828151243.23542-1-marek.behun@nic.cz> <20190828151243.23542-4-marek.behun@nic.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20190828151243.23542-4-marek.behun@nic.cz> Sender: devicetree-owner@vger.kernel.org To: Marek =?iso-8859-1?Q?Beh=FAn?= Cc: arm@kernel.org, Gregory CLEMENT , Rob Herring , devicetree@vger.kernel.org List-ID: On Wed, Aug 28, 2019 at 05:12:43PM +0200, Marek Beh�n wrote: > This adds support for the Turris Mox board from CZ.NIC. > > Turris Mox is as modular router based on the Armada 3720 SOC (same as > EspressoBin). > > The basic board can be extended by different modules. > If those are connected, U-Boot lets the kernel know via device-tree. > > Since modules can be connected in different order and some modules can > be connected multiple times (up to three modules containing 8-port > ethernet switch in DSA configuration can be connected) we decided > against using device-tree overlays, because it got complicated rather > quickly. (For example the SFP module can be connected directly to the > CPU, or after a switch module. There are four cases and all would need > different SFP overlay. There are two types of switch modules (8-port > with pass-through and 4-port with no pass-through). For those we would > again need at least 6 more overlays.) > > We therefore decided to put all the possibly connected devices in one > device-tree and disable them by default. When U-Boot finds out which > modules are connected, it fixes the loaded device-tree accordingly just > before boot. By Rob Herring's suggestion we also made it so that U-Boot > completely removes nodes which are disabled after this fixup. > > Signed-off-by: Marek Beh�n > Cc: Rob Herring > Cc: Gregory CLEMENT > Cc: Andrew Lunn Reviewed-by: Andrew Lunn Andrew