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:
Piotr Zięcik 2019-06-21 14:47:08 +02:00 committed by Carles Cufí
commit 7d56fc35fd
48 changed files with 144 additions and 22 deletions

View file

@ -25,6 +25,10 @@
};
};
&cpu0 {
clock-frequency = <144000000>;
};
&uart0 {
status = "okay";
current-speed = <115200>;

View file

@ -12,3 +12,7 @@
model = "snps,nsim_em";
compatible = "snps,nsim_em";
};
&cpu0 {
clock-frequency = <5000000>;
};

View file

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

View file

@ -12,3 +12,7 @@
model = "snps,nsim_sem";
compatible = "snps,nsim_sem";
};
&cpu0 {
clock-frequency = <5000000>;
};

View file

@ -34,6 +34,10 @@
};
};
&cpu0 {
clock-frequency = <48000000>;
};
&sercom0 {
status = "okay";
compatible = "atmel,sam0-uart";

View file

@ -41,6 +41,10 @@
};
};
&cpu0 {
clock-frequency = <48000000>;
};
&sercom0 {
status = "okay";
compatible = "atmel,sam0-uart";

View file

@ -23,6 +23,10 @@
};
};
&cpu0 {
clock-frequency = <84000000>;
};
&wdog {
status = "okay";
};

View file

@ -43,6 +43,10 @@
};
&cpu0 {
clock-frequency = <48000000>;
};
&sercom0 {
status = "okay";
compatible = "atmel,sam0-uart";

View file

@ -40,6 +40,10 @@
};
};
&cpu0 {
clock-frequency = <48000000>;
};
&sercom0 {
status = "okay";
compatible = "atmel,sam0-spi";

View file

@ -41,6 +41,10 @@
};
};
&cpu0 {
clock-frequency = <48000000>;
};
&sercom0 {
status = "okay";
compatible = "atmel,sam0-uart";

View file

@ -41,6 +41,10 @@
};
};
&cpu0 {
clock-frequency = <48000000>;
};
&sercom0 {
status = "okay";
compatible = "atmel,sam0-uart";

View file

@ -54,6 +54,10 @@
};
&cpu0 {
clock-frequency = <24000000>;
};
&usart1 {
current-speed = <115200>;
location-rx = <GECKO_LOCATION(4) GECKO_PORT_A GECKO_PIN(0)>;

View file

@ -53,6 +53,10 @@
};
};
&cpu0 {
clock-frequency = <40000000>;
};
&usart0 {
current-speed = <115200>;
location-rx = <GECKO_LOCATION(0) GECKO_PORT_A GECKO_PIN(1)>;

View file

@ -53,6 +53,10 @@
};
};
&cpu0 {
clock-frequency = <48000000>;
};
&uart0 {
current-speed = <115200>;
location-rx = <GECKO_LOCATION(1) GECKO_PORT_E GECKO_PIN(1)>;

View file

@ -55,6 +55,10 @@
};
&cpu0 {
clock-frequency = <38400000>;
};
&usart0 {
current-speed = <115200>;
location-rx = <GECKO_LOCATION(0) GECKO_PORT_A GECKO_PIN(1)>;

View file

@ -52,6 +52,10 @@
};
};
&cpu0 {
clock-frequency = <38400000>;
};
&usart0 {
current-speed = <115200>;
location-rx = <GECKO_LOCATION(0) GECKO_PORT_A GECKO_PIN(1)>;

View file

@ -109,6 +109,10 @@
arduino_serial: &uart3 {};
&cpu0 {
clock-frequency = <120000000>;
};
&adc0 {
status = "okay";
};

View file

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

View file

@ -79,6 +79,10 @@
};
};
&cpu0 {
clock-frequency = <120000000>;
};
&adc0 {
status = "okay";
};

View file

@ -21,6 +21,10 @@
};
};
&cpu1 {
clock-frequency = <48000000>;
};
&mailbox0 {
status = "okay";
};

View file

@ -43,6 +43,10 @@
};
};
&cpu0 {
clock-frequency = <48000000>;
};
&usart0 {
status = "okay";
current-speed = <115200>;

View file

@ -21,6 +21,10 @@
};
};
&cpu0 {
clock-frequency = <48000000>;
};
&uart0 {
status = "okay";
current-speed = <115200>;

View file

@ -49,6 +49,10 @@
};
};
&cpu0 {
clock-frequency = <120000000>;
};
&i2c0 {
status = "okay";
};

View file

@ -52,6 +52,10 @@
};
};
&cpu0 {
clock-frequency = <300000000>;
};
&adc0 {
status = "okay";
};

View file

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

View file

@ -22,6 +22,7 @@
cpu@0 {
compatible = "arm,cortex-m3";
clock-frequency = <24000000>;
reg = <0>;
};
};

View file

@ -21,6 +21,14 @@
};
};
&cpu0 {
clock-frequency = <40000000>;
};
&cpu1 {
clock-frequency = <40000000>;
};
&uart0 {
status = "okay";
current-speed = <115200>;

View file

@ -20,6 +20,14 @@
};
};
&cpu0 {
clock-frequency = <400000000>;
};
&cpu1 {
clock-frequency = <400000000>;
};
&uart0 {
status = "okay";
current-speed = <115200>;

View file

@ -16,3 +16,7 @@
zephyr,sram = &sram0;
};
};
&cpu0 {
clock-frequency = <10000000>;
};

View file

@ -15,3 +15,7 @@
zephyr,sram = &sram0;
};
};
&cpu0 {
clock-frequency = <10000000>;
};

View file

@ -14,7 +14,7 @@
#address-cells = <1>;
#size-cells = <0>;
cpu@0 {
cpu0: cpu@0 {
device_type = "cpu";
compatible = "snps,arcem";
reg = <0>;

View file

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

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

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

View file

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

View file

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

View file

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

View file

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

View file

@ -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>;
};

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -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>;

View file

@ -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>;

View file

@ -11,7 +11,7 @@
#address-cells = <1>;
#size-cells = <0>;
cpu@0 {
cpu0: cpu@0 {
device_type = "cpu";
compatible = "sample_controller";
reg = <0>;