zephyr/boards/arm/sam4s_xplained/sam4s_xplained.dts
Piotr Zięcik 7d56fc35fd 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>
2019-07-17 21:53:36 +02:00

72 lines
1.1 KiB
Text

/*
* Copyright (c) Justin Watson 2017
* SPDX-License-Identifier: Apache-2.0
*/
/dts-v1/;
#include <atmel/sam4s16c.dtsi>
/ {
model = "Atmel SAM4S Xplained Board with an Atmel SAM4S16C SoC";
compatible = "atmel,sam4s_xplained", "atmel,sam4s16c", "atmel,sam4s";
aliases {
i2c-0 = &i2c0;
i2c-1 = &i2c1;
led0 = &yellow_led_1;
led1 = &yellow_led_2;
sw0 = &user_button;
wdog = &wdog;
};
chosen {
zephyr,console = &uart0;
zephyr,shell-uart = &uart0;
zephyr,sram = &sram0;
zephyr,flash = &flash0;
};
leds {
compatible = "gpio-leds";
yellow_led_1: led_1 {
gpios = <&portc 10 0>;
label = "LED 1";
};
yellow_led_2: led_2 {
gpios = <&portc 17 0>;
label = "LED 2";
};
};
gpio_keys {
compatible = "gpio-keys";
user_button: button_1 {
label = "User Button";
gpios = <&porta 5 (GPIO_PUD_PULL_UP |
GPIO_INT_ACTIVE_LOW)>;
};
};
};
&cpu0 {
clock-frequency = <120000000>;
};
&i2c0 {
status = "okay";
};
&uart0 {
current-speed = <115200>;
status = "okay";
};
&uart1 {
current-speed = <115200>;
status = "okay";
};
&wdog {
status = "okay";
};