samples: led_apa102: overlay and config for blueclover_plt_demo_v2

Added dts overlay and config to support using
samples/driver/apa201 with blueclover_plt_demo_v2_nrf52832.

Signed-off-by: Jeremy Wood <jeremy@bcdevices.com>
This commit is contained in:
Jeremy Wood 2021-12-13 18:08:11 -08:00 committed by Carles Cufí
parent 07056736fc
commit 8068ab5261
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,2 @@
# Enable LED 5V Regulator
CONFIG_REGULATOR=y

View File

@ -0,0 +1,15 @@
/*
* Copyright (c) 2021 Blue Clover
*
* SPDX-License-Identifier: Apache-2.0
*/
/ {
led_pwr: led-pwr-ctrl {
compatible = "regulator-fixed-sync", "regulator-fixed";
label = "led-pwr-ctrl";
regulator-name = "led-pwr-ctrl";
enable-gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>;
regulator-boot-on;
};
};