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:
parent
6c4751220a
commit
5f83c3fe4d
|
@ -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";
|
||||
};
|
||||
|
||||
|
|
|
@ -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>;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue