1992f1a3dSMarek Behún# SPDX-License-Identifier: GPL-2.0-only 2992f1a3dSMarek Behún# 3992f1a3dSMarek Behún# For a description of the syntax of this configuration file, 4992f1a3dSMarek Behún# see Documentation/kbuild/kconfig-language.rst. 5992f1a3dSMarek Behún# 6992f1a3dSMarek Behún 7992f1a3dSMarek Behúnmenuconfig CZNIC_PLATFORMS 8992f1a3dSMarek Behún bool "Platform support for CZ.NIC's Turris hardware" 9992f1a3dSMarek Behún help 10992f1a3dSMarek Behún Say Y here to be able to choose driver support for CZ.NIC's Turris 11992f1a3dSMarek Behún devices. This option alone does not add any kernel code. 12992f1a3dSMarek Behún 13992f1a3dSMarek Behúnif CZNIC_PLATFORMS 14992f1a3dSMarek Behún 15992f1a3dSMarek Behúnconfig TURRIS_OMNIA_MCU 16992f1a3dSMarek Behún tristate "Turris Omnia MCU driver" 17992f1a3dSMarek Behún depends on MACH_ARMADA_38X || COMPILE_TEST 18992f1a3dSMarek Behún depends on I2C 195423a01dSMarek Behún depends on OF 20*dc3c836fSMarek Behún depends on WATCHDOG 21dfa556e4SMarek Behún select GPIOLIB 22dfa556e4SMarek Behún select GPIOLIB_IRQCHIP 2341bb142aSMarek Behún select HW_RANDOM 2490e700fdSMarek Behún select RTC_CLASS 25ab89fb5fSMarek Behún select WATCHDOG_CORE 26992f1a3dSMarek Behún help 27992f1a3dSMarek Behún Say Y here to add support for the features implemented by the 28992f1a3dSMarek Behún microcontroller on the CZ.NIC's Turris Omnia SOHO router. 29dfa556e4SMarek Behún The features include: 3090e700fdSMarek Behún - board poweroff into true low power mode (with voltage regulators 3190e700fdSMarek Behún disabled) and the ability to configure wake up from this mode (via 3290e700fdSMarek Behún rtcwake) 3341bb142aSMarek Behún - true random number generator (if available on the MCU) 34ab89fb5fSMarek Behún - MCU watchdog 35dfa556e4SMarek Behún - GPIO pins 36dfa556e4SMarek Behún - to get front button press events (the front button can be 37dfa556e4SMarek Behún configured either to generate press events to the CPU or to change 38dfa556e4SMarek Behún front LEDs panel brightness) 39dfa556e4SMarek Behún - to enable / disable USB port voltage regulators and to detect 40dfa556e4SMarek Behún USB overcurrent 41dfa556e4SMarek Behún - to detect MiniPCIe / mSATA card presence in MiniPCIe port 0 42dfa556e4SMarek Behún - to configure resets of various peripherals on board revisions 32+ 43dfa556e4SMarek Behún - to enable / disable the VHV voltage regulator to the SOC in order 44dfa556e4SMarek Behún to be able to program SOC's OTP on board revisions 32+ 45dfa556e4SMarek Behún - to get input from the LED output pins of the WAN ethernet PHY, LAN 46dfa556e4SMarek Behún switch and MiniPCIe ports 47992f1a3dSMarek Behún To compile this driver as a module, choose M here; the module will be 48992f1a3dSMarek Behún called turris-omnia-mcu. 49992f1a3dSMarek Behún 50992f1a3dSMarek Behúnendif # CZNIC_PLATFORMS 51