On Sun, May 21, 2017 at 03:09:10PM +0200, Hauke Mehrtens wrote: > From: Martin Blumenstingl <martin.blumenstingl@xxxxxxxxxxxxxx> > > This allows using the xbar driver on ARX300 based SoCs which require the > same xbar setup as the xRX200 chipsets because the xbar driver > initialization is not guarded by an xRX200 specific > of_machine_is_compatible condition anymore. Additionally the new driver > takes a syscon phandle to configure the XBAR endianness bits in RCU > (before this was done in arch/mips/lantiq/xway/reset.c and also > guarded by an VRX200 specific if-statement). > > Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx> > Signed-off-by: Martin Blumenstingl <martin.blumenstingl@xxxxxxxxxxxxxx> > --- > .../devicetree/bindings/mips/lantiq/xbar.txt | 24 +++++ > 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/xbar.c | 101 +++++++++++++++++++++ > 7 files changed, 128 insertions(+), 45 deletions(-) > create mode 100644 Documentation/devicetree/bindings/mips/lantiq/xbar.txt > create mode 100644 drivers/soc/lantiq/Makefile > create mode 100644 drivers/soc/lantiq/xbar.c > > diff --git a/Documentation/devicetree/bindings/mips/lantiq/xbar.txt b/Documentation/devicetree/bindings/mips/lantiq/xbar.txt > new file mode 100644 > index 000000000000..7e1ea5299744 > --- /dev/null > +++ b/Documentation/devicetree/bindings/mips/lantiq/xbar.txt > @@ -0,0 +1,24 @@ > +Lantiq XWAY SoC XBAR binding > +============================ > + > + > +------------------------------------------------------------------------------- > +Required properties: > +- compatible : Should be one of > + "lantiq,xbar-xway" > + "lantiq,xbar-xrx200" The normal form is <vendor>,<soc>-<block>. > +- reg : The address and length of the XBAR registers > + > +Optional properties: > +- lantiq,rcu-syscon : A phandle and offset to the endianness configuration > + registers in the RCU module > + > + > +------------------------------------------------------------------------------- > +Example for the XBAR on the xRX200 SoCs: > + xbar0: xbar@400000 { > + compatible = "lantiq,xbar-xway"; > + reg = <0x400000 0x1000>; > + big-endian; > + lantiq,rcu-syscon = <&rcu0 0x4c>; > + }; -- 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