From: Peng Fan <van.freenix@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 15/17] arm: dts: Add devicetree for i.MX6Q
Date: Mon, 19 Sep 2016 14:28:03 +0800 [thread overview]
Message-ID: <20160919062801.GG15814@linux-7smt.suse> (raw)
In-Reply-To: <1474058929-17637-16-git-send-email-jagan@amarulasolutions.com>
Hi,
On Sat, Sep 17, 2016 at 02:18:47AM +0530, Jagan Teki wrote:
>Add i.MX6Q dtsi support from Linux.
I am still not sure whether we need to import a full Linux device tree to U-Boot (:-
Stefano, do you have any comments?
I recalled I asked about this. Alought i.mx6ull and i.mx7 dts add included in
imx-next tree, I think it will increase efforts to maintain if support full
linux device tree.
Regards,
Peng.
>
>Cc: Peng Fan <peng.fan@nxp.com>
>Cc: Stefano Babic <sbabic@denx.de>
>Cc: Fabio Estevam <fabio.estevam@nxp.com>
>Cc: Matteo Lisi <matteo.lisi@engicam.com>
>Cc: Michael Trimarchi <michael@amarulasolutions.com>
>Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
>---
> arch/arm/dts/imx6q.dtsi | 300 ++++++++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 300 insertions(+)
> create mode 100644 arch/arm/dts/imx6q.dtsi
>
>diff --git a/arch/arm/dts/imx6q.dtsi b/arch/arm/dts/imx6q.dtsi
>new file mode 100644
>index 0000000..c30c836
>--- /dev/null
>+++ b/arch/arm/dts/imx6q.dtsi
>@@ -0,0 +1,300 @@
>+
>+/*
>+ * Copyright 2013 Freescale Semiconductor, Inc.
>+ *
>+ * This program is free software; you can redistribute it and/or modify
>+ * it under the terms of the GNU General Public License version 2 as
>+ * published by the Free Software Foundation.
>+ *
>+ */
>+
>+#include <dt-bindings/interrupt-controller/irq.h>
>+#include "imx6q-pinfunc.h"
>+#include "imx6qdl.dtsi"
>+
>+/ {
>+ aliases {
>+ ipu1 = &ipu2;
>+ spi4 = &ecspi5;
>+ };
>+
>+ cpus {
>+ #address-cells = <1>;
>+ #size-cells = <0>;
>+
>+ cpu0: cpu at 0 {
>+ compatible = "arm,cortex-a9";
>+ device_type = "cpu";
>+ reg = <0>;
>+ next-level-cache = <&L2>;
>+ operating-points = <
>+ /* kHz uV */
>+ 1200000 1275000
>+ 996000 1250000
>+ 852000 1250000
>+ 792000 1175000
>+ 396000 975000
>+ >;
>+ fsl,soc-operating-points = <
>+ /* ARM kHz SOC-PU uV */
>+ 1200000 1275000
>+ 996000 1250000
>+ 852000 1250000
>+ 792000 1175000
>+ 396000 1175000
>+ >;
>+ clock-latency = <61036>; /* two CLK32 periods */
>+ clocks = <&clks IMX6QDL_CLK_ARM>,
>+ <&clks IMX6QDL_CLK_PLL2_PFD2_396M>,
>+ <&clks IMX6QDL_CLK_STEP>,
>+ <&clks IMX6QDL_CLK_PLL1_SW>,
>+ <&clks IMX6QDL_CLK_PLL1_SYS>;
>+ clock-names = "arm", "pll2_pfd2_396m", "step",
>+ "pll1_sw", "pll1_sys";
>+ arm-supply = <®_arm>;
>+ pu-supply = <®_pu>;
>+ soc-supply = <®_soc>;
>+ };
>+
>+ cpu at 1 {
>+ compatible = "arm,cortex-a9";
>+ device_type = "cpu";
>+ reg = <1>;
>+ next-level-cache = <&L2>;
>+ };
>+
>+ cpu at 2 {
>+ compatible = "arm,cortex-a9";
>+ device_type = "cpu";
>+ reg = <2>;
>+ next-level-cache = <&L2>;
>+ };
>+
>+ cpu at 3 {
>+ compatible = "arm,cortex-a9";
>+ device_type = "cpu";
>+ reg = <3>;
>+ next-level-cache = <&L2>;
>+ };
>+ };
>+
>+ soc {
>+ ocram: sram at 00900000 {
>+ compatible = "mmio-sram";
>+ reg = <0x00900000 0x40000>;
>+ clocks = <&clks IMX6QDL_CLK_OCRAM>;
>+ };
>+
>+ aips-bus at 02000000 { /* AIPS1 */
>+ spba-bus at 02000000 {
>+ ecspi5: ecspi at 02018000 {
>+ #address-cells = <1>;
>+ #size-cells = <0>;
>+ compatible = "fsl,imx6q-ecspi", "fsl,imx51-ecspi";
>+ reg = <0x02018000 0x4000>;
>+ interrupts = <0 35 IRQ_TYPE_LEVEL_HIGH>;
>+ clocks = <&clks IMX6Q_CLK_ECSPI5>,
>+ <&clks IMX6Q_CLK_ECSPI5>;
>+ clock-names = "ipg", "per";
>+ dmas = <&sdma 11 7 1>, <&sdma 12 7 2>;
>+ dma-names = "rx", "tx";
>+ status = "disabled";
>+ };
>+ };
>+
>+ iomuxc: iomuxc at 020e0000 {
>+ compatible = "fsl,imx6q-iomuxc";
>+ };
>+ };
>+
>+ sata: sata at 02200000 {
>+ compatible = "fsl,imx6q-ahci";
>+ reg = <0x02200000 0x4000>;
>+ interrupts = <0 39 IRQ_TYPE_LEVEL_HIGH>;
>+ clocks = <&clks IMX6QDL_CLK_SATA>,
>+ <&clks IMX6QDL_CLK_SATA_REF_100M>,
>+ <&clks IMX6QDL_CLK_AHB>;
>+ clock-names = "sata", "sata_ref", "ahb";
>+ status = "disabled";
>+ };
>+
>+ gpu_vg: gpu at 02204000 {
>+ compatible = "vivante,gc";
>+ reg = <0x02204000 0x4000>;
>+ interrupts = <0 11 IRQ_TYPE_LEVEL_HIGH>;
>+ clocks = <&clks IMX6QDL_CLK_OPENVG_AXI>,
>+ <&clks IMX6QDL_CLK_GPU2D_CORE>;
>+ clock-names = "bus", "core";
>+ power-domains = <&gpc 1>;
>+ };
>+
>+ ipu2: ipu at 02800000 {
>+ #address-cells = <1>;
>+ #size-cells = <0>;
>+ compatible = "fsl,imx6q-ipu";
>+ reg = <0x02800000 0x400000>;
>+ interrupts = <0 8 IRQ_TYPE_LEVEL_HIGH>,
>+ <0 7 IRQ_TYPE_LEVEL_HIGH>;
>+ clocks = <&clks IMX6QDL_CLK_IPU2>,
>+ <&clks IMX6QDL_CLK_IPU2_DI0>,
>+ <&clks IMX6QDL_CLK_IPU2_DI1>;
>+ clock-names = "bus", "di0", "di1";
>+ resets = <&src 4>;
>+
>+ ipu2_csi0: port at 0 {
>+ reg = <0>;
>+ };
>+
>+ ipu2_csi1: port at 1 {
>+ reg = <1>;
>+ };
>+
>+ ipu2_di0: port at 2 {
>+ #address-cells = <1>;
>+ #size-cells = <0>;
>+ reg = <2>;
>+
>+ ipu2_di0_disp0: disp0-endpoint {
>+ };
>+
>+ ipu2_di0_hdmi: hdmi-endpoint {
>+ remote-endpoint = <&hdmi_mux_2>;
>+ };
>+
>+ ipu2_di0_mipi: mipi-endpoint {
>+ remote-endpoint = <&mipi_mux_2>;
>+ };
>+
>+ ipu2_di0_lvds0: lvds0-endpoint {
>+ remote-endpoint = <&lvds0_mux_2>;
>+ };
>+
>+ ipu2_di0_lvds1: lvds1-endpoint {
>+ remote-endpoint = <&lvds1_mux_2>;
>+ };
>+ };
>+
>+ ipu2_di1: port at 3 {
>+ #address-cells = <1>;
>+ #size-cells = <0>;
>+ reg = <3>;
>+
>+ ipu2_di1_hdmi: hdmi-endpoint {
>+ remote-endpoint = <&hdmi_mux_3>;
>+ };
>+
>+ ipu2_di1_mipi: mipi-endpoint {
>+ remote-endpoint = <&mipi_mux_3>;
>+ };
>+
>+ ipu2_di1_lvds0: lvds0-endpoint {
>+ remote-endpoint = <&lvds0_mux_3>;
>+ };
>+
>+ ipu2_di1_lvds1: lvds1-endpoint {
>+ remote-endpoint = <&lvds1_mux_3>;
>+ };
>+ };
>+ };
>+ };
>+
>+ display-subsystem {
>+ compatible = "fsl,imx-display-subsystem";
>+ ports = <&ipu1_di0>, <&ipu1_di1>, <&ipu2_di0>, <&ipu2_di1>;
>+ };
>+
>+ gpu-subsystem {
>+ compatible = "fsl,imx-gpu-subsystem";
>+ cores = <&gpu_2d>, <&gpu_3d>, <&gpu_vg>;
>+ };
>+};
>+
>+&hdmi {
>+ compatible = "fsl,imx6q-hdmi";
>+
>+ port at 2 {
>+ reg = <2>;
>+
>+ hdmi_mux_2: endpoint {
>+ remote-endpoint = <&ipu2_di0_hdmi>;
>+ };
>+ };
>+
>+ port at 3 {
>+ reg = <3>;
>+
>+ hdmi_mux_3: endpoint {
>+ remote-endpoint = <&ipu2_di1_hdmi>;
>+ };
>+ };
>+};
>+
>+&ldb {
>+ clocks = <&clks IMX6QDL_CLK_LDB_DI0_SEL>, <&clks IMX6QDL_CLK_LDB_DI1_SEL>,
>+ <&clks IMX6QDL_CLK_IPU1_DI0_SEL>, <&clks IMX6QDL_CLK_IPU1_DI1_SEL>,
>+ <&clks IMX6QDL_CLK_IPU2_DI0_SEL>, <&clks IMX6QDL_CLK_IPU2_DI1_SEL>,
>+ <&clks IMX6QDL_CLK_LDB_DI0>, <&clks IMX6QDL_CLK_LDB_DI1>;
>+ clock-names = "di0_pll", "di1_pll",
>+ "di0_sel", "di1_sel", "di2_sel", "di3_sel",
>+ "di0", "di1";
>+
>+ lvds-channel at 0 {
>+ port at 2 {
>+ reg = <2>;
>+
>+ lvds0_mux_2: endpoint {
>+ remote-endpoint = <&ipu2_di0_lvds0>;
>+ };
>+ };
>+
>+ port at 3 {
>+ reg = <3>;
>+
>+ lvds0_mux_3: endpoint {
>+ remote-endpoint = <&ipu2_di1_lvds0>;
>+ };
>+ };
>+ };
>+
>+ lvds-channel at 1 {
>+ port at 2 {
>+ reg = <2>;
>+
>+ lvds1_mux_2: endpoint {
>+ remote-endpoint = <&ipu2_di0_lvds1>;
>+ };
>+ };
>+
>+ port at 3 {
>+ reg = <3>;
>+
>+ lvds1_mux_3: endpoint {
>+ remote-endpoint = <&ipu2_di1_lvds1>;
>+ };
>+ };
>+ };
>+};
>+
>+&mipi_dsi {
>+ ports {
>+ port at 2 {
>+ reg = <2>;
>+
>+ mipi_mux_2: endpoint {
>+ remote-endpoint = <&ipu2_di0_mipi>;
>+ };
>+ };
>+
>+ port at 3 {
>+ reg = <3>;
>+
>+ mipi_mux_3: endpoint {
>+ remote-endpoint = <&ipu2_di1_mipi>;
>+ };
>+ };
>+ };
>+};
>+
>+&vpu {
>+ compatible = "fsl,imx6q-vpu", "cnm,coda960";
>+};
>--
>2.7.4
>
>_______________________________________________
>U-Boot mailing list
>U-Boot at lists.denx.de
>http://lists.denx.de/mailman/listinfo/u-boot
next prev parent reply other threads:[~2016-09-19 6:28 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-16 20:48 [U-Boot] [PATCH v2 00/17] imx6: Add Engicam i.CoreM6 QDL modules support Jagan Teki
2016-09-16 20:48 ` [U-Boot] [PATCH v2 01/17] imx: iomux-v3: Fix build error with snvs base Jagan Teki
2016-09-18 7:03 ` Peng Fan
2016-09-18 8:28 ` Jagan Teki
2016-09-16 20:48 ` [U-Boot] [PATCH v2 02/17] serial: Kconfig: Add MXC_UART entry Jagan Teki
2016-09-19 5:53 ` Peng Fan
2016-09-19 7:16 ` Jagan Teki
2016-09-16 20:48 ` [U-Boot] [PATCH v2 03/17] thermal: Kconfig: Add IMX_THERMAL entry Jagan Teki
2016-09-19 5:55 ` Peng Fan
2016-09-16 20:48 ` [U-Boot] [PATCH v2 04/17] Kconfig: Add DEFAULT_FDT_FILE entry Jagan Teki
2016-09-18 18:15 ` Tom Rini
2016-09-16 20:48 ` [U-Boot] [PATCH v2 05/17] arm: imx: Add Engicam i.CoreM6 QDL Starter Kit initial support Jagan Teki
2016-09-19 6:06 ` Peng Fan
2016-09-19 7:42 ` Jagan Teki
2016-09-16 20:48 ` [U-Boot] [PATCH v2 06/17] imx6: icorem6: Add ENET support Jagan Teki
2016-09-16 20:48 ` [U-Boot] [PATCH v2 07/17] imx: s/docs\/README.imximage/doc\/README.imximage/g Jagan Teki
2016-09-19 6:14 ` Peng Fan
2016-09-16 20:48 ` [U-Boot] [PATCH v2 08/17] arm: dts: Add devicetree for i.MX6DL Jagan Teki
2016-09-19 6:17 ` Peng Fan
2016-09-16 20:48 ` [U-Boot] [PATCH v2 09/17] arm: dts: Add devicetree for i.MX6DQL Jagan Teki
2016-09-16 20:48 ` [U-Boot] [PATCH v2 10/17] arm: dts: imx6dl: Add pinctrl defines Jagan Teki
2016-09-16 20:48 ` [U-Boot] [PATCH v2 11/17] dt-bindings: clock: imx6qdl: Add clock defines Jagan Teki
2016-09-16 20:48 ` [U-Boot] [PATCH v2 12/17] arm: imx6q: Add devicetree support for Engicam i.CoreM6 DualLite/Solo Jagan Teki
2016-09-16 20:48 ` [U-Boot] [PATCH v2 13/17] imx6q: icorem6: Enable pinctrl driver Jagan Teki
2016-09-16 20:48 ` [U-Boot] [PATCH v2 14/17] engicam: icorem6: Add DM_GPIO, DM_MMC support Jagan Teki
2016-09-19 6:25 ` Peng Fan
2016-09-19 7:23 ` Jagan Teki
2016-09-16 20:48 ` [U-Boot] [PATCH v2 15/17] arm: dts: Add devicetree for i.MX6Q Jagan Teki
2016-09-19 6:28 ` Peng Fan [this message]
2016-09-20 13:18 ` Jagan Teki
2016-09-16 20:48 ` [U-Boot] [PATCH v2 16/17] arm: dts: imx6q: Add pinctrl defines Jagan Teki
2016-09-16 20:48 ` [U-Boot] [PATCH v2 17/17] arm: imx6q: Add devicetree support for Engicam i.CoreM6 Quad/Dual Jagan Teki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160919062801.GG15814@linux-7smt.suse \
--to=van.freenix@gmail.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.