From patchwork Tue Jan 23 12:17:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Grzeschik X-Patchwork-Id: 864752 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=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-rtc-owner@vger.kernel.org; receiver=) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3zQnQ43rNFz9t3n for ; Tue, 23 Jan 2018 23:18:20 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751295AbeAWMST (ORCPT ); Tue, 23 Jan 2018 07:18:19 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:35127 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751489AbeAWMSR (ORCPT ); Tue, 23 Jan 2018 07:18:17 -0500 Received: from dude.hi.pengutronix.de ([2001:67c:670:100:1d::7]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1edxWk-0004In-Ty; Tue, 23 Jan 2018 13:18:10 +0100 Received: from mgr by dude.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1edxWi-00052F-Pq; Tue, 23 Jan 2018 13:18:08 +0100 From: Michael Grzeschik To: a.zummo@towertech.it, alexandre.belloni@free-electrons.com Cc: linux-rtc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux@roeck-us.net, jdelvare@suse.com, kernel@pengutronix.de, Denis.Osterland@diehl.com Subject: [PATCH 2/4] rtc: isl1208: Add device tree binding documentation Date: Tue, 23 Jan 2018 13:17:59 +0100 Message-Id: <20180123121801.4214-3-m.grzeschik@pengutronix.de> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180123121801.4214-1-m.grzeschik@pengutronix.de> References: <20180123121801.4214-1-m.grzeschik@pengutronix.de> X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::7 X-SA-Exim-Mail-From: mgr@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-rtc@vger.kernel.org Sender: linux-rtc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rtc@vger.kernel.org From: Denis Osterland Wrote documentation for ISL1208, ISL1218 device tree binding with short examples. Signed-off-by: Denis Osterland Signed-off-by: Michael Grzeschik Reviewed-by: Rob Herring --- .../devicetree/bindings/rtc/intersil,isl1208.txt | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Documentation/devicetree/bindings/rtc/intersil,isl1208.txt diff --git a/Documentation/devicetree/bindings/rtc/intersil,isl1208.txt b/Documentation/devicetree/bindings/rtc/intersil,isl1208.txt new file mode 100644 index 0000000000000..a54e99feae1ca --- /dev/null +++ b/Documentation/devicetree/bindings/rtc/intersil,isl1208.txt @@ -0,0 +1,35 @@ +Intersil ISL1208, ISL1218 I2C RTC/Alarm chip + +ISL1208 is a trivial I2C device (it has simple device tree bindings, +consisting of a compatible field, an address and possibly an interrupt +line). + +Required properties supported by the device: + + - "compatible": must be one of + "isil,isl1208" + "isil,isl1218" + - "reg": I2C bus address of the device + +Optional properties: + + - "interrupt-parent", "interrupts", "interrupts-extended": + for passing the interrupt line of the SoC connected to #IRQ pin + of the RTC chip. + + +Example isl1208 node without #IRQ pin connected: + + isl1208: isl1208@68 { + compatible = "isil,isl1208"; + reg = <0x68>; + }; + +Example isl1208 node with #IRQ pin connected to SoC gpio1 pin 12: + + isl1208: isl1208@68 { + compatible = "isil,isl1208"; + reg = <0x68>; + interrupt-parent = <&gpio1>; + interrupts = <12 IRQ_TYPE_EDGE_FALLING>; + };