dts: arm: Add clocks u(s)art on stm32 family
Add "clocks" property on u(s)arts nodes on stm32 socs Add a dt clocks binding file and rework clock_control header file include new device tree binding file. include/dt-bindings folder is introduced as dt-bindings placeholder Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
parent
c8852fb379
commit
f8240018d0
15 changed files with 70 additions and 10 deletions
17
include/dt-bindings/clock/stm32_clock.h
Normal file
17
include/dt-bindings/clock/stm32_clock.h
Normal file
|
@ -0,0 +1,17 @@
|
|||
/*
|
||||
* Copyright (c) 2017 Linaro Limited
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
#ifndef __STM32_CLOCK_H
|
||||
#define __STM32_CLOCK_H
|
||||
|
||||
/* clock bus references */
|
||||
#define STM32_CLOCK_BUS_AHB1 0
|
||||
#define STM32_CLOCK_BUS_AHB2 1
|
||||
#define STM32_CLOCK_BUS_APB1 2
|
||||
#define STM32_CLOCK_BUS_APB2 3
|
||||
#define STM32_CLOCK_BUS_APB1_2 4
|
||||
|
||||
|
||||
#endif /* __STM32_CLOCK_H */
|
Loading…
Add table
Add a link
Reference in a new issue