On Wed, Jun 21, 2017 at 12:37:35AM +0200, Hauke Mehrtens wrote: > Instead of hacking the configuration of the FPI bus into the arch code > add an own bus driver for this internal bus. The FPI bus is the main > bus of the SoC. This bus driver makes sure the bus is configured > correctly before the child drivers are getting initialized. This driver > will probably also be used on different SoC later. > > Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx> > Signed-off-by: Martin Blumenstingl <martin.blumenstingl@xxxxxxxxxxxxxx> > --- > .../devicetree/bindings/mips/lantiq/fpi-bus.txt | 31 ++++++++ > MAINTAINERS | 1 + > arch/mips/lantiq/xway/reset.c | 4 - > arch/mips/lantiq/xway/sysctrl.c | 41 ----------- > drivers/soc/Makefile | 1 + > drivers/soc/lantiq/Makefile | 1 + > drivers/soc/lantiq/fpi-bus.c | 85 ++++++++++++++++++++++ > 7 files changed, 119 insertions(+), 45 deletions(-) > create mode 100644 Documentation/devicetree/bindings/mips/lantiq/fpi-bus.txt > create mode 100644 drivers/soc/lantiq/Makefile > create mode 100644 drivers/soc/lantiq/fpi-bus.c > > diff --git a/Documentation/devicetree/bindings/mips/lantiq/fpi-bus.txt b/Documentation/devicetree/bindings/mips/lantiq/fpi-bus.txt > new file mode 100644 > index 000000000000..80555b76fd34 > --- /dev/null > +++ b/Documentation/devicetree/bindings/mips/lantiq/fpi-bus.txt > @@ -0,0 +1,31 @@ > +Lantiq XWAY SoC FPI BUS binding > +============================ > + > + > +------------------------------------------------------------------------------- > +Required properties: > +- compatible : Should be one of > + "lantiq,xrx200-fpi" > +- reg : The address and length of the XBAR configuration register. > + Address and length of the FPI bus itself > + > +Optional properties: > +- regmap : A phandle to the RCU syscon "lantiq,rcu" instead. > +- offset-endianness : Offset of the endianness configuration register lantiq,offset-endianness > + > +------------------------------------------------------------------------------- > +Example for the FPI on the xrx200 SoCs: > + fpi@10000000 { > + compatible = "lantiq,xrx200-fpi", "simple-bus"; Drop simple-bus. > + ranges = <0x0 0x10000000 0xf000000>; > + reg = <0x1f400000 0x1000>, > + <0x10000000 0xf000000>; > + regmap = <&rcu0>; > + offset-endianness = <0x4c>; > + #address-cells = <1>; > + #size-cells = <1>; > + > + gptu@e100a00 { > + ...... > + }; > + }; -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html