Skip to content

Commit

Permalink
tests: gpio_api_1pin: add board overlay for up_squared
Browse files Browse the repository at this point in the history
This adds a board overlay for up_squared to be used with
the GPIO basic API test.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
  • Loading branch information
dcpleung authored and galak committed Nov 13, 2019
1 parent 0e19255 commit 6b1bcac
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions tests/drivers/gpio/gpio_api_1pin/boards/up_squared.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/*
* Copyright (c) 2019 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/

/*
* This uses pin 40 on HAT as LED.
*
* Note:
* Need to change the BIOS settings:
* () Advanced -> HAT Configurations:
* - HD-Audio / I2S6 Selec -> Disabled
*
* - GPIO 28 (Pin40) Confi -> Output
*/

/ {
aliases {
led0 = &led0;
};

leds {
compatible = "gpio-leds";
led0: led_0 {
gpios = <&gpio_w_000_031 19 0>;
label = "HAT Pin 40 as LED";
};

};
};

0 comments on commit 6b1bcac

Please sign in to comment.