Commit d9cd21d4 authored by Henry Shi's avatar Henry Shi Committed by Hans de Goede
Browse files

platform/x86: Add Silicom Platform Driver



Add Silicom platform (silicom-platform) Linux driver for Swisscom
Business Box (Swisscom BB) as well as Cordoba family products.

This platform driver provides support for various functions via
the Linux LED framework, GPIO framework, Hardware Monitoring (HWMON)
and device attributes.

Signed-off-by: default avatarHenry Shi <henryshi2018@gmail.com>
Reviewed-by: default avatarIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20231124200334.5318-1-henryshi2018@gmail.com


Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
parent 3799b5d2
Loading
Loading
Loading
Loading
+29 −0
Original line number Diff line number Diff line
What:		/sys/devices/platform/silicom-platform/uc_version
Date:		November 2023
KernelVersion:	6.7
Contact:	Henry Shi <henrys@silicom-usa.com>
Description:
		This file allows to read microcontroller firmware
		version of current platform.

What:		/sys/devices/platform/silicom-platform/power_cycle
Date:		November 2023
KernelVersion:	6.7
Contact:	Henry Shi <henrys@silicom-usa.com>
		This file allow user to power cycle the platform.
		Default value is 0; when set to 1, it powers down
		the platform, waits 5 seconds, then powers on the
		device. It returns to default value after power cycle.

		0 - default value.

What:		/sys/devices/platform/silicom-platform/efuse_status
Date:		November 2023
KernelVersion:	6.7
Contact:	Henry Shi <henrys@silicom-usa.com>
Description:
		This file is read only. It returns the current
		OTP status:

		0 - not programmed.
		1 - programmed.
+15 −0
Original line number Diff line number Diff line
@@ -1089,6 +1089,21 @@ config INTEL_SCU_IPC_UTIL

source "drivers/platform/x86/siemens/Kconfig"

config SILICOM_PLATFORM
	tristate "Silicom Edge Networking device support"
	depends on HWMON
	depends on GPIOLIB
	depends on LEDS_CLASS_MULTICOLOR
	help
	  This option enables support for the LEDs/GPIO/etc downstream of the
	  embedded controller on Silicom "Cordoba" hardware and derivatives.

	  This platform driver provides support for various functions via
	  the Linux LED framework, GPIO framework, Hardware Monitoring (HWMON)
	  and device attributes.

	  If you have a Silicom network appliance, say Y or M here.

config WINMATE_FM07_KEYS
	tristate "Winmate FM07/FM07P front-panel keys driver"
	depends on INPUT
+3 −0
Original line number Diff line number Diff line
@@ -136,6 +136,9 @@ obj-$(CONFIG_X86_INTEL_LPSS) += pmc_atom.o
# Siemens Simatic Industrial PCs
obj-$(CONFIG_SIEMENS_SIMATIC_IPC)	+= siemens/

# Silicom
obj-$(CONFIG_SILICOM_PLATFORM)		+= silicom-platform.o

# Winmate
obj-$(CONFIG_WINMATE_FM07_KEYS)		+= winmate-fm07-keys.o

+1004 −0

File added.

Preview size limit exceeded, changes collapsed.