boards: quick_feather: enable GPIO driver
Enable GPIO driver for Quick Feather board. Co-authored-by: Jan Kowalewski <jkowalewski@antmicro.com> Signed-off-by: Wojciech Tatarski <wtatarski@antmicro.com> Signed-off-by: Jan Kowalewski <jkowalewski@antmicro.com>
This commit is contained in:
parent
bd6617ddf8
commit
e3636114df
3 changed files with 41 additions and 0 deletions
|
@ -42,6 +42,8 @@ features:
|
|||
+===========+============+=====================================+
|
||||
| UART | on-chip | serial port |
|
||||
+-----------+------------+-------------------------------------+
|
||||
| GPIO | on-chip | gpio |
|
||||
+-----------+------------+-------------------------------------+
|
||||
|
||||
The default configuration can be found in the Kconfig file
|
||||
:zephyr_file:`boards/arm/quick_feather/quick_feather_defconfig`.
|
||||
|
|
|
@ -18,12 +18,48 @@
|
|||
zephyr,uart-pipe = &uart0;
|
||||
};
|
||||
|
||||
aliases {
|
||||
led0 = &blue_led;
|
||||
led1 = &green_led;
|
||||
led2 = &red_led;
|
||||
sw0 = &button0;
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
blue_led: led_0 {
|
||||
gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
|
||||
label = "LED 0";
|
||||
};
|
||||
|
||||
green_led: led_1 {
|
||||
gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
|
||||
label = "LED 1";
|
||||
};
|
||||
|
||||
red_led: led_2 {
|
||||
gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
|
||||
label = "LED 2";
|
||||
};
|
||||
};
|
||||
|
||||
buttons {
|
||||
compatible = "gpio-keys";
|
||||
button0: button_0 {
|
||||
gpios = <&gpio 0 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
|
||||
label = "User Push Button 0";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&cpu0 {
|
||||
clock-frequency = <61440000>;
|
||||
};
|
||||
|
||||
&gpio {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&uart0 {
|
||||
status = "okay";
|
||||
current-speed = <115200>;
|
||||
|
|
|
@ -26,3 +26,6 @@ CONFIG_XIP=n
|
|||
CONFIG_FLASH=n
|
||||
CONFIG_FLASH_SIZE=0
|
||||
CONFIG_FLASH_BASE_ADDRESS=0x0
|
||||
|
||||
# GPIO
|
||||
CONFIG_GPIO=y
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue