From patchwork Thu Jan 18 19:07:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 10173947 X-Patchwork-Delegate: horms@verge.net.au 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 B966960230 for ; Thu, 18 Jan 2018 19:08:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A8D6028474 for ; Thu, 18 Jan 2018 19:08:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9C22F28477; Thu, 18 Jan 2018 19:08:08 +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=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 119D028474 for ; Thu, 18 Jan 2018 19:08:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755003AbeARTIH (ORCPT ); Thu, 18 Jan 2018 14:08:07 -0500 Received: from mail-pg0-f47.google.com ([74.125.83.47]:38761 "EHLO mail-pg0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754513AbeARTIH (ORCPT ); Thu, 18 Jan 2018 14:08:07 -0500 Received: by mail-pg0-f47.google.com with SMTP id y27so9053984pgc.5 for ; Thu, 18 Jan 2018 11:08:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:date:message-id:in-reply-to:references:subject; bh=zTixSZEDXhpsAumWxHfae3/nrooSfKyUxSVsArqvn6c=; b=TFUGKmNbx8NaEclyxjSlCld1Lw3VTjvBpFrxwEZeLt8gL+RK9/LE0AesmyJLaCLXTw +0nDiC/2vwTd92T6YddQCp4bfWdodrVFOYCMuiWtWLc8Y/0FCDsN2sNxsq4v9j2hJ96y RBJPiAPHrh3GGFKDi+CK5yVRMkflRe/987DpBdQ0/Bwt+zXkT8Nqe0+mgwFJnIr1FGe9 3r5yxuaFJwv0XyZpHLaffKvnp6rvZRbsPymVGks2xujz4S0tZb/uT+d+H2r+6SPXYwfp 5SRDSsPeOqSZy/UqLkfH/b+RiLvnSIUxceEZw982xkYaSTJaC4wqpj7+UwkDWC+ZdayE i6xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:date:message-id:in-reply-to :references:subject; bh=zTixSZEDXhpsAumWxHfae3/nrooSfKyUxSVsArqvn6c=; b=BODyxgqFKzYfhVnJTQ/PgPs2Q3kpX66nUcbpX4tT1MiZUJFx+LIBfhR9yb6O3UO9Zr O4q6YbPlJAfehRG68kp72rsvOmqO+Q3PzHLTVL0bwBz2Mf0RdGaXA7ocIWFmfmoDeqcY EWFbpMeEzy3OIJv56iRGzc66Un0AdYmdiaTvRxXYIZi6osbfBGoTTqRB8ExOVyup3EZw QAdXK2WpF0HSfQGGvZNtIum+Ho30sexdfY4ZYYRkkmEz7yWYR8HWXWE5gyTQ+7QeTyze ESo0Nj5GPca3Ty7jdsSYgAbd7wrfAzTqWMnCegtB9Eh/R6Sk1dEdf+jcN7znPMaehj16 1Row== X-Gm-Message-State: AKwxytcFc4Oivzk5pXfFlMYknwk8yd3oeGUMvgvp7t0MQxiwqSXewymi hWZqR9VSXmo+bJ9kIU2XXzJemeJ2 X-Google-Smtp-Source: ACJfBov6VJWUtxVb64Qm/gDX3f/+I3P7MIuIAgvRp4ENFeiKNR/OJ+/Rb6amMOUwamNuDglwAvpayg== X-Received: by 10.98.201.69 with SMTP id k66mr2555309pfg.105.1516302486329; Thu, 18 Jan 2018 11:08:06 -0800 (PST) Received: from [127.0.0.1] (s214090.ppp.asahi-net.or.jp. [220.157.214.90]) by smtp.gmail.com with ESMTPSA id f79sm14690407pfd.103.2018.01.18.11.08.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Jan 2018 11:08:05 -0800 (PST) From: Magnus Damm To: linux-renesas-soc@vger.kernel.org Cc: Magnus Damm Date: Fri, 19 Jan 2018 04:07:29 +0900 Message-Id: <151630244944.14098.3965935014147421681.sendpatchset@little-apple> In-Reply-To: <151630243226.14098.14517816422611139335.sendpatchset@little-apple> References: <151630243226.14098.14517816422611139335.sendpatchset@little-apple> Subject: [PATCH/RFC 02/03] arm64: dts: renesas: r8a77970: Add GPIO nodes Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Magnus Damm Add GPIO device nodes for the r8a77970 SoC. Each GPIO device is currently assumed to have 32 pins. Signed-off-by: Magnus Damm --- arch/arm64/boot/dts/renesas/r8a77970.dtsi | 96 +++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) --- 0002/arch/arm64/boot/dts/renesas/r8a77970.dtsi +++ work/arch/arm64/boot/dts/renesas/r8a77970.dtsi 2018-01-19 03:45:15.990607110 +0900 @@ -248,6 +248,102 @@ <&ipmmu_ds1 22>, <&ipmmu_ds1 23>; }; + gpio0: gpio@e6050000 { + compatible = "renesas,gpio-r8a77970", + "renesas,rcar-gen3-gpio", + "renesas,gpio-rcar"; + reg = <0 0xe6050000 0 0x50>; + interrupts = ; + #gpio-cells = <2>; + gpio-controller; + gpio-ranges = <&pfc 0 0 32>; + #interrupt-cells = <2>; + interrupt-controller; + clocks = <&cpg CPG_MOD 912>; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 912>; + }; + + gpio1: gpio@e6051000 { + compatible = "renesas,gpio-r8a77970", + "renesas,rcar-gen3-gpio", + "renesas,gpio-rcar"; + reg = <0 0xe6051000 0 0x50>; + interrupts = ; + #gpio-cells = <2>; + gpio-controller; + gpio-ranges = <&pfc 0 32 32>; + #interrupt-cells = <2>; + interrupt-controller; + clocks = <&cpg CPG_MOD 911>; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 911>; + }; + + gpio2: gpio@e6052000 { + compatible = "renesas,gpio-r8a77970", + "renesas,rcar-gen3-gpio", + "renesas,gpio-rcar"; + reg = <0 0xe6052000 0 0x50>; + interrupts = ; + #gpio-cells = <2>; + gpio-controller; + gpio-ranges = <&pfc 0 64 32>; + #interrupt-cells = <2>; + interrupt-controller; + clocks = <&cpg CPG_MOD 910>; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 910>; + }; + + gpio3: gpio@e6053000 { + compatible = "renesas,gpio-r8a77970", + "renesas,rcar-gen3-gpio", + "renesas,gpio-rcar"; + reg = <0 0xe6053000 0 0x50>; + interrupts = ; + #gpio-cells = <2>; + gpio-controller; + gpio-ranges = <&pfc 0 96 32>; + #interrupt-cells = <2>; + interrupt-controller; + clocks = <&cpg CPG_MOD 909>; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 909>; + }; + + gpio4: gpio@e6054000 { + compatible = "renesas,gpio-r8a77970", + "renesas,rcar-gen3-gpio", + "renesas,gpio-rcar"; + reg = <0 0xe6054000 0 0x50>; + interrupts = ; + #gpio-cells = <2>; + gpio-controller; + gpio-ranges = <&pfc 0 128 32>; + #interrupt-cells = <2>; + interrupt-controller; + clocks = <&cpg CPG_MOD 908>; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 908>; + }; + + gpio5: gpio@e6055000 { + compatible = "renesas,gpio-r8a77970", + "renesas,rcar-gen3-gpio", + "renesas,gpio-rcar"; + reg = <0 0xe6055000 0 0x50>; + interrupts = ; + #gpio-cells = <2>; + gpio-controller; + gpio-ranges = <&pfc 0 160 32>; + #interrupt-cells = <2>; + interrupt-controller; + clocks = <&cpg CPG_MOD 907>; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 907>; + }; + hscif0: serial@e6540000 { compatible = "renesas,hscif-r8a77970", "renesas,rcar-gen3-hscif",