tests: gpio_basic_api: add board overlay for up_squared

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>
This commit is contained in:
Daniel Leung 2019-11-06 09:33:19 -08:00 committed by Carles Cufí
commit 4f70189c32

View file

@ -0,0 +1,26 @@
/*
* Copyright (c) 2019 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
/*
* This uses pin 40 on HAT as LED, and pin 38 as interrupt line.
*
* Note:
* Need to change the BIOS settings:
* () Advanced -> HAT Configurations:
* - HD-Audio / I2S6 Selec -> Disabled
*
* - GPIO 27 (Pin38) Confi -> Input
* - GPIO 28 (Pin40) Confi -> Output
*/
/ {
resources {
compatible = "test,gpio_basic_api";
out-gpios = <&gpio_w 19 0>; /* HAT Pin 40 */
in-gpios = <&gpio_w 18 0>; /* HAT Pin 38 */
};
};