LF-1383-07 arm64: dts: freescale: Add ddr subsys dtsi for imx8dxl
authorJacky Bai <ping.bai@nxp.com>
Tue, 18 Aug 2020 01:57:20 +0000 (09:57 +0800)
committerDong Aisheng <aisheng.dong@nxp.com>
Mon, 14 Dec 2020 03:23:05 +0000 (11:23 +0800)
Add the ddr subsys dtsi for i.MX8DXL. Additional db pmu is added
compared to i.MX8QXP.

Signed-off-by: Jacky Bai <ping.bai@nxp.com>
Reviewed-by: Dong Aisheng <aisheng.dong@nxp.com>
arch/arm64/boot/dts/freescale/imx8dxl-ss-ddr.dtsi [new file with mode: 0644]

diff --git a/arch/arm64/boot/dts/freescale/imx8dxl-ss-ddr.dtsi b/arch/arm64/boot/dts/freescale/imx8dxl-ss-ddr.dtsi
new file mode 100644 (file)
index 0000000..ee9050b
--- /dev/null
@@ -0,0 +1,40 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright 2020 NXP
+ */
+
+&ddr_pmu0 {
+       compatible = "fsl,imx8dxl-ddr-pmu", "fsl,imx8-ddr-pmu";
+       interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
+};
+
+&ddr_subsys {
+       db_ipg_clk: clock-db-ipg {
+               compatible = "fixed-clock";
+               #clock-cells = <0>;
+               clock-frequency = <456000000>;
+               clock-output-names = "db_ipg_clk";
+       };
+
+       db_pmu0: db-pmu@5ca40000 {
+               compatible = "fsl,imx8dxl-db-pmu";
+               reg = <0x5ca40000 0x10000>;
+               interrupt-parent = <&gic>;
+               interrupts = <GIC_SPI 338 IRQ_TYPE_LEVEL_HIGH>;
+               clocks = <&db_pmu0_lpcg 1>, <&db_pmu0_lpcg 0>;
+               clock-names = "ipg", "cnt";
+               power-domains = <&pd IMX_SC_R_PERF>;
+       };
+
+       db_pmu0_lpcg: clock-controller@5cae0000 {
+               compatible = "fsl,imx8qxp-lpcg";
+               reg = <0x5cae0000 0x10000>;
+               #clock-cells = <1>;
+               clocks = <&db_ipg_clk>, <&db_ipg_clk>;
+               bit-offset = <0 16>;
+               clock-output-names = "perf_lpcg_cnt_clk",
+                                    "perf_lpcg_ipg_clk";
+               power-domains = <&pd IMX_SC_R_PERF>;
+               status = "disabled";
+       };
+};