From patchwork Fri Aug 4 05:47:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "J, KEERTHY" X-Patchwork-Id: 9880613 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 0AFEE6031B for ; Fri, 4 Aug 2017 06:06:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F28F52898E for ; Fri, 4 Aug 2017 06:06:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E6A81289AA; Fri, 4 Aug 2017 06:06:35 +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 8421C2898E for ; Fri, 4 Aug 2017 06:06:35 +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:References:In-Reply-To: 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: List-Owner; bh=l5etPFPMbXw85c+fsFpClPRZ3Vbl8BGjXRt+d9/mRAQ=; b=aj4cLHsjjKsIEz N2vGdBKePPwt3a66LV5dQ0qKDX+6Ioh2GFJ5WrGoMD6DUL4kcD8GF0MQiGtKBUaaSUwem+rPOmvuG I/lfGgSVXyelbaegNREJdYSCHXqI8AhmY885bSWsjuF/mvreKFD50NoQkxwK/0f2jdZDE8+MK8bq7 4sGMgZtP/fwcvnDgtVAuwhYQrYzZLZjoCGSNSlCpeQHK2kdqR2L+s6OdLmrJGUh/YQrHjB+nd95R0 TTEziM0HksvmUoejCioVS9wQoHm6GvHXf9cTDd2vHlOnjbp8vntl9M/KL2nFguN+HKI9TrCajnPmc yFJy985GAPNjmep04WZw==; 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 1ddVkk-00026Q-Vz; Fri, 04 Aug 2017 06:06:31 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ddVkj-0001p6-TL for linux-arm-kernel@bombadil.infradead.org; Fri, 04 Aug 2017 06:06:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:CC:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=JeQvTsXPNpQPYj66cKJ6q8CCwokJCjdZvXalMguxJog=; b=SGp4PkLjnOxH1oWuZWIpGUQYK skGkBrWyAWtG6jP4LAnVWPoLKC55RYBA2tZvQk8f/tuchPrBgAp9AnhH2h+I7UpHaixdhErt1OCpe wkZBs1/egJjIJCSgAy5d2il3kPb74ot/wXES1k6o6LZbKCRSeizeRAtyaYtw3mvBUHQghqWoIx0F+ KpIoaZ+u9m40lBPOYHQIA9dWH/16QuUSP733B6IiEIVB+6+vTlTeF6n4lLaDwOCGCxLBee31Tk4JN XqgZLfxd1MmoleQLRHUPSi/CKPVzu2hS26nSuP83+hQdy/2D5T0GBuGdrT44aF1etirY0oD5RneC1 rr07JMD0w==; Received: from lelnx193.ext.ti.com ([198.47.27.77]) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1ddVTD-00056y-3d for linux-arm-kernel@lists.infradead.org; Fri, 04 Aug 2017 05:48:25 +0000 Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelnx193.ext.ti.com (8.15.1/8.15.1) with ESMTP id v745lubF025640; Fri, 4 Aug 2017 00:47:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1501825676; bh=CGcCBUlQ1F229FpcglT8ge9OmbbR+xZSm3mOPFOPKnQ=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=W8j6j5Ppb+w3lNxXV2j2vdYGWayDrr00kyWfjOfqZXFX9+plzmrdi+tAQc0T1lU+q +enw0GcTXqIW0CkcCEKochVQFGI9c5uYqAyw7VvN8u/eJvSi1fuZsTHM22bXOQdWKz HEdevjOUrio0XUcN1MGWAHupDd7Ftih49xeIQLBY= Received: from DLEE70.ent.ti.com (dlemailx.itg.ti.com [157.170.170.113]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id v745luwb031563; Fri, 4 Aug 2017 00:47:56 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.294.0; Fri, 4 Aug 2017 00:47:56 -0500 Received: from ula0393675.india.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id v745lpIr001517; Fri, 4 Aug 2017 00:47:54 -0500 From: Keerthy To: , , Subject: [PATCH v4 2/2] ARM: dts: keystone-k2g: Add gpio nodes Date: Fri, 4 Aug 2017 11:17:34 +0530 Message-ID: <1501825654-19266-2-git-send-email-j-keerthy@ti.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1501825654-19266-1-git-send-email-j-keerthy@ti.com> References: <1501825654-19266-1-git-send-email-j-keerthy@ti.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170804_064823_367813_2AD1F34A X-CRM114-Status: GOOD ( 10.16 ) 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: linux-gpio@vger.kernel.org, j-keerthy@ti.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org 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 66AK2G has 2 instances of gpio. The first one has all the 144 GPIOs functional. 9 banks with 16 gpios making a total of 144. The second instance has only the GPIO0:GPIO67 functional and rest are marked reserved. Signed-off-by: Keerthy Acked-by: Linus Walleij --- Changes in v4: * Couple of rephrasing in the commit log. * Changed compatible to ti,k2g-gpio. Changes in v2: * Split the documentation part into a separate patch. arch/arm/boot/dts/keystone-k2g.dtsi | 42 +++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/arch/arm/boot/dts/keystone-k2g.dtsi b/arch/arm/boot/dts/keystone-k2g.dtsi index bf4d1fa..4eb1ba8 100644 --- a/arch/arm/boot/dts/keystone-k2g.dtsi +++ b/arch/arm/boot/dts/keystone-k2g.dtsi @@ -15,6 +15,7 @@ #include #include +#include / { compatible = "ti,k2g","ti,keystone"; @@ -168,5 +169,46 @@ #reset-cells = <2>; }; }; + + gpio0: gpio@2603000 { + compatible = "ti,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"; + }; + + gpio1: gpio@260a000 { + compatible = "ti,k2g-gpio", "ti,keystone-gpio"; + reg = <0x0260a000 0x100>; + gpio-controller; + #gpio-cells = <2>; + interrupts = , + , + , + , + ; + interrupt-controller; + #interrupt-cells = <2>; + ti,ngpio = <68>; + ti,davinci-gpio-unbanked = <0>; + clocks = <&k2g_clks 0x001c 0x0>; + clock-names = "gpio"; + }; }; };