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:
Erwan Gouriou 2017-07-25 16:04:15 +02:00 committed by Kumar Gala
commit f8240018d0
15 changed files with 70 additions and 10 deletions

View 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 */