All of lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Horman <horms+renesas@verge.net.au>
To: linux-renesas-soc@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org,
	Magnus Damm <magnus.damm@gmail.com>,
	Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>,
	Simon Horman <horms+renesas@verge.net.au>
Subject: [PATCH 20/41] ARM: dts: r8a7792: add clock index macros
Date: Thu, 30 Jun 2016 16:15:40 +0200	[thread overview]
Message-ID: <de0fae60b35d405d3aa2e9acf5914770cd328338.1467294011.git.horms+renesas@verge.net.au> (raw)
In-Reply-To: <cover.1467294011.git.horms+renesas@verge.net.au>

From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

Add macros usable by the device tree sources to reference the R8A7792
clocks  by index.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
 include/dt-bindings/clock/r8a7792-clock.h | 102 ++++++++++++++++++++++++++++++
 1 file changed, 102 insertions(+)
 create mode 100644 include/dt-bindings/clock/r8a7792-clock.h

diff --git a/include/dt-bindings/clock/r8a7792-clock.h b/include/dt-bindings/clock/r8a7792-clock.h
new file mode 100644
index 000000000000..949801eb0652
--- /dev/null
+++ b/include/dt-bindings/clock/r8a7792-clock.h
@@ -0,0 +1,102 @@
+/*
+ * Copyright (C) 2016 Cogent Embedded, Inc.
+ *
+ * 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_R8A7792_H__
+#define __DT_BINDINGS_CLOCK_R8A7792_H__
+
+/* CPG */
+#define R8A7792_CLK_MAIN		0
+#define R8A7792_CLK_PLL0		1
+#define R8A7792_CLK_PLL1		2
+#define R8A7792_CLK_PLL3		3
+#define R8A7792_CLK_LB			4
+#define R8A7792_CLK_QSPI		5
+#define R8A7792_CLK_Z			6
+#define R8A7792_CLK_ADSP		7
+
+/* MSTP0 */
+#define R8A7792_CLK_MSIOF0		0
+
+/* MSTP1 */
+#define R8A7792_CLK_TMU1		11
+#define R8A7792_CLK_TMU3		21
+#define R8A7792_CLK_TMU2		22
+#define R8A7792_CLK_CMT0		24
+#define R8A7792_CLK_TMU0		25
+#define R8A7792_CLK_VSP1DU1		27
+#define R8A7792_CLK_VSP1DU0		28
+#define R8A7792_CLK_VSP1_SY		31
+
+/* MSTP2 */
+#define R8A7792_CLK_MSIOF1		8
+#define R8A7792_CLK_SYS_DMAC1		18
+#define R8A7792_CLK_SYS_DMAC0		19
+
+/* MSTP3 */
+#define R8A7792_CLK_TPU0		4
+#define R8A7792_CLK_SDHI0		14
+#define R8A7792_CLK_CMT1		29
+
+/* MSTP4 */
+#define R8A7792_CLK_IRQC		7
+
+/* MSTP5 */
+#define R8A7792_CLK_AUDIO_DMAC0		2
+#define R8A7792_CLK_THERMAL		22
+#define R8A7792_CLK_PWM			23
+
+/* MSTP7 */
+#define R8A7792_CLK_HSCIF1		16
+#define R8A7792_CLK_HSCIF0		17
+#define R8A7792_CLK_SCIF3		18
+#define R8A7792_CLK_SCIF2		19
+#define R8A7792_CLK_SCIF1		20
+#define R8A7792_CLK_SCIF0		21
+#define R8A7792_CLK_DU1			23
+#define R8A7792_CLK_DU0			24
+
+/* MSTP8 */
+#define R8A7792_CLK_VIN5		4
+#define R8A7792_CLK_VIN4		5
+#define R8A7792_CLK_VIN3		8
+#define R8A7792_CLK_VIN2		9
+#define R8A7792_CLK_VIN1		10
+#define R8A7792_CLK_VIN0		11
+#define R8A7792_CLK_ETHERAVB		12
+
+/* MSTP9 */
+#define R8A7792_CLK_GPIO7		4
+#define R8A7792_CLK_GPIO6		5
+#define R8A7792_CLK_GPIO5		7
+#define R8A7792_CLK_GPIO4		8
+#define R8A7792_CLK_GPIO3		9
+#define R8A7792_CLK_GPIO2		10
+#define R8A7792_CLK_GPIO1		11
+#define R8A7792_CLK_GPIO0		12
+#define R8A7792_CLK_GPIO11		13
+#define R8A7792_CLK_GPIO10		14
+#define R8A7792_CLK_CAN1		15
+#define R8A7792_CLK_CAN0		16
+#define R8A7792_CLK_QSPI_MOD		17
+#define R8A7792_CLK_GPIO9		19
+#define R8A7792_CLK_GPIO8		21
+#define R8A7792_CLK_I2C5		25
+#define R8A7792_CLK_IICDVFS		26
+#define R8A7792_CLK_I2C4		27
+#define R8A7792_CLK_I2C3		28
+#define R8A7792_CLK_I2C2		29
+#define R8A7792_CLK_I2C1		30
+#define R8A7792_CLK_I2C0		31
+
+/* MSTP10 */
+#define R8A7792_CLK_SSI_ALL		5
+#define R8A7792_CLK_SSI4		11
+#define R8A7792_CLK_SSI3		12
+
+#endif /* __DT_BINDINGS_CLOCK_R8A7792_H__ */
-- 
2.7.0.rc3.207.g0ac5344

WARNING: multiple messages have this Message-ID (diff)
From: horms+renesas@verge.net.au (Simon Horman)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 20/41] ARM: dts: r8a7792: add clock index macros
Date: Thu, 30 Jun 2016 16:15:40 +0200	[thread overview]
Message-ID: <de0fae60b35d405d3aa2e9acf5914770cd328338.1467294011.git.horms+renesas@verge.net.au> (raw)
In-Reply-To: <cover.1467294011.git.horms+renesas@verge.net.au>

From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>

Add macros usable by the device tree sources to reference the R8A7792
clocks  by index.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
 include/dt-bindings/clock/r8a7792-clock.h | 102 ++++++++++++++++++++++++++++++
 1 file changed, 102 insertions(+)
 create mode 100644 include/dt-bindings/clock/r8a7792-clock.h

diff --git a/include/dt-bindings/clock/r8a7792-clock.h b/include/dt-bindings/clock/r8a7792-clock.h
new file mode 100644
index 000000000000..949801eb0652
--- /dev/null
+++ b/include/dt-bindings/clock/r8a7792-clock.h
@@ -0,0 +1,102 @@
+/*
+ * Copyright (C) 2016 Cogent Embedded, Inc.
+ *
+ * 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_R8A7792_H__
+#define __DT_BINDINGS_CLOCK_R8A7792_H__
+
+/* CPG */
+#define R8A7792_CLK_MAIN		0
+#define R8A7792_CLK_PLL0		1
+#define R8A7792_CLK_PLL1		2
+#define R8A7792_CLK_PLL3		3
+#define R8A7792_CLK_LB			4
+#define R8A7792_CLK_QSPI		5
+#define R8A7792_CLK_Z			6
+#define R8A7792_CLK_ADSP		7
+
+/* MSTP0 */
+#define R8A7792_CLK_MSIOF0		0
+
+/* MSTP1 */
+#define R8A7792_CLK_TMU1		11
+#define R8A7792_CLK_TMU3		21
+#define R8A7792_CLK_TMU2		22
+#define R8A7792_CLK_CMT0		24
+#define R8A7792_CLK_TMU0		25
+#define R8A7792_CLK_VSP1DU1		27
+#define R8A7792_CLK_VSP1DU0		28
+#define R8A7792_CLK_VSP1_SY		31
+
+/* MSTP2 */
+#define R8A7792_CLK_MSIOF1		8
+#define R8A7792_CLK_SYS_DMAC1		18
+#define R8A7792_CLK_SYS_DMAC0		19
+
+/* MSTP3 */
+#define R8A7792_CLK_TPU0		4
+#define R8A7792_CLK_SDHI0		14
+#define R8A7792_CLK_CMT1		29
+
+/* MSTP4 */
+#define R8A7792_CLK_IRQC		7
+
+/* MSTP5 */
+#define R8A7792_CLK_AUDIO_DMAC0		2
+#define R8A7792_CLK_THERMAL		22
+#define R8A7792_CLK_PWM			23
+
+/* MSTP7 */
+#define R8A7792_CLK_HSCIF1		16
+#define R8A7792_CLK_HSCIF0		17
+#define R8A7792_CLK_SCIF3		18
+#define R8A7792_CLK_SCIF2		19
+#define R8A7792_CLK_SCIF1		20
+#define R8A7792_CLK_SCIF0		21
+#define R8A7792_CLK_DU1			23
+#define R8A7792_CLK_DU0			24
+
+/* MSTP8 */
+#define R8A7792_CLK_VIN5		4
+#define R8A7792_CLK_VIN4		5
+#define R8A7792_CLK_VIN3		8
+#define R8A7792_CLK_VIN2		9
+#define R8A7792_CLK_VIN1		10
+#define R8A7792_CLK_VIN0		11
+#define R8A7792_CLK_ETHERAVB		12
+
+/* MSTP9 */
+#define R8A7792_CLK_GPIO7		4
+#define R8A7792_CLK_GPIO6		5
+#define R8A7792_CLK_GPIO5		7
+#define R8A7792_CLK_GPIO4		8
+#define R8A7792_CLK_GPIO3		9
+#define R8A7792_CLK_GPIO2		10
+#define R8A7792_CLK_GPIO1		11
+#define R8A7792_CLK_GPIO0		12
+#define R8A7792_CLK_GPIO11		13
+#define R8A7792_CLK_GPIO10		14
+#define R8A7792_CLK_CAN1		15
+#define R8A7792_CLK_CAN0		16
+#define R8A7792_CLK_QSPI_MOD		17
+#define R8A7792_CLK_GPIO9		19
+#define R8A7792_CLK_GPIO8		21
+#define R8A7792_CLK_I2C5		25
+#define R8A7792_CLK_IICDVFS		26
+#define R8A7792_CLK_I2C4		27
+#define R8A7792_CLK_I2C3		28
+#define R8A7792_CLK_I2C2		29
+#define R8A7792_CLK_I2C1		30
+#define R8A7792_CLK_I2C0		31
+
+/* MSTP10 */
+#define R8A7792_CLK_SSI_ALL		5
+#define R8A7792_CLK_SSI4		11
+#define R8A7792_CLK_SSI3		12
+
+#endif /* __DT_BINDINGS_CLOCK_R8A7792_H__ */
-- 
2.7.0.rc3.207.g0ac5344

  parent reply	other threads:[~2016-06-30 14:17 UTC|newest]

Thread overview: 86+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-30 14:15 [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v4.8 Simon Horman
2016-06-30 14:15 ` Simon Horman
2016-06-30 14:15 ` [PATCH 01/41] ARM: dts: ape6evm: Name serial port pfc subnode after device name Simon Horman
2016-06-30 14:15   ` Simon Horman
2016-06-30 14:15 ` [PATCH 02/41] ARM: dts: ape6evm: Name mmc " Simon Horman
2016-06-30 14:15   ` Simon Horman
2016-06-30 14:15 ` [PATCH 03/41] ARM: dts: armadillo800eva: Name serial port " Simon Horman
2016-06-30 14:15   ` Simon Horman
2016-06-30 14:15 ` [PATCH 04/41] ARM: dts: bockw: " Simon Horman
2016-06-30 14:15   ` Simon Horman
2016-06-30 14:15 ` [PATCH 05/41] ARM: dts: marzen: Name serial port pfc subnodes after device names Simon Horman
2016-06-30 14:15   ` Simon Horman
2016-06-30 14:15 ` [PATCH 06/41] ARM: dts: lager: " Simon Horman
2016-06-30 14:15   ` Simon Horman
2016-06-30 14:15 ` [PATCH 07/41] ARM: dts: lager: Name spi " Simon Horman
2016-06-30 14:15   ` Simon Horman
2016-06-30 14:15 ` [PATCH 08/41] ARM: dts: lager: Name vin pfc subnode after device name Simon Horman
2016-06-30 14:15   ` Simon Horman
2016-06-30 14:15 ` [PATCH 09/41] ARM: dts: koelsch: Name serial port pfc subnodes after device names Simon Horman
2016-06-30 14:15   ` Simon Horman
2016-06-30 14:15 ` [PATCH 10/41] ARM: dts: koelsch: Name spi " Simon Horman
2016-06-30 14:15   ` Simon Horman
2016-06-30 14:15 ` [PATCH 11/41] ARM: dts: porter: Name serial port pfc subnode after device name Simon Horman
2016-06-30 14:15   ` Simon Horman
2016-06-30 14:15 ` [PATCH 12/41] ARM: dts: porter: Name spi " Simon Horman
2016-06-30 14:15   ` Simon Horman
2016-06-30 14:15 ` [PATCH 13/41] ARM: dts: gose: Name serial port pfc subnodes after device names Simon Horman
2016-06-30 14:15   ` Simon Horman
2016-06-30 14:15 ` [PATCH 14/41] ARM: dts: gose: Name spi pfc subnode after device name Simon Horman
2016-06-30 14:15   ` Simon Horman
2016-06-30 14:15 ` [PATCH 15/41] ARM: dts: alt: Name serial port " Simon Horman
2016-06-30 14:15   ` Simon Horman
2016-06-30 14:15 ` [PATCH 16/41] ARM: dts: alt: Name spi " Simon Horman
2016-06-30 14:15   ` Simon Horman
2016-06-30 14:15 ` [PATCH 17/41] ARM: dts: silk: Name serial port " Simon Horman
2016-06-30 14:15   ` Simon Horman
2016-06-30 14:15 ` [PATCH 18/41] ARM: dts: silk: Name spi " Simon Horman
2016-06-30 14:15   ` Simon Horman
2016-06-30 14:15 ` [PATCH 19/41] ARM: dts: kzm9g: Name serial port " Simon Horman
2016-06-30 14:15   ` Simon Horman
2016-06-30 14:15 ` Simon Horman [this message]
2016-06-30 14:15   ` [PATCH 20/41] ARM: dts: r8a7792: add clock index macros Simon Horman
2016-06-30 14:15 ` [PATCH 21/41] ARM: dts: r8a7792: add power domain " Simon Horman
2016-06-30 14:15   ` Simon Horman
2016-06-30 14:15 ` [PATCH 22/41] ARM: dts: r8a7792: initial SoC device tree Simon Horman
2016-06-30 14:15   ` Simon Horman
2016-06-30 14:15 ` [PATCH 23/41] ARM: dts: r8a7792: add SYS-DMAC support Simon Horman
2016-06-30 14:15   ` Simon Horman
2016-06-30 14:15 ` [PATCH 24/41] ARM: dts: r8a7792: add [H]SCIF support Simon Horman
2016-06-30 14:15   ` Simon Horman
2016-06-30 14:15 ` [PATCH 25/41] ARM: dts: r8a7792: add IRQC support Simon Horman
2016-06-30 14:15   ` Simon Horman
2016-06-30 14:15 ` [PATCH 26/41] ARM: dts: blanche: document Blanche board Simon Horman
2016-06-30 14:15   ` Simon Horman
2016-06-30 14:15 ` [PATCH 27/41] ARM: dts: blanche: initial device tree Simon Horman
2016-06-30 14:15   ` Simon Horman
2016-06-30 14:15 ` [PATCH 28/41] ARM: dts: blanche: add Ethernet support Simon Horman
2016-06-30 14:15   ` Simon Horman
2016-06-30 14:15 ` [PATCH 29/41] ARM: dts: silk: add DU pins Simon Horman
2016-06-30 14:15   ` Simon Horman
2016-06-30 14:15 ` [PATCH 30/41] ARM: dts: r8a7792: add JPU clocks Simon Horman
2016-06-30 14:15   ` Simon Horman
2016-06-30 14:15 ` [PATCH 31/41] ARM: dts: r8a7792: add JPU support Simon Horman
2016-06-30 14:15   ` Simon Horman
2016-06-30 14:15 ` [PATCH 32/41] ARM: dts: armadillo800eva: Update console parameters Simon Horman
2016-06-30 14:15   ` Simon Horman
2016-06-30 14:15 ` [PATCH 33/41] ARM: dts: genmai: " Simon Horman
2016-06-30 14:15   ` Simon Horman
2016-06-30 14:15 ` [PATCH 34/41] ARM: dts: marzen: Add serial port config to chosen/stdout-path Simon Horman
2016-06-30 14:15   ` Simon Horman
2016-06-30 14:15 ` [PATCH 35/41] ARM: dts: kzm9d: Update console parameters Simon Horman
2016-06-30 14:15   ` Simon Horman
2016-06-30 14:15 ` [PATCH 36/41] ARM: dts: kzm9g: " Simon Horman
2016-06-30 14:15   ` Simon Horman
2016-06-30 14:15 ` [PATCH 37/41] devicetree: bindings: Renesas APMU and SMP Enable method Simon Horman
2016-06-30 14:15   ` Simon Horman
2016-06-30 14:15 ` [PATCH 38/41] ARM: dts: r8a7790: Add APMU nodes Simon Horman
2016-06-30 14:15   ` Simon Horman
2016-06-30 14:15 ` [PATCH 39/41] ARM: dts: r8a7791: Add APMU node Simon Horman
2016-06-30 14:15   ` Simon Horman
2016-06-30 14:16 ` [PATCH 40/41] ARM: dts: r8a7793: Add APMU node and second CPU core Simon Horman
2016-06-30 14:16   ` Simon Horman
2016-06-30 14:16 ` [PATCH 41/41] ARM: dts: r8a7792: add SMP support Simon Horman
2016-06-30 14:16   ` Simon Horman
2016-07-07  5:11 ` [GIT PULL] Second Round of Renesas ARM Based SoC DT Updates for v4.8 Olof Johansson
2016-07-07  5:11   ` Olof Johansson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=de0fae60b35d405d3aa2e9acf5914770cd328338.1467294011.git.horms+renesas@verge.net.au \
    --to=horms+renesas@verge.net.au \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=magnus.damm@gmail.com \
    --cc=sergei.shtylyov@cogentembedded.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.