From patchwork Wed Aug 23 12:52:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 9917335 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 89EBA603FF for ; Wed, 23 Aug 2017 12:57:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7C1142893D for ; Wed, 23 Aug 2017 12:57:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 70CA828953; Wed, 23 Aug 2017 12:57:48 +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=-3.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RCVD_IN_SBL_CSS,RCVD_IN_SORBS_SPAM,T_DKIM_INVALID autolearn=unavailable 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 268892893D for ; Wed, 23 Aug 2017 12:57:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753915AbdHWM5r (ORCPT ); Wed, 23 Aug 2017 08:57:47 -0400 Received: from mail-lf0-f50.google.com ([209.85.215.50]:36849 "EHLO mail-lf0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754037AbdHWM5p (ORCPT ); Wed, 23 Aug 2017 08:57:45 -0400 Received: by mail-lf0-f50.google.com with SMTP id l137so53565lfg.3 for ; Wed, 23 Aug 2017 05:57:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:user-agent:date:to:to:to:cc:cc:subject:mime-version :content-disposition; bh=eSGXpWjUDZU+5dgsSQMlWtrUTVpSOe8q1zidzWiNoZs=; b=GhBkCZ0wWpFyZzGDxz4lwMWO9a5fWlMHoPwCKQY+pN14WfEOS6sgMibtN+pgknPGQN vx2nvRIkTDUdWWKJpsEhsq4N2W+/7aefIYr5aIYZHI7033TNTzkKWPN+izUkW59Y5jRR CVRAUW/MWsrmkkeN9a33cou6hrPlujZ2r+W1c5MJcnUTse4ImX61G86ruzQnU3o1yoTA wRd3PITMoxxPYm1wTyiexe6wdfuD+93gNWjAaihvJWaThX0m12yXnJD+gOgxjIUimQg1 r/ZPKtnPvuoCSoam33ZlxMm98Rd3O282buUZ61KL0EA2XHbP1pIpsXrh0qdexsMFngxS VrOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:user-agent:date:to:to:to:cc:cc :subject:mime-version:content-disposition; bh=eSGXpWjUDZU+5dgsSQMlWtrUTVpSOe8q1zidzWiNoZs=; b=jabSazVxUwEoh02lNRogG2ecm6oMPyF5fmXbNHAvfYF+K+2VyedxMQR977Tw40NEOs Zn0Wz9FJaNPoX2qv89QFoamHDKM3QsNFnIBv6lOZ4PSsbREm7EWQ6ja5gEncdOrKX9XR 0tMV6fHJYNhcKu6gNdiqQT8J4sOAf6tj7MF4m6Emc/sS5SxFMMpf+QMUJL3tMNt2zRFh icMUIHSOb38KNAnSzv4nBSuA9cpMlhkNiy18Ag9FGJh5Ek8rKu+MI6j3YWj3k05IdIrN Ax8Mk5W7sVmuzPk7e8irfoItXPWfUkF6fd0ol4ru7qJWNdA/8EDTsnaFt6KIubkm56rb dMUQ== X-Gm-Message-State: AHYfb5iLKko0YWsz4hcMF2YJyBtmb+aTOh3Y3yt59g+yD2FMkoHpvN+O 8R4uoBEbZoyrlisF X-Received: by 10.25.56.3 with SMTP id f3mr823296lfa.253.1503493063977; Wed, 23 Aug 2017 05:57:43 -0700 (PDT) Received: from wasted.cogentembedded.com ([31.173.84.44]) by smtp.gmail.com with ESMTPSA id s2sm249243ljd.62.2017.08.23.05.57.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Aug 2017 05:57:43 -0700 (PDT) From: Sergei Shtylyov X-Google-Original-From: "Sergei Shtylyov" Received: by wasted.cogentembedded.com (sSMTP sendmail emulation); Wed, 23 Aug 2017 15:57:40 +0300 Message-Id: <20170823125740.342120870@cogentembedded.com> User-Agent: quilt/0.64 Date: Wed, 23 Aug 2017 15:52:28 +0300 To: Michael Turquette , Rob Herring , Mark Rutland , devicetree@vger.kernel.org, Geert Uytterhoeven To: Stephen Boyd To: linux-clk@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, Vladimir Barinov , Sergei Shtylyov Cc: Simon Horman Subject: [PATCH 1/2] clk: renesas: add R8A7797 CPG core clock definitions MIME-Version: 1.0 Content-Disposition: inline; filename=clk-renesas-add-R8A7797-CPG-core-clock-definitions.patch Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add macros usable by the device tree sources to reference the R8A7797 CPG clocks by index. Based on the original (and large) patch by Daisuke Matsushita . Signed-off-by: Vladimir Barinov Signed-off-by: Sergei Shtylyov Reviewed-by: Geert Uytterhoeven --- include/dt-bindings/clock/r8a7797-cpg-mssr.h | 48 +++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe linux-clk" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: linux/include/dt-bindings/clock/r8a7797-cpg-mssr.h =================================================================== --- /dev/null +++ linux/include/dt-bindings/clock/r8a7797-cpg-mssr.h @@ -0,0 +1,48 @@ +/* + * Copyright (C) 2016 Renesas Electronics Corp. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + */ +#ifndef __DT_BINDINGS_CLOCK_R8A7797_CPG_MSSR_H__ +#define __DT_BINDINGS_CLOCK_R8A7797_CPG_MSSR_H__ + +#include + +/* r8a7797 CPG Core Clocks */ +#define R8A7797_CLK_Z2 0 +#define R8A7797_CLK_ZR 1 +#define R8A7797_CLK_ZTR 2 +#define R8A7797_CLK_ZTRD2 3 +#define R8A7797_CLK_ZT 4 +#define R8A7797_CLK_ZX 5 +#define R8A7797_CLK_S1D1 6 +#define R8A7797_CLK_S1D2 7 +#define R8A7797_CLK_S1D4 8 +#define R8A7797_CLK_S2D1 9 +#define R8A7797_CLK_S2D2 10 +#define R8A7797_CLK_S2D4 11 +#define R8A7797_CLK_LB 12 +#define R8A7797_CLK_CL 13 +#define R8A7797_CLK_ZB3 14 +#define R8A7797_CLK_ZB3D2 15 +#define R8A7797_CLK_DDR 16 +#define R8A7797_CLK_CR 17 +#define R8A7797_CLK_CRD2 18 +#define R8A7797_CLK_SD0H 19 +#define R8A7797_CLK_SD0 20 +#define R8A7797_CLK_RPC 21 +#define R8A7797_CLK_RPCD2 22 +#define R8A7797_CLK_MSO 23 +#define R8A7797_CLK_CANFD 24 +#define R8A7797_CLK_CSI0 25 +#define R8A7797_CLK_CSIREF 26 +#define R8A7797_CLK_FRAY 27 +#define R8A7797_CLK_CP 28 +#define R8A7797_CLK_CPEX 29 +#define R8A7797_CLK_R 30 +#define R8A7797_CLK_OSC 31 + +#endif /* __DT_BINDINGS_CLOCK_R8A7797_CPG_MSSR_H__ */