From patchwork Wed Oct 26 14:14:07 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulrich Hecht X-Patchwork-Id: 9397369 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A340760231 for ; Wed, 26 Oct 2016 14:14:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7B66729BCD for ; Wed, 26 Oct 2016 14:14:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6FB8129BD8; Wed, 26 Oct 2016 14:14:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 668FD29BDB for ; Wed, 26 Oct 2016 14:14:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750938AbcJZOO1 (ORCPT ); Wed, 26 Oct 2016 10:14:27 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:40556 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932115AbcJZOO0 (ORCPT ); Wed, 26 Oct 2016 10:14:26 -0400 Received: by mail-wm0-f67.google.com with SMTP id b80so3675785wme.7 for ; Wed, 26 Oct 2016 07:14:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=csX5IzzMH/X1aO2HrKP9v/ZXbxvOxCpT9RT35ttXTxs=; b=OFHrIdx6j4hAJoKSoGJIZeo7RW8XumGS6BJHi1pKtOGBsEE7SNioAs6yOP5/l9tFhn wF/0hAuXj1zn8Ot7DYYB9t7VgCwC2eLiKQomTSgLi/Dz76kRCG4aQFBrjOovQcdWCmgg hEpbqbrI1cSBc4SPidKuMnC5//m3okPVxXzWU+dLPPtYLnZiMnpbYpObVt/oh2w3Pt1t 3eRgICzKMBMWTK3QwII2WLPTbDNaIHJ65ZF0IdXkgslUpThUgPg5T9O3WGY55M5jUaqO FVb9K0NsFn9f9K1WcKznW18+f//MIzkIWzthxPE7jssuAb9Mhjh4nyXNRfd40v24PaQ/ tRdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=csX5IzzMH/X1aO2HrKP9v/ZXbxvOxCpT9RT35ttXTxs=; b=Y0/M6Ze6lM4TOGljMUyWsIL5Dt3d5mHFSg7oysqN9TsUFbjRXBJ5u63N/7hyiz8i9B HLivdyLz90IFNEhbjmWUarRO4mWkTKdur0e9CD/RIj2gmY/sj3KVp7RNoCnNNO3Zn843 lPXacJ1GLHhLhDc843RwuhwOpxcs+SNj8qZw2OQ2KT+scQS07wYUZl3rgB9ThlGqbpWc lEn50pfcKZcA9XCg3UU7s2rmTAWb/2nC2gP91woWt23JG6Hxh5053iSqWr0jwsV+lzGp gjuAPnkSz7bbT7ETfdHthPVqdRNtKt9YhH/b/O3mHsEAFnp09LP3FDSPn1fcjMUFy5PV Nc1w== X-Gm-Message-State: ABUngvdvJ7H+S26xCs/MujJl3sWVLDVo32BLhdwzclE2btKQhNCUmw0EAucs35DYBVT5ow== X-Received: by 10.28.131.212 with SMTP id f203mr8328014wmd.113.1477491264614; Wed, 26 Oct 2016 07:14:24 -0700 (PDT) Received: from groucho.site (ipb21bf290.dynamic.kabel-deutschland.de. [178.27.242.144]) by smtp.gmail.com with ESMTPSA id jx8sm2913248wjc.2.2016.10.26.07.14.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 26 Oct 2016 07:14:23 -0700 (PDT) From: Ulrich Hecht To: linux-renesas-soc@vger.kernel.org, horms@verge.net.au Cc: geert@linux-m68k.org, magnus.damm@gmail.com, wsa@the-dreams.de, Ulrich Hecht Subject: [PATCH v2 3/5] arm64: renesas: r8a7796: add I2C support Date: Wed, 26 Oct 2016 16:14:07 +0200 Message-Id: <1477491249-2976-4-git-send-email-ulrich.hecht+renesas@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1477491249-2976-1-git-send-email-ulrich.hecht+renesas@gmail.com> References: <1477491249-2976-1-git-send-email-ulrich.hecht+renesas@gmail.com> Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Ulrich Hecht Reviewed-by: Geert Uytterhoeven Reviewed-by: Wolfram Sang --- arch/arm64/boot/dts/renesas/r8a7796.dtsi | 94 ++++++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a7796.dtsi b/arch/arm64/boot/dts/renesas/r8a7796.dtsi index 18973a3..3e6661bb 100644 --- a/arch/arm64/boot/dts/renesas/r8a7796.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a7796.dtsi @@ -17,6 +17,16 @@ #address-cells = <2>; #size-cells = <2>; + aliases { + i2c0 = &i2c0; + i2c1 = &i2c1; + i2c2 = &i2c2; + i2c3 = &i2c3; + i2c4 = &i2c4; + i2c5 = &i2c5; + i2c6 = &i2c6; + }; + psci { compatible = "arm,psci-0.2"; method = "smc"; @@ -239,6 +249,90 @@ #power-domain-cells = <1>; }; + i2c0: i2c@e6500000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "renesas,i2c-r8a7796"; + reg = <0 0xe6500000 0 0x40>; + interrupts = ; + clocks = <&cpg CPG_MOD 931>; + power-domains = <&sysc R8A7796_PD_ALWAYS_ON>; + i2c-scl-internal-delay-ns = <110>; + status = "disabled"; + }; + + i2c1: i2c@e6508000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "renesas,i2c-r8a7796"; + reg = <0 0xe6508000 0 0x40>; + interrupts = ; + clocks = <&cpg CPG_MOD 930>; + power-domains = <&sysc R8A7796_PD_ALWAYS_ON>; + i2c-scl-internal-delay-ns = <6>; + status = "disabled"; + }; + + i2c2: i2c@e6510000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "renesas,i2c-r8a7796"; + reg = <0 0xe6510000 0 0x40>; + interrupts = ; + clocks = <&cpg CPG_MOD 929>; + power-domains = <&sysc R8A7796_PD_ALWAYS_ON>; + i2c-scl-internal-delay-ns = <6>; + status = "disabled"; + }; + + i2c3: i2c@e66d0000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "renesas,i2c-r8a7796"; + reg = <0 0xe66d0000 0 0x40>; + interrupts = ; + clocks = <&cpg CPG_MOD 928>; + power-domains = <&sysc R8A7796_PD_ALWAYS_ON>; + i2c-scl-internal-delay-ns = <110>; + status = "disabled"; + }; + + i2c4: i2c@e66d8000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "renesas,i2c-r8a7796"; + reg = <0 0xe66d8000 0 0x40>; + interrupts = ; + clocks = <&cpg CPG_MOD 927>; + power-domains = <&sysc R8A7796_PD_ALWAYS_ON>; + i2c-scl-internal-delay-ns = <110>; + status = "disabled"; + }; + + i2c5: i2c@e66e0000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "renesas,i2c-r8a7796"; + reg = <0 0xe66e0000 0 0x40>; + interrupts = ; + clocks = <&cpg CPG_MOD 919>; + power-domains = <&sysc R8A7796_PD_ALWAYS_ON>; + i2c-scl-internal-delay-ns = <110>; + status = "disabled"; + }; + + i2c6: i2c@e66e8000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "renesas,i2c-r8a7796"; + reg = <0 0xe66e8000 0 0x40>; + interrupts = ; + clocks = <&cpg CPG_MOD 918>; + power-domains = <&sysc R8A7796_PD_ALWAYS_ON>; + i2c-scl-internal-delay-ns = <6>; + status = "disabled"; + }; + scif2: serial@e6e88000 { compatible = "renesas,scif-r8a7796", "renesas,rcar-gen3-scif", "renesas,scif";