From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: From: Ahmad Fatoum Date: Wed, 10 Jun 2020 13:39:05 +0200 Message-Id: <20200610113905.26826-2-a.fatoum@pengutronix.de> In-Reply-To: <20200610113905.26826-1-a.fatoum@pengutronix.de> References: <20200610113905.26826-1-a.fatoum@pengutronix.de> MIME-Version: 1.0 Subject: [DistroKit] [PATCH 2/2] v7a: barebox: stm32mp: enable PWM LEDs for MC-1 List-Id: DistroKit Mailinglist List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: distrokit-bounces@pengutronix.de Sender: "DistroKit" To: distrokit@pengutronix.de Cc: Ahmad Fatoum With the barebox version bump, we now also have drivers for the STM32's PWM peripherals. The Linux Automation MC-1 features a PWM RGB LED, so enable the drivers for it to be usable. Signed-off-by: Ahmad Fatoum --- configs/platform-v7a/barebox-stm32mp.config | 6 ++++-- configs/platform-v7a/barebox-stm32mp.config.diff | 5 ++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/configs/platform-v7a/barebox-stm32mp.config b/configs/platform-v7a/barebox-stm32mp.config index 847fbb37337e..5f1d887cdbc6 100644 --- a/configs/platform-v7a/barebox-stm32mp.config +++ b/configs/platform-v7a/barebox-stm32mp.config @@ -558,7 +558,7 @@ CONFIG_MFD_SYSCON=y CONFIG_MFD_STPMIC1=y # CONFIG_FINTEK_SUPERIO is not set # CONFIG_SMSC_SUPERIO is not set -# CONFIG_MFD_STM32_TIMERS is not set +CONFIG_MFD_STM32_TIMERS=y # end of Multifunction device drivers # @@ -573,6 +573,7 @@ CONFIG_DEV_MEM=y CONFIG_LED=y CONFIG_LED_GPIO=y +CONFIG_LED_PWM=y CONFIG_LED_GPIO_OF=y # CONFIG_LED_GPIO_RGB is not set # CONFIG_LED_GPIO_BICOLOR is not set @@ -598,7 +599,8 @@ CONFIG_WATCHDOG_POLLER=y # CONFIG_WATCHDOG_DW is not set CONFIG_STM32_IWDG_WATCHDOG=y # CONFIG_STPMIC1_WATCHDOG is not set -# CONFIG_PWM is not set +CONFIG_PWM=y +CONFIG_PWM_STM32=y # CONFIG_HWRNG is not set # diff --git a/configs/platform-v7a/barebox-stm32mp.config.diff b/configs/platform-v7a/barebox-stm32mp.config.diff index 2967997a5677..e7d794f2d107 100644 --- a/configs/platform-v7a/barebox-stm32mp.config.diff +++ b/configs/platform-v7a/barebox-stm32mp.config.diff @@ -58,6 +58,7 @@ CONFIG_FIRMWARE=y # CONFIG_I2C_GPIO is not set CONFIG_I2C_STM32=y # CONFIG_KEYBOARD_USB is undefined +CONFIG_LED_PWM=y # CONFIG_LED_TRIGGERS is not set # CONFIG_LIBFDT is undefined CONFIG_MACH_LXA_MC1=y @@ -73,7 +74,7 @@ CONFIG_MACH_STM32MP157C_DK2=y CONFIG_MCI_MMC_BOOT_PARTITIONS=y # CONFIG_MCI_SPI is undefined CONFIG_MCI_STM32_SDMMC2=y -# CONFIG_MFD_STM32_TIMERS is not set +CONFIG_MFD_STM32_TIMERS=y CONFIG_MFD_STPMIC1=y CONFIG_MFD_SYSCON=y CONFIG_MICREL_PHY=y @@ -106,6 +107,8 @@ CONFIG_PBL_CONSOLE=y CONFIG_PINCTRL_STM32=y CONFIG_PRINTF_UUID=y CONFIG_PROMPT="barebox:" +CONFIG_PWM=y +CONFIG_PWM_STM32=y # CONFIG_REGULATOR_ANATOP is not set # CONFIG_REGULATOR_BCM283X is undefined CONFIG_REGULATOR_FIXED=y -- 2.27.0 _______________________________________________ DistroKit mailing list DistroKit@pengutronix.de