Received: by 10.223.185.116 with SMTP id b49csp748092wrg; Tue, 20 Feb 2018 07:15:51 -0800 (PST) X-Google-Smtp-Source: AH8x226Nl4rVzx9RSJS1Ihzdcy2asbYfvfRVmxr4jR+wHdCbEsfl7zUk4+oWZGMZ+ZpfxWTOpvmX X-Received: by 10.99.0.209 with SMTP id 200mr5508200pga.283.1519139751068; Tue, 20 Feb 2018 07:15:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519139751; cv=none; d=google.com; s=arc-20160816; b=mZ8+JYvrInTjuQ+D/noi142OB93JLPxzWNg61melFVdDBqu5LexkbUjry4eQJ6jcon xFz6U1KsF9XvBkuqXsuiI9ALJVwvZ6UTmJ69vtI1qbMDbK/wj1HViCp0eQ6/3rTDrQsE Cr2E8qK6TltHHC3r5hdnVY/uI4wG88j+pSOnrRHaJEppnY3XPYAqqt9Sm4A9T1CktXdV ugMwO5qdIM2pvdWbRv0WBkGG+9MWRfk5zy93eipD5PsjPXcwKSM/vF81gmEyt6944p2M sVsZvrVj7t8pP5x5flkjtpy4/jl5jubA7l3VZGAGfNHbjQ+1v+KxanXCTJQrORf8EWNV 6VXg== 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=D5kuZgFK1S9EbQnw7ClZQbpPjgQo9vzZ0Z/4hHjVDD8=; b=SWWjRLTz/yOHGwma/4kjviN1BYQntwuwaQcSGjXzUD7HJh2J8De/1TwvcLI2Ze3MAv lZSPcvmaoPReolS2KlFD5kEyx02HdnwizIVm4fVnBwZSQQ2t5gB4YhMn0FEZp5En+hBc FudsOT2XoK5Pu1crteiUs4DN4nSNjif8p+cnrPkl3Sp0C5/26w773JdGqRw6Mowv2ghp 3dPfEP8pn1GlCoT9NvzfoBWo+ZQe0rQ1JZj8PbTJ4LmYisNYSLzOtXWWlAfLeO0FpwPc AyoE7zbdwjBqaVou4Q79vUZCe1Okw9NvvcCRY6ovaFTwS0mYmC/9aYrg63gYKXc9vl6/ Xk4g== 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 g5-v6si7606117pll.488.2018.02.20.07.15.36; Tue, 20 Feb 2018 07:15:51 -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 S1752632AbeBTPOa (ORCPT + 99 others); Tue, 20 Feb 2018 10:14:30 -0500 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:56413 "EHLO relay2-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752588AbeBTPO2 (ORCPT ); Tue, 20 Feb 2018 10:14:28 -0500 Received: from w540.lan (unknown [IPv6:2001:b07:6442:1ac4:4036:52e3:3484:3ff2]) (Authenticated sender: jacopo@jmondi.org) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id A97EDC5A69; Tue, 20 Feb 2018 16:14:23 +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 v2 16/19] ARM64: dts: r8a77965: Add GPIO nodes Date: Tue, 20 Feb 2018 16:12:18 +0100 Message-Id: <1519139541-18783-17-git-send-email-jacopo+renesas@jmondi.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1519139541-18783-1-git-send-email-jacopo+renesas@jmondi.org> References: <1519139541-18783-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 Reviewed-by: Geert Uytterhoeven --- v1 -> v2: - Replace ALWAYS_ON power area define with numeric constant - Do not move gpio nodes --- arch/arm64/boot/dts/renesas/r8a77965.dtsi | 104 +++++++++++++++++++++++++++--- 1 file changed, 96 insertions(+), 8 deletions(-) diff --git a/arch/arm64/boot/dts/renesas/r8a77965.dtsi b/arch/arm64/boot/dts/renesas/r8a77965.dtsi index 3cb1a33..55f05f7 100644 --- a/arch/arm64/boot/dts/renesas/r8a77965.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a77965.dtsi @@ -197,35 +197,123 @@ }; gpio0: gpio@e6050000 { - /* placeholder */ + 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 32>; + resets = <&cpg 912>; }; gpio1: gpio@e6051000 { - /* placeholder */ + 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 32>; + resets = <&cpg 911>; }; gpio2: gpio@e6052000 { - /* placeholder */ + 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 32>; + resets = <&cpg 910>; }; gpio3: gpio@e6053000 { - /* placeholder */ + 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 32>; + resets = <&cpg 909>; }; gpio4: gpio@e6054000 { - /* placeholder */ + 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 32>; + resets = <&cpg 908>; }; gpio5: gpio@e6055000 { - /* placeholder */ + 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 32>; + resets = <&cpg 907>; }; gpio6: gpio@e6055400 { - /* placeholder */ + 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 32>; + resets = <&cpg 906>; }; gpio7: gpio@e6055800 { - /* placeholder */ + 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 32>; + resets = <&cpg 905>; }; intc_ex: interrupt-controller@e61c0000 { -- 2.7.4