From patchwork Thu Mar 16 17:51:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Brandt X-Patchwork-Id: 739928 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-pg0-x23c.google.com (mail-pg0-x23c.google.com [IPv6:2607:f8b0:400e:c05::23c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3vkbdL5SGGz9s1h for ; Fri, 17 Mar 2017 04:51:50 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.b="hfoutFRN"; dkim-atps=neutral Received: by mail-pg0-x23c.google.com with SMTP id 37sf30803904pgx.0 for ; Thu, 16 Mar 2017 10:51:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:mime-version:from:to:cc:subject:date:message-id:in-reply-to :references:x-original-sender:x-original-authentication-results :reply-to:precedence:mailing-list:list-id:x-spam-checked-in-group :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=UHEolXrMvVZTe2qUdnA6QG5/uA+kwxuw1k4xqmdCIoc=; b=hfoutFRN2CRsySAGIGWfHbFv+H2oid2jKmff5Zr7uXQXLUW5pnnhf4UFAtXpbC73X2 LD7jknZV0Nc6a8Hz9jpaNbQPqIFej8hytELjS8YLADv2IZtGGlHRTPPItQUWnVGy6+4a 6aoMbaOuBbCoT38NGljsnIpY9LmYFe0iSgOwXSumA1HY5Y+ECv0RAx1TdVyu1qUCvjg3 6uEf1AALM7pa20Xq5eF4HFl27swhXEgR3nQhmtHONaFTY/b1Yro//Ycu4VX8sMnwhx/M m69EQISZhU8lddasYgQBjtZ1Zvh78RtP28x47PNZzUk6R2F+1BtsZJp0/z60SrmJrWDP M7EA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:from:to:cc:subject:date :message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=UHEolXrMvVZTe2qUdnA6QG5/uA+kwxuw1k4xqmdCIoc=; b=SkJog8imQv4VpE8RL79YW/JaDRM2JPz+208nYbcBLK4mlmSqwxI9DZksN2WM2IbgX4 GZjFMNDLKDwzGJY/LPNs8/JndWNo8ByoSi9M050dODHtmleOLzjNh0tGFDvfJIfGSbsF knZWnStfAO+L5JkOgBjHaQPMG3WO7M3X9PzPApbet08AycUo+KGcWT6ZTJd8R45N5eLR zwaQehqUrmEghdxg2NE9ByuEZwIG9odTyBnyouOD4SiWSpoi8V/Jx/7LyyiOWj25SK2p 4PRzaZoxumw5nsx1M4kRzixK45ReyzwoWPAWCj2QYjsFC45Y70N/ZaI7fWo4mhrM3O7R 0pnA== Sender: rtc-linux@googlegroups.com X-Gm-Message-State: AFeK/H1YacQYQc7EcurKytDIA659w+Gh6ia29R2DX68IfHBoUE+z+zzrYfSqMJrzI+pMEg== X-Received: by 10.157.36.105 with SMTP id p96mr1259773ota.15.1489686709411; Thu, 16 Mar 2017 10:51:49 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.157.36.169 with SMTP id z38ls5601781ota.27.gmail; Thu, 16 Mar 2017 10:51:49 -0700 (PDT) X-Received: by 10.157.11.109 with SMTP id p42mr4600350otd.14.1489686709157; Thu, 16 Mar 2017 10:51:49 -0700 (PDT) Received: from relmlie3.idc.renesas.com (relmlor4.renesas.com. [210.160.252.174]) by gmr-mx.google.com with ESMTP id c123si1013513pfa.4.2017.03.16.10.51.48 for ; Thu, 16 Mar 2017 10:51:49 -0700 (PDT) Received-SPF: pass (google.com: domain of chris.brandt@renesas.com designates 210.160.252.174 as permitted sender) client-ip=210.160.252.174; Received: from unknown (HELO relmlir1.idc.renesas.com) ([10.200.68.151]) by relmlie3.idc.renesas.com with ESMTP; 17 Mar 2017 02:51:48 +0900 Received: from relmlac4.idc.renesas.com (relmlac4.idc.renesas.com [10.200.69.24]) by relmlir1.idc.renesas.com (Postfix) with ESMTP id 5B5A24849C; Fri, 17 Mar 2017 02:51:48 +0900 (JST) Received: by relmlac4.idc.renesas.com (Postfix, from userid 0) id 40954480A5; Fri, 17 Mar 2017 02:51:48 +0900 (JST) Received: from relmlac4.idc.renesas.com (localhost [127.0.0.1]) by relmlac4.idc.renesas.com (Postfix) with ESMTP id 39E8148014; Fri, 17 Mar 2017 02:51:48 +0900 (JST) Received: from relmlii1.idc.renesas.com [10.200.68.65] by relmlac4.idc.renesas.com with ESMTP id CAD17231; Fri, 17 Mar 2017 02:51:48 +0900 X-IronPort-AV: E=Sophos;i="5.36,173,1486393200"; d="scan'208";a="236898183" Received: from unknown (HELO rtamta01.rta.renesas.com) ([143.103.48.75]) by relmlii1.idc.renesas.com with ESMTP; 17 Mar 2017 02:51:46 +0900 Received: from localhost.localdomain (unknown [143.103.58.85]) by rtamta01.rta.renesas.com (Postfix) with ESMTP id 228B2652; Thu, 16 Mar 2017 17:51:42 +0000 (UTC) From: Chris Brandt To: Alessandro Zummo , Alexandre Belloni , Rob Herring , Mark Rutland , Simon Horman , Geert Uytterhoeven Cc: rtc-linux@googlegroups.com, devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Chris Brandt Subject: [rtc-linux] [PATCH 3/5] ARM: dts: r7s72100: add rtc clock to device tree Date: Thu, 16 Mar 2017 13:51:10 -0400 Message-Id: <20170316175112.27913-4-chris.brandt@renesas.com> X-Mailer: git-send-email 2.10.1 In-Reply-To: <20170316175112.27913-1-chris.brandt@renesas.com> References: <20170316175112.27913-1-chris.brandt@renesas.com> X-Original-Sender: chris.brandt@renesas.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of chris.brandt@renesas.com designates 210.160.252.174 as permitted sender) smtp.mailfrom=chris.brandt@renesas.com Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: rtc-linux@googlegroups.com X-Google-Group-Id: 712029733259 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Signed-off-by: Chris Brandt Reviewed-by: Geert Uytterhoeven --- arch/arm/boot/dts/r7s72100.dtsi | 9 +++++++++ include/dt-bindings/clock/r7s72100-clock.h | 3 +++ 2 files changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/r7s72100.dtsi b/arch/arm/boot/dts/r7s72100.dtsi index ed62e19..2a42a79 100644 --- a/arch/arm/boot/dts/r7s72100.dtsi +++ b/arch/arm/boot/dts/r7s72100.dtsi @@ -117,6 +117,15 @@ clock-output-names = "ostm0", "ostm1"; }; + mstp6_clks: mstp6_clks@fcfe042c { + #clock-cells = <1>; + compatible = "renesas,r7s72100-mstp-clocks", "renesas,cpg-mstp-clocks"; + reg = <0xfcfe042c 4>; + clocks = <&p0_clk>; + clock-indices = ; + clock-output-names = "rtc0"; + }; + mstp7_clks: mstp7_clks@fcfe0430 { #clock-cells = <1>; compatible = "renesas,r7s72100-mstp-clocks", "renesas,cpg-mstp-clocks"; diff --git a/include/dt-bindings/clock/r7s72100-clock.h b/include/dt-bindings/clock/r7s72100-clock.h index cd2ed51..bc256d3 100644 --- a/include/dt-bindings/clock/r7s72100-clock.h +++ b/include/dt-bindings/clock/r7s72100-clock.h @@ -29,6 +29,9 @@ #define R7S72100_CLK_OSTM0 1 #define R7S72100_CLK_OSTM1 0 +/* MSTP6 */ +#define R7S72100_CLK_RTC 0 + /* MSTP7 */ #define R7S72100_CLK_ETHER 4