On Thu, Nov 07, 2019 at 10:11:12PM +0100, Lucas Stach wrote: > Linux uses some kind of MFD scheme for the devices in the SLCR register > range, which involves adding the parent register base address to the > register offset of the child devices, as described in DT. This needs > non-standard code in each of those child device drivers. > > Instead of replicating this weird driver code, fix up the SLCR parent > device DT ranges to do the translation. > > Signed-off-by: Lucas Stach <dev@xxxxxxxxxx> > --- > arch/arm/dts/zynq-7000.dtsi | 4 ++++ > arch/arm/dts/zynq-zed.dts | 1 + > 2 files changed, 5 insertions(+) > create mode 100644 arch/arm/dts/zynq-7000.dtsi > > diff --git a/arch/arm/dts/zynq-7000.dtsi b/arch/arm/dts/zynq-7000.dtsi > new file mode 100644 > index 000000000000..a4555a7a1b6c > --- /dev/null > +++ b/arch/arm/dts/zynq-7000.dtsi > @@ -0,0 +1,4 @@ > + > +&slcr { > + ranges = <0x0 0xf8000000 0x1000>; > +}; Does this mean Linux won't start with this device tree anymore? Sascha -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox