dts: specify cpu frequency for TI CC13X2/CC26X2

Add cpu clock frequency information to DTS so that it can be retrieved
in the code.

Signed-off-by: Vincent Wan <vincent.wan@linaro.org>
This commit is contained in:
Vincent Wan 2019-10-31 10:48:28 -07:00 committed by Kumar Gala
commit 1b263ba0a6
4 changed files with 11 additions and 1 deletions

View file

@ -53,6 +53,10 @@
};
};
&cpu0 {
clock-frequency = <48000000>;
};
&trng {
status = "okay";
};

View file

@ -53,6 +53,10 @@
};
};
&cpu0 {
clock-frequency = <48000000>;
};
&trng {
status = "okay";
};

View file

@ -13,7 +13,7 @@
#address-cells = <1>;
#size-cells = <0>;
cpu@0 {
cpu0: cpu@0 {
device_type = "cpu";
compatible = "arm,cortex-m4";
reg = <0>;

View file

@ -9,4 +9,6 @@
#define DT_NUM_IRQ_PRIO_BITS DT_ARM_V7M_NVIC_E000E100_ARM_NUM_IRQ_PRIORITY_BITS
#define CONFIG_ENTROPY_NAME DT_INST_0_TI_CC13XX_CC26XX_TRNG_LABEL
#define DT_CPU_CLOCK_FREQUENCY DT_ARM_CORTEX_M4_0_CLOCK_FREQUENCY
/* End of SoC Level DTS fixup file */