dts: Add information about CPU frequency to the cpu nodes
This commit adds 'clock-frequency' property to the cpu nodes. The clock frequency specified in the added property is used during platform configuration. Examples: - The SWO logger uses clock frequency to configure SWO output. - Plenty of platforms need CPU clock specified for their HAL. - Most of devices with USB needs information about CPU clock in order to configure USB clock source. Signed-off-by: Piotr Zięcik <piotr.ziecik@nordicsemi.no>
This commit is contained in:
parent
15b1196e58
commit
7d56fc35fd
48 changed files with 144 additions and 22 deletions
|
@ -25,6 +25,10 @@
|
|||
};
|
||||
};
|
||||
|
||||
&cpu0 {
|
||||
clock-frequency = <144000000>;
|
||||
};
|
||||
|
||||
&uart0 {
|
||||
status = "okay";
|
||||
current-speed = <115200>;
|
||||
|
|
|
@ -12,3 +12,7 @@
|
|||
model = "snps,nsim_em";
|
||||
compatible = "snps,nsim_em";
|
||||
};
|
||||
|
||||
&cpu0 {
|
||||
clock-frequency = <5000000>;
|
||||
};
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
cpu@0 {
|
||||
cpu0: cpu@0 {
|
||||
device_type = "cpu";
|
||||
compatible = "snps,arcem";
|
||||
reg = <0>;
|
||||
|
|
|
@ -12,3 +12,7 @@
|
|||
model = "snps,nsim_sem";
|
||||
compatible = "snps,nsim_sem";
|
||||
};
|
||||
|
||||
&cpu0 {
|
||||
clock-frequency = <5000000>;
|
||||
};
|
||||
|
|
|
@ -34,6 +34,10 @@
|
|||
};
|
||||
};
|
||||
|
||||
&cpu0 {
|
||||
clock-frequency = <48000000>;
|
||||
};
|
||||
|
||||
&sercom0 {
|
||||
status = "okay";
|
||||
compatible = "atmel,sam0-uart";
|
||||
|
|
|
@ -41,6 +41,10 @@
|
|||
};
|
||||
};
|
||||
|
||||
&cpu0 {
|
||||
clock-frequency = <48000000>;
|
||||
};
|
||||
|
||||
&sercom0 {
|
||||
status = "okay";
|
||||
compatible = "atmel,sam0-uart";
|
||||
|
|
|
@ -23,6 +23,10 @@
|
|||
};
|
||||
};
|
||||
|
||||
&cpu0 {
|
||||
clock-frequency = <84000000>;
|
||||
};
|
||||
|
||||
&wdog {
|
||||
status = "okay";
|
||||
};
|
||||
|
|
|
@ -43,6 +43,10 @@
|
|||
|
||||
};
|
||||
|
||||
&cpu0 {
|
||||
clock-frequency = <48000000>;
|
||||
};
|
||||
|
||||
&sercom0 {
|
||||
status = "okay";
|
||||
compatible = "atmel,sam0-uart";
|
||||
|
|
|
@ -40,6 +40,10 @@
|
|||
};
|
||||
};
|
||||
|
||||
&cpu0 {
|
||||
clock-frequency = <48000000>;
|
||||
};
|
||||
|
||||
&sercom0 {
|
||||
status = "okay";
|
||||
compatible = "atmel,sam0-spi";
|
||||
|
|
|
@ -41,6 +41,10 @@
|
|||
};
|
||||
};
|
||||
|
||||
&cpu0 {
|
||||
clock-frequency = <48000000>;
|
||||
};
|
||||
|
||||
&sercom0 {
|
||||
status = "okay";
|
||||
compatible = "atmel,sam0-uart";
|
||||
|
|
|
@ -41,6 +41,10 @@
|
|||
};
|
||||
};
|
||||
|
||||
&cpu0 {
|
||||
clock-frequency = <48000000>;
|
||||
};
|
||||
|
||||
&sercom0 {
|
||||
status = "okay";
|
||||
compatible = "atmel,sam0-uart";
|
||||
|
|
|
@ -54,6 +54,10 @@
|
|||
|
||||
};
|
||||
|
||||
&cpu0 {
|
||||
clock-frequency = <24000000>;
|
||||
};
|
||||
|
||||
&usart1 {
|
||||
current-speed = <115200>;
|
||||
location-rx = <GECKO_LOCATION(4) GECKO_PORT_A GECKO_PIN(0)>;
|
||||
|
|
|
@ -53,6 +53,10 @@
|
|||
};
|
||||
};
|
||||
|
||||
&cpu0 {
|
||||
clock-frequency = <40000000>;
|
||||
};
|
||||
|
||||
&usart0 {
|
||||
current-speed = <115200>;
|
||||
location-rx = <GECKO_LOCATION(0) GECKO_PORT_A GECKO_PIN(1)>;
|
||||
|
|
|
@ -53,6 +53,10 @@
|
|||
};
|
||||
};
|
||||
|
||||
&cpu0 {
|
||||
clock-frequency = <48000000>;
|
||||
};
|
||||
|
||||
&uart0 {
|
||||
current-speed = <115200>;
|
||||
location-rx = <GECKO_LOCATION(1) GECKO_PORT_E GECKO_PIN(1)>;
|
||||
|
|
|
@ -55,6 +55,10 @@
|
|||
|
||||
};
|
||||
|
||||
&cpu0 {
|
||||
clock-frequency = <38400000>;
|
||||
};
|
||||
|
||||
&usart0 {
|
||||
current-speed = <115200>;
|
||||
location-rx = <GECKO_LOCATION(0) GECKO_PORT_A GECKO_PIN(1)>;
|
||||
|
|
|
@ -52,6 +52,10 @@
|
|||
};
|
||||
};
|
||||
|
||||
&cpu0 {
|
||||
clock-frequency = <38400000>;
|
||||
};
|
||||
|
||||
&usart0 {
|
||||
current-speed = <115200>;
|
||||
location-rx = <GECKO_LOCATION(0) GECKO_PORT_A GECKO_PIN(1)>;
|
||||
|
|
|
@ -109,6 +109,10 @@
|
|||
|
||||
arduino_serial: &uart3 {};
|
||||
|
||||
&cpu0 {
|
||||
clock-frequency = <120000000>;
|
||||
};
|
||||
|
||||
&adc0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
|
|
@ -61,6 +61,10 @@
|
|||
};
|
||||
};
|
||||
|
||||
&cpu0 {
|
||||
clock-frequency = <48000000>;
|
||||
};
|
||||
|
||||
&adc0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
|
|
@ -79,6 +79,10 @@
|
|||
};
|
||||
};
|
||||
|
||||
&cpu0 {
|
||||
clock-frequency = <120000000>;
|
||||
};
|
||||
|
||||
&adc0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
|
|
@ -21,6 +21,10 @@
|
|||
};
|
||||
};
|
||||
|
||||
&cpu1 {
|
||||
clock-frequency = <48000000>;
|
||||
};
|
||||
|
||||
&mailbox0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
|
|
@ -43,6 +43,10 @@
|
|||
};
|
||||
};
|
||||
|
||||
&cpu0 {
|
||||
clock-frequency = <48000000>;
|
||||
};
|
||||
|
||||
&usart0 {
|
||||
status = "okay";
|
||||
current-speed = <115200>;
|
||||
|
|
|
@ -21,6 +21,10 @@
|
|||
};
|
||||
};
|
||||
|
||||
&cpu0 {
|
||||
clock-frequency = <48000000>;
|
||||
};
|
||||
|
||||
&uart0 {
|
||||
status = "okay";
|
||||
current-speed = <115200>;
|
||||
|
|
|
@ -49,6 +49,10 @@
|
|||
};
|
||||
};
|
||||
|
||||
&cpu0 {
|
||||
clock-frequency = <120000000>;
|
||||
};
|
||||
|
||||
&i2c0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
|
|
@ -52,6 +52,10 @@
|
|||
};
|
||||
};
|
||||
|
||||
&cpu0 {
|
||||
clock-frequency = <300000000>;
|
||||
};
|
||||
|
||||
&adc0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
|
|
@ -55,6 +55,10 @@
|
|||
};
|
||||
};
|
||||
|
||||
&cpu0 {
|
||||
clock-frequency = <48000000>;
|
||||
};
|
||||
|
||||
&adc0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
|
|
@ -22,6 +22,7 @@
|
|||
|
||||
cpu@0 {
|
||||
compatible = "arm,cortex-m3";
|
||||
clock-frequency = <24000000>;
|
||||
reg = <0>;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -21,6 +21,14 @@
|
|||
};
|
||||
};
|
||||
|
||||
&cpu0 {
|
||||
clock-frequency = <40000000>;
|
||||
};
|
||||
|
||||
&cpu1 {
|
||||
clock-frequency = <40000000>;
|
||||
};
|
||||
|
||||
&uart0 {
|
||||
status = "okay";
|
||||
current-speed = <115200>;
|
||||
|
|
|
@ -20,6 +20,14 @@
|
|||
};
|
||||
};
|
||||
|
||||
&cpu0 {
|
||||
clock-frequency = <400000000>;
|
||||
};
|
||||
|
||||
&cpu1 {
|
||||
clock-frequency = <400000000>;
|
||||
};
|
||||
|
||||
&uart0 {
|
||||
status = "okay";
|
||||
current-speed = <115200>;
|
||||
|
|
|
@ -16,3 +16,7 @@
|
|||
zephyr,sram = &sram0;
|
||||
};
|
||||
};
|
||||
|
||||
&cpu0 {
|
||||
clock-frequency = <10000000>;
|
||||
};
|
||||
|
|
|
@ -15,3 +15,7 @@
|
|||
zephyr,sram = &sram0;
|
||||
};
|
||||
};
|
||||
|
||||
&cpu0 {
|
||||
clock-frequency = <10000000>;
|
||||
};
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
cpu@0 {
|
||||
cpu0: cpu@0 {
|
||||
device_type = "cpu";
|
||||
compatible = "snps,arcem";
|
||||
reg = <0>;
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
cpu@0 {
|
||||
cpu0: cpu@0 {
|
||||
device_type = "cpu";
|
||||
compatible = "arm,cortex-m4";
|
||||
reg = <0>;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
cpu@0 {
|
||||
cpu0: cpu@0 {
|
||||
device_type = "cpu";
|
||||
compatible = "arm,cortex-m4";
|
||||
reg = <0>;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
cpu@0 {
|
||||
cpu0: cpu@0 {
|
||||
device_type = "cpu";
|
||||
compatible = "arm,cortex-m0+";
|
||||
reg = <0>;
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
cpu@0 {
|
||||
cpu0: cpu@0 {
|
||||
device_type = "cpu";
|
||||
compatible = "arm,cortex-m7";
|
||||
reg = <0>;
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
cpu@0 {
|
||||
cpu0: cpu@0 {
|
||||
device_type = "cpu";
|
||||
compatible = "arm,cortex-m4f";
|
||||
reg = <0>;
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
cpu@0 {
|
||||
cpu0: cpu@0 {
|
||||
device_type = "cpu";
|
||||
compatible = "arm,cortex-m0+";
|
||||
reg = <0>;
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
cpu@0 {
|
||||
cpu0: cpu@0 {
|
||||
device_type = "cpu";
|
||||
compatible = "arm,cortex-m4";
|
||||
reg = <0>;
|
||||
|
|
|
@ -11,11 +11,12 @@
|
|||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
cpu@0 {
|
||||
cpu0: cpu@0 {
|
||||
compatible = "arm,cortex-m4f";
|
||||
reg = <0>;
|
||||
};
|
||||
cpu@1 {
|
||||
|
||||
cpu1: cpu@1 {
|
||||
compatible = "arm,cortex-m0+";
|
||||
reg = <1>;
|
||||
};
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
cpu@0 {
|
||||
cpu0: cpu@0 {
|
||||
compatible = "arm,cortex-m0+";
|
||||
reg = <0>;
|
||||
};
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
cpu@0 {
|
||||
cpu0: cpu@0 {
|
||||
compatible = "arm,cortex-m4f";
|
||||
reg = <0>;
|
||||
};
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
cpu@0 {
|
||||
cpu0: cpu@0 {
|
||||
compatible = "arm,cortex-m4f";
|
||||
reg = <0>;
|
||||
};
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
cpu@0 {
|
||||
cpu0: cpu@0 {
|
||||
compatible = "arm,cortex-m4f";
|
||||
reg = <0>;
|
||||
};
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
cpu@0 {
|
||||
cpu0: cpu@0 {
|
||||
compatible = "arm,cortex-m4f";
|
||||
reg = <0>;
|
||||
};
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
cpu@0 {
|
||||
cpu0: cpu@0 {
|
||||
compatible = "arm,cortex-m4f";
|
||||
reg = <0>;
|
||||
};
|
||||
|
|
|
@ -10,13 +10,13 @@
|
|||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
cpu@0 {
|
||||
cpu0: cpu@0 {
|
||||
device_type = "cpu";
|
||||
compatible = "cadence,tensilica-xtensa-lx6";
|
||||
reg = <0>;
|
||||
};
|
||||
|
||||
cpu@1 {
|
||||
cpu1: cpu@1 {
|
||||
device_type = "cpu";
|
||||
compatible = "cadence,tensilica-xtensa-lx6";
|
||||
reg = <1>;
|
||||
|
|
|
@ -12,13 +12,13 @@
|
|||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
cpu@0 {
|
||||
cpu0: cpu@0 {
|
||||
device_type = "cpu";
|
||||
compatible = "cadence,tensilica-xtensa-lx6";
|
||||
reg = <0>;
|
||||
};
|
||||
|
||||
cpu@1 {
|
||||
cpu1: cpu@1 {
|
||||
device_type = "cpu";
|
||||
compatible = "cadence,tensilica-xtensa-lx6";
|
||||
reg = <1>;
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
cpu@0 {
|
||||
cpu0: cpu@0 {
|
||||
device_type = "cpu";
|
||||
compatible = "sample_controller";
|
||||
reg = <0>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue