Skip to content

Add Acpi support#44

Open
khaiwenng wants to merge 4 commits into
intel:mainfrom
khaiwenng:acpi-support
Open

Add Acpi support#44
khaiwenng wants to merge 4 commits into
intel:mainfrom
khaiwenng:acpi-support

Conversation

@khaiwenng
Copy link
Copy Markdown

Add ACPI support using ACPI fwnode

@khaiwenng
Copy link
Copy Markdown
Author

Updated based on #28

Add a generic json that can be used for all GMSL sensors that are
enumerated through ACPI.

Signed-off-by: Khai Wen, Ng <khai.wen.ng@intel.com>
khaiwenng added 2 commits May 13, 2026 11:57
Add d4xx support that is using upstream framework enumeration.

Signed-off-by: Khai Wen, Ng <khai.wen.ng@intel.com>
The v4l2 entity name includes i2c adaptor number that is
dynamically allocated so it's hard to configured statically
in json file

Use ACPI firmware_node path ,i.e. \\_SB_.PC00.DES0 as configured
in json file as below

{
-   "name": "max96724 1-0027", "sinkPad": 0, "sinkStream": 0, "srcPad": 4,
+   "acpiName": "\\_SB_.PC00.DES0", "sinkPad": 0, "sinkStream": 0, "srcPad": 4,
    "srcStream": 0, "flag": 1
},

Squashed Changes:
* Remove unused mCurCam->sensorAcpiName field
* Use mem safe functions
* Removed duplicated LOGI
* Get entity id from entity name returned by acpiName2EntityName
* CameraSensorsParser: Fix non fatal error for non NVM usage
* CameraSensorParser: add acpiname for videonode
* Add similar mechanism to retrieve acpiname for videonode

ACPI device is enumerated as x-xxxx. This will trigger the
condition of mI2CBus.size < 2, and it will go ahead to
check NVM related informatino even when json file does not
mention any nvmDeviceInfo.

Fixes below error when loading different json files
[04-28 22:46:39.835] CamHAL[ERR] CameraSensorsParser: Failed to open dir /sys/bus/i2c/devices/i2c-4 1/firmware_node/
[04-28 22:46:39.835] CamHAL[ERR] CameraSensorsParser: Failed to open dir /sys/bus/i2c/devices/i2c-4 1/firmware_node/

Fixes below error logs when starting stream
[04-28 22:50:24.868] CamHAL[ERR] PlatformData: Failed to find DevName for cameraId: 5, get video node: , devname: /dev/v4l-subdev1

Signed-off-by: Yew, Chang Ching <chang.ching.yew@intel.com>
Signed-off-by: Khai Wen, Ng <khai.wen.ng@intel.com>
khaiwenng added a commit to khaiwenng/Intel-MIPI-CSI-Camera-Reference-Driver that referenced this pull request May 19, 2026
Add generic json file for ACPI enumerated devices.
Since all devices are tied to specific fwnode, link
all devices to fwnode.

Changes need to be tied to ipu7-camera-hal PR
intel/ipu7-camera-hal#44

Signed-off-by: Khai Wen, Ng <khai.wen.ng@intel.com>
khaiwenng added a commit to intel/Intel-MIPI-CSI-Camera-Reference-Driver that referenced this pull request May 19, 2026
Add generic json file for ACPI enumerated devices.
Since all devices are tied to specific fwnode, link
all devices to fwnode.

Changes need to be tied to ipu7-camera-hal PR
intel/ipu7-camera-hal#44

Signed-off-by: Khai Wen, Ng <khai.wen.ng@intel.com>
Scale d4xx json to second deserializer.

Signed-off-by: Khai Wen, Ng <khai.wen.ng@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant