DistroKit Mailinglist
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: distrokit@pengutronix.de
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [DistroKit] [PATCH 2/2] v7a: barebox: stm32mp: enable PWM LEDs for MC-1
Date: Wed, 10 Jun 2020 13:39:05 +0200	[thread overview]
Message-ID: <20200610113905.26826-2-a.fatoum@pengutronix.de> (raw)
In-Reply-To: <20200610113905.26826-1-a.fatoum@pengutronix.de>

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 <a.fatoum@pengutronix.de>
---
 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

  reply	other threads:[~2020-06-10 11:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-10 11:39 [DistroKit] [PATCH 1/2] v7a: barebox: version bump v2020.04.0 → v2020.06.0 Ahmad Fatoum
2020-06-10 11:39 ` Ahmad Fatoum [this message]
2020-06-12 13:24   ` [DistroKit] [PATCH 2/2] v7a: barebox: stm32mp: enable PWM LEDs for MC-1 Robert Schwebel
2020-06-12 13:24 ` [DistroKit] [PATCH 1/2] v7a: barebox: version bump v2020.04.0 → v2020.06.0 Robert Schwebel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200610113905.26826-2-a.fatoum@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=distrokit@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox