Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp577316ybk; Fri, 15 May 2020 08:11:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXH+GK2nzWMqMUZzqICZpE0j/IprfueNFQhZB6s+xg8gs2RxhDKkD4EShunydhADPu1UtN X-Received: by 2002:a17:906:1502:: with SMTP id b2mr3277264ejd.359.1589555516480; Fri, 15 May 2020 08:11:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589555516; cv=none; d=google.com; s=arc-20160816; b=Mj95XFSvADBSf6aN+7qPvq4ZTieLMj4WtjSiGiSkLU07cqSiwclitH5rsl8oRT5pzL 0nYI6Ydpxw0cgC6ZuCndpBMlhTsnQJAgxqpGQXvg4rwagpYyHzasgrFg3ZxXDkNHTxqU oQC0lj1hGQgpPPhIFqOLf7eUOKtliwuMw0HKl4l065ABAJUrgETOYGkfAa5U9EX76YC8 n8hK0Kg5mK2ghwZcGmCmCG0Zx73pCe0QRg7usVpW/jbrzrF9efuHrrNZ/Blc2Q8FjzFG sMn7VgRx+ZPkU3NNwZbHigAEvUNfwP3A6BKpUtOc28OULDJwGBl0UMMGerEqZ7Gylx4W O75Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=vHlNb4tv2Iu4k8tqGibXVdDC85ZxwszgEzhOn33c9EE=; b=0KiGCWON/KXyOqnoSwKqiCrFSzTKqx1EgiDnbxPZX3r/P1xnA8hbc+AO7FAoEHcNWw JMURPFi4IJ7hKMfihOQdhbOZNIAWEW0+19Wyw3KTfYC3Ev5iJ2if26mz+BQEgYay+LNg KmZ/tI84PiW81uur209w4BS+fH+XDItXIll0Ln0nehvVNM3CBP+P0Ta53WXQnm1Kkgv/ gUWTVPbgqn/WeYaRdu4DeTawLpr1eCQjSy3IqUGvVDWsTNSyyCf6THhIGXUG0FoNueiG kd4lCfab650I/I/zQmoSc0xD7L9EnKe5d+fkSI3yVHAED7mXsOzOiWw9T3Wtrye/9MyB VA/Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l23si1571080edj.333.2020.05.15.08.11.32; Fri, 15 May 2020 08:11:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727910AbgEOPJt (ORCPT + 99 others); Fri, 15 May 2020 11:09:49 -0400 Received: from relmlor2.renesas.com ([210.160.252.172]:2033 "EHLO relmlie6.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727873AbgEOPJq (ORCPT ); Fri, 15 May 2020 11:09:46 -0400 X-IronPort-AV: E=Sophos;i="5.73,395,1583161200"; d="scan'208";a="46974816" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie6.idc.renesas.com with ESMTP; 16 May 2020 00:09:44 +0900 Received: from localhost.localdomain (unknown [10.226.36.204]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id DC75140065C1; Sat, 16 May 2020 00:09:40 +0900 (JST) From: Lad Prabhakar To: Geert Uytterhoeven , Jens Axboe , Rob Herring , Wolfram Sang , Ulf Hansson , Sergei Shtylyov , "David S. Miller" , Wim Van Sebroeck , Guenter Roeck 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 , Lad Prabhakar 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> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1589555337-5498-1-git-send-email-prabhakar.mahadev-lad.rj@bp.renesas.com> References: <1589555337-5498-1-git-send-email-prabhakar.mahadev-lad.rj@bp.renesas.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Reviewed-by: Marian-Cristian Rotariu --- 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 = ; + 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 = ; + 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 = ; + 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 = ; + 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 = ; + 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 = ; + 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 = ; + 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 = ; + 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