From patchwork Wed Jul 26 05:50:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "J, KEERTHY" X-Patchwork-Id: 9864217 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 842B56038F for ; Wed, 26 Jul 2017 05:51:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7A47F28720 for ; Wed, 26 Jul 2017 05:51:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6F15D28725; Wed, 26 Jul 2017 05:51:12 +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 CA22E28720 for ; Wed, 26 Jul 2017 05:51:11 +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=K4Jwr3cbN+LbZKDBN5glphpUEQARHjwO9MNS0uNK7oI=; b=n9P0Doq1pqH/V4 ot4nBE0B7t1nnXhbPnhuSEWxGjFUw3gckUY5AfqnDzwTVBsIu7kO+ozKoG6+DfxGZ3+7Yu0hFaUhZ 3YGV/BnsyKjvDdzp0GC77BruekKy1GquMnDTn7dBTEvWaRrFyvY3+/wVmYTjEra1mbgtSlOflqNJf FrCZYveNGJS3XZ/mqjYqSiK7hBi59HiB/2UkKMPljjcGKKDbTgXkkFAue9nfz+oEwURITvKcaUTEQ hhxdvHbcdHT+qDiayb4tHNebdwyYf8ROI4SBNGwuGBg2WUsMqa+okzgb4Al4WmAbSZddD6BXz/MN4 r6w7JO8hLFVq6A4fDZJQ==; 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 1daFDw-0002US-DA; Wed, 26 Jul 2017 05:51:08 +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 1daFDr-0002SM-Pc for linux-arm-kernel@lists.infradead.org; Wed, 26 Jul 2017 05:51:05 +0000 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by fllnx210.ext.ti.com (8.15.1/8.15.1) with ESMTP id v6Q5odG5025897; Wed, 26 Jul 2017 00:50:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1501048239; bh=oABwutMWml1elVMvb5Mlzto8KI3BDCxCkbRyF9dfBYA=; h=From:To:CC:Subject:Date; b=WS9W7Ry3xBXB3OX6Pmjk+qlH0P3LiK7o1M/ZXUYfpTONhqSmitjFR4GKkhThovjP9 4Dgy+0q10/OTAcNdOiJqHwF/3Cb5hRbVQEOBacXX6Bu6cOQm2Auszo52EOIXABOxJj XvAYncM9f6YIa3SMaR86MdFIDU3UvkZ2D1C01jGo= Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id v6Q5occn024689; Wed, 26 Jul 2017 00:50:38 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.3.294.0; Wed, 26 Jul 2017 00:50:38 -0500 Received: from ula0393675.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id v6Q5oYV5020323; Wed, 26 Jul 2017 00:50:35 -0500 From: Keerthy To: , Subject: [PATCH v2 1/2] gpio: davinci: Add keystone-k2g compatible Date: Wed, 26 Jul 2017 11:20:27 +0530 Message-ID: <1501048228-3492-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_225103_996288_6EAB57D9 X-CRM114-Status: UNSURE ( 8.62 ) 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 --- .../devicetree/bindings/gpio/gpio-davinci.txt | 39 +++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/gpio/gpio-davinci.txt b/Documentation/devicetree/bindings/gpio/gpio-davinci.txt index 5079ba7..9f4f612 100644 --- a/Documentation/devicetree/bindings/gpio/gpio-davinci.txt +++ b/Documentation/devicetree/bindings/gpio/gpio-davinci.txt @@ -1,7 +1,9 @@ Davinci/Keystone GPIO controller bindings Required Properties: -- compatible: should be "ti,dm6441-gpio", "ti,keystone-gpio" +- compatible: should be "ti,dm6441-gpio", + "ti,keystone-gpio", + "ti,keystone-k2g-gpio" - reg: Physical base address of the controller and the size of memory mapped registers. @@ -26,6 +28,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 +73,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"; +};