public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Max Krummenacher <max.krummenacher@toradex.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/6] arm: dts: imx8qm: add support for i2c0, i2c1, i2c2, i2c3 and i2c4
Date: Wed, 01 May 2019 16:18:22 +0200	[thread overview]
Message-ID: <1556720302.1765.37.camel@toradex.com> (raw)
In-Reply-To: <20190430100629.9212-3-marcel@ziswiler.com>

Reviewed-by: Max Krummenacher <max.krummenacher@toradex.com>

On Tue, 2019-04-30 at 12:06 +0200, Marcel Ziswiler wrote:
> From: Marcel Ziswiler <marcel.ziswiler@toradex.com>
> 
> Add support for i2c0, i2c1, i2c2, i2c3 and i2c4.
> 
> Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
> 
> ---
> 
>  arch/arm/dts/fsl-imx8qm.dtsi | 75 ++++++++++++++++++++++++++++++++++++
>  1 file changed, 75 insertions(+)
> 
> diff --git a/arch/arm/dts/fsl-imx8qm.dtsi b/arch/arm/dts/fsl-imx8qm.dtsi
> index db01959990..af060db3a1 100644
> --- a/arch/arm/dts/fsl-imx8qm.dtsi
> +++ b/arch/arm/dts/fsl-imx8qm.dtsi
> @@ -29,6 +29,11 @@
>  		mmc0 = &usdhc1;
>  		mmc1 = &usdhc2;
>  		mmc2 = &usdhc3;
> +		i2c0 = &i2c0;
> +		i2c1 = &i2c1;
> +		i2c2 = &i2c2;
> +		i2c3 = &i2c3;
> +		i2c4 = &i2c4;
>  	};
>  
>  	memory at 80000000 {
> @@ -224,6 +229,76 @@
>  		};
>  	};
>  
> +	i2c0: i2c at 5a800000 {
> +		compatible = "fsl,imx8qm-lpi2c", "fsl,imx7ulp-lpi2c";
> +		reg = <0x0 0x5a800000 0x0 0x4000>;
> +		interrupts = <GIC_SPI 220 IRQ_TYPE_LEVEL_HIGH>;
> +		interrupt-parent = <&gic>;
> +		clocks = <&clk IMX8QM_I2C0_CLK>,
> +			 <&clk IMX8QM_I2C0_IPG_CLK>;
> +		clock-names = "per", "ipg";
> +		assigned-clocks = <&clk IMX8QM_I2C0_CLK>;
> +		assigned-clock-rates = <24000000>;
> +		power-domains = <&pd_dma_lpi2c0>;
> +		status = "disabled";
> +	};
> +
> +	i2c1: i2c at 5a810000 {
> +		compatible = "fsl,imx8qm-lpi2c", "fsl,imx7ulp-lpi2c";
> +		reg = <0x0 0x5a810000 0x0 0x4000>;
> +		interrupts = <GIC_SPI 221 IRQ_TYPE_LEVEL_HIGH>;
> +		interrupt-parent = <&gic>;
> +		clocks = <&clk IMX8QM_I2C1_CLK>,
> +			 <&clk IMX8QM_I2C1_IPG_CLK>;
> +		clock-names = "per", "ipg";
> +		assigned-clocks = <&clk IMX8QM_I2C1_CLK>;
> +		assigned-clock-rates = <24000000>;
> +		power-domains = <&pd_dma_lpi2c1>;
> +		status = "disabled";
> +	};
> +
> +	i2c2: i2c at 5a820000 {
> +		compatible = "fsl,imx8qm-lpi2c", "fsl,imx7ulp-lpi2c";
> +		reg = <0x0 0x5a820000 0x0 0x4000>;
> +		interrupts = <GIC_SPI 222 IRQ_TYPE_LEVEL_HIGH>;
> +		interrupt-parent = <&gic>;
> +		clocks = <&clk IMX8QM_I2C2_CLK>,
> +			 <&clk IMX8QM_I2C2_IPG_CLK>;
> +		clock-names = "per", "ipg";
> +		assigned-clocks = <&clk IMX8QM_I2C2_CLK>;
> +		assigned-clock-rates = <24000000>;
> +		power-domains = <&pd_dma_lpi2c2>;
> +		status = "disabled";
> +	};
> +
> +	i2c3: i2c at 5a830000 {
> +		compatible = "fsl,imx8qm-lpi2c", "fsl,imx7ulp-lpi2c";
> +		reg = <0x0 0x5a830000 0x0 0x4000>;
> +		interrupts = <GIC_SPI 223 IRQ_TYPE_LEVEL_HIGH>;
> +		interrupt-parent = <&gic>;
> +		clocks = <&clk IMX8QM_I2C3_CLK>,
> +			 <&clk IMX8QM_I2C3_IPG_CLK>;
> +		clock-names = "per", "ipg";
> +		assigned-clocks = <&clk IMX8QM_I2C3_CLK>;
> +		assigned-clock-rates = <24000000>;
> +		power-domains = <&pd_dma_lpi2c3>;
> +		status = "disabled";
> +	};
> +
> +	i2c4: i2c at 5a840000 {
> +		compatible = "fsl,imx8qm-lpi2c", "fsl,imx7ulp-lpi2c";
> +		reg = <0x0 0x5a840000 0x0 0x4000>;
> +		interrupts = <GIC_SPI 224 IRQ_TYPE_LEVEL_HIGH>;
> +		interrupt-parent = <&gic>;
> +		clocks = <&clk IMX8QM_I2C4_CLK>,
> +			 <&clk IMX8QM_I2C4_IPG_CLK>;
> +		clock-names = "per", "ipg";
> +		assigned-clocks = <&clk IMX8QM_I2C4_CLK>;
> +		assigned-clock-rates = <24000000>;
> +		power-domains = <&pd_dma_lpi2c4>;
> +		status = "disabled";
> +	};
> +
>  	gpio0: gpio at 5d080000 {
>  		compatible = "fsl,imx8qm-gpio", "fsl,imx35-gpio";
>  		reg = <0x0 0x5d080000 0x0 0x10000>;

  reply	other threads:[~2019-05-01 14:18 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-30 10:06 [U-Boot] [PATCH 0/6] apalis imx8qm 4gb wb it v1.0b module support Marcel Ziswiler
2019-04-30 10:06 ` [U-Boot] [PATCH 1/6] arm: dts: imx8qm: add lpuart1, lpuart2, lpuart3, lpuart4 Marcel Ziswiler
2019-05-01 14:18   ` Max Krummenacher
2019-04-30 10:06 ` [U-Boot] [PATCH 2/6] arm: dts: imx8qm: add support for i2c0, i2c1, i2c2, i2c3 and i2c4 Marcel Ziswiler
2019-05-01 14:18   ` Max Krummenacher [this message]
2019-04-30 10:06 ` [U-Boot] [PATCH 3/6] clk: imx8qm: fix usdhc2 clocks Marcel Ziswiler
2019-05-01 14:18   ` Max Krummenacher
2019-04-30 10:06 ` [U-Boot] [PATCH 4/6] imx8qm: fix cpu frequency reporting Marcel Ziswiler
2019-05-01 14:18   ` Max Krummenacher
2019-04-30 10:06 ` [U-Boot] [PATCH 5/6] imx8: fuse: fix fuse driver Marcel Ziswiler
2019-05-01 14:18   ` Max Krummenacher
2019-04-30 10:06 ` [U-Boot] [PATCH 6/6] board: toradex: add apalis imx8qm 4gb wb it v1.0b module support Marcel Ziswiler
2019-05-01 14:19   ` Max Krummenacher

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=1556720302.1765.37.camel@toradex.com \
    --to=max.krummenacher@toradex.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox