155 lines
2.6 KiB
Plaintext
155 lines
2.6 KiB
Plaintext
/dts-v1/;
|
|
#include <ambiq/ambiq_apollo4p.dtsi>
|
|
|
|
#include "apollo4p_evb-pinctrl.dtsi"
|
|
|
|
/ {
|
|
model = "Ambiq Apollo4 Plus evaluation board";
|
|
compatible = "ambiq,apollo4p_evb";
|
|
|
|
chosen {
|
|
zephyr,itcm = &tcm;
|
|
zephyr,sram = &sram0;
|
|
zephyr,flash = &flash0;
|
|
zephyr,console = &uart0;
|
|
zephyr,shell-uart = &uart0;
|
|
zephyr,uart-pipe = &uart0;
|
|
zephyr,flash-controller = &flash;
|
|
};
|
|
|
|
aliases {
|
|
watchdog0 = &wdt0;
|
|
led0 = &led0;
|
|
led1 = &led1;
|
|
led2 = &led2;
|
|
sw0 = &button0;
|
|
sw1 = &button1;
|
|
rtc = &rtc0;
|
|
};
|
|
|
|
leds {
|
|
compatible = "gpio-leds";
|
|
led0: led_0 {
|
|
gpios = <&gpio0_31 30 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
|
|
label = "LED 0";
|
|
};
|
|
led1: led_1 {
|
|
gpios = <&gpio64_95 26 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
|
|
label = "LED 1";
|
|
};
|
|
led2: led_2 {
|
|
gpios = <&gpio96_127 1 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
|
|
label = "LED 2";
|
|
};
|
|
};
|
|
|
|
buttons {
|
|
compatible = "gpio-keys";
|
|
button0: button_0 {
|
|
gpios = <&gpio0_31 18 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
|
|
label = "BTN0";
|
|
};
|
|
button1: button_1 {
|
|
gpios = <&gpio0_31 19 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
|
|
label = "BTN1";
|
|
};
|
|
};
|
|
};
|
|
|
|
&uart0 {
|
|
current-speed = <115200>;
|
|
pinctrl-0 = <&uart0_default>;
|
|
pinctrl-names = "default";
|
|
status = "okay";
|
|
};
|
|
|
|
&adc0 {
|
|
compatible = "ambiq,adc";
|
|
pinctrl-0 = <&adc0_default>;
|
|
pinctrl-names = "default";
|
|
status = "okay";
|
|
};
|
|
|
|
&counter0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&rtc0 {
|
|
status = "okay";
|
|
clock = "XTAL";
|
|
};
|
|
|
|
&wdt0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&iom0_i2c {
|
|
compatible = "ambiq,i2c";
|
|
pinctrl-0 = <&i2c0_default>;
|
|
pinctrl-names = "default";
|
|
clock-frequency = <I2C_BITRATE_STANDARD>;
|
|
scl-gpios = <&gpio0_31 5 (GPIO_OPEN_DRAIN | GPIO_PULL_UP)>;
|
|
sda-gpios = <&gpio0_31 6 (GPIO_OPEN_DRAIN | GPIO_PULL_UP)>;
|
|
status = "okay";
|
|
};
|
|
|
|
&iom1_spi {
|
|
compatible = "ambiq,spi";
|
|
pinctrl-0 = <&spi1_default>;
|
|
pinctrl-names = "default";
|
|
cs-gpios = <&gpio0_31 11 GPIO_ACTIVE_LOW>;
|
|
clock-frequency = <1000000>;
|
|
status = "okay";
|
|
};
|
|
|
|
&mspi0 {
|
|
pinctrl-0 = <&mspi0_default>;
|
|
pinctrl-names = "default";
|
|
status = "okay";
|
|
};
|
|
|
|
&mspi1 {
|
|
pinctrl-0 = <&mspi1_default>;
|
|
pinctrl-names = "default";
|
|
status = "okay";
|
|
};
|
|
|
|
&mspi2 {
|
|
pinctrl-0 = <&mspi2_default>;
|
|
pinctrl-names = "default";
|
|
status = "okay";
|
|
};
|
|
|
|
&flash0 {
|
|
erase-block-size = <2048>;
|
|
write-block-size = <16>;
|
|
|
|
partitions {
|
|
compatible = "fixed-partitions";
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
/* Set 16KB of storage at the end of the 1952KB of flash */
|
|
storage_partition: partition@1e4000 {
|
|
label = "storage";
|
|
reg = <0x001e4000 0x4000>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&gpio0_31 {
|
|
status = "okay";
|
|
};
|
|
|
|
&gpio32_63 {
|
|
status = "okay";
|
|
};
|
|
|
|
&gpio64_95 {
|
|
status = "okay";
|
|
};
|
|
|
|
&gpio96_127 {
|
|
status = "okay";
|
|
};
|