2023-11-27 16:13:38

by Roland Hieber

[permalink] [raw]
Subject: [PATCH 0/2] ARM: dts: imx7: add MIPI-DSI support

Signed-off-by: Roland Hieber <[email protected]>
---
Marco Felsch (1):
ARM: dts: imx7: add MIPI-DSI support

Philipp Zabel (1):
dt-bindings: display: bridge: samsung-dsim: Add i.MX7D support

.../bindings/display/bridge/samsung,mipi-dsim.yaml | 4 +-
arch/arm/boot/dts/nxp/imx/imx7s.dtsi | 46 ++++++++++++++++++++++
2 files changed, 49 insertions(+), 1 deletion(-)
---
base-commit: 2cc14f52aeb78ce3f29677c2de1f06c0e91471ab
change-id: 20231127-b4-imx7-mipi-dsi-801372e24f13

Best regards,
--
Roland Hieber, Pengutronix e.K. | [email protected] |
Steuerwalder Str. 21 | https://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |


2023-11-27 16:13:46

by Roland Hieber

[permalink] [raw]
Subject: [PATCH 1/2] dt-bindings: display: bridge: samsung-dsim: Add i.MX7D support

From: Philipp Zabel <[email protected]>

Add support for the "fsl,imx7d-mipi-dsim" compatible used on i.MX7D.

Signed-off-by: Philipp Zabel <[email protected]>
Signed-off-by: Roland Hieber <[email protected]>
---
.../devicetree/bindings/display/bridge/samsung,mipi-dsim.yaml | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/display/bridge/samsung,mipi-dsim.yaml b/Documentation/devicetree/bindings/display/bridge/samsung,mipi-dsim.yaml
index 4ed7a799ba26..e43fec560941 100644
--- a/Documentation/devicetree/bindings/display/bridge/samsung,mipi-dsim.yaml
+++ b/Documentation/devicetree/bindings/display/bridge/samsung,mipi-dsim.yaml
@@ -27,7 +27,9 @@ properties:
- fsl,imx8mm-mipi-dsim
- fsl,imx8mp-mipi-dsim
- items:
- - const: fsl,imx8mn-mipi-dsim
+ - enum:
+ - fsl,imx7d-mipi-dsim
+ - fsl,imx8mn-mipi-dsim
- const: fsl,imx8mm-mipi-dsim

reg:

--
2.39.2

2023-11-27 16:13:51

by Roland Hieber

[permalink] [raw]
Subject: [PATCH 2/2] ARM: dts: imx7: add MIPI-DSI support

From: Marco Felsch <[email protected]>

This adds the device tree support for the MIPI-DSI block. The block can
be used as encoder for the parallel signals coming from the lcdif block.

Signed-off-by: Marco Felsch <[email protected]>
Signed-off-by: Roland Hieber <[email protected]>
---
arch/arm/boot/dts/nxp/imx/imx7s.dtsi | 46 ++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)

diff --git a/arch/arm/boot/dts/nxp/imx/imx7s.dtsi b/arch/arm/boot/dts/nxp/imx/imx7s.dtsi
index 29b8fd03567a..7adadf9c3694 100644
--- a/arch/arm/boot/dts/nxp/imx/imx7s.dtsi
+++ b/arch/arm/boot/dts/nxp/imx/imx7s.dtsi
@@ -818,6 +818,16 @@ lcdif: lcdif@30730000 {
<&clks IMX7D_LCDIF_PIXEL_ROOT_CLK>;
clock-names = "pix", "axi";
status = "disabled";
+
+ port {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ lcdif_out_mipi_dsi: endpoint@0 {
+ reg = <0>;
+ remote-endpoint = <&mipi_dsi_in_lcdif>;
+ };
+ };
};

mipi_csi: mipi-csi@30750000 {
@@ -850,6 +860,42 @@ mipi_vc0_to_csi_mux: endpoint {
};
};
};
+
+ mipi_dsi: dsi@30760000 {
+ compatible = "fsl,imx7d-mipi-dsim", "fsl,imx8mm-mipi-dsim";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ reg = <0x30760000 0x400>;
+ clocks = <&clks IMX7D_MIPI_DSI_ROOT_CLK>,
+ <&clks IMX7D_MIPI_DPHY_ROOT_CLK>;
+ clock-names = "bus_clk", "sclk_mipi";
+ assigned-clocks = <&clks IMX7D_MIPI_DSI_ROOT_SRC>,
+ <&clks IMX7D_PLL_SYS_PFD5_CLK>;
+ assigned-clock-parents = <&clks IMX7D_PLL_SYS_PFD5_CLK>;
+ assigned-clock-rates = <0>, <333000000>;
+ power-domains = <&pgc_mipi_phy>;
+ interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
+ samsung,burst-clock-frequency = <891000000>;
+ samsung,esc-clock-frequency = <20000000>;
+ samsung,pll-clock-frequency = <24000000>;
+ status = "disabled";
+
+ ports {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ port@0 {
+ reg = <0>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ mipi_dsi_in_lcdif: endpoint@0 {
+ reg = <0>;
+ remote-endpoint = <&lcdif_out_mipi_dsi>;
+ };
+ };
+ };
+ };
};

aips3: bus@30800000 {

--
2.39.2

2023-11-27 17:15:41

by Conor Dooley

[permalink] [raw]
Subject: Re: [PATCH 1/2] dt-bindings: display: bridge: samsung-dsim: Add i.MX7D support

On Mon, Nov 27, 2023 at 05:12:28PM +0100, Roland Hieber wrote:
> From: Philipp Zabel <[email protected]>
>
> Add support for the "fsl,imx7d-mipi-dsim" compatible used on i.MX7D.
>
> Signed-off-by: Philipp Zabel <[email protected]>
> Signed-off-by: Roland Hieber <[email protected]>

Acked-by: Conor Dooley <[email protected]>

Cheers,
Conor.

> ---
> .../devicetree/bindings/display/bridge/samsung,mipi-dsim.yaml | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/display/bridge/samsung,mipi-dsim.yaml b/Documentation/devicetree/bindings/display/bridge/samsung,mipi-dsim.yaml
> index 4ed7a799ba26..e43fec560941 100644
> --- a/Documentation/devicetree/bindings/display/bridge/samsung,mipi-dsim.yaml
> +++ b/Documentation/devicetree/bindings/display/bridge/samsung,mipi-dsim.yaml
> @@ -27,7 +27,9 @@ properties:
> - fsl,imx8mm-mipi-dsim
> - fsl,imx8mp-mipi-dsim
> - items:
> - - const: fsl,imx8mn-mipi-dsim
> + - enum:
> + - fsl,imx7d-mipi-dsim
> + - fsl,imx8mn-mipi-dsim
> - const: fsl,imx8mm-mipi-dsim
>
> reg:
>
> --
> 2.39.2
>


Attachments:
(No filename) (1.22 kB)
signature.asc (235.00 B)
Download all attachments

2023-12-06 02:11:33

by Shawn Guo

[permalink] [raw]
Subject: Re: [PATCH 2/2] ARM: dts: imx7: add MIPI-DSI support

On Mon, Nov 27, 2023 at 05:12:29PM +0100, Roland Hieber wrote:
> From: Marco Felsch <[email protected]>
>
> This adds the device tree support for the MIPI-DSI block. The block can
> be used as encoder for the parallel signals coming from the lcdif block.
>
> Signed-off-by: Marco Felsch <[email protected]>
> Signed-off-by: Roland Hieber <[email protected]>

Applied this one, thanks!