From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: Re: [PATCH anybus v3 1/6] misc: support the Arcx anybus bridge Date: Thu, 8 Nov 2018 14:40:00 +0100 Message-ID: References: <20181104155501.14767-1-TheSven73@googlemail.com> <20181104155501.14767-2-TheSven73@googlemail.com> <20181105212049.GA320@bogus> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: thesven73@gmail.com Cc: Rob Herring , svendev@arcx.com, Linus Walleij , Lee Jones , Mark Rutland , =?UTF-8?Q?Andreas_F=C3=A4rber?= , Thierry Reding , David Lechner , noralf@tronnes.org, Johan Hovold , Michal Simek , michal.vokac@ysoft.com, gregkh , John Garry , Geert Uytterhoeven , Robin Murphy , Paul Gortmaker , Sebastien Bourdelin , Icenowy Zheng , Stuart Yoder , Maxime Ripard List-Id: devicetree@vger.kernel.org On Tue, Nov 6, 2018 at 9:05 PM Sven Van Asbroeck wrote: > On Tue, Nov 6, 2018 at 1:31 PM Rob Herring wrote: > > > If the host is not a h/w component, but just a s/w protocol then it > > doesn't belong in DT. Perhaps it could be a library which the bridge > > driver can call into. > > Anybus cards have an id register, which identifies what they are, so > that the appropriate client driver may be instantiated. > In that sense anybus is very suited to the bus/client abstraction of > pci/usb/etc. > > > What are the resets connected to? The slots? Maybe you should model > > the slots in DT. > > > > Yes, the resets are ultimately connected to the slots. > I'm happy to model the slots in DT. It makes sense, they are physical, > hardware components. It may also be necessary to have a way to add more DT properties to a device in the slot that can not be probed by looking at the ID register. Ideally it should not be needed, but we have added this to most buses anyway: USB, PCI, MMC and others can all be probed automatically for many devices, but there are some devices that need a place where extra information can be stored, e.g. an ethernet MAC address (in the absence of a PROM), an external clock or reset line that is not part of the normal protocol, or a more specific identification when two devices accidentally have the same ID. Arnd