Skip to contentSkip to conversation

platform/x86: Add AMD ISP platform config for OV05C10

PATCH Superseded Pratap Nirujogi 1 participant 1 message May 5, 2025 x86 platform drivers

v11 of 15 Superseded Latest is v15 →

lore
Share & tools
lore
#0 lore raw

PATCH v11 1/1 platform/x86: Add AMD ISP platform config for OV05C10

ISP device specific configuration is not available in ACPI. Add swnode graph to configure the missing device properties for the OV05C10 camera device supported on amdisp platform.

Add support to create i2c-client dynamically when amdisp i2c adapter is available.

---
Changes v10 -> v11:

* Add check for return value of devm_mutex_init()

 drivers/platform/x86/amd/Kconfig    |  11 ++
 drivers/platform/x86/amd/Makefile   |   1 +
 drivers/platform/x86/amd/amd_isp4.c | 280 ++++++++++++++++++++++++++++
 3 files changed, 292 insertions(+)
 create mode 100644 drivers/platform/x86/amd/amd_isp4.c
drivers/platform/x86/amd/Kconfig +11 -0
index c3e086ea64fc..152a68a470e8 100644
@@ -32,3 +32,14 @@ config AMD_WBRF
 
 	  This mechanism will only be activated on platforms that advertise a
 	  need for it.
+
+config AMD_ISP_PLATFORM
+	tristate "AMD ISP4 platform driver"
+	depends on I2C && X86_64 && ACPI
+	help
+	  Platform driver for AMD platforms containing image signal processor
+	  gen 4. Provides camera sensor module board information to allow
+	  sensor and V4L drivers to work properly.
+
+	  This driver can also be built as a module.  If so, the module
+	  will be called amd_isp4.
drivers/platform/x86/amd/Makefile +1 -0
index c6c40bdcbded..b0e284b5d497 100644
@@ -10,3 +10,4 @@ obj-$(CONFIG_AMD_PMC)		+= pmc/
 obj-$(CONFIG_AMD_HSMP)		+= hsmp/
 obj-$(CONFIG_AMD_PMF)		+= pmf/
 obj-$(CONFIG_AMD_WBRF)		+= wbrf.o
+obj-$(CONFIG_AMD_ISP_PLATFORM)	+= amd_isp4.o
drivers/platform/x86/amd/amd_isp4.c new file +280 -0

280 lines not on this page · raw message

Signature · 1 line
2.43.0