From patchwork Tue Apr 30 10:06:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcel Ziswiler X-Patchwork-Id: 1093124 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ziswiler.com Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 44tcdM6MzPz9sB3 for ; Tue, 30 Apr 2019 20:07:03 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 89677C21C51; Tue, 30 Apr 2019 10:06:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 32A7BC21C27; Tue, 30 Apr 2019 10:06:56 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 9F5E1C21C27; Tue, 30 Apr 2019 10:06:54 +0000 (UTC) Received: from mout.perfora.net (mout.perfora.net [74.208.4.197]) by lists.denx.de (Postfix) with ESMTPS id DB68BC21BE5 for ; Tue, 30 Apr 2019 10:06:53 +0000 (UTC) Received: from marcel-nb-toradex-int.toradex.int ([46.140.72.82]) by mrelay.perfora.net (mreueus002 [74.208.5.2]) with ESMTPSA (Nemesis) id 0MV45z-1hGGKX3NLZ-00YTMV; Tue, 30 Apr 2019 12:06:45 +0200 From: Marcel Ziswiler To: u-boot@lists.denx.de Date: Tue, 30 Apr 2019 12:06:25 +0200 Message-Id: <20190430100629.9212-3-marcel@ziswiler.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190430100629.9212-1-marcel@ziswiler.com> References: <20190430100629.9212-1-marcel@ziswiler.com> MIME-Version: 1.0 X-Provags-ID: V03:K1:Q9rpyAwbIqRlfscldbJ1tnF6yF2+SHSt70Rg5FpiE32CdqZj7C3 w2eotqeH0j5modRsyZJ/erj4lJz2mQLeeHp3OoYYGQCxJKbxMVIvFdZwL7fKPNQupOkfEGb aIWwVbzlVEvhVddrOiT3aONo5QwHXCBeGzM3VRQT0tatIqtMHuCU9+93GeCPTfxwAIlp9Iv MCI2pVU1MtHOVFoKpvtUg== X-UI-Out-Filterresults: notjunk:1; V03:K0:CZLXm0oXyLw=:bszoH1UjhOTqjC9rgCZ1tV lJ725NFk2+P/MZlsqSiMzxumScUYwv9Kcv3r5z9Oh9lWOOCZ/HWT4juURAwUJ0yOt3z7zOois y+yDHcltUFG/ZcvXgRMEwOCmAA+RLsiksLpefr+Bstiyn1mSOIuezuprAvwAUQhkJgZ9doILJ 15C87LlvjKlpLUDB0keIktZbUTv1rD/mVES7BHhLaSELXJckwPJQHYNVU/BXkQexlkQrr9VOp igihF570036cEAiOwq9xRnFNyZxvzpV8bnvEjJkfvELHzU/5TBsIMVVnjgFW7JPnADq9vs/PY /z0FN2XYWh894xstZ/4arCKKCwHxFtu2GZdnD1fC31PDgIELTk4/x+ZjFXDqBSGxp7H9KBHkB 200jQYlhmbDqkpZDf2GD99jdh/7ejiqReYBd+YRjEahFkRiO8pJRQvC7yVOpprRqDxflla16c X36beX8uSeedd2/eI7SDZUAWUCA7ND141JbBxMyql7+PQxTyVXAyX5/bofN2YpzZx+ynDoOwY 6CWXE+V2As0B6AGOYg+mKTz6MbXQiQcRnOW1eGrh9qjOr5vveBNEe1CzghPy64N+3BMBx5OMg mlrRi/06kSXJgbL6xUCWqVreicTNLWRWmmlf5WZ97+7G/0qF7FPJtmDquk1BVQs/MVXh+k3S3 i85tTZ/ApWKSRd4h6fD3wI5OI5pwv22tII+wOwTj59U76FrU6JEYNZC5pVphm4pDA//goGHaI Rn1yc4SY6a/86hNFoyYeBhTyoKeGuNH3cFFbJw== Cc: Tom Rini , Marcel Ziswiler , Fabio Estevam Subject: [U-Boot] [PATCH 2/6] arm: dts: imx8qm: add support for i2c0, i2c1, i2c2, i2c3 and i2c4 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Marcel Ziswiler Add support for i2c0, i2c1, i2c2, i2c3 and i2c4. Signed-off-by: Marcel Ziswiler Reviewed-by: Max Krummenacher --- 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@80000000 { @@ -224,6 +229,76 @@ }; }; + i2c0: i2c@5a800000 { + compatible = "fsl,imx8qm-lpi2c", "fsl,imx7ulp-lpi2c"; + reg = <0x0 0x5a800000 0x0 0x4000>; + interrupts = ; + 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@5a810000 { + compatible = "fsl,imx8qm-lpi2c", "fsl,imx7ulp-lpi2c"; + reg = <0x0 0x5a810000 0x0 0x4000>; + interrupts = ; + 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@5a820000 { + compatible = "fsl,imx8qm-lpi2c", "fsl,imx7ulp-lpi2c"; + reg = <0x0 0x5a820000 0x0 0x4000>; + interrupts = ; + 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@5a830000 { + compatible = "fsl,imx8qm-lpi2c", "fsl,imx7ulp-lpi2c"; + reg = <0x0 0x5a830000 0x0 0x4000>; + interrupts = ; + 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@5a840000 { + compatible = "fsl,imx8qm-lpi2c", "fsl,imx7ulp-lpi2c"; + reg = <0x0 0x5a840000 0x0 0x4000>; + interrupts = ; + 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@5d080000 { compatible = "fsl,imx8qm-gpio", "fsl,imx35-gpio"; reg = <0x0 0x5d080000 0x0 0x10000>;