From patchwork Fri Oct 19 19:10:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 10650065 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-2.web.codeaurora.org (Postfix) with ESMTP id EF40F3B73 for ; Fri, 19 Oct 2018 19:10:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DDA892837E for ; Fri, 19 Oct 2018 19:10:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D1CFD2838F; Fri, 19 Oct 2018 19:10:50 +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.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,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 3874428385 for ; Fri, 19 Oct 2018 19:10:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727631AbeJTDSM (ORCPT ); Fri, 19 Oct 2018 23:18:12 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:40249 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727526AbeJTDSL (ORCPT ); Fri, 19 Oct 2018 23:18:11 -0400 Received: by mail-lf1-f66.google.com with SMTP id t22-v6so26032472lfb.7 for ; Fri, 19 Oct 2018 12:10:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=from:subject:to:cc:references:organization:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=kvQnzZt9PM1fV/3bk8nRK3FfpVyQAzJTvysc+95eano=; b=DLju8GLckUQpYefXlBKOdzR10be6yDac9RJAnRtmKsEbz7h4FQ8MKLAYoFON70sEPZ sxk2tKCv+Z0S3N/No2RA5pToCCnM9gdbY7rs28N5New/hIaOyHZjiuwqPcXykr/7g6LB GDe7dKtuIu+nO/TFzXJQP1DFf45i/+qgh8umTexMrT+51Pc4OV7BeO/4F4wiGcZocvu4 TcVsJxf++KnT95IrUiDke/EdbMF6pZUq32d9mSIk7Urt+Rcv3ww/OFrGTQN8jVoiHZvU rnI/Ur3nS/o2r+sEzJfXOQawz2RTXJtUJmU8fGDIxK7JuH2nl0eX4/F+KjRjYwtqMjx2 +6/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=kvQnzZt9PM1fV/3bk8nRK3FfpVyQAzJTvysc+95eano=; b=Dus8+BtTiGZIfoanZlaqqlssNncMXTkplU77GuyW9OGOEKjh0n/4JWqYOAa3NkNg9+ VGYZqtCnJnCm13gi7iOe2Fo9gsebTtrcwMCTOpn3UHzWgp7QE+ec6Mhph6xh0vjbf+/w Ka/tynKbEDEIxhJGXYcJGSCQt9QbxAkVL9XL2o+/hALCBYLYh6QnvSEcQCDuMHJaBLaG PGkrXePmaxEgRVza9NqrCGPey0LTpeScrOcMgzc2rlyL42K91pEYFYRQdhWUF/JH+3C3 sdyOUs19i3Lqr62x2LAJrmq++cu7AmDr9rhgZP6HxMc5Lvqh7v1RubhGYeJfKD2ll+E7 BYmA== X-Gm-Message-State: ABuFfojBibuvmecc/d0ssbCfFBrvYjgEhZJUMQVuiQb9BLkg8Kbsxscn T7pLJ7n7jq+y6zULu/7UxF++kg== X-Google-Smtp-Source: ACcGV61Oayh3q/iEwZ/R284ljeUvj1Fpo5IRvj8EuJdb9BMv/slaUM+M214k6Dgb3xF9ImTesrOKzQ== X-Received: by 2002:a19:f245:: with SMTP id d5-v6mr3745367lfk.66.1539976247198; Fri, 19 Oct 2018 12:10:47 -0700 (PDT) Received: from wasted.cogentembedded.com ([31.173.83.43]) by smtp.gmail.com with ESMTPSA id q62-v6sm5322395ljq.22.2018.10.19.12.10.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Oct 2018 12:10:45 -0700 (PDT) From: Sergei Shtylyov Subject: [PATCH v2] arm64: dts: renesas: r8a779{7|8}0: add MSIOF support To: Simon Horman , Rob Herring , linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org Cc: Magnus Damm , Mark Rutland References: Organization: Cogent Embedded Message-ID: <451b2957-d272-f4e9-8bfc-cb1cdfeb442b@cogentembedded.com> Date: Fri, 19 Oct 2018 22:10:44 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Language: en-MW 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 Describe MSIOF in the R8A779{7|8}0 device trees. The DMA props are omitted for R8A77980 as the RT-DMAC isn't supported (yet?)... Based on the original (and large) patches by Vladimir Barinov. Signed-off-by: Vladimir Barinov Signed-off-by: Sergei Shtylyov --- This patch is against the 'renesas-devel-20181015-v4.19-rc8' branch of Simon Horman's 'renesas.git' repo. Changes in version 2: - removed the aliases; - restored the DMA props on R8A77970, updated the description accordingly; - mentioned Vladimir in the description and added his signoff; - refreshed the patch. arch/arm64/boot/dts/renesas/r8a77970.dtsi | 64 ++++++++++++++++++++++++++++++ arch/arm64/boot/dts/renesas/r8a77980.dtsi | 52 ++++++++++++++++++++++++ 2 files changed, 116 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 @@ -753,6 +753,70 @@ status = "disabled"; }; + msiof0: spi@e6e90000 { + compatible = "renesas,msiof-r8a77970", + "renesas,rcar-gen3-msiof"; + reg = <0 0xe6e90000 0 0x64>; + interrupts = ; + clocks = <&cpg CPG_MOD 211>; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 211>; + dmas = <&dmac1 0x41>, <&dmac1 0x40>, + <&dmac2 0x41>, <&dmac2 0x40>; + dma-names = "tx", "rx", "tx", "rx"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + msiof1: spi@e6ea0000 { + compatible = "renesas,msiof-r8a77970", + "renesas,rcar-gen3-msiof"; + reg = <0 0xe6ea0000 0 0x0064>; + interrupts = ; + clocks = <&cpg CPG_MOD 210>; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 210>; + dmas = <&dmac1 0x43>, <&dmac1 0x42>, + <&dmac2 0x43>, <&dmac2 0x42>; + dma-names = "tx", "rx", "tx", "rx"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + msiof2: spi@e6c00000 { + compatible = "renesas,msiof-r8a77970", + "renesas,rcar-gen3-msiof"; + reg = <0 0xe6c00000 0 0x0064>; + interrupts = ; + clocks = <&cpg CPG_MOD 209>; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 209>; + dmas = <&dmac1 0x45>, <&dmac1 0x44>, + <&dmac2 0x45>, <&dmac2 0x44>; + dma-names = "tx", "rx", "tx", "rx"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + msiof3: spi@e6c10000 { + compatible = "renesas,msiof-r8a77970", + "renesas,rcar-gen3-msiof"; + reg = <0 0xe6c10000 0 0x0064>; + interrupts = ; + clocks = <&cpg CPG_MOD 208>; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 208>; + dmas = <&dmac1 0x47>, <&dmac1 0x46>, + <&dmac2 0x47>, <&dmac2 0x46>; + dma-names = "tx", "rx", "tx", "rx"; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + vin0: video@e6ef0000 { compatible = "renesas,vin-r8a77970"; reg = <0 0xe6ef0000 0 0x1000>; Index: renesas/arch/arm64/boot/dts/renesas/r8a77980.dtsi =================================================================== --- renesas.orig/arch/arm64/boot/dts/renesas/r8a77980.dtsi +++ renesas/arch/arm64/boot/dts/renesas/r8a77980.dtsi @@ -805,6 +805,58 @@ status = "disabled"; }; + msiof0: spi@e6e90000 { + compatible = "renesas,msiof-r8a77980", + "renesas,rcar-gen3-msiof"; + reg = <0 0xe6e90000 0 0x64>; + interrupts = ; + clocks = <&cpg CPG_MOD 211>; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; + resets = <&cpg 211>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + msiof1: spi@e6ea0000 { + compatible = "renesas,msiof-r8a77980", + "renesas,rcar-gen3-msiof"; + reg = <0 0xe6ea0000 0 0x0064>; + interrupts = ; + clocks = <&cpg CPG_MOD 210>; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; + resets = <&cpg 210>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + msiof2: spi@e6c00000 { + compatible = "renesas,msiof-r8a77980", + "renesas,rcar-gen3-msiof"; + reg = <0 0xe6c00000 0 0x0064>; + interrupts = ; + clocks = <&cpg CPG_MOD 209>; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; + resets = <&cpg 209>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + + msiof3: spi@e6c10000 { + compatible = "renesas,msiof-r8a77980", + "renesas,rcar-gen3-msiof"; + reg = <0 0xe6c10000 0 0x0064>; + interrupts = ; + clocks = <&cpg CPG_MOD 208>; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; + resets = <&cpg 208>; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + }; + vin0: video@e6ef0000 { compatible = "renesas,vin-r8a77980"; reg = <0 0xe6ef0000 0 0x1000>;