esp32s2: drivers: clock_control: add support

add clock control driver support for esp32s2 SoC.

Signed-off-by: Glauber Maroto Ferreira <glauber.ferreira@espressif.com>
This commit is contained in:
Glauber Maroto Ferreira 2021-08-06 19:58:06 -03:00 committed by Christopher Friedt
commit e605efc698
11 changed files with 366 additions and 0 deletions

View file

@ -4,7 +4,9 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <mem.h>
#include <xtensa/xtensa.dtsi>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/clock/esp32s2_clock.h>
#include <dt-bindings/interrupt-controller/esp32s2-xtensa-intmux.h>
/ {
@ -19,6 +21,7 @@
device_type = "cpu";
compatible = "cdns,tensilica-xtensa-lx7";
reg = <0>;
clock-source = <ESP32_CLK_SRC_PLL>;
};
};
@ -42,6 +45,16 @@
status = "okay";
};
rtc: rtc@3f408000 {
compatible = "espressif,esp32-rtc";
reg = <0x3f408000 0x0D8>;
label = "RTC";
xtal-freq = <ESP32_CLK_XTAL_40M>;
xtal-div = <0>;
#clock-cells = <1>;
status = "ok";
};
uart0: uart@3f400000 {
compatible = "espressif,esp32s2-uart";
reg = <0x3f400000 0x400>;