2017-08-03 08:35:35 -05:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2017, NXP
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
|
|
|
|
2018-05-15 13:47:24 -05:00
|
|
|
#include <nxp/nxp_lpc54xxx_m4.dtsi>
|
2018-10-28 16:25:39 -05:00
|
|
|
#include "lpcxpresso54114.dtsi"
|
2023-08-03 10:52:22 +00:00
|
|
|
#include <zephyr/dt-bindings/input/input-event-codes.h>
|
2017-08-03 08:35:35 -05:00
|
|
|
|
|
|
|
/ {
|
|
|
|
model = "NXP LPCXpresso54114 board";
|
|
|
|
compatible = "nxp,lpc54xxx", "nxp,lpc";
|
|
|
|
|
2019-01-15 15:55:17 +08:00
|
|
|
aliases{
|
|
|
|
sw0 = &user_button_1;
|
|
|
|
sw1 = &user_button_2;
|
|
|
|
sw2 = &user_button_3;
|
|
|
|
};
|
|
|
|
|
2017-08-03 08:35:35 -05:00
|
|
|
chosen {
|
2018-05-15 14:20:20 -05:00
|
|
|
zephyr,sram = &sram0;
|
2017-08-03 08:35:35 -05:00
|
|
|
zephyr,flash = &flash0;
|
2020-04-04 12:12:39 -05:00
|
|
|
zephyr,console = &flexcomm0;
|
|
|
|
zephyr,shell-uart = &flexcomm0;
|
2022-08-18 13:15:11 -05:00
|
|
|
zephyr,code-partition = &slot0_partition;
|
2017-08-03 08:35:35 -05:00
|
|
|
};
|
2019-01-15 15:55:17 +08:00
|
|
|
|
|
|
|
gpio_keys {
|
|
|
|
compatible = "gpio-keys";
|
|
|
|
user_button_1: button_0 {
|
|
|
|
label = "User SW1";
|
2019-09-26 19:46:44 +03:00
|
|
|
gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
|
2023-08-03 10:52:22 +00:00
|
|
|
zephyr,code = <INPUT_KEY_0>;
|
2019-01-15 15:55:17 +08:00
|
|
|
};
|
|
|
|
user_button_2: button_1 {
|
|
|
|
label = "User SW2";
|
2022-04-15 11:12:54 -05:00
|
|
|
gpios = <&gpio0 31 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
|
2023-08-03 10:52:22 +00:00
|
|
|
zephyr,code = <INPUT_KEY_1>;
|
2019-01-15 15:55:17 +08:00
|
|
|
};
|
|
|
|
user_button_3: button_2 {
|
|
|
|
label = "User SW3";
|
2022-04-15 11:12:54 -05:00
|
|
|
gpios = <&gpio0 4 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
|
2023-08-03 10:52:22 +00:00
|
|
|
zephyr,code = <INPUT_KEY_2>;
|
2019-01-15 15:55:17 +08:00
|
|
|
};
|
|
|
|
};
|
2017-08-03 08:35:35 -05:00
|
|
|
};
|
|
|
|
|
2022-04-26 23:46:09 -05:00
|
|
|
/*
|
|
|
|
* Default for this board is to allocate SRAM0-1 to M4 CPU but the
|
|
|
|
* application can have an application specific device tree to
|
|
|
|
* allocate the SRAM0-3 differently.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
&sram0 {
|
|
|
|
compatible = "mmio-sram";
|
|
|
|
reg = <0x20000000 DT_SIZE_K(128)>;
|
|
|
|
};
|
|
|
|
|
2019-06-21 14:47:08 +02:00
|
|
|
&cpu0 {
|
|
|
|
clock-frequency = <48000000>;
|
|
|
|
};
|
|
|
|
|
2018-02-07 21:03:25 +01:00
|
|
|
&mailbox0 {
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-02-07 21:03:25 +01:00
|
|
|
};
|
2018-10-28 16:25:39 -05:00
|
|
|
|
|
|
|
&red_led {
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-10-28 16:25:39 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
&green_led {
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-10-28 16:25:39 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
&blue_led {
|
2019-06-14 19:31:16 +02:00
|
|
|
status = "okay";
|
2018-10-28 16:25:39 -05:00
|
|
|
};
|
2019-07-03 14:49:36 -05:00
|
|
|
|
2020-04-04 12:12:39 -05:00
|
|
|
&flexcomm0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2020-04-04 11:23:20 -05:00
|
|
|
&flexcomm4 {
|
2019-12-08 14:38:02 -06:00
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
2020-04-04 12:53:32 -05:00
|
|
|
&flexcomm5 {
|
2019-07-03 14:49:36 -05:00
|
|
|
status = "okay";
|
|
|
|
};
|
2022-08-18 13:15:11 -05:00
|
|
|
|
|
|
|
&flash0 {
|
|
|
|
/*
|
|
|
|
* LPC flash controller requires minimum 256 byte write to flash,
|
|
|
|
* so MCUBoot is not supported. Just provide storage and code partition.
|
|
|
|
*/
|
|
|
|
partitions {
|
|
|
|
compatible = "fixed-partitions";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
slot0_partition: partition@0 {
|
|
|
|
label = "image-0";
|
|
|
|
reg = <0x00000000 DT_SIZE_K(196)>;
|
|
|
|
};
|
|
|
|
storage_partition: partition@30000 {
|
|
|
|
label = "storage";
|
|
|
|
reg = <0x00030000 DT_SIZE_K(64)>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|