From patchwork Fri Sep 7 18:58: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: 10592485 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 D2F141515 for ; Fri, 7 Sep 2018 18:58:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BF7CA2B8CE for ; Fri, 7 Sep 2018 18:58:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B3B8D2B8EA; Fri, 7 Sep 2018 18:58:47 +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 23BBF2B8D2 for ; Fri, 7 Sep 2018 18:58:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727606AbeIGXlC (ORCPT ); Fri, 7 Sep 2018 19:41:02 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:38672 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726708AbeIGXlC (ORCPT ); Fri, 7 Sep 2018 19:41:02 -0400 Received: by mail-lj1-f195.google.com with SMTP id p6-v6so13102798ljc.5 for ; Fri, 07 Sep 2018 11:58: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=Kd1q+hVUfxI4rS6W7tHvO1e6Mc6R1MfxJW7vP4Ktfdc=; b=v9EH5AaSC4lGgP711mSCz+sYt+w4S+BQIv+5JwIVYYGPLHWoA0QvxFU7632vPAMvLW PuVNtAm5zwJqApwA5W0jwEvl4fjoWqQiYk0U/sLuqL3q42O27Z8+N1BERbcuCmMfmsbi BfY2rEw+fZSg2k6LrvsBMGls5HmhqFaXIbV/4jw8DS+xDqXrMjY33UkJ6WxQiLiBKO90 WN781IhWa9nPVTRhj4lxU7X6kaONDZM50dT3i7s8+nDmb6WCMssxmdq/SzwXKKShCBnK QSDGCb5BrH9PmU7g6RaVL5H4fYjR1RZHDxlc+zXyfmvjjnBWy8hvqE/Qe2oxCzYBokpr Qzbw== 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=Kd1q+hVUfxI4rS6W7tHvO1e6Mc6R1MfxJW7vP4Ktfdc=; b=Sr5WOUWozjRaqFJioRrky36PbIR96QLwt2/r6KvVdw5KLdFx7axNl983CLpmYPPbF4 /Hiu18spxrZ2hUcp0nwo4fkZ9XBYTm4qsgiQvGHgZwbVIrRNhvRaLtFtd6BCdX472r1j aedSNrtwdlEEpazY/wKNevFXMg3LIgcDoPGJ3tEBhls7OtY1Tsi3A+PwzzzI+mlo5fkb QowhPQogkcOK1EqzNOBOK6OHJMxBXPPXARcOL6AU2lMW90eVTyCB/nARsdGkeL0ibCH7 0AqwKUrr+MgRsCiM6IYI2ojPBtRAYi0oiTZQWelqPoWhWM7uIYKbioSiJE2RsSBWQ+5Q AeHw== X-Gm-Message-State: APzg51ClvXWXgGHM+mKQXPKLZ7GQVTFjL+izbyAcKTBmfhzgtNdJJd8v CIJFYGRvLLcC0RXhaR0rSfi/Kg== X-Google-Smtp-Source: ANB0VdbexePlH8sJXjXZF5Zn4RDcJY3TwrVP0fMfr3hBDtc/4CRZTW2oHdxeEJee/T+7x5zsB77S1Q== X-Received: by 2002:a2e:1bd7:: with SMTP id c84-v6mr5819183ljf.0.1536346723507; Fri, 07 Sep 2018 11:58:43 -0700 (PDT) Received: from wasted.cogentembedded.com ([31.173.85.58]) by smtp.gmail.com with ESMTPSA id j9-v6sm1417331ljh.40.2018.09.07.11.58.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Sep 2018 11:58:42 -0700 (PDT) From: Sergei Shtylyov Subject: [PATCH v2] arm64: dts: renesas: r8a779{7|8}0: add CMT 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: <63ac4c06-fd9c-2ced-2a7a-d68420f54746@cogentembedded.com> Date: Fri, 7 Sep 2018 21:58: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 CMTs 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 Reviewed-by: Simon Horman Reviewed-by: Geert Uytterhoeven --- This patch is against the 'renesas-devel-20180906-v4.19-rc2' branch of Simon Horman's 'renesas.git' repo. The R8A779{7|8}0 CMT DT binding updates have been posted the other day... Changes in version 2: - added the "resets" prop to all CMT nodes; - credited Vladimir Barinov as the formal author of the original patches. arch/arm64/boot/dts/renesas/r8a77970.dtsi | 70 ++++++++++++++++++++++++++++++ arch/arm64/boot/dts/renesas/r8a77980.dtsi | 70 ++++++++++++++++++++++++++++++ 2 files changed, 140 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 @@ -209,6 +209,76 @@ reg = <0 0xe6060000 0 0x504>; }; + cmt0: timer@e60f0000 { + compatible = "renesas,r8a77970-cmt0", + "renesas,rcar-gen3-cmt0"; + reg = <0 0xe60f0000 0 0x1004>; + interrupts = , + ; + clocks = <&cpg CPG_MOD 303>; + clock-names = "fck"; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 303>; + status = "disabled"; + }; + + cmt1: timer@e6130000 { + compatible = "renesas,r8a77970-cmt1", + "renesas,rcar-gen3-cmt1"; + reg = <0 0xe6130000 0 0x1004>; + interrupts = , + , + , + , + , + , + , + ; + clocks = <&cpg CPG_MOD 302>; + clock-names = "fck"; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 302>; + status = "disabled"; + }; + + cmt2: timer@e6140000 { + compatible = "renesas,r8a77970-cmt1", + "renesas,rcar-gen3-cmt1"; + reg = <0 0xe6140000 0 0x1004>; + interrupts = , + , + , + , + , + , + , + ; + clocks = <&cpg CPG_MOD 301>; + clock-names = "fck"; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 301>; + status = "disabled"; + }; + + cmt3: timer@e6148000 { + compatible = "renesas,r8a77970-cmt1", + "renesas,rcar-gen3-cmt1"; + reg = <0 0xe6148000 0 0x1004>; + interrupts = , + , + , + , + , + , + , + ; + clocks = <&cpg CPG_MOD 300>; + clock-names = "fck"; + power-domains = <&sysc R8A77970_PD_ALWAYS_ON>; + resets = <&cpg 300>; + status = "disabled"; + }; + cpg: clock-controller@e6150000 { compatible = "renesas,r8a77970-cpg-mssr"; reg = <0 0xe6150000 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 @@ -239,6 +239,76 @@ reg = <0 0xe6060000 0 0x50c>; }; + cmt0: timer@e60f0000 { + compatible = "renesas,r8a77980-cmt0", + "renesas,rcar-gen3-cmt0"; + reg = <0 0xe60f0000 0 0x1004>; + interrupts = , + ; + clocks = <&cpg CPG_MOD 303>; + clock-names = "fck"; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; + resets = <&cpg 303>; + status = "disabled"; + }; + + cmt1: timer@e6130000 { + compatible = "renesas,r8a77980-cmt1", + "renesas,rcar-gen3-cmt1"; + reg = <0 0xe6130000 0 0x1004>; + interrupts = , + , + , + , + , + , + , + ; + clocks = <&cpg CPG_MOD 302>; + clock-names = "fck"; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; + resets = <&cpg 302>; + status = "disabled"; + }; + + cmt2: timer@e6140000 { + compatible = "renesas,r8a77980-cmt1", + "renesas,rcar-gen3-cmt1"; + reg = <0 0xe6140000 0 0x1004>; + interrupts = , + , + , + , + , + , + , + ; + clocks = <&cpg CPG_MOD 301>; + clock-names = "fck"; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; + resets = <&cpg 301>; + status = "disabled"; + }; + + cmt3: timer@e6148000 { + compatible = "renesas,r8a77980-cmt1", + "renesas,rcar-gen3-cmt1"; + reg = <0 0xe6148000 0 0x1004>; + interrupts = , + , + , + , + , + , + , + ; + clocks = <&cpg CPG_MOD 300>; + clock-names = "fck"; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; + resets = <&cpg 300>; + status = "disabled"; + }; + cpg: clock-controller@e6150000 { compatible = "renesas,r8a77980-cpg-mssr"; reg = <0 0xe6150000 0 0x1000>;