aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/arch/mips/boot/dts/ingenic/jz4740.dtsi
diff options
context:
space:
mode:
authorH. Nikolaus Schaller <hns@goldelico.com>2021-12-02 19:39:53 +0100
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>2021-12-09 18:10:00 +0100
commit2bcb9c25081d116afa3796133033ea3f2f02ee8b (patch)
tree3239dbfc80111c6c8b0315c838cf84b784759327 /arch/mips/boot/dts/ingenic/jz4740.dtsi
parentMIPS: defconfig: CI20: configure for DRM_DW_HDMI_JZ4780 (diff)
downloadwireguard-linux-2bcb9c25081d116afa3796133033ea3f2f02ee8b.tar.xz
wireguard-linux-2bcb9c25081d116afa3796133033ea3f2f02ee8b.zip
MIPS: DTS: Ingenic: adjust register size to available registers
After getting the regmap size from the device tree we should reduce the ranges to the really available registers. This allows to read only existing registers from the debug fs and makes the regmap check out-of-bounds access. For the jz4780 we have done this already. Suggested-for: Paul Cercueil <paul@crapouillou.net> Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'arch/mips/boot/dts/ingenic/jz4740.dtsi')
-rw-r--r--arch/mips/boot/dts/ingenic/jz4740.dtsi2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/boot/dts/ingenic/jz4740.dtsi b/arch/mips/boot/dts/ingenic/jz4740.dtsi
index 772542e1f266..7f76cba03a08 100644
--- a/arch/mips/boot/dts/ingenic/jz4740.dtsi
+++ b/arch/mips/boot/dts/ingenic/jz4740.dtsi
@@ -323,7 +323,7 @@
lcd: lcd-controller@13050000 {
compatible = "ingenic,jz4740-lcd";
- reg = <0x13050000 0x1000>;
+ reg = <0x13050000 0x60>; /* LCDCMD1+4 */
interrupt-parent = <&intc>;
interrupts = <30>;