From patchwork Wed Jul 26 06:45:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "J, KEERTHY" X-Patchwork-Id: 9864305 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 47CF760382 for ; Wed, 26 Jul 2017 06:46:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2F3F327F86 for ; Wed, 26 Jul 2017 06:46:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 23ABF28725; Wed, 26 Jul 2017 06:46:14 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A77EA27F86 for ; Wed, 26 Jul 2017 06:46:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=IZBaOHOqEbixTQGMdIwvhVyc/wxUeP3ci5f+lK7MUhI=; b=esGR/5aduS0dwE E9jrYYNhcWyrjVi7HyPCBsCqtSE2e9CjT/Gqm79SILPIAaTDTRzjQ5kv2JD90zCOU4fMOfF/1ROMd QPVD7dBRyWnMCYEZDeG4u0vXoxMZbgDwK1bgUMzHg65E7ulWrNrA1tcwya7TYFFH/Hbpf0zTJ9E+r 18iK/pGmHlNbsez9R1H6EM/NTXXlU7Mwf7LCiaeYk59qohmo9THRQPxSNsU43ZoOrRxPTExCTpM8V QnGlTXN1+GAuR1MITfJDNulbWjt01zY4Ngh46YCU+a2w5P/GVKvMd+/kW394ToPnjBAuJnsTpIudi mNJ90Bsu3Gmv+MRiUTCA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1daG51-00031K-HP; Wed, 26 Jul 2017 06:45:59 +0000 Received: from fllnx210.ext.ti.com ([198.47.19.17]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1daG4y-00030J-Lg for linux-arm-kernel@lists.infradead.org; Wed, 26 Jul 2017 06:45:58 +0000 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllnx210.ext.ti.com (8.15.1/8.15.1) with ESMTP id v6Q6jYrk000485; Wed, 26 Jul 2017 01:45:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1501051534; bh=3Xubz7c3MAZ2ZoYsHiRp85mpUhX3Ewa85veGrHdSp2M=; h=From:To:CC:Subject:Date; b=aLWGQwr8ju0MuvHRU4ON9s+vAIdwumUKpyhykqHlwQzXV2WSVMK+Cw+E4f70zn321 Q/0ZjCAPhWL7uiqKztO/fVsyFCsLlRvZgbxRNArRQK3NfL7/AYrN+2PByrldqQn0ZL oGfCKC/RrSWKJQ7F4WBLoiiBc8SeeTxSu89GfjMw= Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id v6Q6jYhT006983; Wed, 26 Jul 2017 01:45:34 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.3.294.0; Wed, 26 Jul 2017 01:45:33 -0500 Received: from ula0393675.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id v6Q6jUS7022259; Wed, 26 Jul 2017 01:45:30 -0500 From: Keerthy To: , Subject: [PATCH v3 1/2] gpio: davinci: Add keystone-k2g compatible Date: Wed, 26 Jul 2017 12:15:23 +0530 Message-ID: <1501051524-5990-1-git-send-email-j-keerthy@ti.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170725_234556_821567_A927A44E X-CRM114-Status: UNSURE ( 8.76 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, j-keerthy@ti.com, linus.walleij@linaro.org, nsekhar@ti.com, t-kristo@ti.com, linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, fcooper@ti.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The patch adds keystone-k2g compatible, specific properties and an example. Signed-off-by: Keerthy Acked-by: Rob Herring --- Changes in v3: * Added details about family of SoCs corresponding to compatibles. .../devicetree/bindings/gpio/gpio-davinci.txt | 40 +++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/gpio/gpio-davinci.txt b/Documentation/devicetree/bindings/gpio/gpio-davinci.txt index 5079ba7..fb9efee 100644 --- a/Documentation/devicetree/bindings/gpio/gpio-davinci.txt +++ b/Documentation/devicetree/bindings/gpio/gpio-davinci.txt @@ -1,7 +1,10 @@ Davinci/Keystone GPIO controller bindings Required Properties: -- compatible: should be "ti,dm6441-gpio", "ti,keystone-gpio" +- compatible: should be "ti,dm6441-gpio": for Davinci da850 SoCs + "ti,keystone-gpio": for Keystone 2 66AK2H/K, 66AK2L, + 66AK2E SoCs + "ti,keystone-k2g-gpio", "ti,keystone-gpio": for 66AK2G - reg: Physical base address of the controller and the size of memory mapped registers. @@ -26,6 +29,17 @@ The GPIO controller also acts as an interrupt controller. It uses the default two cells specifier as described in Documentation/devicetree/bindings/ interrupt-controller/interrupts.txt. +Required Properties specific to keystone-k2g + +- clocks: Should contain devices input clock. The first parameter + is a handle to k2g_clks. The second parameter is the + device ID and the third parameter is the clock ID. One can + refer: http://processors.wiki.ti.com/index.php/TISCI#66AK2G02_Data + + Example: <&k2g_clks 0x001c 0x0>; + +- clock-names: The driver expects the clock name to be "gpio"; + Example: gpio: gpio@1e26000 { @@ -60,3 +74,27 @@ leds { ... }; }; + +Example for keystone-k2g: + +gpio0: gpio@2603000 { + compatible = "ti,keystone-k2g-gpio", "ti,keystone-gpio"; + reg = <0x02603000 0x100>; + gpio-controller; + #gpio-cells = <2>; + interrupts = , + , + , + , + , + , + , + , + ; + interrupt-controller; + #interrupt-cells = <2>; + ti,ngpio = <144>; + ti,davinci-gpio-unbanked = <0>; + clocks = <&k2g_clks 0x001b 0x0>; + clock-names = "gpio"; +};