[LEDE-DEV] Convert ar71xx to devicetree

Felix Fietkau nbd at nbd.name
Thu Dec 8 09:40:10 PST 2016


On 2016-12-08 18:27, p.wassi at gmx.at wrote:
>> I think it should not be too hard to support both DT and non-DT devices
>> with the same kernel.
> 
> Also, in ar71xx patches, there's the
> 001-revert_spi_device_tree_support.patch
> which was introduced by Felix when switching to 4.4.
> (I've removed this patch now to get the SPI-NOR flash working)
> 
> Without knowing the reason for this patch, there'd possibly be
> some need for workarounds if we wanted to have both in one kernel.
This patch was added because some mach files rely on passing chipselect
GPIO information via the controller driver.

I'm not sure if this could easily be replaced by pushing this
information through the SPI layer, but I can definitely help with
reworking this patch to make it not break devicetree support anymore.

I can also help with cleaning up and reorganizing patches in preparation
for DT support, but I want to make sure that it doesn't conflict with
your work.

Can you please share your work by putting it up in a tree somewhere?

- Felix



More information about the Lede-dev mailing list