linux/arch/mips/boot/dts/brcm
Mark Brown 25d6463e48 MIPS: dt: Explicitly specify native endian behaviour for syscon
On many MIPS systems the endianness of IP blocks is kept the same as
that of the CPU by the hardware.  This includes the system controllers
on these systems which are controlled via syscon which uses the regmap
API which used readl() and writel() to interact with the hardware,
meaning that all writes are converted to little endian when writing to
the hardware.  This caused a bad interaction with the regmap core in big
endian mode since it was not aware of the byte swapping and so ended up
performing little endian writes.

Unfortunately when this issue was noticed it was addressed by updating
the DT for the affected devices to specify them as little endian.  This
happened to work since it resulted in two endianness swaps which
cancelled each other out and gave little endian behaviour but meant that
the DT was clearly not accurately describing the hardware.

The intention of commit 29bb45f25f (regmap-mmio: Use native
endianness for read/write) was to fix this by making regmap default to
native endianness but this breaks most other MMIO users where the
hardware has a fixed endianness and the implementation uses the __raw
accessors which are not intended to be used outside of architecture
code.  Instead use the newly added native-endian DT property to say
exactly what we want for these systems.

Fixes: 29bb45f25f (regmap-mmio: Use native endianness for read/write)
Reported-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Mark Brown <broonie@kernel.org>
Acked-by: Ralf Baechle <ralf@linux-mips.org>
2016-01-27 18:49:42 +00:00
..
bcm9ejtagprb.dts MIPS: BMIPS: Add DTS files for several platforms 2015-04-01 17:21:42 +02:00
bcm3384_viper.dtsi MIPS: BMIPS: Add DTS files for several platforms 2015-04-01 17:21:42 +02:00
bcm3384_zephyr.dtsi MIPS: BMIPS: Refresh BCM3384 DTS files 2015-04-01 17:21:42 +02:00
bcm6328.dtsi MIPS: dt: Explicitly specify native endian behaviour for syscon 2016-01-27 18:49:42 +00:00
bcm6368.dtsi MIPS: dt: Explicitly specify native endian behaviour for syscon 2016-01-27 18:49:42 +00:00
bcm7125.dtsi MIPS: dt: Explicitly specify native endian behaviour for syscon 2016-01-27 18:49:42 +00:00
bcm7346.dtsi MIPS: dt: Explicitly specify native endian behaviour for syscon 2016-01-27 18:49:42 +00:00
bcm7358.dtsi MIPS: dt: Explicitly specify native endian behaviour for syscon 2016-01-27 18:49:42 +00:00
bcm7360.dtsi MIPS: dt: Explicitly specify native endian behaviour for syscon 2016-01-27 18:49:42 +00:00
bcm7362.dtsi MIPS: dt: Explicitly specify native endian behaviour for syscon 2016-01-27 18:49:42 +00:00
bcm7420.dtsi MIPS: dt: Explicitly specify native endian behaviour for syscon 2016-01-27 18:49:42 +00:00
bcm7425.dtsi MIPS: dt: Explicitly specify native endian behaviour for syscon 2016-01-27 18:49:42 +00:00
bcm7435.dtsi MIPS: dt: Explicitly specify native endian behaviour for syscon 2016-01-27 18:49:42 +00:00
bcm93384wvg_viper.dts MIPS: BMIPS: Add DTS files for several platforms 2015-04-01 17:21:42 +02:00
bcm93384wvg.dts MIPS: BMIPS: Refresh BCM3384 DTS files 2015-04-01 17:21:42 +02:00
bcm96368mvwg.dts MIPS: BMIPS: Add DTS files for several platforms 2015-04-01 17:21:42 +02:00
bcm97125cbmb.dts MIPS: BMIPS: Add DTS files for several platforms 2015-04-01 17:21:42 +02:00
bcm97346dbsmb.dts MIPS: BMIPS: Add SATA/PHY nodes for bcm7346 2015-11-11 08:37:49 +01:00
bcm97358svmb.dts MIPS: BMIPS: Add I2C node for bcm7358 2015-11-11 08:37:39 +01:00
bcm97360svmb.dts MIPS: BMIPS: Add I2C node for bcm7360 2015-11-11 08:37:42 +01:00
bcm97362svmb.dts MIPS: BMIPS: Add SATA/PHY nodes for bcm7362 2015-11-11 08:37:51 +01:00
bcm97420c.dts MIPS: BMIPS: Add DTS files for several platforms 2015-04-01 17:21:42 +02:00
bcm97425svmb.dts MIPS: BMIPS: Add DTS files for several platforms 2015-04-01 17:21:42 +02:00
bcm97435svmb.dts MIPS: BMIPS: Add support for Broadcom BCM97435SVMB 2015-06-21 21:53:34 +02:00
Makefile MIPS: BMIPS: Build all dtbs if no builtin dtb 2015-06-21 21:54:16 +02:00