Add Acpi support#44
Open
khaiwenng wants to merge 4 commits into
Open
Conversation
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>
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add ACPI support using ACPI fwnode