arm64: dts: meson: fix g12a buses
authorJerome Brunet <jbrunet@baylibre.com>
Fri, 1 Feb 2019 13:37:32 +0000 (14:37 +0100)
committerKevin Hilman <khilman@baylibre.com>
Thu, 7 Feb 2019 03:20:55 +0000 (19:20 -0800)
Fix apb, cbus, hiu and periph regions which are not aligned
with the documentation and the information provided by Amlogic

Fixes: 9c8c52f7cb4f ("arm64: dts: meson-g12a: add initial g12a s905d2 SoC DT support")
Cc: Jianxin Pan <jianxin.pan@amlogic.com>
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
arch/arm64/boot/dts/amlogic/meson-g12a.dtsi

index 3b82a97..349c4e2 100644 (file)
                #size-cells = <2>;
                ranges;
 
-               periphs: periphs@ff634000 {
+               apb: bus@ff600000 {
                        compatible = "simple-bus";
-                       reg = <0x0 0xff634000 0x0 0x2000>;
+                       reg = <0x0 0xff600000 0x0 0x200000>;
                        #address-cells = <2>;
                        #size-cells = <2>;
-                       ranges = <0x0 0x0 0x0 0xff634000 0x0 0x2000>;
-               };
+                       ranges = <0x0 0x0 0x0 0xff600000 0x0 0x200000>;
+
+                       periphs: bus@34400 {
+                               compatible = "simple-bus";
+                               reg = <0x0 0x34400 0x0 0x400>;
+                               #address-cells = <2>;
+                               #size-cells = <2>;
+                               ranges = <0x0 0x0 0x0 0x34400 0x0 0x400>;
+                       };
 
-               hiubus: bus@ff63c000 {
-                       compatible = "simple-bus";
-                       reg = <0x0 0xff63c000 0x0 0x1c00>;
-                       #address-cells = <2>;
-                       #size-cells = <2>;
-                       ranges = <0x0 0x0 0x0 0xff63c000 0x0 0x1c00>;
+                       hiu: bus@3c000 {
+                               compatible = "simple-bus";
+                               reg = <0x0 0x3c000 0x0 0x1400>;
+                               #address-cells = <2>;
+                               #size-cells = <2>;
+                               ranges = <0x0 0x0 0x0 0x3c000 0x0 0x1400>;
+                       };
                };
 
                aobus: bus@ff800000 {
                        ranges = <0x0 0x0 0x0 0xff800000 0x0 0x100000>;
 
                        uart_AO: serial@3000 {
-                               compatible = "amlogic,meson-gx-uart", "amlogic,meson-ao-uart";
+                               compatible = "amlogic,meson-gx-uart",
+                                            "amlogic,meson-ao-uart";
                                reg = <0x0 0x3000 0x0 0x18>;
                                interrupts = <GIC_SPI 193 IRQ_TYPE_EDGE_RISING>;
                                clocks = <&xtal>, <&xtal>, <&xtal>;
                        };
 
                        uart_AO_B: serial@4000 {
-                               compatible = "amlogic,meson-gx-uart", "amlogic,meson-ao-uart";
+                               compatible = "amlogic,meson-gx-uart",
+                                            "amlogic,meson-ao-uart";
                                reg = <0x0 0x4000 0x0 0x18>;
                                interrupts = <GIC_SPI 197 IRQ_TYPE_EDGE_RISING>;
                                clocks = <&xtal>, <&xtal>, <&xtal>;
 
                cbus: bus@ffd00000 {
                        compatible = "simple-bus";
-                       reg = <0x0 0xffd00000 0x0 0x25000>;
-                       #address-cells = <2>;
-                       #size-cells = <2>;
-                       ranges = <0x0 0x0 0x0 0xffd00000 0x0 0x25000>;
-               };
-
-               apb: apb@ffe00000 {
-                       compatible = "simple-bus";
-                       reg = <0x0 0xffe00000 0x0 0x200000>;
+                       reg = <0x0 0xffd00000 0x0 0x100000>;
                        #address-cells = <2>;
                        #size-cells = <2>;
-                       ranges = <0x0 0x0 0x0 0xffe00000 0x0 0x200000>;
+                       ranges = <0x0 0x0 0x0 0xffd00000 0x0 0x100000>;
                };
        };