Linux-Renesas-SoC Archive on lore.kernel.org
 help / color / Atom feed
From: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
To: Geert Uytterhoeven <geert+renesas@glider.be>,
	Jens Axboe <axboe@kernel.dk>, Rob Herring <robh+dt@kernel.org>,
	Wolfram Sang <wsa+renesas@sang-engineering.com>,
	Ulf Hansson <ulf.hansson@linaro.org>,
	Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>,
	"David S. Miller" <davem@davemloft.net>,
	Wim Van Sebroeck <wim@linux-watchdog.org>,
	Guenter Roeck <linux@roeck-us.net>
Cc: linux-ide@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org,
	linux-mmc@vger.kernel.org, netdev@vger.kernel.org,
	linux-renesas-soc@vger.kernel.org,
	linux-watchdog@vger.kernel.org,
	Prabhakar <prabhakar.csengg@gmail.com>,
	Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Subject: [PATCH 03/17] ARM: dts: r8a7742: Add I2C and IIC support
Date: Fri, 15 May 2020 16:08:43 +0100
Message-ID: <1589555337-5498-4-git-send-email-prabhakar.mahadev-lad.rj@bp.renesas.com> (raw)
In-Reply-To: <1589555337-5498-1-git-send-email-prabhakar.mahadev-lad.rj@bp.renesas.com>

Add the I2C[0-3] and IIC[0-3] devices nodes to the R8A7742 device tree.

Automatic transmission for PMIC control is not available on IIC3 hence
compatible string "renesas,rcar-gen2-iic" and "renesas,rmobile-iic" is
not added to iic3 node.

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Marian-Cristian Rotariu <marian-cristian.rotariu.rb@bp.renesas.com>
---
 arch/arm/boot/dts/r8a7742.dtsi | 122 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 122 insertions(+)

diff --git a/arch/arm/boot/dts/r8a7742.dtsi b/arch/arm/boot/dts/r8a7742.dtsi
index 305d808..f28c32d 100644
--- a/arch/arm/boot/dts/r8a7742.dtsi
+++ b/arch/arm/boot/dts/r8a7742.dtsi
@@ -359,6 +359,128 @@
 			ranges = <0 0 0xe6300000 0x40000>;
 		};
 
+		i2c0: i2c@e6508000 {
+			#address-cells = <1>;
+			#size-cells = <0>;
+			compatible = "renesas,i2c-r8a7742",
+				     "renesas,rcar-gen2-i2c";
+			reg = <0 0xe6508000 0 0x40>;
+			interrupts = <GIC_SPI 287 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD 931>;
+			power-domains = <&sysc R8A7742_PD_ALWAYS_ON>;
+			resets = <&cpg 931>;
+			i2c-scl-internal-delay-ns = <110>;
+			status = "disabled";
+		};
+
+		i2c1: i2c@e6518000 {
+			#address-cells = <1>;
+			#size-cells = <0>;
+			compatible = "renesas,i2c-r8a7742",
+				     "renesas,rcar-gen2-i2c";
+			reg = <0 0xe6518000 0 0x40>;
+			interrupts = <GIC_SPI 288 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD 930>;
+			power-domains = <&sysc R8A7742_PD_ALWAYS_ON>;
+			resets = <&cpg 930>;
+			i2c-scl-internal-delay-ns = <6>;
+			status = "disabled";
+		};
+
+		i2c2: i2c@e6530000 {
+			#address-cells = <1>;
+			#size-cells = <0>;
+			compatible = "renesas,i2c-r8a7742",
+				     "renesas,rcar-gen2-i2c";
+			reg = <0 0xe6530000 0 0x40>;
+			interrupts = <GIC_SPI 286 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD 929>;
+			power-domains = <&sysc R8A7742_PD_ALWAYS_ON>;
+			resets = <&cpg 929>;
+			i2c-scl-internal-delay-ns = <6>;
+			status = "disabled";
+		};
+
+		i2c3: i2c@e6540000 {
+			#address-cells = <1>;
+			#size-cells = <0>;
+			compatible = "renesas,i2c-r8a7742",
+				     "renesas,rcar-gen2-i2c";
+			reg = <0 0xe6540000 0 0x40>;
+			interrupts = <GIC_SPI 290 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD 928>;
+			power-domains = <&sysc R8A7742_PD_ALWAYS_ON>;
+			resets = <&cpg 928>;
+			i2c-scl-internal-delay-ns = <110>;
+			status = "disabled";
+		};
+
+		iic0: i2c@e6500000 {
+			#address-cells = <1>;
+			#size-cells = <0>;
+			compatible = "renesas,iic-r8a7742",
+				     "renesas,rcar-gen2-iic",
+				     "renesas,rmobile-iic";
+			reg = <0 0xe6500000 0 0x425>;
+			interrupts = <GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD 318>;
+			dmas = <&dmac0 0x61>, <&dmac0 0x62>,
+			       <&dmac1 0x61>, <&dmac1 0x62>;
+			dma-names = "tx", "rx", "tx", "rx";
+			power-domains = <&sysc R8A7742_PD_ALWAYS_ON>;
+			resets = <&cpg 318>;
+			status = "disabled";
+		};
+
+		iic1: i2c@e6510000 {
+			#address-cells = <1>;
+			#size-cells = <0>;
+			compatible = "renesas,iic-r8a7742",
+				     "renesas,rcar-gen2-iic",
+				     "renesas,rmobile-iic";
+			reg = <0 0xe6510000 0 0x425>;
+			interrupts = <GIC_SPI 175 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD 323>;
+			dmas = <&dmac0 0x65>, <&dmac0 0x66>,
+			       <&dmac1 0x65>, <&dmac1 0x66>;
+			dma-names = "tx", "rx", "tx", "rx";
+			power-domains = <&sysc R8A7742_PD_ALWAYS_ON>;
+			resets = <&cpg 323>;
+			status = "disabled";
+		};
+
+		iic2: i2c@e6520000 {
+			#address-cells = <1>;
+			#size-cells = <0>;
+			compatible = "renesas,iic-r8a7742",
+				     "renesas,rcar-gen2-iic",
+				     "renesas,rmobile-iic";
+			reg = <0 0xe6520000 0 0x425>;
+			interrupts = <GIC_SPI 176 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD 300>;
+			dmas = <&dmac0 0x69>, <&dmac0 0x6a>,
+			       <&dmac1 0x69>, <&dmac1 0x6a>;
+			dma-names = "tx", "rx", "tx", "rx";
+			power-domains = <&sysc R8A7742_PD_ALWAYS_ON>;
+			resets = <&cpg 300>;
+			status = "disabled";
+		};
+
+		iic3: i2c@e60b0000 {
+			#address-cells = <1>;
+			#size-cells = <0>;
+			compatible = "renesas,iic-r8a7742";
+			reg = <0 0xe60b0000 0 0x425>;
+			interrupts = <GIC_SPI 173 IRQ_TYPE_LEVEL_HIGH>;
+			clocks = <&cpg CPG_MOD 926>;
+			dmas = <&dmac0 0x77>, <&dmac0 0x78>,
+			       <&dmac1 0x77>, <&dmac1 0x78>;
+			dma-names = "tx", "rx", "tx", "rx";
+			power-domains = <&sysc R8A7742_PD_ALWAYS_ON>;
+			resets = <&cpg 926>;
+			status = "disabled";
+		};
+
 		dmac0: dma-controller@e6700000 {
 			compatible = "renesas,dmac-r8a7742",
 				     "renesas,rcar-dmac";
-- 
2.7.4


  parent reply index

Thread overview: 77+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-15 15:08 [PATCH 00/17] RZ/G1H describe I2C, IIC, MMC0, SATA, AVB, RWDT and APMU nodes Lad Prabhakar
2020-05-15 15:08 ` [PATCH 01/17] dt-bindings: i2c: renesas,i2c: Document r8a7742 support Lad Prabhakar
2020-05-15 17:12   ` Wolfram Sang
2020-05-18  9:56   ` Geert Uytterhoeven
2020-05-28 20:03   ` Rob Herring
2020-05-15 15:08 ` [PATCH 02/17] dt-bindings: i2c: renesas,iic: " Lad Prabhakar
2020-05-15 17:14   ` Wolfram Sang
2020-05-18  9:59   ` Geert Uytterhoeven
2020-05-28 20:03   ` Rob Herring
2020-05-15 15:08 ` Lad Prabhakar [this message]
2020-05-15 17:10   ` [PATCH 03/17] ARM: dts: r8a7742: Add I2C and IIC support Wolfram Sang
2020-05-18  8:58     ` Lad, Prabhakar
2020-05-18  9:26       ` Wolfram Sang
2020-05-18  9:43         ` Lad, Prabhakar
2020-05-18  9:53           ` Wolfram Sang
2020-05-18 10:10         ` Geert Uytterhoeven
2020-05-22 19:14           ` Lad, Prabhakar
2020-05-22 20:17             ` Wolfram Sang
2020-05-25  8:23               ` Geert Uytterhoeven
2020-05-15 15:08 ` [PATCH 04/17] dt-bindings: mmc: renesas,sdhi: Document r8a7742 support Lad Prabhakar
2020-05-15 17:17   ` Wolfram Sang
2020-05-18 11:10   ` Geert Uytterhoeven
2020-05-19 15:29   ` Ulf Hansson
2020-05-15 15:08 ` [PATCH 05/17] mmc: renesas_sdhi_sys_dmac: Add support for r8a7742 SoC Lad Prabhakar
2020-05-15 17:17   ` Wolfram Sang
2020-05-18 11:24     ` Geert Uytterhoeven
2020-05-15 15:08 ` [PATCH 06/17] ARM: dts: r8a7742: Add SDHI nodes Lad Prabhakar
2020-05-17 20:53   ` Wolfram Sang
2020-05-18 11:51   ` Geert Uytterhoeven
2020-05-15 15:08 ` [PATCH 07/17] ARM: dts: r8a7742: Add MMC0 node Lad Prabhakar
2020-05-17 20:54   ` Wolfram Sang
2020-05-18 11:52   ` Geert Uytterhoeven
2020-05-15 15:08 ` [PATCH 08/17] dt-bindings: ata: renesas,rcar-sata: Add r8a7742 support Lad Prabhakar
2020-05-17 20:55   ` Wolfram Sang
2020-05-18 11:13   ` Geert Uytterhoeven
2020-05-28 20:04   ` Rob Herring
2020-05-15 15:08 ` [PATCH 09/17] ARM: dts: r8a7742: Add sata nodes Lad Prabhakar
2020-05-17 20:57   ` Wolfram Sang
2020-05-18 11:52   ` Geert Uytterhoeven
2020-05-15 15:08 ` [PATCH 10/17] dt-bindings: net: renesas,ravb: Add support for r8a7742 SoC Lad Prabhakar
2020-05-17 20:58   ` Wolfram Sang
2020-05-18 11:14   ` Geert Uytterhoeven
2020-05-28 20:04   ` Rob Herring
2020-05-15 15:08 ` [PATCH 11/17] dt-bindings: net: renesas,ether: Document R8A7742 SoC Lad Prabhakar
2020-05-17 20:59   ` Wolfram Sang
2020-05-18 11:15   ` Geert Uytterhoeven
2020-05-28 20:04   ` Rob Herring
2020-05-15 15:08 ` [PATCH 12/17] ARM: dts: r8a7742: Add Ethernet AVB support Lad Prabhakar
2020-05-17 21:00   ` Wolfram Sang
2020-05-18 11:53   ` Geert Uytterhoeven
2020-05-15 15:08 ` [PATCH 13/17] ARM: dts: r8a7742: Add Ether support Lad Prabhakar
2020-05-17 21:01   ` Wolfram Sang
2020-05-18 11:53   ` Geert Uytterhoeven
2020-05-15 15:08 ` [PATCH 14/17] dt-bindings: power: renesas,apmu: Document r8a7742 support Lad Prabhakar
2020-05-17 21:01   ` Wolfram Sang
2020-05-18 11:16   ` Geert Uytterhoeven
2020-05-28 20:05   ` Rob Herring
2020-05-15 15:08 ` [PATCH 15/17] ARM: dts: r8a7742: Add APMU nodes Lad Prabhakar
2020-05-17 21:03   ` Wolfram Sang
2020-05-18 11:41   ` Geert Uytterhoeven
2020-05-15 15:08 ` [PATCH 16/17] dt-bindings: watchdog: renesas,wdt: Document r8a7742 support Lad Prabhakar
2020-05-17 21:03   ` Wolfram Sang
2020-05-18 11:17   ` Geert Uytterhoeven
2020-05-22 14:47   ` Guenter Roeck
2020-05-27  1:31   ` Rob Herring
2020-05-27 11:22     ` Lad, Prabhakar
2020-05-27 14:38       ` Rob Herring
2020-05-27 16:33         ` Prabhakar Mahadev Lad
2020-05-15 15:08 ` [PATCH 17/17] ARM: dts: r8a7742: Add RWDT node Lad Prabhakar
2020-05-17 21:08   ` Wolfram Sang
2020-05-18  9:16     ` Lad, Prabhakar
2020-05-18  9:28       ` Wolfram Sang
2020-05-18 11:47   ` Geert Uytterhoeven
2020-05-18 12:27     ` Lad, Prabhakar
2020-05-18 13:17       ` Sergei Shtylyov
2020-05-18 13:23         ` Lad, Prabhakar
2020-05-18 15:45           ` Geert Uytterhoeven

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=1589555337-5498-4-git-send-email-prabhakar.mahadev-lad.rj@bp.renesas.com \
    --to=prabhakar.mahadev-lad.rj@bp.renesas.com \
    --cc=axboe@kernel.dk \
    --cc=davem@davemloft.net \
    --cc=devicetree@vger.kernel.org \
    --cc=geert+renesas@glider.be \
    --cc=linux-i2c@vger.kernel.org \
    --cc=linux-ide@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=linux-watchdog@vger.kernel.org \
    --cc=linux@roeck-us.net \
    --cc=netdev@vger.kernel.org \
    --cc=prabhakar.csengg@gmail.com \
    --cc=robh+dt@kernel.org \
    --cc=sergei.shtylyov@cogentembedded.com \
    --cc=ulf.hansson@linaro.org \
    --cc=wim@linux-watchdog.org \
    --cc=wsa+renesas@sang-engineering.com \
    /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

Linux-Renesas-SoC Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-renesas-soc/0 linux-renesas-soc/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-renesas-soc linux-renesas-soc/ https://lore.kernel.org/linux-renesas-soc \
		linux-renesas-soc@vger.kernel.org
	public-inbox-index linux-renesas-soc

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-renesas-soc


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git