From patchwork Wed Jul 26 06:45:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "J, KEERTHY" X-Patchwork-Id: 9864311 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 65FC960382 for ; Wed, 26 Jul 2017 06:53:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 574582859F for ; Wed, 26 Jul 2017 06:53:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4BB822866C; Wed, 26 Jul 2017 06:53:03 +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 AB0DC2859F for ; Wed, 26 Jul 2017 06:52:59 +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=JQIV4004pdNpprVjwvGRKPD6H1T9yeuNJEDjiyWjTYU=; b=oLEYuTEohSkKgH 4pYkI2dqmyuKfS+utOMezh7HPbUpm5ZdBHgVKlH6dorAMO20Cq4k04yeb8Iriub9RdDaubkfEkkuW 4Ys9DsiS1+kC7jLiKJ4QRPtS17AZe6yLNPFh1bFWax0mv2xVfad0lqxazMvjGCdFroP/pty8VdPg4 v+wHz3crbzG2jeouArMd5z3/ocacartV8GTqoWwestJdbFSs1A1UNA+O6vr69x1TIfgtG/NyiZwBZ L8bW9pt9TuK/d+fqz2fm1RtAXVVMqyoftd8mVgxRhi3osNsdPs6egPR/Syw7UiGLIVgWDTEggoaVh LkulkEnVwwr2hbjFDHJA==; 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 1daGBm-0005NG-OQ; Wed, 26 Jul 2017 06:52:58 +0000 Received: from lelnx193.ext.ti.com ([198.47.27.77]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1daG53-00030K-KK for linux-arm-kernel@lists.infradead.org; Wed, 26 Jul 2017 06:46:07 +0000 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by lelnx193.ext.ti.com (8.15.1/8.15.1) with ESMTP id v6Q6jbD2025805; Wed, 26 Jul 2017 01:45:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1501051537; bh=NKtxx678dfWJUcj7W3X1HUZjrMtH7RI7OxqnDoDqejg=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=AzH2FIO5LtPH/EiZBlX/ozljNKgoAEkL1ntpYt6wxhCIsJYsxniwz5yRQ9MHvOjC0 HKPJ03liVioEbFwxHGGAeA7NrstXSgx/JUUyJ/S+mxqG7zyvt/iRDH5X6/5jGSZvPR WQYTnBFntBlZK77i0VXRF1CwA1ebqsFkS95keofg= Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id v6Q6jbcc021750; Wed, 26 Jul 2017 01:45:37 -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:36 -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 v6Q6jUS8022259; Wed, 26 Jul 2017 01:45:34 -0500 From: Keerthy To: , Subject: [PATCH v3 2/2] ARM: dts: keystone-k2g-evm: Add gpio nodes Date: Wed, 26 Jul 2017 12:15:24 +0530 Message-ID: <1501051524-5990-2-git-send-email-j-keerthy@ti.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1501051524-5990-1-git-send-email-j-keerthy@ti.com> References: <1501051524-5990-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-20170725_234601_992898_962822DD X-CRM114-Status: UNSURE ( 7.48 ) 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 66AK2G has 2 instances of gpio. The first one has all the 144 GPIOs functional( 9 banks with 16 gpios = 144). The second instance has only the GPIO0:GPIO67 functional and rest are marked reserved. Signed-off-by: Keerthy --- The patch depends on the below series: http://marc.info/?l=linux-arm-kernel&m=150034845427555&w=2 http://marc.info/?l=linux-arm-kernel&m=150034856627618&w=2 Driver patches related are already posted: https://www.spinics.net/lists/arm-kernel/msg594862.html 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..f9ff299 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,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"; + }; + + gpio1: gpio@260a000 { + compatible = "ti,keystone-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"; + }; }; };