Message ID | 20250304154929.1785200-7-alexander.stein@ew.tq-group.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | TQMa93xx on MBa93xxLA/CA LVDS support | expand |
On Tue, Mar 04, 2025 at 04:49:25PM +0100, Alexander Stein wrote: > This adds the overlay for the Tianma TM070JVHG33 LVDS display. Nit: Add the overlay ... Reviewed-by: Frank Li <Frank.Li@nxp.com> > > Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com> > --- > arch/arm64/boot/dts/freescale/Makefile | 2 + > ...3-tqma9352-mba93xxca-lvds-tm070jvhg33.dtso | 40 +++++++++++++++++++ > .../freescale/imx93-tqma9352-mba93xxca.dts | 27 +++++++++++++ > 3 files changed, 69 insertions(+) > create mode 100644 arch/arm64/boot/dts/freescale/imx93-tqma9352-mba93xxca-lvds-tm070jvhg33.dtso > > diff --git a/arch/arm64/boot/dts/freescale/Makefile b/arch/arm64/boot/dts/freescale/Makefile > index ac4f14c69cdd8..48991e9a9c076 100644 > --- a/arch/arm64/boot/dts/freescale/Makefile > +++ b/arch/arm64/boot/dts/freescale/Makefile > @@ -300,7 +300,9 @@ dtb-$(CONFIG_ARCH_MXC) += imx93-tqma9352-mba93xxla.dtb > dtb-$(CONFIG_ARCH_MXC) += imx93-var-som-symphony.dtb > dtb-$(CONFIG_ARCH_MXC) += imx95-19x19-evk.dtb > > +imx93-tqma9352-mba93xxca-lvds-tm070jvhg33-dtbs += imx93-tqma9352-mba93xxca.dtb imx93-tqma9352-mba93xxca-lvds-tm070jvhg33.dtbo > imx93-tqma9352-mba93xxla-lvds-tm070jvhg33-dtbs += imx93-tqma9352-mba93xxla.dtb imx93-tqma9352-mba93xxla-lvds-tm070jvhg33.dtbo > +dtb-$(CONFIG_ARCH_MXC) += imx93-tqma9352-mba93xxca-lvds-tm070jvhg33.dtb > dtb-$(CONFIG_ARCH_MXC) += imx93-tqma9352-mba93xxla-lvds-tm070jvhg33.dtb > > imx8mm-kontron-dl-dtbs := imx8mm-kontron-bl.dtb imx8mm-kontron-dl.dtbo > diff --git a/arch/arm64/boot/dts/freescale/imx93-tqma9352-mba93xxca-lvds-tm070jvhg33.dtso b/arch/arm64/boot/dts/freescale/imx93-tqma9352-mba93xxca-lvds-tm070jvhg33.dtso > new file mode 100644 > index 0000000000000..d21e5ccca2e93 > --- /dev/null > +++ b/arch/arm64/boot/dts/freescale/imx93-tqma9352-mba93xxca-lvds-tm070jvhg33.dtso > @@ -0,0 +1,40 @@ > +// SPDX-License-Identifier: (GPL-2.0-or-later OR MIT) > +/* > + * Copyright (c) 2025 TQ-Systems GmbH <linux@ew.tq-group.com>, > + * D-82229 Seefeld, Germany. > + * Author: Alexander Stein > + */ > + > +#include <dt-bindings/clock/imx93-clock.h> > +#include <dt-bindings/gpio/gpio.h> > + > +/dts-v1/; > +/plugin/; > + > +&backlight_lvds { > + status = "okay"; > +}; > + > +&display { > + compatible = "tianma,tm070jvhg33"; > + status = "okay"; > +}; > + > +&lcdif { > + assigned-clocks = <&clk IMX93_CLK_VIDEO_PLL>, > + <&clk IMX93_CLK_MEDIA_DISP_PIX>; > + assigned-clock-rates = <477400000>; > + status = "okay"; > +}; > + > +&lvds_bridge { > + status = "okay"; > +}; > + > +&media_blk_ctrl { > + status = "okay"; > +}; > + > +&tpm5 { > + status = "okay"; > +}; > diff --git a/arch/arm64/boot/dts/freescale/imx93-tqma9352-mba93xxca.dts b/arch/arm64/boot/dts/freescale/imx93-tqma9352-mba93xxca.dts > index ebbac5f8d2b2d..e70c3995e89da 100644 > --- a/arch/arm64/boot/dts/freescale/imx93-tqma9352-mba93xxca.dts > +++ b/arch/arm64/boot/dts/freescale/imx93-tqma9352-mba93xxca.dts > @@ -42,6 +42,23 @@ backlight_lvds: backlight { > status = "disabled"; > }; > > + display: display { > + /* > + * Display is not fixed, so compatible has to be added from > + * DT overlay > + */ > + power-supply = <®_3v3>; > + enable-gpios = <&expander2 1 GPIO_ACTIVE_HIGH>; > + backlight = <&backlight_lvds>; > + status = "disabled"; > + > + port { > + panel_in_lvds0: endpoint { > + remote-endpoint = <&ldb_lvds>; > + }; > + }; > + }; > + > fan0: pwm-fan { > compatible = "pwm-fan"; > pinctrl-names = "default"; > @@ -546,6 +563,16 @@ &lpuart8 { > status = "okay"; > }; > > +&lvds_bridge { > + ports { > + port@1 { > + ldb_lvds: endpoint { > + remote-endpoint = <&panel_in_lvds0>; > + }; > + }; > + }; > +}; > + > &pcf85063 { > /* RTC_EVENT# from SoM is connected on mainboard */ > pinctrl-names = "default"; > -- > 2.43.0 >
diff --git a/arch/arm64/boot/dts/freescale/Makefile b/arch/arm64/boot/dts/freescale/Makefile index ac4f14c69cdd8..48991e9a9c076 100644 --- a/arch/arm64/boot/dts/freescale/Makefile +++ b/arch/arm64/boot/dts/freescale/Makefile @@ -300,7 +300,9 @@ dtb-$(CONFIG_ARCH_MXC) += imx93-tqma9352-mba93xxla.dtb dtb-$(CONFIG_ARCH_MXC) += imx93-var-som-symphony.dtb dtb-$(CONFIG_ARCH_MXC) += imx95-19x19-evk.dtb +imx93-tqma9352-mba93xxca-lvds-tm070jvhg33-dtbs += imx93-tqma9352-mba93xxca.dtb imx93-tqma9352-mba93xxca-lvds-tm070jvhg33.dtbo imx93-tqma9352-mba93xxla-lvds-tm070jvhg33-dtbs += imx93-tqma9352-mba93xxla.dtb imx93-tqma9352-mba93xxla-lvds-tm070jvhg33.dtbo +dtb-$(CONFIG_ARCH_MXC) += imx93-tqma9352-mba93xxca-lvds-tm070jvhg33.dtb dtb-$(CONFIG_ARCH_MXC) += imx93-tqma9352-mba93xxla-lvds-tm070jvhg33.dtb imx8mm-kontron-dl-dtbs := imx8mm-kontron-bl.dtb imx8mm-kontron-dl.dtbo diff --git a/arch/arm64/boot/dts/freescale/imx93-tqma9352-mba93xxca-lvds-tm070jvhg33.dtso b/arch/arm64/boot/dts/freescale/imx93-tqma9352-mba93xxca-lvds-tm070jvhg33.dtso new file mode 100644 index 0000000000000..d21e5ccca2e93 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx93-tqma9352-mba93xxca-lvds-tm070jvhg33.dtso @@ -0,0 +1,40 @@ +// SPDX-License-Identifier: (GPL-2.0-or-later OR MIT) +/* + * Copyright (c) 2025 TQ-Systems GmbH <linux@ew.tq-group.com>, + * D-82229 Seefeld, Germany. + * Author: Alexander Stein + */ + +#include <dt-bindings/clock/imx93-clock.h> +#include <dt-bindings/gpio/gpio.h> + +/dts-v1/; +/plugin/; + +&backlight_lvds { + status = "okay"; +}; + +&display { + compatible = "tianma,tm070jvhg33"; + status = "okay"; +}; + +&lcdif { + assigned-clocks = <&clk IMX93_CLK_VIDEO_PLL>, + <&clk IMX93_CLK_MEDIA_DISP_PIX>; + assigned-clock-rates = <477400000>; + status = "okay"; +}; + +&lvds_bridge { + status = "okay"; +}; + +&media_blk_ctrl { + status = "okay"; +}; + +&tpm5 { + status = "okay"; +}; diff --git a/arch/arm64/boot/dts/freescale/imx93-tqma9352-mba93xxca.dts b/arch/arm64/boot/dts/freescale/imx93-tqma9352-mba93xxca.dts index ebbac5f8d2b2d..e70c3995e89da 100644 --- a/arch/arm64/boot/dts/freescale/imx93-tqma9352-mba93xxca.dts +++ b/arch/arm64/boot/dts/freescale/imx93-tqma9352-mba93xxca.dts @@ -42,6 +42,23 @@ backlight_lvds: backlight { status = "disabled"; }; + display: display { + /* + * Display is not fixed, so compatible has to be added from + * DT overlay + */ + power-supply = <®_3v3>; + enable-gpios = <&expander2 1 GPIO_ACTIVE_HIGH>; + backlight = <&backlight_lvds>; + status = "disabled"; + + port { + panel_in_lvds0: endpoint { + remote-endpoint = <&ldb_lvds>; + }; + }; + }; + fan0: pwm-fan { compatible = "pwm-fan"; pinctrl-names = "default"; @@ -546,6 +563,16 @@ &lpuart8 { status = "okay"; }; +&lvds_bridge { + ports { + port@1 { + ldb_lvds: endpoint { + remote-endpoint = <&panel_in_lvds0>; + }; + }; + }; +}; + &pcf85063 { /* RTC_EVENT# from SoM is connected on mainboard */ pinctrl-names = "default";
This adds the overlay for the Tianma TM070JVHG33 LVDS display. Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com> --- arch/arm64/boot/dts/freescale/Makefile | 2 + ...3-tqma9352-mba93xxca-lvds-tm070jvhg33.dtso | 40 +++++++++++++++++++ .../freescale/imx93-tqma9352-mba93xxca.dts | 27 +++++++++++++ 3 files changed, 69 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx93-tqma9352-mba93xxca-lvds-tm070jvhg33.dtso