xref: /linux/drivers/platform/cznic/Kconfig (revision 5423a01df8c5cdce58138fae4eef64b4ca5ff9e5)
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
19*5423a01dSMarek Behún	depends on OF
20dfa556e4SMarek Behún	select GPIOLIB
21dfa556e4SMarek Behún	select GPIOLIB_IRQCHIP
2241bb142aSMarek Behún	select HW_RANDOM
2390e700fdSMarek Behún	select RTC_CLASS
24ab89fb5fSMarek Behún	select WATCHDOG_CORE
25992f1a3dSMarek Behún	help
26992f1a3dSMarek Behún	  Say Y here to add support for the features implemented by the
27992f1a3dSMarek Behún	  microcontroller on the CZ.NIC's Turris Omnia SOHO router.
28dfa556e4SMarek Behún	  The features include:
2990e700fdSMarek Behún	  - board poweroff into true low power mode (with voltage regulators
3090e700fdSMarek Behún	    disabled) and the ability to configure wake up from this mode (via
3190e700fdSMarek Behún	    rtcwake)
3241bb142aSMarek Behún	  - true random number generator (if available on the MCU)
33ab89fb5fSMarek Behún	  - MCU watchdog
34dfa556e4SMarek Behún	  - GPIO pins
35dfa556e4SMarek Behún	    - to get front button press events (the front button can be
36dfa556e4SMarek Behún	      configured either to generate press events to the CPU or to change
37dfa556e4SMarek Behún	      front LEDs panel brightness)
38dfa556e4SMarek Behún	    - to enable / disable USB port voltage regulators and to detect
39dfa556e4SMarek Behún	      USB overcurrent
40dfa556e4SMarek Behún	    - to detect MiniPCIe / mSATA card presence in MiniPCIe port 0
41dfa556e4SMarek Behún	    - to configure resets of various peripherals on board revisions 32+
42dfa556e4SMarek Behún	    - to enable / disable the VHV voltage regulator to the SOC in order
43dfa556e4SMarek Behún	      to be able to program SOC's OTP on board revisions 32+
44dfa556e4SMarek Behún	    - to get input from the LED output pins of the WAN ethernet PHY, LAN
45dfa556e4SMarek Behún	      switch and MiniPCIe ports
46992f1a3dSMarek Behún	  To compile this driver as a module, choose M here; the module will be
47992f1a3dSMarek Behún	  called turris-omnia-mcu.
48992f1a3dSMarek Behún
49992f1a3dSMarek Behúnendif # CZNIC_PLATFORMS
50