From: Frank Li <Frank.li@nxp.com>
To: Shawn Guo <shawnguo2@yeah.net>
Cc: Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Shawn Guo <shawnguo@kernel.org>,
Sascha Hauer <s.hauer@pengutronix.de>,
Pengutronix Kernel Team <kernel@pengutronix.de>,
Fabio Estevam <festevam@gmail.com>,
Dong Aisheng <aisheng.dong@nxp.com>,
devicetree@vger.kernel.org, imx@lists.linux.dev,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v4 2/8] arm64: dts: imx8qm: add lvds subsystem
Date: Tue, 2 Jul 2024 00:22:37 -0400 [thread overview]
Message-ID: <ZoOAjSUp29DBhY+/@lizhi-Precision-Tower-5810> (raw)
In-Reply-To: <ZoN90rHfpK7niqEr@dragon>
On Tue, Jul 02, 2024 at 12:10:58PM +0800, Shawn Guo wrote:
> On Mon, Jul 01, 2024 at 11:03:28AM -0400, Frank Li wrote:
> > Add irqsteer, pwm and i2c in lvds subsystem.
> >
> > Signed-off-by: Frank Li <Frank.Li@nxp.com>
> > ---
> > arch/arm64/boot/dts/freescale/imx8qm-ss-lvds.dtsi | 77 +++++++++++++++++++++++
> > arch/arm64/boot/dts/freescale/imx8qm.dtsi | 10 +++
> > 2 files changed, 87 insertions(+)
> >
> > diff --git a/arch/arm64/boot/dts/freescale/imx8qm-ss-lvds.dtsi b/arch/arm64/boot/dts/freescale/imx8qm-ss-lvds.dtsi
> > new file mode 100644
> > index 0000000000000..1da3934847057
> > --- /dev/null
> > +++ b/arch/arm64/boot/dts/freescale/imx8qm-ss-lvds.dtsi
> > @@ -0,0 +1,77 @@
> > +// SPDX-License-Identifier: GPL-2.0+
> > +
> > +/*
> > + * Copyright 2024 NXP
> > + */
> > +
> > +&qm_lvds0_lis_lpcg {
> > + clocks = <&lvds_ipg_clk>;
> > + clock-indices = <IMX_LPCG_CLK_4>;
> > +};
> > +
> > +&qm_lvds0_pwm_lpcg {
> > + clocks = <&clk IMX_SC_R_LVDS_0_PWM_0 IMX_SC_PM_CLK_PER>,
> > + <&lvds_ipg_clk>;
> > + clock-indices = <IMX_LPCG_CLK_0>, <IMX_LPCG_CLK_4>;
> > +};
> > +
> > +&qm_lvds0_i2c0_lpcg {
> > + clocks = <&clk IMX_SC_R_LVDS_0_I2C_0 IMX_SC_PM_CLK_PER>,
> > + <&lvds_ipg_clk>;
> > + clock-indices = <IMX_LPCG_CLK_0>, <IMX_LPCG_CLK_4>;
> > +};
> > +
> > +&qm_pwm_lvds0 {
> > + clocks = <&qm_lvds0_pwm_lpcg IMX_LPCG_CLK_4>,
> > + <&qm_lvds0_pwm_lpcg IMX_LPCG_CLK_0>;
> > +};
> > +
> > +&qm_i2c0_lvds0 {
> > + clocks = <&qm_lvds0_i2c0_lpcg IMX_LPCG_CLK_0>,
> > + <&qm_lvds0_i2c0_lpcg IMX_LPCG_CLK_4>;
> > +};
> > +
> > +&lvds0_subsys {
> > + interrupt-parent = <&irqsteer_lvds0>;
> > +
> > + irqsteer_lvds0: interrupt-controller@56240000 {
> > + compatible = "fsl,imx8qm-irqsteer", "fsl,imx-irqsteer";
>
> Is compatible "fsl,imx8qm-irqsteer" documented in bindings?
In rob' tree
https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git/commit/?h=dt/next&id=285c645d842c5a15d3be2d653faaa5f68d81be1f
Frank
>
> Shawn
>
> > + reg = <0x56240000 0x1000>;
> > + interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>;
> > + interrupt-controller;
> > + interrupt-parent = <&gic>;
> > + #interrupt-cells = <1>;
> > + clocks = <&qm_lvds0_lis_lpcg IMX_LPCG_CLK_4>;
> > + clock-names = "ipg";
> > + power-domains = <&pd IMX_SC_R_LVDS_0>;
> > +
> > + fsl,channel = <0>;
> > + fsl,num-irqs = <32>;
> > + };
> > +
> > + lvds0_i2c1_lpcg: clock-controller@56243014 {
> > + compatible = "fsl,imx8qxp-lpcg";
> > + reg = <0x56243014 0x4>;
> > + #clock-cells = <1>;
> > + clocks = <&clk IMX_SC_R_LVDS_0_I2C_0 IMX_SC_PM_CLK_PER>,
> > + <&lvds_ipg_clk>;
> > + clock-indices = <IMX_LPCG_CLK_0>, <IMX_LPCG_CLK_4>;
> > + clock-output-names = "lvds0_i2c1_lpcg_clk",
> > + "lvds0_i2c1_lpcg_ipg_clk";
> > + power-domains = <&pd IMX_SC_R_LVDS_0_I2C_0>;
> > + };
> > +
> > + i2c1_lvds0: i2c@56247000 {
> > + compatible = "fsl,imx8qm-lpi2c", "fsl,imx7ulp-lpi2c";
> > + reg = <0x56247000 0x1000>;
> > + interrupts = <9>;
> > + clocks = <&lvds0_i2c1_lpcg IMX_LPCG_CLK_0>,
> > + <&lvds0_i2c1_lpcg IMX_LPCG_CLK_4>;
> > + clock-names = "per", "ipg";
> > + assigned-clocks = <&clk IMX_SC_R_LVDS_0_I2C_0 IMX_SC_PM_CLK_PER>;
> > + assigned-clock-rates = <24000000>;
> > + power-domains = <&pd IMX_SC_R_LVDS_0_I2C_0>;
> > + status = "disabled";
> > + };
> > +};
> > +
> > diff --git a/arch/arm64/boot/dts/freescale/imx8qm.dtsi b/arch/arm64/boot/dts/freescale/imx8qm.dtsi
> > index 61986e0639e53..1e8511e8d8577 100644
> > --- a/arch/arm64/boot/dts/freescale/imx8qm.dtsi
> > +++ b/arch/arm64/boot/dts/freescale/imx8qm.dtsi
> > @@ -560,11 +560,20 @@ clk_spdif1_rx: clock-spdif1-rx {
> > clock-output-names = "spdif1_rx";
> > };
> >
> > + lvds_ipg_clk: clock-controller-lvds-ipg {
> > + compatible = "fixed-clock";
> > + #clock-cells = <0>;
> > + clock-frequency = <24000000>;
> > + clock-output-names = "lvds0_ipg_clk";
> > + };
> > +
> > /* sorted in register address */
> > #include "imx8-ss-cm41.dtsi"
> > #include "imx8-ss-audio.dtsi"
> > #include "imx8-ss-vpu.dtsi"
> > #include "imx8-ss-gpu0.dtsi"
> > + #include "imx8-ss-lvds0.dtsi"
> > + #include "imx8-ss-lvds1.dtsi"
> > #include "imx8-ss-img.dtsi"
> > #include "imx8-ss-dma.dtsi"
> > #include "imx8-ss-conn.dtsi"
> > @@ -576,3 +585,4 @@ clk_spdif1_rx: clock-spdif1-rx {
> > #include "imx8qm-ss-conn.dtsi"
> > #include "imx8qm-ss-lsio.dtsi"
> > #include "imx8qm-ss-audio.dtsi"
> > +#include "imx8qm-ss-lvds.dtsi"
> >
> > --
> > 2.34.1
> >
>
next prev parent reply other threads:[~2024-07-02 4:23 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-01 15:03 [PATCH v4 0/8] arm64: dts: imx8qm: add subsystem lvds and mipi Frank Li
2024-07-01 15:03 ` [PATCH v4 1/8] arm64: dts: imx8: add basic lvds0 and lvds1 subsystem Frank Li
2024-07-01 15:03 ` [PATCH v4 2/8] arm64: dts: imx8qm: add lvds subsystem Frank Li
2024-07-02 4:10 ` Shawn Guo
2024-07-02 4:22 ` Frank Li [this message]
2024-07-02 6:18 ` Shawn Guo
2024-07-02 10:56 ` Fabio Estevam
2024-09-02 0:44 ` Shawn Guo
2024-07-01 15:03 ` [PATCH v4 3/8] arm64: dts: imx8: add basic mipi subsystem Frank Li
2024-07-01 15:03 ` [PATCH v4 4/8] arm64: dts: imx8qm: add " Frank Li
2024-07-01 15:03 ` [PATCH v4 5/8] arm64: dts: imx8qm-mek: add cm4 remote-proc and related memory region Frank Li
2024-07-01 15:03 ` [PATCH v4 6/8] arm64: dts: imx8qm-mek: add pwm and i2c in lvds subsystem Frank Li
2024-07-01 15:03 ` [PATCH v4 7/8] arm64: dts: imx8qm-mek: add i2c in mipi[0,1] subsystem Frank Li
2024-07-01 15:03 ` [PATCH v4 8/8] arm64: dts: imx8qm-mek: add usb 3.0 and related type C nodes Frank Li
2024-09-01 17:13 ` Frank Li
2024-09-02 0:42 ` [PATCH v4 0/8] arm64: dts: imx8qm: add subsystem lvds and mipi Shawn Guo
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=ZoOAjSUp29DBhY+/@lizhi-Precision-Tower-5810 \
--to=frank.li@nxp.com \
--cc=aisheng.dong@nxp.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=festevam@gmail.com \
--cc=imx@lists.linux.dev \
--cc=kernel@pengutronix.de \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh@kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=shawnguo2@yeah.net \
--cc=shawnguo@kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox