Received: by 10.223.185.116 with SMTP id b49csp3398973wrg; Tue, 13 Feb 2018 01:49:01 -0800 (PST) X-Google-Smtp-Source: AH8x226Jt+7F/BZyAIsRHS3u0/gBAH3J385DAL1INDIRjaPWI1PtntiPd/+1CZ/Esxu+ElwLKC4r X-Received: by 2002:a17:902:fa2:: with SMTP id 31-v6mr607431plz.346.1518515341162; Tue, 13 Feb 2018 01:49:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518515341; cv=none; d=google.com; s=arc-20160816; b=oAp77cGpVBP3iGq15//w3u4sKYDPZI7M1Vtkz+Yd+r5h8qYbcFd5X/ULCWlgAmLIab cfuOon5UCaadsMbGDAbem4AYkl2Rh2/t3zV5UMAVUhmx5sIuyaMEpdnhWyIm4WnC5Dgj Gl2a0F8770Ayyf/IslqDCrhU++x3iPFsN0V/c+/8Z9kd+gAi5PzXk15SqTzv1xXzIdSb Mj2SSKB+T617cDGixYziKLrVr+WE4HoSlgJygwD/Vkrl+06fe9AZ2y4c15belusDcxgb vDI/NMh+YxIJS3JGuuIr4yYcD2/Yr9dm7LxZknzNn0ic9n9QvAva7HU8lSJ8aJ7gMm8R BevA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=34saNmvWO9gNBnEpfQmMU96BlRJjjXGa0Z/YTXuFAE0=; b=u6wX3wznP1p/O9lNjXme2I3u2RYlCrpjlXdOFFlZn4BjCCN/aoJeOykcbn+bmHOlEu v4Jo6S5HKMiY66lJ8VomM8C3SLlLOoXEjSOVkE+JPZXq5YjGM9RPsm035iInGMVV3bfG GoD3GkkkdFWd6+/oBU35+EjIpqMa1sKgT7FmRrpCfV9dxWZMcgOX3/0PZzpo0NgtLygw rcGlOFJhdmXvPMQkDpRfk6Y9lU+7joLmcTStaKSE9VfiTyJG42qoNZwkLwjjfKA85wRx 4AGwD+lsrZNFM+HE6u6aTw1LXJ0qPC8D3HC4jaFrvXT6RMdyBhtLPeo9wlzJE+bmJKyk nn/g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r69si3403222pgr.678.2018.02.13.01.48.46; Tue, 13 Feb 2018 01:49:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934965AbeBMJrN (ORCPT + 99 others); Tue, 13 Feb 2018 04:47:13 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:56461 "EHLO relay4-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934951AbeBMJrJ (ORCPT ); Tue, 13 Feb 2018 04:47:09 -0500 Received: from w540.lan (unknown [IPv6:2001:b07:6442:1ac4:6060:2c66:8ae7:5377]) (Authenticated sender: jacopo@jmondi.org) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 652381720D3; Tue, 13 Feb 2018 10:47:04 +0100 (CET) From: Jacopo Mondi To: geert@linux-m68k.org, horms@verge.net.au, magnus.damm@gmail.com, robh+dt@kernel.org, mark.rutland@arm.com Cc: Jacopo Mondi , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 12/15] ARM64: dts: r8a77965: Add GPIO nodes Date: Tue, 13 Feb 2018 10:45:59 +0100 Message-Id: <1518515162-23663-13-git-send-email-jacopo+renesas@jmondi.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1518515162-23663-1-git-send-email-jacopo+renesas@jmondi.org> References: <1518515162-23663-1-git-send-email-jacopo+renesas@jmondi.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add GPIO nodes to r8a77965 SoC device tree file. Signed-off-by: Jacopo Mondi --- arch/arm64/boot/dts/renesas/r8a77965.dtsi | 152 +++++++++++++++++++++++------- 1 file changed, 120 insertions(+), 32 deletions(-) diff --git a/arch/arm64/boot/dts/renesas/r8a77965.dtsi b/arch/arm64/boot/dts/renesas/r8a77965.dtsi index 236592b..71f20c3 100644 --- a/arch/arm64/boot/dts/renesas/r8a77965.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a77965.dtsi @@ -201,38 +201,6 @@ #power-domain-cells = <1>; }; - gpio0: gpio@e6050000 { - /* placeholder */ - }; - - gpio1: gpio@e6051000 { - /* placeholder */ - }; - - gpio2: gpio@e6052000 { - /* placeholder */ - }; - - gpio3: gpio@e6053000 { - /* placeholder */ - }; - - gpio4: gpio@e6054000 { - /* placeholder */ - }; - - gpio5: gpio@e6055000 { - /* placeholder */ - }; - - gpio6: gpio@e6055400 { - /* placeholder */ - }; - - gpio7: gpio@e6055800 { - /* placeholder */ - }; - intc_ex: interrupt-controller@e61c0000 { /* placeholder */ }; @@ -339,6 +307,126 @@ dma-channels = <16>; }; + gpio0: gpio@e6050000 { + compatible = "renesas,gpio-r8a77965", + "renesas,rcar-gen3-gpio"; + reg = <0 0xe6050000 0 0x50>; + interrupts = ; + #gpio-cells = <2>; + gpio-controller; + gpio-ranges = <&pfc 0 0 16>; + #interrupt-cells = <2>; + interrupt-controller; + clocks = <&cpg CPG_MOD 912>; + power-domains = <&sysc R8A77965_PD_ALWAYS_ON>; + resets = <&cpg 912>; + }; + + gpio1: gpio@e6051000 { + compatible = "renesas,gpio-r8a77965", + "renesas,rcar-gen3-gpio"; + reg = <0 0xe6051000 0 0x50>; + interrupts = ; + #gpio-cells = <2>; + gpio-controller; + gpio-ranges = <&pfc 0 32 29>; + #interrupt-cells = <2>; + interrupt-controller; + clocks = <&cpg CPG_MOD 911>; + power-domains = <&sysc R8A77965_PD_ALWAYS_ON>; + resets = <&cpg 911>; + }; + + gpio2: gpio@e6052000 { + compatible = "renesas,gpio-r8a77965", + "renesas,rcar-gen3-gpio"; + reg = <0 0xe6052000 0 0x50>; + interrupts = ; + #gpio-cells = <2>; + gpio-controller; + gpio-ranges = <&pfc 0 64 15>; + #interrupt-cells = <2>; + interrupt-controller; + clocks = <&cpg CPG_MOD 910>; + power-domains = <&sysc R8A77965_PD_ALWAYS_ON>; + resets = <&cpg 910>; + }; + + gpio3: gpio@e6053000 { + compatible = "renesas,gpio-r8a77965", + "renesas,rcar-gen3-gpio"; + reg = <0 0xe6053000 0 0x50>; + interrupts = ; + #gpio-cells = <2>; + gpio-controller; + gpio-ranges = <&pfc 0 96 16>; + #interrupt-cells = <2>; + interrupt-controller; + clocks = <&cpg CPG_MOD 909>; + power-domains = <&sysc R8A77965_PD_ALWAYS_ON>; + resets = <&cpg 909>; + }; + + gpio4: gpio@e6054000 { + compatible = "renesas,gpio-r8a77965", + "renesas,rcar-gen3-gpio"; + reg = <0 0xe6054000 0 0x50>; + interrupts = ; + #gpio-cells = <2>; + gpio-controller; + gpio-ranges = <&pfc 0 128 18>; + #interrupt-cells = <2>; + interrupt-controller; + clocks = <&cpg CPG_MOD 908>; + power-domains = <&sysc R8A77965_PD_ALWAYS_ON>; + resets = <&cpg 908>; + }; + + gpio5: gpio@e6055000 { + compatible = "renesas,gpio-r8a77965", + "renesas,rcar-gen3-gpio"; + reg = <0 0xe6055000 0 0x50>; + interrupts = ; + #gpio-cells = <2>; + gpio-controller; + gpio-ranges = <&pfc 0 160 26>; + #interrupt-cells = <2>; + interrupt-controller; + clocks = <&cpg CPG_MOD 907>; + power-domains = <&sysc R8A77965_PD_ALWAYS_ON>; + resets = <&cpg 907>; + }; + + gpio6: gpio@e6055400 { + compatible = "renesas,gpio-r8a77965", + "renesas,rcar-gen3-gpio"; + reg = <0 0xe6055400 0 0x50>; + interrupts = ; + #gpio-cells = <2>; + gpio-controller; + gpio-ranges = <&pfc 0 192 32>; + #interrupt-cells = <2>; + interrupt-controller; + clocks = <&cpg CPG_MOD 906>; + power-domains = <&sysc R8A77965_PD_ALWAYS_ON>; + resets = <&cpg 906>; + }; + + gpio7: gpio@e6055800 { + compatible = "renesas,gpio-r8a77965", + "renesas,rcar-gen3-gpio"; + reg = <0 0xe6055800 0 0x50>; + interrupts = ; + #gpio-cells = <2>; + gpio-controller; + gpio-ranges = <&pfc 0 224 4>; + #interrupt-cells = <2>; + interrupt-controller; + clocks = <&cpg CPG_MOD 905>; + power-domains = <&sysc R8A77965_PD_ALWAYS_ON>; + resets = <&cpg 905>; + }; + scif0: serial@e6e60000 { compatible = "renesas,scif-r8a77965", "renesas,rcar-gen3-scif", "renesas,scif"; -- 2.7.4