mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-02 01:22:25 +00:00
This patch is equivalent to 7b0ce85242
,
but applied to buttons. As stated in the previous commit message:
This change aims at fixing 'unit_address_vs_reg' warning in arm based
boards. This warning pops up when a node name is made up with an
address (node_name@xx) but does not contain a reg property. This case
was encountered for led nodes for instance, where a reg property has
no meaning. Fix this by changing node_name@xx to node_name_xx which
removes the guilty '@XX' syntax but preserves node_name uniqueness.
Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
159 lines
2.8 KiB
Plaintext
159 lines
2.8 KiB
Plaintext
/*
|
|
* Copyright (c) 2018 Nordic Semiconductor ASA
|
|
* Copyright (c) 2017 Linaro Limited
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
/dts-v1/;
|
|
#include <nordic/nrf52840_qiaa.dtsi>
|
|
|
|
/ {
|
|
model = "Nordic PCA10059 Dev Kit";
|
|
compatible = "nordic,pca10059-dk", "nordic,nrf52840-qiaa",
|
|
"nordic,nrf52840";
|
|
|
|
chosen {
|
|
zephyr,console = &uart0;
|
|
#ifdef CONFIG_MCUMGR_SMP_UART
|
|
zephyr,uart-mcumgr = &uart0;
|
|
#endif
|
|
zephyr,sram = &sram0;
|
|
zephyr,flash = &flash0;
|
|
};
|
|
|
|
leds {
|
|
compatible = "gpio-leds";
|
|
led0_green: led_0 {
|
|
gpios = <&gpio0 6 GPIO_INT_ACTIVE_LOW>;
|
|
label = "Green LED 0";
|
|
};
|
|
led1_red: led_1 {
|
|
gpios = <&gpio0 8 GPIO_INT_ACTIVE_LOW>;
|
|
label = "Red LED 1";
|
|
};
|
|
led1_green: led_2 {
|
|
gpios = <&gpio1 9 GPIO_INT_ACTIVE_LOW>;
|
|
label = "Green LED 1";
|
|
};
|
|
led1_blue: led_3 {
|
|
gpios = <&gpio0 12 GPIO_INT_ACTIVE_LOW>;
|
|
label = "Blue LED 1";
|
|
};
|
|
};
|
|
|
|
buttons {
|
|
compatible = "gpio-keys";
|
|
button0: button_0 {
|
|
gpios = <&gpio1 6 GPIO_PUD_PULL_UP>;
|
|
label = "Push button switch 0";
|
|
};
|
|
};
|
|
|
|
/* These aliases are provided for compatibility with samples */
|
|
aliases {
|
|
sw0 = &button0;
|
|
led0 = &led0_green;
|
|
led1 = &led1_red;
|
|
led2 = &led1_green;
|
|
led3 = &led1_blue;
|
|
led0-green = &led0_green;
|
|
led1-red = &led1_red;
|
|
led1-green = &led1_green;
|
|
led1-blue = &led1_blue;
|
|
};
|
|
};
|
|
|
|
&gpiote {
|
|
status ="ok";
|
|
};
|
|
|
|
&gpio0 {
|
|
status ="ok";
|
|
};
|
|
|
|
&gpio1 {
|
|
status ="ok";
|
|
};
|
|
|
|
&uart0 {
|
|
compatible = "nordic,nrf-uarte";
|
|
current-speed = <115200>;
|
|
status = "ok";
|
|
tx-pin = <20>;
|
|
rx-pin = <24>;
|
|
rts-pin = <17>;
|
|
cts-pin = <22>;
|
|
};
|
|
|
|
&i2c0 {
|
|
status = "ok";
|
|
sda-pin = <26>;
|
|
scl-pin = <27>;
|
|
};
|
|
|
|
&i2c1 {
|
|
status = "ok";
|
|
sda-pin = <30>;
|
|
scl-pin = <31>;
|
|
};
|
|
|
|
/*
|
|
* By default, not adding all available SPI instances (spi2, spi3) due to
|
|
* limited GPIOs available on dongle board.
|
|
*/
|
|
&spi0 {
|
|
status = "ok";
|
|
sck-pin = <27>;
|
|
mosi-pin = <26>;
|
|
miso-pin = <42>;
|
|
};
|
|
|
|
&spi1 {
|
|
status = "ok";
|
|
sck-pin = <31>;
|
|
mosi-pin = <30>;
|
|
miso-pin = <45>;
|
|
};
|
|
|
|
&flash0 {
|
|
/*
|
|
* For more information, see:
|
|
* http://docs.zephyrproject.org/latest/devices/dts/flash_partitions.html
|
|
*/
|
|
partitions {
|
|
compatible = "fixed-partitions";
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
boot_partition: partition@e0000 {
|
|
label = "mcuboot";
|
|
reg = <0x0000e0000 0x0001a000>;
|
|
};
|
|
slot0_partition: partition@1000 {
|
|
label = "image-0";
|
|
reg = <0x00001000 0x000060000>;
|
|
};
|
|
slot1_partition: partition@61000 {
|
|
label = "image-1";
|
|
reg = <0x0061000 0x000060000>;
|
|
};
|
|
scratch_partition: partition@c1000 {
|
|
label = "image-scratch";
|
|
reg = <0x000c1000 0x0001f000>;
|
|
};
|
|
|
|
#if defined(CONFIG_FS_FLASH_STORAGE_PARTITION)
|
|
storage_partition: partition@fa000 {
|
|
label = "storage";
|
|
reg = <0x000fa000 0x00004000>;
|
|
};
|
|
#endif
|
|
};
|
|
};
|
|
|
|
&usbd {
|
|
compatible = "nordic,nrf-usbd";
|
|
status = "ok";
|
|
};
|