dts: gigadevice: always use DT_FREQ_M

Use the DT_FREQ_M helper to improve readability on clock frequencies.

Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
This commit is contained in:
Gerard Marull-Paretas 2022-08-23 23:59:40 +02:00 committed by Fabio Baltieri
parent c50316ecde
commit 61889de3d1
4 changed files with 7 additions and 4 deletions

View file

@ -4,6 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <freq.h>
#include <arm/armv7-m.dtsi>
#include <zephyr/dt-bindings/gpio/gpio.h>
#include <zephyr/dt-bindings/pwm/pwm.h>
@ -15,7 +16,7 @@
#size-cells = <0>;
cpu0: cpu@0 {
clock-frequency = <120000000>;
clock-frequency = <DT_FREQ_M(120)>;
device_type = "cpu";
compatible = "arm,cortex-m4f";
reg = <0>;

View file

@ -4,6 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <freq.h>
#include <arm/armv7-m.dtsi>
#include <zephyr/dt-bindings/gpio/gpio.h>
#include <zephyr/dt-bindings/adc/gd32f3x0.h>
@ -14,7 +15,7 @@
#size-cells = <0>;
cpu0: cpu@0 {
clock-frequency = <108000000>;
clock-frequency = <DT_FREQ_M(108)>;
device_type = "cpu";
compatible = "arm,cortex-m4f";
reg = <0>;

View file

@ -7,5 +7,5 @@
#include <gigadevice/gd32f4xx/gd32f450.dtsi>
&cpu0 {
clock-frequency = <240000000>;
clock-frequency = <DT_FREQ_M(240)>;
};

View file

@ -4,6 +4,7 @@
* SPDX-License-Identifier: Apache-2.0
*/
#include <freq.h>
#include <zephyr/dt-bindings/gpio/gpio.h>
#include <zephyr/dt-bindings/timer/nuclei-systimer.h>
#include <zephyr/dt-bindings/i2c/i2c.h>
@ -19,7 +20,7 @@
#size-cells = <0>;
cpu: cpu@0 {
clock-frequency = <108000000>;
clock-frequency = <DT_FREQ_M(108)>;
mcause-exception-mask = <0x7ff>;
compatible = "nuclei,bumblebee";
device_type = "cpu";