All of lore.kernel.org
 help / color / mirror / Atom feed
From: fabrizio.castro@bp.renesas.com (Fabrizio Castro)
To: cip-dev@lists.cip-project.org
Subject: [cip-dev] [PATCH v2 04/52] ARM: shmobile: r8a77470: Add clock index macros for DT sources
Date: Thu, 16 May 2019 10:39:16 +0100	[thread overview]
Message-ID: <1557999604-1117-5-git-send-email-fabrizio.castro@bp.renesas.com> (raw)
In-Reply-To: <1557999604-1117-1-git-send-email-fabrizio.castro@bp.renesas.com>

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

Unfortunately there is nothing that we can backport from mainline
for this, as the architecture of the clock driver has changed
quite dramatically over time.

Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>

---
v1->v2:
* Changed license for file include/dt-bindings/clock/r8a77470-clock.h
  from GPL-2.0+ to GPL-2.0 to make it match the license of the clock
  driver and the license of the DT file
* Changed commit message to explain why we can't backport this
---
 include/dt-bindings/clock/r8a77470-clock.h | 139 +++++++++++++++++++++++++++++
 1 file changed, 139 insertions(+)
 create mode 100644 include/dt-bindings/clock/r8a77470-clock.h

diff --git a/include/dt-bindings/clock/r8a77470-clock.h b/include/dt-bindings/clock/r8a77470-clock.h
new file mode 100644
index 0000000..a22af15
--- /dev/null
+++ b/include/dt-bindings/clock/r8a77470-clock.h
@@ -0,0 +1,139 @@
+/*
+ * Copyright (C) 2019 Renesas Electronics Corporation
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2
+ * as published by the Free Software Foundation.
+ */
+
+#ifndef __DT_BINDINGS_CLOCK_R8A77470_H__
+#define __DT_BINDINGS_CLOCK_R8A77470_H__
+
+/* CPG */
+#define R8A77470_CLK_MAIN		0
+#define R8A77470_CLK_PLL0		1
+#define R8A77470_CLK_PLL1		2
+#define R8A77470_CLK_PLL3		3
+#define R8A77470_CLK_LB			4
+#define R8A77470_CLK_QSPI		5
+#define R8A77470_CLK_SDH		6
+#define R8A77470_CLK_SD0		7
+#define R8A77470_CLK_SD1		8
+#define R8A77470_CLK_RCAN		9
+
+/* MSTP0 */
+#define R8A77470_CLK_MSIOF0		0
+
+/* MSTP1 */
+#define R8A77470_CLK_VCP0		1
+#define R8A77470_CLK_VPC0		3
+#define R8A77470_CLK_STB		4
+#define R8A77470_CLK_TMU1		11
+#define R8A77470_CLK_3DG		12
+#define R8A77470_CLK_2DDMAC		15
+#define R8A77470_CLK_FDP1_0		19
+#define R8A77470_CLK_TMU3		21
+#define R8A77470_CLK_TMU2		22
+#define R8A77470_CLK_CMT0		24
+#define R8A77470_CLK_VSP1DU0		28
+#define R8A77470_CLK_VSP1_SY		31
+
+/* MSTP2 */
+#define R8A77470_CLK_MSIOF2		5
+#define R8A77470_CLK_MSIOF1		8
+#define R8A77470_CLK_SYS_DMAC1		18
+#define R8A77470_CLK_SYS_DMAC0		19
+
+/* MSTP3 */
+#define R8A77470_CLK_SDHI2		12
+#define R8A77470_CLK_SDHI1		13
+#define R8A77470_CLK_SDHI0		14
+#define R8A77470_CLK_USBHS_DMAC0_CH1	26
+#define R8A77470_CLK_USBHS_DMAC1_CH1	27
+#define R8A77470_CLK_CMT1		29
+#define R8A77470_CLK_USBHS_DMAC0_CH0	30
+#define R8A77470_CLK_USBHS_DMAC1_CH0	31
+
+/* MSTP4 */
+#define R8A77470_CLK_RWDT		2
+#define R8A77470_CLK_USB_DDM0		6
+#define R8A77470_CLK_IRQC		7
+#define R8A77470_CLK_INTC_SYS		8
+#define R8A77470_CLK_USB_DDM1		9
+
+/* MSTP5 */
+#define R8A77470_CLK_AUDIO_DMAC0	2
+#define R8A77470_CLK_PWM		23
+#define R8A77470_CLK_BOOT_ROM		30
+
+/* MSTP7 */
+#define R8A77470_CLK_USB_EHCI_0		3
+#define R8A77470_CLK_USBHS0		4
+#define R8A77470_CLK_USB_EHCI_1		5
+#define R8A77470_CLK_USBHS1		6
+#define R8A77470_CLK_HSCIF2		13
+#define R8A77470_CLK_SCIF5		14
+#define R8A77470_CLK_SCIF4		15
+#define R8A77470_CLK_HSCIF1		16
+#define R8A77470_CLK_HSCIF0		17
+#define R8A77470_CLK_SCIF3		18
+#define R8A77470_CLK_SCIF2		19
+#define R8A77470_CLK_SCIF1		20
+#define R8A77470_CLK_SCIF0		21
+#define R8A77470_CLK_DU1		23
+#define R8A77470_CLK_DU0		24
+#define R8A77470_CLK_LVDS		26
+#define R8A77470_CLK_DVE		27
+
+/* MSTP8 */
+#define R8A77470_CLK_IPMMU_SGX		0
+#define R8A77470_CLK_DVD		1
+#define R8A77470_CLK_VIN1		10
+#define R8A77470_CLK_VIN0		11
+#define R8A77470_CLK_ETHERAVB		12
+#define R8A77470_CLK_ETHER		13
+
+/* MSTP9 */
+#define R8A77470_CLK_IR_RECEIVER	3
+#define R8A77470_CLK_GPIO5		7
+#define R8A77470_CLK_GPIO4		8
+#define R8A77470_CLK_GPIO3		9
+#define R8A77470_CLK_GPIO2		10
+#define R8A77470_CLK_GPIO1		11
+#define R8A77470_CLK_GPIO0		12
+#define R8A77470_CLK_CAN1		15
+#define R8A77470_CLK_CAN0		16
+#define R8A77470_CLK_QUAD_SPI1		17
+#define R8A77470_CLK_QUAD_SPI0		18
+#define R8A77470_CLK_ADG		22
+#define R8A77470_CLK_I2C4		27
+#define R8A77470_CLK_I2C3		28
+#define R8A77470_CLK_I2C2		29
+#define R8A77470_CLK_I2C1		30
+#define R8A77470_CLK_I2C0		31
+
+/* MSTP10 */
+#define R8A77470_CLK_SSI_ALL		5
+#define R8A77470_CLK_SSI9		6
+#define R8A77470_CLK_SSI8		7
+#define R8A77470_CLK_SSI7		8
+#define R8A77470_CLK_SSI6		9
+#define R8A77470_CLK_SSI5		10
+#define R8A77470_CLK_SSI4		11
+#define R8A77470_CLK_SSI3		12
+#define R8A77470_CLK_SSI2		13
+#define R8A77470_CLK_SSI1		14
+#define R8A77470_CLK_SSI0		15
+#define R8A77470_CLK_SCU_ALL		17
+#define R8A77470_CLK_SCU_DVC1		18
+#define R8A77470_CLK_SCU_DVC0		19
+#define R8A77470_CLK_SCU_CTU1_MIX1	20
+#define R8A77470_CLK_SCU_CTU0_MIX0	21
+#define R8A77470_CLK_SCU_SRC6		25
+#define R8A77470_CLK_SCU_SRC5		26
+#define R8A77470_CLK_SCU_SRC4		27
+#define R8A77470_CLK_SCU_SRC3		28
+#define R8A77470_CLK_SCU_SRC2		29
+#define R8A77470_CLK_SCU_SRC1		30
+
+#endif /* __DT_BINDINGS_CLOCK_R8A77470_H__ */
-- 
2.7.4

  parent reply	other threads:[~2019-05-16  9:39 UTC|newest]

Thread overview: 54+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-16  9:39 [cip-dev] [PATCH v2 00/52] Add basic support for the iwg23s Fabrizio Castro
2019-05-16  9:39 ` [cip-dev] [PATCH v2 01/52] ARM: shmobile: r8a77470: basic SoC support Fabrizio Castro
2019-05-16  9:39 ` [cip-dev] [PATCH v2 02/52] clk: shmobile: rcar-gen2: Add quirks for the RZ/G1C Fabrizio Castro
2019-05-16  9:39 ` [cip-dev] [PATCH v2 03/52] clk: shmobile: Compile clk-rcar-gen2.c when using the r8a77470 Fabrizio Castro
2019-05-16  9:39 ` Fabrizio Castro [this message]
2019-05-16  9:39 ` [cip-dev] [PATCH v2 05/52] pinctrl: sh-pfc: Add r8a77470 PFC support Fabrizio Castro
2019-05-16  9:39 ` [cip-dev] [PATCH v2 06/52] pinctrl: sh-pfc: r8a77470: Add EtherAVB pin groups Fabrizio Castro
2019-05-16  9:39 ` [cip-dev] [PATCH v2 07/52] pinctrl: sh-pfc: r8a77470: Add I2C4 " Fabrizio Castro
2019-05-16  9:39 ` [cip-dev] [PATCH v2 08/52] pinctrl: sh-pfc: r8a77470: Add DU0 " Fabrizio Castro
2019-05-16  9:39 ` [cip-dev] [PATCH v2 09/52] pinctrl: sh-pfc: r8a77470: Add QSPI0 " Fabrizio Castro
2019-05-16  9:39 ` [cip-dev] [PATCH v2 10/52] pinctrl: sh-pfc: r8a77470: Add SDHI2 " Fabrizio Castro
2019-05-16  9:39 ` [cip-dev] [PATCH v2 11/52] pinctrl: sh-pfc: r8a77470: Add USB " Fabrizio Castro
2019-05-16  9:39 ` [cip-dev] [PATCH v2 12/52] pinctrl: sh-pfc: r8a77470: Add remaining I2C " Fabrizio Castro
2019-05-16  9:39 ` [cip-dev] [PATCH v2 13/52] pinctrl: sh-pfc: r8a77470: Add DU1 " Fabrizio Castro
2019-05-16  9:39 ` [cip-dev] [PATCH v2 14/52] pinctrl: sh-pfc: r8a77470: Add VIN " Fabrizio Castro
2019-05-16  9:39 ` [cip-dev] [PATCH v2 15/52] pinctrl: sh-pfc: r8a77470: Add QSPI1 " Fabrizio Castro
2019-05-16  9:39 ` [cip-dev] [PATCH v2 16/52] soc: renesas: rcar-rst: Add support for RZ/G1C Fabrizio Castro
2019-05-16  9:39 ` [cip-dev] [PATCH v2 17/52] ARM: debug-ll: Add support for r8a77470 Fabrizio Castro
2019-05-16  9:39 ` [cip-dev] [PATCH v2 18/52] gpiolib: Extract mask allocation into subroutine Fabrizio Castro
2019-05-16  9:39 ` [cip-dev] [PATCH v2 19/52] gpiolib: Support 'gpio-reserved-ranges' property Fabrizio Castro
2019-05-16  9:39 ` [cip-dev] [PATCH v2 20/52] gpiolib: Avoid calling chip->request() for unused gpios Fabrizio Castro
2019-05-16  9:39 ` [cip-dev] [PATCH v2 21/52] gpio: rcar: Implement gpiochip.set_multiple() Fabrizio Castro
2019-05-16  9:39 ` [cip-dev] [PATCH v2 22/52] gpio: rcar: Add GPIO hole support Fabrizio Castro
2019-05-16  9:39 ` [cip-dev] [PATCH v2 23/52] dt-bindings: gpio: Add a gpio-reserved-ranges property Fabrizio Castro
2019-05-16  9:39 ` [cip-dev] [PATCH v2 24/52] dt-bindings: gpio: rcar: Add gpio-reserved-ranges support Fabrizio Castro
2019-05-16  9:39 ` [cip-dev] [PATCH v2 25/52] ARM: shmobile: defconfig: Enable r8a77470 SoC Fabrizio Castro
2019-05-16  9:39 ` [cip-dev] [PATCH v2 26/52] ARM: multi_v7_defconfig: " Fabrizio Castro
2019-05-16  9:39 ` [cip-dev] [PATCH v2 27/52] serial: sh-sci: Document r8a77470 bindings Fabrizio Castro
2019-05-16  9:39 ` [cip-dev] [PATCH v2 28/52] dt-bindings: sram: Document renesas, smp-sram Fabrizio Castro
2019-05-16  9:39 ` [cip-dev] [PATCH v2 29/52] ARM: dts: r8a77470: Initial SoC device tree Fabrizio Castro
2019-05-16  9:39 ` [cip-dev] [PATCH v2 30/52] clk: shmobile: Document r8a77470 CPG clock support Fabrizio Castro
2019-05-16  9:39 ` [cip-dev] [PATCH v2 31/52] clk: shmobile: Document r8a77470 CPG DIV6 " Fabrizio Castro
2019-05-16  9:39 ` [cip-dev] [PATCH v2 32/52] clk: shmobile: Document r8a77470 MSTP " Fabrizio Castro
2019-05-16  9:39 ` [cip-dev] [PATCH v2 33/52] ARM: dts: r8a77470: Add clocks Fabrizio Castro
2019-05-16  9:39 ` [cip-dev] [PATCH v2 34/52] dt-bindings: arm: Document iW-RainboW-G23S single board computer Fabrizio Castro
2019-05-16  9:39 ` [cip-dev] [PATCH v2 35/52] ARM: dts: iwg23s-sbc: Add support for iWave G23S-SBC based on RZ/G1C Fabrizio Castro
2019-05-16  9:39 ` [cip-dev] [PATCH v2 36/52] dt-bindings: pinctrl: sh-pfc: Document r8a77470 PFC support Fabrizio Castro
2019-05-16  9:39 ` [cip-dev] [PATCH v2 37/52] ARM: dts: r8a77470: Add " Fabrizio Castro
2019-05-16  9:39 ` [cip-dev] [PATCH v2 38/52] dt-bindings: gpio: rcar: Add r8a77470 (RZ/G1C) support Fabrizio Castro
2019-05-16  9:39 ` [cip-dev] [PATCH v2 39/52] ARM: dts: r8a77470: Add GPIO support Fabrizio Castro
2019-05-16  9:39 ` [cip-dev] [PATCH v2 40/52] ARM: dts: r8a77470: Add SCIF support Fabrizio Castro
2019-05-16  9:39 ` [cip-dev] [PATCH v2 41/52] dt-bindings: irqchip: renesas-irqc: Document r8a77470 support Fabrizio Castro
2019-05-16  9:39 ` [cip-dev] [PATCH v2 42/52] ARM: dts: r8a77470: Add IRQC support Fabrizio Castro
2019-05-16  9:39 ` [cip-dev] [PATCH v2 43/52] ARM: dts: iwg23s-sbc: Add pinctl support for scif1 Fabrizio Castro
2019-05-16  9:39 ` [cip-dev] [PATCH v2 44/52] dt-bindings: rcar-dmac: Document missing error interrupt Fabrizio Castro
2019-05-16  9:39 ` [cip-dev] [PATCH v2 45/52] dt-bindings: rcar-dmac: Document r8a77470 support Fabrizio Castro
2019-05-16  9:39 ` [cip-dev] [PATCH v2 46/52] ARM: dts: r8a77470: Add SYS-DMAC support Fabrizio Castro
2019-05-16  9:39 ` [cip-dev] [PATCH v2 47/52] ARM: dts: r8a77470: Add SCIF DMA support Fabrizio Castro
2019-05-16  9:40 ` [cip-dev] [PATCH v2 48/52] dt-bindings: net: renesas-ravb: Add support for r8a77470 SoC Fabrizio Castro
2019-05-16  9:40 ` [cip-dev] [PATCH v2 49/52] ARM: dts: r8a77470: Add EtherAVB support Fabrizio Castro
2019-05-16  9:40 ` [cip-dev] [PATCH v2 50/52] ARM: dts: iwg23s-sbc: " Fabrizio Castro
2019-05-16  9:40 ` [cip-dev] [PATCH v2 51/52] ARM: dts: iwg23s-sbc: specify EtherAVB PHY IRQ Fabrizio Castro
2019-05-16  9:40 ` [cip-dev] [PATCH v2 52/52] ARM: dts: iwg23s-sbc: Add pinctl support for EtherAVB Fabrizio Castro
2019-05-17  2:25 ` [cip-dev] [PATCH v2 00/52] Add basic support for the iwg23s Nobuhiro Iwamatsu

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=1557999604-1117-5-git-send-email-fabrizio.castro@bp.renesas.com \
    --to=fabrizio.castro@bp.renesas.com \
    --cc=cip-dev@lists.cip-project.org \
    /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.