From patchwork Mon Sep 24 20:13:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 10612833 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 085FA913 for ; Mon, 24 Sep 2018 20:13:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ECE6E28C2F for ; Mon, 24 Sep 2018 20:13:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DFFB0292EA; Mon, 24 Sep 2018 20:13:46 +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 4959828C2F for ; Mon, 24 Sep 2018 20:13:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727088AbeIYCRk (ORCPT ); Mon, 24 Sep 2018 22:17:40 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:33942 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727074AbeIYCRj (ORCPT ); Mon, 24 Sep 2018 22:17:39 -0400 Received: by mail-lj1-f195.google.com with SMTP id f8-v6so19493835ljk.1 for ; Mon, 24 Sep 2018 13:13:44 -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=j2dGG9V+oreBu9MgfJ51b35XHUrjYOqqXJl2lyrgydg=; b=IQnNCF13dfxiHqUu3eiMgUPHCI3RbvI361ksl8o9JQRGN150dkn44jLTmcVft5OuQu oIg/BXOf354j/vmT9e86icWka/XcYZ0rc6FeVl9WHzCI493TNI/LqxcmykC9UX1dF+o7 fbEF5YumzeWc9fwJZd4Mdcq1bw68kO+omXtIOguGh3rK6/K8Cxcc97d/Yzx4Tk+BrrI9 R2ltzWGD4CPsQfcFUQM9h+ky6qdlgxvjgVdTYeVAgD+EALyY36OTf1x6+nYbc7sHRmkp oYdoBo5C/Aw2lssGnmf4WpqPtsPQLW7vWLkaMfvWmKGNhXIIwa3/eJmOPgMB7DFtIjPn ShCg== 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=j2dGG9V+oreBu9MgfJ51b35XHUrjYOqqXJl2lyrgydg=; b=SE1dMA+uUSUQ8HYWV9/ro4nJCdTRy8Dyf9E0zlsW3q/Blz20MQs9qFt7ICUzs2RneW m6YQ4Kesq4eDEpN43oClDzuBtDnAJjR4xMbbTTmCQkCHUQ7FfZBYAK5+O1qcad6uM1yV m6Ow2QY84vDH62lWA5O9l2HHcqJzk4CePk9NokUkxXha5cCJ2V1gX583mitfbm41MehU XEDuRY+Eltgu2BL0CLBmIpklWCuo8Djc3SicTdZ7Rd1g1et3KQu0dxemVyzuXqBZFRVI oAqM7yoeDbNnNLuc7SK6qcys57a1AkISZgjisYZhyuZbk8woRYY86h+P5ysSc3bwJPBE epXw== X-Gm-Message-State: ABuFfog/q/oe0LzkSHnu24CzWqIf1ow5i9jyoiaYUmiWeuQ6Aoi9ve+d Xy81IVqvHfP5iYTwq8EC1ia30A== X-Google-Smtp-Source: ACcGV624IatFwuQCYvWazAUc83HoC6+ML3+6O+uQUTfzJipmvG/wvoGhk8nQeoGe95wZms5rzNp0Ow== X-Received: by 2002:a2e:4951:: with SMTP id b17-v6mr67204ljd.31.1537820023463; Mon, 24 Sep 2018 13:13:43 -0700 (PDT) Received: from wasted.cogentembedded.com ([31.173.87.133]) by smtp.gmail.com with ESMTPSA id s6-v6sm40826ljg.29.2018.09.24.13.13.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Sep 2018 13:13:41 -0700 (PDT) From: Sergei Shtylyov Subject: [PATCH v2] arm64: dts: renesas: r8a779{7|8}0: add TMU 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: <2abe82e7-c7b2-7696-402d-1140d2ed4006@cogentembedded.com> Date: Mon, 24 Sep 2018 23:13:41 +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 TMUs in the R8A779{7|8}0 device trees. 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-20180924-v4.19-rc5' branch of Simon Horman's 'renesas.git' repo. Changes in version 2: - fixed up the "compatible" prop in the R8A77970 TMU3/4 node; - removed the 4th interrupt from the R8A77970 TMU4 node and the R8A77980 TMU1 node. arch/arm64/boot/dts/renesas/r8a77970.dtsi | 65 ++++++++++++++++++++++++++++++ arch/arm64/boot/dts/renesas/r8a77980.dtsi | 65 ++++++++++++++++++++++++++++++ 2 files changed, 130 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 @@ -316,6 +316,71 @@ resets = <&cpg 407>; }; + tmu0: timer@e61e0000 { + compatible = "renesas,tmu-r8a77970", "renesas,tmu"; + reg = <0 0xe61e0000 0 0x30>; + interrupts = , + , + ; + clocks = <&cpg CPG_MOD 125>; + clock-names = "fck"; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 125>; + status = "disabled"; + }; + + tmu1: timer@e6fc0000 { + compatible = "renesas,tmu-r8a77970", "renesas,tmu"; + reg = <0 0xe6fc0000 0 0x30>; + interrupts = , + , + ; + clocks = <&cpg CPG_MOD 124>; + clock-names = "fck"; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 124>; + status = "disabled"; + }; + + tmu2: timer@e6fd0000 { + compatible = "renesas,tmu-r8a77970", "renesas,tmu"; + reg = <0 0xe6fd0000 0 0x30>; + interrupts = , + , + ; + clocks = <&cpg CPG_MOD 123>; + clock-names = "fck"; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 123>; + status = "disabled"; + }; + + tmu3: timer@e6fe0000 { + compatible = "renesas,tmu-r8a77970", "renesas,tmu"; + reg = <0 0xe6fe0000 0 0x30>; + interrupts = , + , + ; + clocks = <&cpg CPG_MOD 122>; + clock-names = "fck"; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 122>; + status = "disabled"; + }; + + tmu4: timer@ffc00000 { + compatible = "renesas,tmu-r8a77970", "renesas,tmu"; + reg = <0 0xffc00000 0 0x30>; + interrupts = , + , + ; + clocks = <&cpg CPG_MOD 121>; + clock-names = "fck"; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 121>; + status = "disabled"; + }; + i2c0: i2c@e6500000 { compatible = "renesas,i2c-r8a77970", "renesas,rcar-gen3-i2c"; 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 @@ -346,6 +346,71 @@ resets = <&cpg 407>; }; + tmu0: timer@e61e0000 { + compatible = "renesas,tmu-r8a77980", "renesas,tmu"; + reg = <0 0xe61e0000 0 0x30>; + interrupts = , + , + ; + clocks = <&cpg CPG_MOD 125>; + clock-names = "fck"; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; + resets = <&cpg 125>; + status = "disabled"; + }; + + tmu1: timer@e6fc0000 { + compatible = "renesas,tmu-r8a77980", "renesas,tmu"; + reg = <0 0xe6fc0000 0 0x30>; + interrupts = , + , + ; + clocks = <&cpg CPG_MOD 124>; + clock-names = "fck"; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; + resets = <&cpg 124>; + status = "disabled"; + }; + + tmu2: timer@e6fd0000 { + compatible = "renesas,tmu-r8a77980", "renesas,tmu"; + reg = <0 0xe6fd0000 0 0x30>; + interrupts = , + , + ; + clocks = <&cpg CPG_MOD 123>; + clock-names = "fck"; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; + resets = <&cpg 123>; + status = "disabled"; + }; + + tmu3: timer@e6fe0000 { + compatible = "renesas,tmu-r8a77980", "renesas,tmu"; + reg = <0 0xe6fe0000 0 0x30>; + interrupts = , + , + ; + clocks = <&cpg CPG_MOD 122>; + clock-names = "fck"; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; + resets = <&cpg 122>; + status = "disabled"; + }; + + tmu4: timer@ffc00000 { + compatible = "renesas,tmu-r8a77980", "renesas,tmu"; + reg = <0 0xffc00000 0 0x30>; + interrupts = , + , + ; + clocks = <&cpg CPG_MOD 121>; + clock-names = "fck"; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; + resets = <&cpg 121>; + status = "disabled"; + }; + i2c0: i2c@e6500000 { compatible = "renesas,i2c-r8a77980", "renesas,rcar-gen3-i2c";