blob: a267ac25014355493fa29b5830824c5a5982884c [file] [log] [blame]
Kuninori Morimoto5d169ce2018-09-07 01:52:28 +00001/* SPDX-License-Identifier: GPL-2.0
2 *
Wolfram Sangb6face42014-05-14 03:10:06 +02003 * Copyright (C) 2014 Renesas Solutions Corp.
4 * Copyright (C) 2014 Wolfram Sang, Sang Engineering <wsa@sang-engineering.com>
Wolfram Sangb6face42014-05-14 03:10:06 +02005 */
6
7#ifndef __DT_BINDINGS_CLOCK_R7S72100_H__
8#define __DT_BINDINGS_CLOCK_R7S72100_H__
9
10#define R7S72100_CLK_PLL 0
Geert Uytterhoeven44842cc2017-10-12 11:35:04 +020011#define R7S72100_CLK_I 1
12#define R7S72100_CLK_G 2
Wolfram Sangb6face42014-05-14 03:10:06 +020013
Chris Brandtfe811e12017-06-02 09:06:49 -070014/* MSTP2 */
15#define R7S72100_CLK_CORESIGHT 0
16
Wolfram Sangb6face42014-05-14 03:10:06 +020017/* MSTP3 */
Chris Brandtfe811e12017-06-02 09:06:49 -070018#define R7S72100_CLK_IEBUS 7
19#define R7S72100_CLK_IRDA 6
20#define R7S72100_CLK_LIN0 5
21#define R7S72100_CLK_LIN1 4
Wolfram Sangb6face42014-05-14 03:10:06 +020022#define R7S72100_CLK_MTU2 3
Chris Brandtfe811e12017-06-02 09:06:49 -070023#define R7S72100_CLK_CAN 2
24#define R7S72100_CLK_ADCPWR 1
25#define R7S72100_CLK_PWM 0
Wolfram Sangb6face42014-05-14 03:10:06 +020026
27/* MSTP4 */
28#define R7S72100_CLK_SCIF0 7
29#define R7S72100_CLK_SCIF1 6
30#define R7S72100_CLK_SCIF2 5
31#define R7S72100_CLK_SCIF3 4
32#define R7S72100_CLK_SCIF4 3
33#define R7S72100_CLK_SCIF5 2
34#define R7S72100_CLK_SCIF6 1
35#define R7S72100_CLK_SCIF7 0
36
Chris Brandtcfddd3d2017-01-23 08:55:18 -050037/* MSTP5 */
Chris Brandtfe811e12017-06-02 09:06:49 -070038#define R7S72100_CLK_SCI0 7
39#define R7S72100_CLK_SCI1 6
40#define R7S72100_CLK_SG0 5
41#define R7S72100_CLK_SG1 4
42#define R7S72100_CLK_SG2 3
43#define R7S72100_CLK_SG3 2
Chris Brandtcfddd3d2017-01-23 08:55:18 -050044#define R7S72100_CLK_OSTM0 1
45#define R7S72100_CLK_OSTM1 0
46
Chris Brandt929ded32017-03-29 10:30:31 -070047/* MSTP6 */
Chris Brandtfe811e12017-06-02 09:06:49 -070048#define R7S72100_CLK_ADC 7
49#define R7S72100_CLK_CEU 6
50#define R7S72100_CLK_DOC0 5
51#define R7S72100_CLK_DOC1 4
52#define R7S72100_CLK_DRC0 3
53#define R7S72100_CLK_DRC1 2
54#define R7S72100_CLK_JCU 1
Chris Brandt929ded32017-03-29 10:30:31 -070055#define R7S72100_CLK_RTC 0
56
Chris Brandt969244f2016-09-01 21:40:10 -040057/* MSTP7 */
Chris Brandtfe811e12017-06-02 09:06:49 -070058#define R7S72100_CLK_VDEC0 7
59#define R7S72100_CLK_VDEC1 6
Chris Brandt969244f2016-09-01 21:40:10 -040060#define R7S72100_CLK_ETHER 4
Chris Brandtfe811e12017-06-02 09:06:49 -070061#define R7S72100_CLK_NAND 3
Chris Brandt40c9bbe2017-04-28 12:01:33 -070062#define R7S72100_CLK_USB0 1
63#define R7S72100_CLK_USB1 0
Chris Brandt969244f2016-09-01 21:40:10 -040064
Chris Brandt6c35a662016-09-15 15:34:02 -040065/* MSTP8 */
Chris Brandtfe811e12017-06-02 09:06:49 -070066#define R7S72100_CLK_IMR0 7
67#define R7S72100_CLK_IMR1 6
68#define R7S72100_CLK_IMRDISP 5
Chris Brandt6c35a662016-09-15 15:34:02 -040069#define R7S72100_CLK_MMCIF 4
Chris Brandtfe811e12017-06-02 09:06:49 -070070#define R7S72100_CLK_MLB 3
71#define R7S72100_CLK_ETHAVB 2
72#define R7S72100_CLK_SCUX 1
Chris Brandt6c35a662016-09-15 15:34:02 -040073
Wolfram Sangd1655662014-05-14 03:10:11 +020074/* MSTP9 */
75#define R7S72100_CLK_I2C0 7
76#define R7S72100_CLK_I2C1 6
77#define R7S72100_CLK_I2C2 5
78#define R7S72100_CLK_I2C3 4
Chris Brandtfe811e12017-06-02 09:06:49 -070079#define R7S72100_CLK_SPIBSC0 3
80#define R7S72100_CLK_SPIBSC1 2
81#define R7S72100_CLK_VDC50 1 /* and LVDS */
82#define R7S72100_CLK_VDC51 0
Wolfram Sangd1655662014-05-14 03:10:11 +020083
Wolfram Sang52eed4f2014-05-14 03:10:13 +020084/* MSTP10 */
85#define R7S72100_CLK_SPI0 7
86#define R7S72100_CLK_SPI1 6
87#define R7S72100_CLK_SPI2 5
88#define R7S72100_CLK_SPI3 4
89#define R7S72100_CLK_SPI4 3
Chris Brandtfe811e12017-06-02 09:06:49 -070090#define R7S72100_CLK_CDROM 2
91#define R7S72100_CLK_SPDIF 1
92#define R7S72100_CLK_RGPVG2 0
93
94/* MSTP11 */
95#define R7S72100_CLK_SSI0 5
96#define R7S72100_CLK_SSI1 4
97#define R7S72100_CLK_SSI2 3
98#define R7S72100_CLK_SSI3 2
99#define R7S72100_CLK_SSI4 1
100#define R7S72100_CLK_SSI5 0
Wolfram Sang52eed4f2014-05-14 03:10:13 +0200101
Chris Brandt7c8522b2016-09-22 17:32:09 -0400102/* MSTP12 */
Chris Brandt3d2abda2017-01-25 15:28:10 -0500103#define R7S72100_CLK_SDHI00 3
104#define R7S72100_CLK_SDHI01 2
105#define R7S72100_CLK_SDHI10 1
106#define R7S72100_CLK_SDHI11 0
Chris Brandt7c8522b2016-09-22 17:32:09 -0400107
Chris Brandtfe811e12017-06-02 09:06:49 -0700108/* MSTP13 */
109#define R7S72100_CLK_PIX1 2
110#define R7S72100_CLK_PIX0 1
111
Wolfram Sangb6face42014-05-14 03:10:06 +0200112#endif /* __DT_BINDINGS_CLOCK_R7S72100_H__ */