* [PATCH 1/3] ARM: dts: imx6qp: reference PCIe node by handle
@ 2017-02-17 13:48 Lucas Stach
2017-02-17 13:48 ` [PATCH 2/3] ARM: dts: imx6qp: reference MMDC node by handle and remove duplication Lucas Stach
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Lucas Stach @ 2017-02-17 13:48 UTC (permalink / raw)
To: linux-arm-kernel
By using the handle, we can avoid some duplication of the base DT
and so avoid any maintenance overhead in the QP DT if the referenced
node changes.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
arch/arm/boot/dts/imx6qp.dtsi | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/arch/arm/boot/dts/imx6qp.dtsi b/arch/arm/boot/dts/imx6qp.dtsi
index 24d071f5d9cd..bceab2d87af4 100644
--- a/arch/arm/boot/dts/imx6qp.dtsi
+++ b/arch/arm/boot/dts/imx6qp.dtsi
@@ -82,10 +82,6 @@
"ldb_di0", "ldb_di1", "prg";
};
- pcie: pcie at 0x01000000 {
- compatible = "fsl,imx6qp-pcie", "snps,dw-pcie";
- };
-
aips-bus at 02100000 {
mmdc0: mmdc at 021b0000 { /* MMDC0 */
compatible = "fsl,imx6qp-mmdc", "fsl,imx6q-mmdc";
@@ -110,3 +106,7 @@
"di0_sel", "di1_sel", "di2_sel", "di3_sel",
"di0", "di1";
};
+
+&pcie {
+ compatible = "fsl,imx6qp-pcie", "snps,dw-pcie";
+};
--
2.11.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/3] ARM: dts: imx6qp: reference MMDC node by handle and remove duplication
2017-02-17 13:48 [PATCH 1/3] ARM: dts: imx6qp: reference PCIe node by handle Lucas Stach
@ 2017-02-17 13:48 ` Lucas Stach
2017-02-17 13:48 ` [PATCH 3/3] ARM: dts: imx6qp: correct IPU nodes Lucas Stach
2017-03-10 5:35 ` [PATCH 1/3] ARM: dts: imx6qp: reference PCIe node by handle Shawn Guo
2 siblings, 0 replies; 4+ messages in thread
From: Lucas Stach @ 2017-02-17 13:48 UTC (permalink / raw)
To: linux-arm-kernel
Referencing the node by handle make the QP DT more resilent against
changes of the base DT. Also remove the duplicated reg property, it's
not needed as it the same as in the base DT, just the compatible is
actually different.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
arch/arm/boot/dts/imx6qp.dtsi | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/arch/arm/boot/dts/imx6qp.dtsi b/arch/arm/boot/dts/imx6qp.dtsi
index bceab2d87af4..b077394ed586 100644
--- a/arch/arm/boot/dts/imx6qp.dtsi
+++ b/arch/arm/boot/dts/imx6qp.dtsi
@@ -81,13 +81,6 @@
"di0_sel", "di1_sel",
"ldb_di0", "ldb_di1", "prg";
};
-
- aips-bus at 02100000 {
- mmdc0: mmdc at 021b0000 { /* MMDC0 */
- compatible = "fsl,imx6qp-mmdc", "fsl,imx6q-mmdc";
- reg = <0x021b0000 0x4000>;
- };
- };
};
};
@@ -107,6 +100,10 @@
"di0", "di1";
};
+&mmdc0 {
+ compatible = "fsl,imx6qp-mmdc", "fsl,imx6q-mmdc";
+};
+
&pcie {
compatible = "fsl,imx6qp-pcie", "snps,dw-pcie";
};
--
2.11.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 3/3] ARM: dts: imx6qp: correct IPU nodes
2017-02-17 13:48 [PATCH 1/3] ARM: dts: imx6qp: reference PCIe node by handle Lucas Stach
2017-02-17 13:48 ` [PATCH 2/3] ARM: dts: imx6qp: reference MMDC node by handle and remove duplication Lucas Stach
@ 2017-02-17 13:48 ` Lucas Stach
2017-03-10 5:35 ` [PATCH 1/3] ARM: dts: imx6qp: reference PCIe node by handle Shawn Guo
2 siblings, 0 replies; 4+ messages in thread
From: Lucas Stach @ 2017-02-17 13:48 UTC (permalink / raw)
To: linux-arm-kernel
Reference them by handle and remove the changed clocks that are copied
from the downstream DT and are not part of the mainline binding.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
arch/arm/boot/dts/imx6qp.dtsi | 34 ++++++++--------------------------
1 file changed, 8 insertions(+), 26 deletions(-)
diff --git a/arch/arm/boot/dts/imx6qp.dtsi b/arch/arm/boot/dts/imx6qp.dtsi
index b077394ed586..4fd6f26b89a6 100644
--- a/arch/arm/boot/dts/imx6qp.dtsi
+++ b/arch/arm/boot/dts/imx6qp.dtsi
@@ -55,32 +55,6 @@
reg = <0x00960000 0x20000>;
clocks = <&clks IMX6QDL_CLK_OCRAM>;
};
-
- ipu1: ipu at 02400000 {
- compatible = "fsl,imx6qp-ipu", "fsl,imx6q-ipu";
- clocks = <&clks IMX6QDL_CLK_IPU1>,
- <&clks IMX6QDL_CLK_IPU1_DI0>, <&clks IMX6QDL_CLK_IPU1_DI1>,
- <&clks IMX6QDL_CLK_IPU1_DI0_SEL>, <&clks IMX6QDL_CLK_IPU1_DI1_SEL>,
- <&clks IMX6QDL_CLK_LDB_DI0_PODF>, <&clks IMX6QDL_CLK_LDB_DI1_PODF>,
- <&clks IMX6QDL_CLK_PRG0_APB>;
- clock-names = "bus",
- "di0", "di1",
- "di0_sel", "di1_sel",
- "ldb_di0", "ldb_di1", "prg";
- };
-
- ipu2: ipu at 02800000 {
- compatible = "fsl,imx6qp-ipu", "fsl,imx6q-ipu";
- clocks = <&clks IMX6QDL_CLK_IPU2>,
- <&clks IMX6QDL_CLK_IPU2_DI0>, <&clks IMX6QDL_CLK_IPU2_DI1>,
- <&clks IMX6QDL_CLK_IPU2_DI0_SEL>, <&clks IMX6QDL_CLK_IPU2_DI1_SEL>,
- <&clks IMX6QDL_CLK_LDB_DI0_PODF>, <&clks IMX6QDL_CLK_LDB_DI1_PODF>,
- <&clks IMX6QDL_CLK_PRG1_APB>;
- clock-names = "bus",
- "di0", "di1",
- "di0_sel", "di1_sel",
- "ldb_di0", "ldb_di1", "prg";
- };
};
};
@@ -90,6 +64,14 @@
<0 119 IRQ_TYPE_LEVEL_HIGH>;
};
+&ipu1 {
+ compatible = "fsl,imx6qp-ipu", "fsl,imx6q-ipu";
+};
+
+&ipu2 {
+ compatible = "fsl,imx6qp-ipu", "fsl,imx6q-ipu";
+};
+
&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>,
--
2.11.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 1/3] ARM: dts: imx6qp: reference PCIe node by handle
2017-02-17 13:48 [PATCH 1/3] ARM: dts: imx6qp: reference PCIe node by handle Lucas Stach
2017-02-17 13:48 ` [PATCH 2/3] ARM: dts: imx6qp: reference MMDC node by handle and remove duplication Lucas Stach
2017-02-17 13:48 ` [PATCH 3/3] ARM: dts: imx6qp: correct IPU nodes Lucas Stach
@ 2017-03-10 5:35 ` Shawn Guo
2 siblings, 0 replies; 4+ messages in thread
From: Shawn Guo @ 2017-03-10 5:35 UTC (permalink / raw)
To: linux-arm-kernel
On Fri, Feb 17, 2017 at 02:48:35PM +0100, Lucas Stach wrote:
> By using the handle, we can avoid some duplication of the base DT
> and so avoid any maintenance overhead in the QP DT if the referenced
> node changes.
>
> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Applied all, thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-03-10 5:35 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-17 13:48 [PATCH 1/3] ARM: dts: imx6qp: reference PCIe node by handle Lucas Stach
2017-02-17 13:48 ` [PATCH 2/3] ARM: dts: imx6qp: reference MMDC node by handle and remove duplication Lucas Stach
2017-02-17 13:48 ` [PATCH 3/3] ARM: dts: imx6qp: correct IPU nodes Lucas Stach
2017-03-10 5:35 ` [PATCH 1/3] ARM: dts: imx6qp: reference PCIe node by handle Shawn Guo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).