Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/

#include <zephyr/dt-bindings/display/ili9xxx.h>
#include <zephyr/dt-bindings/gpio/arduino-header-r3.h>

/ {
chosen {
Expand All @@ -23,7 +24,7 @@
adafruit_2_8_tft_touch_v2_mipi_dbi: adafruit_2_8_tft_touch_v2_mipi_dbi {
compatible = "zephyr,mipi-dbi-spi";
spi-dev = <&arduino_spi>;
dc-gpios = <&arduino_header 15 GPIO_ACTIVE_HIGH>; /* D9 */
dc-gpios = <&arduino_header ARDUINO_HEADER_R3_D9 GPIO_ACTIVE_HIGH>;
write-only;
#address-cells = <1>;
#size-cells = <0>;
Expand All @@ -48,8 +49,8 @@

&arduino_spi {
status = "okay";
cs-gpios = <&arduino_header 16 GPIO_ACTIVE_LOW>, /* D10 */
<&arduino_header 10 GPIO_ACTIVE_LOW>; /* D04 */
cs-gpios = <&arduino_header ARDUINO_HEADER_R3_D10 GPIO_ACTIVE_LOW>,
<&arduino_header ARDUINO_HEADER_R3_D4 GPIO_ACTIVE_LOW>;

adafruit_2_8_tft_touch_v2_sdhc: sdhc@1 {
compatible = "zephyr,sdhc-spi-slot";
Expand All @@ -69,6 +70,6 @@
compatible = "focaltech,ft5336";
reg = <0x38>;
/* Uncomment if IRQ line is available (requires to solder jumper) */
/* int-gpios = <&arduino_header 13 GPIO_ACTIVE_LOW>; */ /* D7 */
/* int-gpios = <&arduino_header ARDUINO_HEADER_R3_D7 GPIO_ACTIVE_LOW>; */
};
};
11 changes: 7 additions & 4 deletions boards/shields/adafruit_data_logger/adafruit_data_logger.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <zephyr/dt-bindings/gpio/arduino-header-r3.h>

/ {
aliases {
rtc = &rtc0_adafruit_data_logger;
Expand All @@ -16,15 +18,15 @@
* pins "L1" and "Digital I/O 3".
*/
green_led_adafruit_data_logger: led_1__adafruit_data_logger {
gpios = <&arduino_header 9 GPIO_ACTIVE_HIGH>; /* D3 */
gpios = <&arduino_header ARDUINO_HEADER_R3_D3 GPIO_ACTIVE_HIGH>;
label = "User LED1";
};
/*
* LED2 connection must be manually established using a jumper between
* pins "L2" and "Digital I/O 4".
*/
red_led_adafruit_data_logger: led_2_adafruit_data_logger {
gpios = <&arduino_header 10 GPIO_ACTIVE_HIGH>; /* D4 */
gpios = <&arduino_header ARDUINO_HEADER_R3_D4 GPIO_ACTIVE_HIGH>;
label = "User LED2";
};
};
Expand All @@ -33,7 +35,7 @@

&arduino_spi {
status = "okay";
cs-gpios = <&arduino_header 16 GPIO_ACTIVE_LOW>; /* D10 */
cs-gpios = <&arduino_header ARDUINO_HEADER_R3_D10 GPIO_ACTIVE_LOW>;

sdhc0_adafruit_data_logger: sdhc@0 {
compatible = "zephyr,sdhc-spi-slot";
Expand Down Expand Up @@ -61,7 +63,8 @@
* Interrupt connection must be manually established using a jumper wire between
* pins "SQ" and "Digital I/O 7".
*/
int1-gpios = <&arduino_header 13 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* D7 */
int1-gpios = <&arduino_header ARDUINO_HEADER_R3_D7
(GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
status = "okay";
};
};
10 changes: 6 additions & 4 deletions boards/shields/adafruit_winc1500/adafruit_winc1500.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,19 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <zephyr/dt-bindings/gpio/arduino-header-r3.h>

&arduino_spi {
status = "okay";
cs-gpios = <&arduino_header 16 0>; /* D10 */
cs-gpios = <&arduino_header ARDUINO_HEADER_R3_D10 0>;

winc1500_adafruit_winc1500: winc1500@0 {
status = "ok";
compatible = "atmel,winc1500";
reg = <0x0>;
spi-max-frequency = <4000000>;
irq-gpios = <&arduino_header 13 GPIO_ACTIVE_LOW>; /* D7 */
reset-gpios = <&arduino_header 11 GPIO_ACTIVE_LOW>; /* D5 */
enable-gpios = <&arduino_header 12 0>; /* D6 */
irq-gpios = <&arduino_header ARDUINO_HEADER_R3_D7 GPIO_ACTIVE_LOW>;
reset-gpios = <&arduino_header ARDUINO_HEADER_R3_D5 GPIO_ACTIVE_LOW>;
enable-gpios = <&arduino_header ARDUINO_HEADER_R3_D6 0>;
};
};
5 changes: 3 additions & 2 deletions boards/shields/amg88xx/amg88xx_eval_kit.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <zephyr/dt-bindings/gpio/arduino-header-r3.h>

&arduino_i2c {
status = "okay";

amg88xx_amg88xx_eval_kit: amg88xx@68 {
compatible = "panasonic,amg88xx";
reg = <0x68>;
/* Pin D6 from Arduino Connector */
int-gpios = <&arduino_header 12 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
int-gpios = <&arduino_header ARDUINO_HEADER_R3_D6 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
status = "okay";
};
};
5 changes: 3 additions & 2 deletions boards/shields/amg88xx/amg88xx_grid_eye_eval_shield.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <zephyr/dt-bindings/gpio/arduino-header-r3.h>

&arduino_i2c {
status = "okay";
amg88xx_amg88xx_grid_eye_eval_shield: amg88xx@68 {
compatible = "panasonic,amg88xx";
reg = <0x68>;
/* Pin D2 from Arduino Connector */
int-gpios = <&arduino_header 8 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
int-gpios = <&arduino_header ARDUINO_HEADER_R3_D2 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
status = "okay";
};
};
6 changes: 4 additions & 2 deletions boards/shields/arceli_eth_w5500/arceli_eth_w5500.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <zephyr/dt-bindings/gpio/arduino-header-r3.h>

&arduino_spi {
status = "okay";

eth_w5500_arceli_eth_w5500: eth_w5500@0 {
compatible = "wiznet,w5500";
reg = <0x0>;
spi-max-frequency = <80000000>;
int-gpios = <&arduino_header 15 GPIO_ACTIVE_LOW>; /* D9 */
reset-gpios = <&arduino_header 14 GPIO_ACTIVE_LOW>; /* D8 */
int-gpios = <&arduino_header ARDUINO_HEADER_R3_D9 GPIO_ACTIVE_LOW>;
reset-gpios = <&arduino_header ARDUINO_HEADER_R3_D8 GPIO_ACTIVE_LOW>;
};
};
14 changes: 6 additions & 8 deletions boards/shields/atmel_rf2xx/atmel_rf2xx_arduino.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <zephyr/dt-bindings/gpio/arduino-header-r3.h>

/ {
chosen {
zephyr,ieee802154 = &ieee802154_atmel_rf2xx_arduino;
Expand All @@ -13,21 +15,17 @@
&arduino_spi {
status = "okay";

/* D10 */
cs-gpios = <&arduino_header 16
cs-gpios = <&arduino_header ARDUINO_HEADER_R3_D10
(GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;

ieee802154_atmel_rf2xx_arduino: rf2xx@0 {
compatible = "atmel,rf2xx";
reg = <0x0>;
spi-max-frequency = <6000000>;
/* D2 */
irq-gpios = <&arduino_header 8
irq-gpios = <&arduino_header ARDUINO_HEADER_R3_D2
(GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>;
/* D8 */
reset-gpios = <&arduino_header 14 GPIO_ACTIVE_LOW>;
/* D9 */
slptr-gpios = <&arduino_header 15 GPIO_ACTIVE_HIGH>;
reset-gpios = <&arduino_header ARDUINO_HEADER_R3_D8 GPIO_ACTIVE_LOW>;
slptr-gpios = <&arduino_header ARDUINO_HEADER_R3_D9 GPIO_ACTIVE_HIGH>;
status = "okay";
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/

#include <zephyr/dt-bindings/display/ili9xxx.h>
#include <zephyr/dt-bindings/gpio/arduino-header-r3.h>

/ {
chosen {
Expand All @@ -22,8 +23,8 @@

buydisplay_2_8_tft_touch_arduino_mipi_dbi {
compatible = "zephyr,mipi-dbi-spi";
dc-gpios = <&arduino_header 13 GPIO_ACTIVE_HIGH>; /* D7 */
reset-gpios = <&arduino_header 16 GPIO_ACTIVE_LOW>; /* D10 */
dc-gpios = <&arduino_header ARDUINO_HEADER_R3_D7 GPIO_ACTIVE_HIGH>;
reset-gpios = <&arduino_header ARDUINO_HEADER_R3_D10 GPIO_ACTIVE_LOW>;
spi-dev = <&arduino_spi>;
write-only;
#address-cells = <1>;
Expand All @@ -49,14 +50,14 @@

&arduino_spi {
status = "okay";
cs-gpios = <&arduino_header 15 GPIO_ACTIVE_LOW>; /* D9 */
cs-gpios = <&arduino_header ARDUINO_HEADER_R3_D9 GPIO_ACTIVE_LOW>;
};

&arduino_i2c {
ft5336_buydisplay_2_8_tft_touch_arduino: ft5336@38 {
compatible = "focaltech,ft5336";
reg = <0x38>;
/* Uncomment if IRQ line is available (requires to solder jumper) */
/* int-gpios = <&arduino_header 11 GPIO_ACTIVE_LOW>; */ /* D5 */
/* int-gpios = <&arduino_header ARDUINO_HEADER_R3_D5 GPIO_ACTIVE_LOW>; */
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/

#include <zephyr/dt-bindings/display/ili9xxx.h>
#include <zephyr/dt-bindings/gpio/arduino-header-r3.h>

/ {
chosen {
Expand All @@ -22,8 +23,8 @@

buydisplay_3_5_tft_touch_arduino_mipi_dbi {
compatible = "zephyr,mipi-dbi-spi";
dc-gpios = <&arduino_header 13 GPIO_ACTIVE_HIGH>; /* D7 */
reset-gpios = <&arduino_header 16 GPIO_ACTIVE_LOW>; /* D10 */
dc-gpios = <&arduino_header ARDUINO_HEADER_R3_D7 GPIO_ACTIVE_HIGH>;
reset-gpios = <&arduino_header ARDUINO_HEADER_R3_D10 GPIO_ACTIVE_LOW>;
spi-dev = <&arduino_spi>;
write-only;
#address-cells = <1>;
Expand All @@ -48,14 +49,14 @@

&arduino_spi {
status = "okay";
cs-gpios = <&arduino_header 15 GPIO_ACTIVE_LOW>; /* D9 */
cs-gpios = <&arduino_header ARDUINO_HEADER_R3_D9 GPIO_ACTIVE_LOW>;
};

&arduino_i2c {
ft5336_buydisplay_3_5_tft_touch_arduino: ft5336@38 {
compatible = "focaltech,ft5336";
reg = <0x38>;
/* Uncomment if IRQ line is available (requires to solder jumper) */
/* int-gpios = <&arduino_header 11 GPIO_ACTIVE_LOW>; */ /* D5 */
/* int-gpios = <&arduino_header ARDUINO_HEADER_R3_D5 GPIO_ACTIVE_LOW>; */
};
};
4 changes: 3 additions & 1 deletion boards/shields/dac80508_evm/dac80508_evm.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <zephyr/dt-bindings/gpio/arduino-header-r3.h>

&arduino_spi {
status = "okay";
cs-gpios = <&arduino_header 16 GPIO_ACTIVE_LOW>; /* D10 */
cs-gpios = <&arduino_header ARDUINO_HEADER_R3_D10 GPIO_ACTIVE_LOW>;

dac80508_dac80508_evm: dac80508@0 {
compatible = "ti,dac80508";
Expand Down
10 changes: 7 additions & 3 deletions boards/shields/eval_ad4052_ardz/eval_ad4052_ardz.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,19 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <zephyr/dt-bindings/gpio/arduino-header-r3.h>

&arduino_spi {
status = "okay";

adc4052_eval_ad4052_ardz: adc4052@0 {
reg = <0>;
spi-max-frequency = <DT_FREQ_M(2)>;
gp1-gpios = <&arduino_header 14 (GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>;
gp0-gpios = <&arduino_header 15 (GPIO_PULL_DOWN)>;
conversion-gpios = <&arduino_header 12 (GPIO_ACTIVE_HIGH | MAX32_GPIO_VSEL_VDDIOH)>;
gp1-gpios = <&arduino_header ARDUINO_HEADER_R3_D8
(GPIO_PULL_DOWN | GPIO_ACTIVE_HIGH)>;
gp0-gpios = <&arduino_header ARDUINO_HEADER_R3_D9 (GPIO_PULL_DOWN)>;
conversion-gpios = <&arduino_header ARDUINO_HEADER_R3_D6
(GPIO_ACTIVE_HIGH | MAX32_GPIO_VSEL_VDDIOH)>;
#address-cells = <1>;
#size-cells = <0>;
#io-channel-cells = <1>;
Expand Down
3 changes: 2 additions & 1 deletion boards/shields/eval_adxl362_ardz/eval_adxl362_ardz.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/

#include <zephyr/dt-bindings/sensor/adxl362.h>
#include <zephyr/dt-bindings/gpio/arduino-header-r3.h>

&arduino_spi {
status = "okay";
Expand All @@ -13,7 +14,7 @@
compatible = "adi,adxl362";
reg = <0x0>;
spi-max-frequency = <DT_FREQ_M(1)>;
int1-gpios = <&arduino_header 8 GPIO_ACTIVE_HIGH>;
int1-gpios = <&arduino_header ARDUINO_HEADER_R3_D2 GPIO_ACTIVE_HIGH>;
fifo-mode = <ADXL362_FIFO_MODE_STREAM>;
fifo-watermark = <0x80>;
status = "okay";
Expand Down
3 changes: 2 additions & 1 deletion boards/shields/eval_adxl367_ardz/eval_adxl367_ardz.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/

#include <zephyr/dt-bindings/sensor/adxl367.h>
#include <zephyr/dt-bindings/gpio/arduino-header-r3.h>

/ {
aliases {
Expand All @@ -19,7 +20,7 @@
compatible = "adi,adxl367";
reg = <0x0>;
spi-max-frequency = <DT_FREQ_M(1)>;
int1-gpios = <&arduino_header 8 GPIO_ACTIVE_HIGH>;
int1-gpios = <&arduino_header ARDUINO_HEADER_R3_D2 GPIO_ACTIVE_HIGH>;
fifo-mode = <ADXL367_FIFO_MODE_STREAM>;
status = "okay";
};
Expand Down
3 changes: 2 additions & 1 deletion boards/shields/eval_adxl372_ardz/eval_adxl372_ardz.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/

#include <zephyr/dt-bindings/sensor/adxl372.h>
#include <zephyr/dt-bindings/gpio/arduino-header-r3.h>


&arduino_spi {
Expand All @@ -14,7 +15,7 @@
compatible = "adi,adxl372";
reg = <0x0>;
spi-max-frequency = <DT_FREQ_M(1)>;
int1-gpios = <&arduino_header 13 GPIO_ACTIVE_HIGH>;
int1-gpios = <&arduino_header ARDUINO_HEADER_R3_D7 GPIO_ACTIVE_HIGH>;
fifo-mode = <ADXL372_FIFO_MODE_STREAMED>;
fifo-watermark = <0x80>;
status = "okay";
Expand Down
8 changes: 5 additions & 3 deletions boards/shields/frdm_cr20a/frdm_cr20a.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <zephyr/dt-bindings/gpio/arduino-header-r3.h>

/ {
chosen {
zephyr,ieee802154 = &ieee802154_frdm_cr20a;
Expand All @@ -17,9 +19,9 @@
compatible = "nxp,mcr20a";
reg = <0x0>;
spi-max-frequency = <4000000>;
irqb-gpios = <&arduino_header 8
(GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; /* D2 */
reset-gpios = <&arduino_header 11 GPIO_ACTIVE_LOW>; /* D5 */
irqb-gpios = <&arduino_header ARDUINO_HEADER_R3_D2
(GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
reset-gpios = <&arduino_header ARDUINO_HEADER_R3_D5 GPIO_ACTIVE_LOW>;
status = "okay";
};
};
Loading