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 20ed46f1f7SArnd Bergmann depends on GPIOLIB 21dfa556e4SMarek Behún select GPIOLIB_IRQCHIP 22992f1a3dSMarek Behún help 23992f1a3dSMarek Behún Say Y here to add support for the features implemented by the 24992f1a3dSMarek Behún microcontroller on the CZ.NIC's Turris Omnia SOHO router. 25dfa556e4SMarek Behún The features include: 26dfa556e4SMarek Behún - GPIO pins 27dfa556e4SMarek Behún - to get front button press events (the front button can be 28dfa556e4SMarek Behún configured either to generate press events to the CPU or to change 29dfa556e4SMarek Behún front LEDs panel brightness) 30dfa556e4SMarek Behún - to enable / disable USB port voltage regulators and to detect 31dfa556e4SMarek Behún USB overcurrent 32dfa556e4SMarek Behún - to detect MiniPCIe / mSATA card presence in MiniPCIe port 0 33dfa556e4SMarek Behún - to configure resets of various peripherals on board revisions 32+ 34dfa556e4SMarek Behún - to enable / disable the VHV voltage regulator to the SOC in order 35dfa556e4SMarek Behún to be able to program SOC's OTP on board revisions 32+ 36dfa556e4SMarek Behún - to get input from the LED output pins of the WAN ethernet PHY, LAN 37dfa556e4SMarek Behún switch and MiniPCIe ports 38019f87f1SMarek Behún Other features can be enabled by subsequent config options. 39992f1a3dSMarek Behún To compile this driver as a module, choose M here; the module will be 40992f1a3dSMarek Behún called turris-omnia-mcu. 41992f1a3dSMarek Behún 42019f87f1SMarek Behúnif TURRIS_OMNIA_MCU 43019f87f1SMarek Behún 44*74a22fceSMarek Behúnconfig TURRIS_OMNIA_MCU_SYSOFF_WAKEUP 45*74a22fceSMarek Behún bool "Turris Omnia MCU system off and RTC wakeup" 46*74a22fceSMarek Behún default y 47*74a22fceSMarek Behún depends on RTC_CLASS 48*74a22fceSMarek Behún help 49*74a22fceSMarek Behún Say Y here to add support for CZ.NIC's Turris Omnia board poweroff 50*74a22fceSMarek Behún into true low power mode (with voltage regulators disabled) and the 51*74a22fceSMarek Behún ability to configure wake up from this mode (via rtcwake). 52*74a22fceSMarek Behún 53019f87f1SMarek Behúnconfig TURRIS_OMNIA_MCU_WATCHDOG 54019f87f1SMarek Behún bool "Turris Omnia MCU watchdog" 55019f87f1SMarek Behún default y 56019f87f1SMarek Behún depends on WATCHDOG 57019f87f1SMarek Behún select WATCHDOG_CORE 58019f87f1SMarek Behún help 59019f87f1SMarek Behún Say Y here to add support for watchdog provided by CZ.NIC's Turris 60019f87f1SMarek Behún Omnia MCU. 61019f87f1SMarek Behún 62c7da0d4eSMarek Behúnconfig TURRIS_OMNIA_MCU_TRNG 63c7da0d4eSMarek Behún bool "Turris Omnia MCU true random number generator" 64c7da0d4eSMarek Behún default y 65c7da0d4eSMarek Behún depends on HW_RANDOM 66c7da0d4eSMarek Behún help 67c7da0d4eSMarek Behún Say Y here to add support for the true random number generator 68c7da0d4eSMarek Behún provided by CZ.NIC's Turris Omnia MCU. 69c7da0d4eSMarek Behún 70019f87f1SMarek Behúnendif # TURRIS_OMNIA_MCU 71019f87f1SMarek Behún 72992f1a3dSMarek Behúnendif # CZNIC_PLATFORMS 73