xref: /linux/drivers/platform/cznic/Kconfig (revision ab89fb5fb92c77a9486b6769bc8681251f094c67)
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
19dfa556e4SMarek Behún	select GPIOLIB
20dfa556e4SMarek Behún	select GPIOLIB_IRQCHIP
2190e700fdSMarek Behún	select RTC_CLASS
22*ab89fb5fSMarek Behún	select WATCHDOG_CORE
23992f1a3dSMarek Behún	help
24992f1a3dSMarek Behún	  Say Y here to add support for the features implemented by the
25992f1a3dSMarek Behún	  microcontroller on the CZ.NIC's Turris Omnia SOHO router.
26dfa556e4SMarek Behún	  The features include:
2790e700fdSMarek Behún	  - board poweroff into true low power mode (with voltage regulators
2890e700fdSMarek Behún	    disabled) and the ability to configure wake up from this mode (via
2990e700fdSMarek Behún	    rtcwake)
30*ab89fb5fSMarek Behún	  - MCU watchdog
31dfa556e4SMarek Behún	  - GPIO pins
32dfa556e4SMarek Behún	    - to get front button press events (the front button can be
33dfa556e4SMarek Behún	      configured either to generate press events to the CPU or to change
34dfa556e4SMarek Behún	      front LEDs panel brightness)
35dfa556e4SMarek Behún	    - to enable / disable USB port voltage regulators and to detect
36dfa556e4SMarek Behún	      USB overcurrent
37dfa556e4SMarek Behún	    - to detect MiniPCIe / mSATA card presence in MiniPCIe port 0
38dfa556e4SMarek Behún	    - to configure resets of various peripherals on board revisions 32+
39dfa556e4SMarek Behún	    - to enable / disable the VHV voltage regulator to the SOC in order
40dfa556e4SMarek Behún	      to be able to program SOC's OTP on board revisions 32+
41dfa556e4SMarek Behún	    - to get input from the LED output pins of the WAN ethernet PHY, LAN
42dfa556e4SMarek Behún	      switch and MiniPCIe ports
43992f1a3dSMarek Behún	  To compile this driver as a module, choose M here; the module will be
44992f1a3dSMarek Behún	  called turris-omnia-mcu.
45992f1a3dSMarek Behún
46992f1a3dSMarek Behúnendif # CZNIC_PLATFORMS
47