mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-24 23:53:02 +00:00
35aa38540a
This backports patches dt-bindings: firmware: add cznic,turris-omnia-mcu binding platform: cznic: Add preliminary support for Turris Omnia MCU platform: cznic: turris-omnia-mcu: Add support for MCU connected GPIOs platform: cznic: turris-omnia-mcu: Add support for poweroff and wakeup platform: cznic: turris-omnia-mcu: Add support for MCU watchdog platform: cznic: turris-omnia-mcu: Add support for MCU provided TRNG ARM: dts: turris-omnia: Add MCU system-controller node ARM: dts: turris-omnia: Add GPIO key node for front button platform: cznic: turris-omnia-mcu: Depend on OF platform: cznic: turris-omnia-mcu: Depend on WATCHDOG platform: cznic: turris-omnia-mcu: fix Kconfig dependencies that will be released in 6.11 into mvebu/patches-6.6. Signed-off-by: Marek Behún <kabel@kernel.org> Link: https://github.com/openwrt/openwrt/pull/13799 Signed-off-by: Robert Marko <robimarko@gmail.com>
46 lines
1.7 KiB
Diff
46 lines
1.7 KiB
Diff
From 24c68c2525de5fcd0f3b16b2ad1028fb13b53393 Mon Sep 17 00:00:00 2001
|
|
From: Arnd Bergmann <arnd@arndb.de>
|
|
Date: Mon, 15 Jul 2024 08:02:30 +0200
|
|
Subject: [PATCH 11/11] platform: cznic: turris-omnia-mcu: fix Kconfig
|
|
dependencies
|
|
|
|
The newly added driver causes a Kconfig warning:
|
|
|
|
WARNING: unmet direct dependencies detected for RTC_CLASS
|
|
Depends on [n]: !S390 [=y]
|
|
Selected by [m]:
|
|
- TURRIS_OMNIA_MCU [=m] && CZNIC_PLATFORMS [=y] && (MACH_ARMADA_38X || COMPILE_TEST [=y]) && I2C [=m] && OF [=y] && WATCHDOG [=y]
|
|
|
|
The problem here is that it selects entire subsystems, which normal
|
|
device drivers should not do. Changes all of these to 'depends on'
|
|
instead.
|
|
|
|
Fixes: dfa556e45ae9e ("platform: cznic: turris-omnia-mcu: Add support for MCU connected GPIOs")
|
|
Fixes: 90e700fd12b61 ("platform: cznic: turris-omnia-mcu: Add support for poweroff and wakeup")
|
|
Fixes: ab89fb5fb92c7 ("platform: cznic: turris-omnia-mcu: Add support for MCU watchdog")
|
|
Fixes: 41bb142a40289 ("platform: cznic: turris-omnia-mcu: Add support for MCU provided TRNG")
|
|
Reported-by: Nathan Chancellor <nathan@kernel.org>
|
|
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
|
|
---
|
|
drivers/platform/cznic/Kconfig | 8 ++++----
|
|
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
|
|
--- a/drivers/platform/cznic/Kconfig
|
|
+++ b/drivers/platform/cznic/Kconfig
|
|
@@ -18,11 +18,11 @@ config TURRIS_OMNIA_MCU
|
|
depends on I2C
|
|
depends on OF
|
|
depends on WATCHDOG
|
|
- select GPIOLIB
|
|
+ depends on GPIOLIB
|
|
+ depends on HW_RANDOM
|
|
+ depends on RTC_CLASS
|
|
+ depends on WATCHDOG_CORE
|
|
select GPIOLIB_IRQCHIP
|
|
- select HW_RANDOM
|
|
- select RTC_CLASS
|
|
- select WATCHDOG_CORE
|
|
help
|
|
Say Y here to add support for the features implemented by the
|
|
microcontroller on the CZ.NIC's Turris Omnia SOHO router.
|