Skip to content
Closed
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
4 changes: 4 additions & 0 deletions boards/nxp/imx8mp_evk/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Zephyr OS is ported to run on the Cortex®-A53 core.
- LEDs:

- 1x Power status LED
- 1x User LED (yellow)
- 1x UART LED
- Debug

Expand Down Expand Up @@ -80,6 +81,9 @@ features:
| UART | on-chip | serial port-polling; |
| | | serial port-interrupt |
+-----------+------------+-------------------------------------+
| GPIO | on-chip | GPIO input; |
| | | GPIO output |
+-----------+------------+-------------------------------------+

Devices
========
Expand Down
13 changes: 13 additions & 0 deletions boards/nxp/imx8mp_evk/imx8mp_evk_mimx8ml8_m7.dts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

/dts-v1/;

#include <zephyr/dt-bindings/gpio/gpio.h>
#include <nxp/nxp_imx8ml_m7.dtsi>
#include "imx8mp_evk-pinctrl.dtsi"

Expand All @@ -21,6 +22,18 @@
zephyr,console = &uart4;
zephyr,shell-uart = &uart4;
};

leds {
compatible = "gpio-leds";

yellow_led: led_0 {
gpios = <&gpio3 16 GPIO_ACTIVE_HIGH>;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May I know hardware connection of GPIO3_16 pin? as I can't find this led on the board i.MX 8M Plus EVK board.

};
};

aliases {
led0 = &yellow_led;
};
};

&uart4 {
Expand Down
13 changes: 13 additions & 0 deletions boards/nxp/imx8mp_evk/imx8mp_evk_mimx8ml8_m7_ddr.dts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

/dts-v1/;

#include <zephyr/dt-bindings/gpio/gpio.h>
#include <nxp/nxp_imx8ml_m7.dtsi>
#include "imx8mp_evk-pinctrl.dtsi"

Expand All @@ -21,6 +22,18 @@
zephyr,console = &uart4;
zephyr,shell-uart = &uart4;
};

leds {
compatible = "gpio-leds";

yellow_led: led_0 {
gpios = <&gpio3 16 GPIO_ACTIVE_HIGH>;
};
};

aliases {
led0 = &yellow_led;
};
};

&uart4 {
Expand Down
Loading