ARM: dts: Fix dm8148 control modules ranges
authorTony Lindgren <tony@atomide.com>
Thu, 3 Dec 2015 20:02:32 +0000 (12:02 -0800)
committerTony Lindgren <tony@atomide.com>
Thu, 10 Dec 2015 00:53:46 +0000 (16:53 -0800)
The control module is at offset 0x14000 with size 0x20000, not 0x16000.
This causes the pinctrl driver to not work.

Let's also fix the comments related to the TRM "L4LS Instance Summary"
table as that's what's causing the bad entries.

Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/dm814x.dtsi

index 5c8de1930c8bc5a8fc3c0fa19b1d619d703502f5..68b156b52003934f619cd18568b42296351fc24e 100644 (file)
                ti,hwmods = "l3_main";
 
                /*
-                * See TRM "Table 1-317. L4LS Instance Summary", just deduct
-                * 0x1000 from the 1-317 addresses to get the device address
+                * See TRM "Table 1-317. L4LS Instance Summary" for hints.
+                * It shows the module target agent registers though, so the
+                * actual device is typically 0x1000 before the target agent
+                * except in cases where the module is larger than 0x1000.
                 */
                l4ls: l4ls@48000000 {
                        compatible = "ti,dm814-l4ls", "simple-bus";
 
                        control: control@140000 {
                                compatible = "ti,dm814-scm", "simple-bus";
-                               reg = <0x140000 0x16d000>;
+                               reg = <0x140000 0x20000>;
                                #address-cells = <1>;
                                #size-cells = <1>;
-                               ranges = <0 0x160000 0x16d000>;
+                               ranges = <0 0x140000 0x20000>;
 
                                scm_conf: scm_conf@0 {
                                        compatible = "syscon";