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:
parent
1fb4eea95c
commit
e605efc698
11 changed files with 366 additions and 0 deletions
|
@ -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>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue