]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: zynq: DT: List OCM memory
authorMichal Simek <michal.simek@amd.com>
Tue, 6 Sep 2022 10:38:34 +0000 (12:38 +0200)
committerMichal Simek <michal.simek@amd.com>
Tue, 13 Sep 2022 09:32:48 +0000 (11:32 +0200)
Description OCM with mmio-sram driver. In 99% use cases OCM is mapped high
that's why it is placed on fixed location.

Signed-off-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/a951dbe885640197efe3e91bb9fa5caedb54b387.1662460712.git.michal.simek@amd.com
arch/arm/dts/zynq-7000.dtsi
arch/arm/dts/zynq-zc702.dts

index 11fa0ef2bfedd1e68969cdc03a132cd776919f65..edc147d63f1e3ec2741520b4494df08a7fb8426f 100644 (file)
                        reg = <0xf8006000 0x1000>;
                };
 
+               ocm: sram@fffc0000 {
+                       compatible = "mmio-sram";
+                       reg = <0xfffc0000 0x10000>;
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+                       ranges = <0 0xfffc0000 0x10000>;
+                       ocm-sram@0 {
+                               reg = <0x0 0x10000>;
+                       };
+               };
+
                uart0: serial@e0000000 {
                        compatible = "xlnx,xuartps", "cdns,uart-r1p8";
                        status = "disabled";
index f2e05a55b95853ea705fb869af20c01c852f0c00..1bd4f8c9f6615af6b39077bcdfe1b3c85df13798 100644 (file)
        };
 };
 
-&amba {
-       ocm: sram@fffc0000 {
-               compatible = "mmio-sram";
-               reg = <0xfffc0000 0x10000>;
-               #address-cells = <1>;
-               #size-cells = <1>;
-               ranges = <0 0xfffc0000 0x10000>;
-               ocm-sram@0 {
-                       reg = <0x0 0x10000>;
-               };
-       };
-};
-
 &can0 {
        status = "okay";
        pinctrl-names = "default";