[PATCH V2 3/7] dt-bindings: clock: Add R9A07G043U CPG Clock and Reset Definitions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Define RZ/G2UL (R9A07G043U) Clock Pulse Generator Core Clock and module
clock outputs, as listed in Table 7.1.4.2 ("Clock List r0.51") and also
add Reset definitions referring to registers CPG_RST_* in Section 7.2.3
("Register configuration") of the RZ/G2UL Hardware User's Manual (Rev.
0.51, Nov. 2021).

Signed-off-by: Biju Das <biju.das.jz@xxxxxxxxxxxxxx>
Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@xxxxxxxxxxxxxx>
---
v1->v2:
 * No change
---
 include/dt-bindings/clock/r9a07g043u-cpg.h | 186 +++++++++++++++++++++
 1 file changed, 186 insertions(+)
 create mode 100644 include/dt-bindings/clock/r9a07g043u-cpg.h

diff --git a/include/dt-bindings/clock/r9a07g043u-cpg.h b/include/dt-bindings/clock/r9a07g043u-cpg.h
new file mode 100644
index 000000000000..447f0c2471d3
--- /dev/null
+++ b/include/dt-bindings/clock/r9a07g043u-cpg.h
@@ -0,0 +1,186 @@
+/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+ *
+ * Copyright (C) 2022 Renesas Electronics Corp.
+ */
+#ifndef __DT_BINDINGS_CLOCK_R9A07G043U_CPG_H__
+#define __DT_BINDINGS_CLOCK_R9A07G043U_CPG_H__
+
+#include <dt-bindings/clock/renesas-cpg-mssr.h>
+
+/* R9A07G043U CPG Core Clocks */
+#define R9A07G043U_CLK_I		0
+#define R9A07G043U_CLK_I2		1
+#define R9A07G043U_CLK_S0		2
+#define R9A07G043U_CLK_SPI0		3
+#define R9A07G043U_CLK_SPI1		4
+#define R9A07G043U_CLK_SD0		5
+#define R9A07G043U_CLK_SD1		6
+#define R9A07G043U_CLK_M0		7
+#define R9A07G043U_CLK_M2		8
+#define R9A07G043U_CLK_M3		9
+#define R9A07G043U_CLK_HP		10
+#define R9A07G043U_CLK_TSU		11
+#define R9A07G043U_CLK_ZT		12
+#define R9A07G043U_CLK_P0		13
+#define R9A07G043U_CLK_P1		14
+#define R9A07G043U_CLK_P2		15
+#define R9A07G043U_CLK_AT		16
+#define R9A07G043U_OSCCLK		17
+#define R9A07G043U_CLK_P0_DIV2		18
+
+/* R9A07G043U Module Clocks */
+#define R9A07G043U_CA55_SCLK		0
+#define R9A07G043U_CA55_PCLK		1
+#define R9A07G043U_CA55_ATCLK		2
+#define R9A07G043U_CA55_GICCLK		3
+#define R9A07G043U_CA55_PERICLK		4
+#define R9A07G043U_CA55_ACLK		5
+#define R9A07G043U_CA55_TSCLK		6
+#define R9A07G043U_GIC600_GICCLK	7
+#define R9A07G043U_IA55_CLK		8
+#define R9A07G043U_IA55_PCLK		9
+#define R9A07G043U_MHU_PCLK		10
+#define R9A07G043U_SYC_CNT_CLK		11
+#define R9A07G043U_DMAC_ACLK		12
+#define R9A07G043U_DMAC_PCLK		13
+#define R9A07G043U_OSTM0_PCLK		14
+#define R9A07G043U_OSTM1_PCLK		15
+#define R9A07G043U_OSTM2_PCLK		16
+#define R9A07G043U_MTU_X_MCK_MTU3	17
+#define R9A07G043U_POE3_CLKM_POE	18
+#define R9A07G043U_WDT0_PCLK		19
+#define R9A07G043U_WDT0_CLK		20
+#define R9A07G043U_WDT2_PCLK		21
+#define R9A07G043U_WDT2_CLK		22
+#define R9A07G043U_SPI_CLK2		23
+#define R9A07G043U_SPI_CLK		24
+#define R9A07G043U_SDHI0_IMCLK		25
+#define R9A07G043U_SDHI0_IMCLK2		26
+#define R9A07G043U_SDHI0_CLK_HS		27
+#define R9A07G043U_SDHI0_ACLK		28
+#define R9A07G043U_SDHI1_IMCLK		29
+#define R9A07G043U_SDHI1_IMCLK2		30
+#define R9A07G043U_SDHI1_CLK_HS		31
+#define R9A07G043U_SDHI1_ACLK		32
+#define R9A07G043U_ISU_ACLK		33
+#define R9A07G043U_ISU_PCLK		34
+#define R9A07G043U_CRU_SYSCLK		35
+#define R9A07G043U_CRU_VCLK		36
+#define R9A07G043U_CRU_PCLK		37
+#define R9A07G043U_CRU_ACLK		38
+#define R9A07G043U_LCDC_CLK_A		39
+#define R9A07G043U_LCDC_CLK_P		40
+#define R9A07G043U_LCDC_CLK_D		41
+#define R9A07G043U_SSI0_PCLK2		42
+#define R9A07G043U_SSI0_PCLK_SFR	43
+#define R9A07G043U_SSI1_PCLK2		44
+#define R9A07G043U_SSI1_PCLK_SFR	45
+#define R9A07G043U_SSI2_PCLK2		46
+#define R9A07G043U_SSI2_PCLK_SFR	47
+#define R9A07G043U_SSI3_PCLK2		48
+#define R9A07G043U_SSI3_PCLK_SFR	49
+#define R9A07G043U_SRC_CLKP		50
+#define R9A07G043U_USB_U2H0_HCLK	51
+#define R9A07G043U_USB_U2H1_HCLK	52
+#define R9A07G043U_USB_U2P_EXR_CPUCLK	53
+#define R9A07G043U_USB_PCLK		54
+#define R9A07G043U_ETH0_CLK_AXI		55
+#define R9A07G043U_ETH0_CLK_CHI		56
+#define R9A07G043U_ETH1_CLK_AXI		57
+#define R9A07G043U_ETH1_CLK_CHI		58
+#define R9A07G043U_I2C0_PCLK		59
+#define R9A07G043U_I2C1_PCLK		60
+#define R9A07G043U_I2C2_PCLK		61
+#define R9A07G043U_I2C3_PCLK		62
+#define R9A07G043U_SCIF0_CLK_PCK	63
+#define R9A07G043U_SCIF1_CLK_PCK	64
+#define R9A07G043U_SCIF2_CLK_PCK	65
+#define R9A07G043U_SCIF3_CLK_PCK	66
+#define R9A07G043U_SCIF4_CLK_PCK	67
+#define R9A07G043U_SCI0_CLKP		68
+#define R9A07G043U_SCI1_CLKP		69
+#define R9A07G043U_IRDA_CLKP		70
+#define R9A07G043U_RSPI0_CLKB		71
+#define R9A07G043U_RSPI1_CLKB		72
+#define R9A07G043U_RSPI2_CLKB		73
+#define R9A07G043U_CANFD_PCLK		74
+#define R9A07G043U_GPIO_HCLK		75
+#define R9A07G043U_ADC_ADCLK		76
+#define R9A07G043U_ADC_PCLK		77
+#define R9A07G043U_TSU_PCLK		78
+
+/* R9A07G043U Resets */
+#define R9A07G043U_CA55_RST_1_0			0
+#define R9A07G043U_CA55_RST_1_1			1
+#define R9A07G043U_CA55_RST_3_0			2
+#define R9A07G043U_CA55_RST_3_1			3
+#define R9A07G043U_CA55_RST_4			4
+#define R9A07G043U_CA55_RST_5			5
+#define R9A07G043U_CA55_RST_6			6
+#define R9A07G043U_CA55_RST_7			7
+#define R9A07G043U_CA55_RST_8			8
+#define R9A07G043U_CA55_RST_9			9
+#define R9A07G043U_CA55_RST_10			10
+#define R9A07G043U_CA55_RST_11			11
+#define R9A07G043U_CA55_RST_12			12
+#define R9A07G043U_GIC600_GICRESET_N		13
+#define R9A07G043U_GIC600_DBG_GICRESET_N	14
+#define R9A07G043U_IA55_RESETN			15
+#define R9A07G043U_MHU_RESETN			16
+#define R9A07G043U_DMAC_ARESETN			17
+#define R9A07G043U_DMAC_RST_ASYNC		18
+#define R9A07G043U_SYC_RESETN			19
+#define R9A07G043U_OSTM0_PRESETZ		20
+#define R9A07G043U_OSTM1_PRESETZ		21
+#define R9A07G043U_OSTM2_PRESETZ		22
+#define R9A07G043U_MTU_X_PRESET_MTU3		23
+#define R9A07G043U_POE3_RST_M_REG		24
+#define R9A07G043U_WDT0_PRESETN			25
+#define R9A07G043U_WDT2_PRESETN			26
+#define R9A07G043U_SPI_RST			27
+#define R9A07G043U_SDHI0_IXRST			28
+#define R9A07G043U_SDHI1_IXRST			29
+#define R9A07G043U_ISU_ARESETN			30
+#define R9A07G043U_ISU_PRESETN			31
+#define R9A07G043U_CRU_CMN_RSTB			32
+#define R9A07G043U_CRU_PRESETN			33
+#define R9A07G043U_CRU_ARESETN			34
+#define R9A07G043U_SRC_RST			35
+#define R9A07G043U_USB_U2H0_HRESETN		36
+#define R9A07G043U_USB_U2H1_HRESETN		37
+#define R9A07G043U_USB_U2P_EXL_SYSRST		38
+#define R9A07G043U_USB_PRESETN			39
+#define R9A07G043U_I2C0_MRST			40
+#define R9A07G043U_I2C1_MRST			41
+#define R9A07G043U_I2C2_MRST			42
+#define R9A07G043U_I2C3_MRST			43
+#define R9A07G043U_SCI0_RST			44
+#define R9A07G043U_SCI1_RST			45
+#define R9A07G043U_IRDA_RST			46
+#define R9A07G043U_RSPI0_RST			46
+#define R9A07G043U_RSPI1_RST			48
+#define R9A07G043U_RSPI2_RST			49
+#define R9A07G043U_CANFD_RSTP_N			50
+#define R9A07G043U_CANFD_RSTC_N			51
+#define R9A07G043U_GPIO_RSTN			52
+#define R9A07G043U_GPIO_PORT_RESETN		53
+#define R9A07G043U_GPIO_SPARE_RESETN		54
+#define R9A07G043U_TSU_PRESETN			55
+#define R9A07G043U_SSI0_RST_M2_REG		56
+#define R9A07G043U_SSI1_RST_M2_REG		57
+#define R9A07G043U_SSI2_RST_M2_REG		58
+#define R9A07G043U_ETH0_RST_HW_N		59
+#define R9A07G043U_SCIF0_RST_SYSTEM_N		60
+#define R9A07G043U_SCIF1_RST_SYSTEM_N		61
+#define R9A07G043U_SCIF2_RST_SYSTEM_N		62
+#define R9A07G043U_SCIF3_RST_SYSTEM_N		63
+
+/* Type-1 Specific */
+#define R9A07G043U_SSI3_RST_M2_REG		64
+#define R9A07G043U_ETH1_RST_HW_N		65
+#define R9A07G043U_SCIF4_RST_SYSTEM_N		66
+#define R9A07G043U_ADC_PRESETN			67
+#define R9A07G043U_ADC_ADRST_N			68
+#define R9A07G043U_LCDC_RESET_N			69
+
+#endif /* __DT_BINDINGS_CLOCK_R9A07G043U_CPG_H__ */
-- 
2.17.1




[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux