boards: it8xxx2_evb: enable LED0
With this change, we are able to build test of tests/drivers/gpio/gpio_api_1pin for the board. Signed-off-by: Dino Li <Dino.Li@ite.com.tw>
This commit is contained in:
parent
e79b6f1a81
commit
22d2bc9567
1 changed files with 13 additions and 0 deletions
|
@ -5,6 +5,7 @@
|
|||
|
||||
/dts-v1/;
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <it8xxx2.dtsi>
|
||||
#include <it8xxx2-alts-map.dtsi>
|
||||
|
||||
|
@ -22,6 +23,18 @@
|
|||
zephyr,code-partition = &slot0_partition;
|
||||
zephyr,keyboard-scan = &kscan0;
|
||||
};
|
||||
|
||||
aliases {
|
||||
led0 = &led0;
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
led0: led_0 {
|
||||
gpios = <&gpioc 0 GPIO_ACTIVE_HIGH>;
|
||||
label = "Green LED";
|
||||
};
|
||||
};
|
||||
};
|
||||
&adc0 {
|
||||
status = "okay";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue