dts: arm: ambiq: Use DT_FREQ macro for frequency configuration.

This commit updates the Ambiq Apollo4x series soc clock frequency
of defined instances to align with context of these dts files.

Signed-off-by: Aaron Ye <aye@ambiq.com>
This commit is contained in:
Aaron Ye 2023-12-19 10:15:03 +08:00 committed by Fabio Baltieri
parent 6c4751220a
commit 5f83c3fe4d
3 changed files with 4 additions and 3 deletions

View file

@ -82,7 +82,7 @@
compatible = "ambiq,spi";
pinctrl-0 = <&spi1_default>;
pinctrl-names = "default";
clock-frequency = <1000000>;
clock-frequency = <DT_FREQ_M(1)>;
status = "okay";
};

View file

@ -2,6 +2,7 @@
#include <arm/armv7-m.dtsi>
#include <mem.h>
#include <freq.h>
#include <zephyr/dt-bindings/i2c/i2c.h>
#include <zephyr/dt-bindings/gpio/gpio.h>
@ -9,7 +10,7 @@
clocks {
uartclk: apb-pclk {
compatible = "fixed-clock";
clock-frequency = <24000000>;
clock-frequency = <DT_FREQ_M(24)>;
#clock-cells = <0>;
};
};

View file

@ -10,7 +10,7 @@
clocks {
uartclk: apb-pclk {
compatible = "fixed-clock";
clock-frequency = <24000000>;
clock-frequency = <DT_FREQ_M(24)>;
#clock-cells = <0>;
};
xo32m: xo32m {