From patchwork Wed Aug 16 09:16:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Paterson X-Patchwork-Id: 9903327 X-Patchwork-Delegate: horms@verge.net.au 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 73FB9600CA for ; Wed, 16 Aug 2017 09:16:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 69A7F289A0 for ; Wed, 16 Aug 2017 09:16:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5E6F4289A3; Wed, 16 Aug 2017 09:16:46 +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.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI 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 C4607289A0 for ; Wed, 16 Aug 2017 09:16:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751370AbdHPJQp (ORCPT ); Wed, 16 Aug 2017 05:16:45 -0400 Received: from relmlor2.renesas.com ([210.160.252.172]:36067 "EHLO relmlie1.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751068AbdHPJQo (ORCPT ); Wed, 16 Aug 2017 05:16:44 -0400 Received: from unknown (HELO relmlir4.idc.renesas.com) ([10.200.68.154]) by relmlie1.idc.renesas.com with ESMTP; 16 Aug 2017 18:16:43 +0900 Received: from relmlii1.idc.renesas.com (relmlii1.idc.renesas.com [10.200.68.65]) by relmlir4.idc.renesas.com (Postfix) with ESMTP id 5C63843C98; Wed, 16 Aug 2017 18:16:43 +0900 (JST) X-IronPort-AV: E=Sophos;i="5.41,381,1498489200"; d="scan'208";a="253644273" Received: from unknown (HELO renesas-VirtualBox.ree.adwin.renesas.com) ([10.226.36.102]) by relmlii1.idc.renesas.com with ESMTP; 16 Aug 2017 18:16:40 +0900 From: Chris Paterson To: Rob Herring , Mark Rutland , Simon Horman Cc: Magnus Damm , Russell King , Biju Das , devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Chris Paterson Subject: [PATCH v2] ARM: dts: iwg20d-q7: Add RTC support Date: Wed, 16 Aug 2017 10:16:30 +0100 Message-Id: <1502874990-12006-1-git-send-email-chris.paterson2@renesas.com> X-Mailer: git-send-email 1.9.1 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 From: Biju Das Define the iWave RainboW-G20D-Qseven board dependent part of the RTC device node. Signed-off-by: Biju Das [chris: corrected bq32000 compatible string] Signed-off-by: Chris Paterson --- v1 -> v2 Added ti to bq32000 compatible string - Thanks Geert arch/arm/boot/dts/r8a7743-iwg20d-q7.dts | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/arch/arm/boot/dts/r8a7743-iwg20d-q7.dts b/arch/arm/boot/dts/r8a7743-iwg20d-q7.dts index 081af01..2c81ea7 100644 --- a/arch/arm/boot/dts/r8a7743-iwg20d-q7.dts +++ b/arch/arm/boot/dts/r8a7743-iwg20d-q7.dts @@ -31,6 +31,11 @@ groups = "avb_mdio", "avb_gmii"; function = "avb"; }; + + i2c2_pins: i2c2 { + groups = "i2c2"; + function = "i2c2"; + }; }; &scif0 { @@ -54,3 +59,16 @@ micrel,led-mode = <1>; }; }; + +&i2c2 { + pinctrl-0 = <&i2c2_pins>; + pinctrl-names = "default"; + + status = "okay"; + clock-frequency = <400000>; + + rtc@68 { + compatible = "ti,bq32000"; + reg = <0x68>; + }; +};