xref: /OK3568_Linux_fs/kernel/include/dt-bindings/clock/bcm281xx.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /*
2*4882a593Smuzhiyun  * Copyright (C) 2013 Broadcom Corporation
3*4882a593Smuzhiyun  * Copyright 2013 Linaro Limited
4*4882a593Smuzhiyun  *
5*4882a593Smuzhiyun  * This program is free software; you can redistribute it and/or
6*4882a593Smuzhiyun  * modify it under the terms of the GNU General Public License as
7*4882a593Smuzhiyun  * published by the Free Software Foundation version 2.
8*4882a593Smuzhiyun  *
9*4882a593Smuzhiyun  * This program is distributed "as is" WITHOUT ANY WARRANTY of any
10*4882a593Smuzhiyun  * kind, whether express or implied; without even the implied warranty
11*4882a593Smuzhiyun  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12*4882a593Smuzhiyun  * GNU General Public License for more details.
13*4882a593Smuzhiyun  */
14*4882a593Smuzhiyun 
15*4882a593Smuzhiyun #ifndef _CLOCK_BCM281XX_H
16*4882a593Smuzhiyun #define _CLOCK_BCM281XX_H
17*4882a593Smuzhiyun 
18*4882a593Smuzhiyun /*
19*4882a593Smuzhiyun  * This file defines the values used to specify clocks provided by
20*4882a593Smuzhiyun  * the clock control units (CCUs) on Broadcom BCM281XX family SoCs.
21*4882a593Smuzhiyun  */
22*4882a593Smuzhiyun 
23*4882a593Smuzhiyun /*
24*4882a593Smuzhiyun  * These are the bcm281xx CCU device tree "compatible" strings.
25*4882a593Smuzhiyun  * We're stuck with using "bcm11351" in the string because wild
26*4882a593Smuzhiyun  * cards aren't allowed, and that name was the first one defined
27*4882a593Smuzhiyun  * in this family of devices.
28*4882a593Smuzhiyun  */
29*4882a593Smuzhiyun #define BCM281XX_DT_ROOT_CCU_COMPAT	"brcm,bcm11351-root-ccu"
30*4882a593Smuzhiyun #define BCM281XX_DT_AON_CCU_COMPAT	"brcm,bcm11351-aon-ccu"
31*4882a593Smuzhiyun #define BCM281XX_DT_HUB_CCU_COMPAT	"brcm,bcm11351-hub-ccu"
32*4882a593Smuzhiyun #define BCM281XX_DT_MASTER_CCU_COMPAT	"brcm,bcm11351-master-ccu"
33*4882a593Smuzhiyun #define BCM281XX_DT_SLAVE_CCU_COMPAT	"brcm,bcm11351-slave-ccu"
34*4882a593Smuzhiyun 
35*4882a593Smuzhiyun /* root CCU clock ids */
36*4882a593Smuzhiyun 
37*4882a593Smuzhiyun #define BCM281XX_ROOT_CCU_FRAC_1M		0
38*4882a593Smuzhiyun #define BCM281XX_ROOT_CCU_CLOCK_COUNT		1
39*4882a593Smuzhiyun 
40*4882a593Smuzhiyun /* aon CCU clock ids */
41*4882a593Smuzhiyun 
42*4882a593Smuzhiyun #define BCM281XX_AON_CCU_HUB_TIMER		0
43*4882a593Smuzhiyun #define BCM281XX_AON_CCU_PMU_BSC		1
44*4882a593Smuzhiyun #define BCM281XX_AON_CCU_PMU_BSC_VAR		2
45*4882a593Smuzhiyun #define BCM281XX_AON_CCU_CLOCK_COUNT		3
46*4882a593Smuzhiyun 
47*4882a593Smuzhiyun /* hub CCU clock ids */
48*4882a593Smuzhiyun 
49*4882a593Smuzhiyun #define BCM281XX_HUB_CCU_TMON_1M		0
50*4882a593Smuzhiyun #define BCM281XX_HUB_CCU_CLOCK_COUNT		1
51*4882a593Smuzhiyun 
52*4882a593Smuzhiyun /* master CCU clock ids */
53*4882a593Smuzhiyun 
54*4882a593Smuzhiyun #define BCM281XX_MASTER_CCU_SDIO1		0
55*4882a593Smuzhiyun #define BCM281XX_MASTER_CCU_SDIO2		1
56*4882a593Smuzhiyun #define BCM281XX_MASTER_CCU_SDIO3		2
57*4882a593Smuzhiyun #define BCM281XX_MASTER_CCU_SDIO4		3
58*4882a593Smuzhiyun #define BCM281XX_MASTER_CCU_USB_IC		4
59*4882a593Smuzhiyun #define BCM281XX_MASTER_CCU_HSIC2_48M		5
60*4882a593Smuzhiyun #define BCM281XX_MASTER_CCU_HSIC2_12M		6
61*4882a593Smuzhiyun #define BCM281XX_MASTER_CCU_CLOCK_COUNT		7
62*4882a593Smuzhiyun 
63*4882a593Smuzhiyun /* slave CCU clock ids */
64*4882a593Smuzhiyun 
65*4882a593Smuzhiyun #define BCM281XX_SLAVE_CCU_UARTB		0
66*4882a593Smuzhiyun #define BCM281XX_SLAVE_CCU_UARTB2		1
67*4882a593Smuzhiyun #define BCM281XX_SLAVE_CCU_UARTB3		2
68*4882a593Smuzhiyun #define BCM281XX_SLAVE_CCU_UARTB4		3
69*4882a593Smuzhiyun #define BCM281XX_SLAVE_CCU_SSP0			4
70*4882a593Smuzhiyun #define BCM281XX_SLAVE_CCU_SSP2			5
71*4882a593Smuzhiyun #define BCM281XX_SLAVE_CCU_BSC1			6
72*4882a593Smuzhiyun #define BCM281XX_SLAVE_CCU_BSC2			7
73*4882a593Smuzhiyun #define BCM281XX_SLAVE_CCU_BSC3			8
74*4882a593Smuzhiyun #define BCM281XX_SLAVE_CCU_PWM			9
75*4882a593Smuzhiyun #define BCM281XX_SLAVE_CCU_CLOCK_COUNT		10
76*4882a593Smuzhiyun 
77*4882a593Smuzhiyun #endif /* _CLOCK_BCM281XX_H */
78