From patchwork Mon Nov 13 21:23:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 10056717 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 6CA7160365 for ; Mon, 13 Nov 2017 21:47:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5B0CD2946F for ; Mon, 13 Nov 2017 21:47:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4EB3629495; Mon, 13 Nov 2017 21:47:09 +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=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=unavailable 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 C75AC2946F for ; Mon, 13 Nov 2017 21:47:08 +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:Subject:To:Date:Message-Id :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=zwvffhUZEUf2jpUXIRa67A9JNbmcyYfOI42Y7lgV/Os=; b=iQDmS4Hu116vfr MYBfmgjPqepEcu39cCihoGNsKvurcZbzx+k8z9ch7IxjyFDAWnsIK5GJ88ZEX7T14GjVtDn3duKey 2/HkhFjPmPvmQf7lZFYjQ0M2P8RNqJMBeTmlMxnsYrjpUerIxQFo2llOq04ivZegeztjIL1HUSpbL ev93v8GS1ypACjPMfOPtA6OGlO9lSQVhpqjsncnkKLpGHEwCrJr6HO40OvfNLr51smBbNN9hVEsRI X729WcEWy16k/4MypBztcUWXxIA0Wu7HEogioOp5SSEL4Bqg+aTvDS7FDQHBPOoWMUOmtvEtUfqpf AuetIclmHdKslqSemxxA==; 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 1eEMZN-0000GV-CY; Mon, 13 Nov 2017 21:47:05 +0000 Received: from mail-lf0-x241.google.com ([2a00:1450:4010:c07::241]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1eEML0-0000OS-Lq for linux-arm-kernel@lists.infradead.org; Mon, 13 Nov 2017 21:32:18 +0000 Received: by mail-lf0-x241.google.com with SMTP id a2so19982392lfh.11 for ; Mon, 13 Nov 2017 13:31:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:user-agent:date:to:cc:subject:mime-version :content-disposition; bh=RtrnbDXcJjzQG6rbqwNBr+NIPN2V/bRTQ7+0TXYOhbw=; b=ASr/7cMUsca7308IPoDMFC1hxMxWKUkCoSQ91qrFh8j7e2wVVpSij46SnM4YqljCzW N/9/cvqJZh5b8QcAibeyYwM7VG/l1+yht+Ss0E93eY/HQEy5+SWw/FlgnLF7fgG5yVdl w2CRS3WlZUle4MLwrQX4Vi8OPMindhVKyemf9IoBm4sqirSYWPObeRepQfY0BVEIZ/dN lUsaZA+Ds5xt7Cq5tKxdX3l1V4oybo8wYwsBy8fs7g94a7zLi0C3/iCKGsPLKhFdF1tY 8c/QT2dyPB7/16n7KLlbyQ8j5zAd2w+guC69TRAKufotJSQldpHX9r527D/IeabL/1zf EETA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:user-agent:date:to:cc:subject :mime-version:content-disposition; bh=RtrnbDXcJjzQG6rbqwNBr+NIPN2V/bRTQ7+0TXYOhbw=; b=M5hd4lIP16bD/BDwEoq3R9T9oRIY20q1y5WtEThUfKkpd61TTsKv4sxzYF9HaDj7c6 l/vmSeir1f4HZqPubsOAb2nckErohxYtx8gaOQjH2k+ouFs3QelgEfoFJTorYGLqBqP6 iqjo/DGuUFKOZASArizeuRYBKJemlV9Spu9A+XdF2BPtLtBtxxwxJx460GOYwuStaL3H voe7fT1ScrSKdMDW+G82v50g+2zbiSDUBZz5B44ECc5SNgugCugBXlej461W7fnmPa2+ 9E21IIPzkhiZg6nIAeeXxahGs6YS7EO2CfVG+LPQvBMaSihtivgmtYGM30joWElpkGrk ZZww== X-Gm-Message-State: AJaThX7ZlSy0G5YUKoXqFnacDR4PuabSIhjiyihxrRTOXJCEqqYL7YgU soXJNExSt7PT+s5bVCSofJOYdQ== X-Google-Smtp-Source: AGs4zMaZMGpHBZMcPzRD5VIlBmtqIrFiAWqMcVPe+91QdwnKfl6yuNrQRRt1uD7QakidkaEHIIzFjg== X-Received: by 10.46.82.14 with SMTP id g14mr3679155ljb.118.1510608712726; Mon, 13 Nov 2017 13:31:52 -0800 (PST) Received: from wasted.cogentembedded.com ([31.173.86.120]) by smtp.gmail.com with ESMTPSA id g12sm2988467lfd.61.2017.11.13.13.31.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Nov 2017 13:31:51 -0800 (PST) From: Sergei Shtylyov X-Google-Original-From: "Sergei Shtylyov" Received: by wasted.cogentembedded.com (sSMTP sendmail emulation); Tue, 14 Nov 2017 00:31:49 +0300 Message-Id: <20171113213149.295833059@cogentembedded.com> User-Agent: quilt/0.64 Date: Tue, 14 Nov 2017 00:23:20 +0300 To: Simon Horman , Rob Herring , Catalin Marinas , Will Deacon , linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 1/2] arm64: dts: renesas: r8a77970: add GPIO support MIME-Version: 1.0 Content-Disposition: inline; filename=arm64-dts-renesas-r8a77970-add-GPIO-support.patch X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20171113_133214_988436_E5EED896 X-CRM114-Status: UNSURE ( 9.59 ) 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: Mark Rutland , Magnus Damm , Sergei Shtylyov , linux-arm-kernel@lists.infradead.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 Describe all 6 GPIO controllers in the R8A77970 device tree. Signed-off-by: Sergei Shtylyov Reviewed-by: Geert Uytterhoeven --- arch/arm64/boot/dts/renesas/r8a77970.dtsi | 90 ++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) Index: renesas/arch/arm64/boot/dts/renesas/r8a77970.dtsi =================================================================== --- renesas.orig/arch/arm64/boot/dts/renesas/r8a77970.dtsi +++ renesas/arch/arm64/boot/dts/renesas/r8a77970.dtsi @@ -139,6 +139,96 @@ reg = <0 0xe6060000 0 0x504>; }; + gpio0: gpio@e6050000 { + compatible = "renesas,gpio-r8a77970", + "renesas,rcar-gen3-gpio"; + reg = <0 0xe6050000 0 0x50>; + interrupts = ; + #gpio-cells = <2>; + gpio-controller; + gpio-ranges = <&pfc 0 0 22>; + #interrupt-cells = <2>; + interrupt-controller; + clocks = <&cpg CPG_MOD 912>; + power-domains = <&sysc 32>; + resets = <&cpg 912>; + }; + + gpio1: gpio@e6051000 { + compatible = "renesas,gpio-r8a77970", + "renesas,rcar-gen3-gpio"; + reg = <0 0xe6051000 0 0x50>; + interrupts = ; + #gpio-cells = <2>; + gpio-controller; + gpio-ranges = <&pfc 0 32 28>; + #interrupt-cells = <2>; + interrupt-controller; + clocks = <&cpg CPG_MOD 911>; + power-domains = <&sysc 32>; + resets = <&cpg 911>; + }; + + gpio2: gpio@e6052000 { + compatible = "renesas,gpio-r8a77970", + "renesas,rcar-gen3-gpio"; + reg = <0 0xe6052000 0 0x50>; + interrupts = ; + #gpio-cells = <2>; + gpio-controller; + gpio-ranges = <&pfc 0 64 17>; + #interrupt-cells = <2>; + interrupt-controller; + clocks = <&cpg CPG_MOD 910>; + power-domains = <&sysc 32>; + resets = <&cpg 910>; + }; + + gpio3: gpio@e6053000 { + compatible = "renesas,gpio-r8a77970", + "renesas,rcar-gen3-gpio"; + reg = <0 0xe6053000 0 0x50>; + interrupts = ; + #gpio-cells = <2>; + gpio-controller; + gpio-ranges = <&pfc 0 96 17>; + #interrupt-cells = <2>; + interrupt-controller; + clocks = <&cpg CPG_MOD 909>; + power-domains = <&sysc 32>; + resets = <&cpg 909>; + }; + + gpio4: gpio@e6054000 { + compatible = "renesas,gpio-r8a77970", + "renesas,rcar-gen3-gpio"; + reg = <0 0xe6054000 0 0x50>; + interrupts = ; + #gpio-cells = <2>; + gpio-controller; + gpio-ranges = <&pfc 0 128 6>; + #interrupt-cells = <2>; + interrupt-controller; + clocks = <&cpg CPG_MOD 908>; + power-domains = <&sysc 32>; + resets = <&cpg 908>; + }; + + gpio5: gpio@e6055000 { + compatible = "renesas,gpio-r8a77970", + "renesas,rcar-gen3-gpio"; + reg = <0 0xe6055000 0 0x50>; + interrupts = ; + #gpio-cells = <2>; + gpio-controller; + gpio-ranges = <&pfc 0 160 15>; + #interrupt-cells = <2>; + interrupt-controller; + clocks = <&cpg CPG_MOD 907>; + power-domains = <&sysc 32>; + resets = <&cpg 907>; + }; + intc_ex: interrupt-controller@e61c0000 { compatible = "renesas,intc-ex-r8a77970", "renesas,irqc"; #interrupt-cells = <2>;