[PATCH v2] ARM: zynq: DT: List OCM memory

Michal Simek monstr at monstr.eu
Mon Sep 12 11:57:26 CEST 2022


út 6. 9. 2022 v 12:38 odesílatel Michal Simek <michal.simek at amd.com> napsal:
>
> 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 at amd.com>
> ---
>
> Changes in v2:
> - Remove ocmc controller and use only OCM
> - Remove OCM setup from zc702
>
>  arch/arm/dts/zynq-7000.dtsi | 11 +++++++++++
>  arch/arm/dts/zynq-zc702.dts | 13 -------------
>  2 files changed, 11 insertions(+), 13 deletions(-)
>
> diff --git a/arch/arm/dts/zynq-7000.dtsi b/arch/arm/dts/zynq-7000.dtsi
> index 11fa0ef2bfed..edc147d63f1e 100644
> --- a/arch/arm/dts/zynq-7000.dtsi
> +++ b/arch/arm/dts/zynq-7000.dtsi
> @@ -192,6 +192,17 @@
>                         reg = <0xf8006000 0x1000>;
>                 };
>
> +               ocm: sram at fffc0000 {
> +                       compatible = "mmio-sram";
> +                       reg = <0xfffc0000 0x10000>;
> +                       #address-cells = <1>;
> +                       #size-cells = <1>;
> +                       ranges = <0 0xfffc0000 0x10000>;
> +                       ocm-sram at 0 {
> +                               reg = <0x0 0x10000>;
> +                       };
> +               };
> +
>                 uart0: serial at e0000000 {
>                         compatible = "xlnx,xuartps", "cdns,uart-r1p8";
>                         status = "disabled";
> diff --git a/arch/arm/dts/zynq-zc702.dts b/arch/arm/dts/zynq-zc702.dts
> index f2e05a55b958..1bd4f8c9f661 100644
> --- a/arch/arm/dts/zynq-zc702.dts
> +++ b/arch/arm/dts/zynq-zc702.dts
> @@ -64,19 +64,6 @@
>         };
>  };
>
> -&amba {
> -       ocm: sram at fffc0000 {
> -               compatible = "mmio-sram";
> -               reg = <0xfffc0000 0x10000>;
> -               #address-cells = <1>;
> -               #size-cells = <1>;
> -               ranges = <0 0xfffc0000 0x10000>;
> -               ocm-sram at 0 {
> -                       reg = <0x0 0x10000>;
> -               };
> -       };
> -};
> -
>  &can0 {
>         status = "okay";
>         pinctrl-names = "default";
> --
> 2.36.1
>

Applied.
M

-- 
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs


More information about the U-Boot mailing list