Automatically detecting when to use kirkwood-tsXXX-6281.dtb vs -6282.dtb (Was: Re: [PATCH 21/21] ARM: Kirkwood: Remove DT support)

Ian Campbell ijc at hellion.org.uk
Mon May 5 01:44:58 PDT 2014


On Sat, 2014-05-03 at 16:40 +0200, Andrew Lunn wrote:
> > However on my 6281 based TS-219 system there seems to be no visible PCI
> > bus when running the 3.2 kernel in the current Debian stable release
> > (which of course uses board support). Some info:
> 
> The old PCI driver looks to see if there is anything on the bus, and
> if not, does not register the PCI bus to the PCI core. The new PCI
> driver always registers the busses, allowing hotplug of PCI devices.

Got it, thanks.

> > Is the lack of anything on the PCI bus itself sufficient to determine
> > that this is a 6281 based ts219 rather than a 6282 one (I don't have any
> > 6282 ts219 systems to try)?
> 
> No, this is not sufficient, as far as i know. I have a 6282 based
> ts119. It also does not have any PCI devices. However, the 6282 DT
> file works fine on it. There is no need to differentiate between 119
> and 219, just between 6281 and 6282.

Thanks.

> Your idea about Ethernet PHY is probably the best way to tell them
> apart. But i will see if i can find anything else.

Thanks, I'll start on the PHY base solution, it'll be easy enough to
switch if something even better gets thought up.

Cheers,
Ian.




More information about the linux-arm-kernel mailing list