Skip to content

Acpi support update - #64

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

Acpi support update#64
khaiwenng wants to merge 9 commits into
intel:mainfrom
khaiwenng:acpi-support-update

Conversation

@khaiwenng

Copy link
Copy Markdown

Added config for d4xx, acpi

Added source code changes to retrieve acpiName, subEntity.

khaiwenng and others added 9 commits June 18, 2026 15:23
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>
Scale d4xx json to second deserializer.

Signed-off-by: Khai Wen, Ng <khai.wen.ng@intel.com>
Signed-off-by: Ng, Khai Wen <khai.wen.ng@intel.com>
Signed-off-by: Khai Wen, Ng <khai.wen.ng@intel.com>
Signed-off-by: user <user@user-7.0-platform>
Signed-off-by: user <user@user-7.0-platform>
device-name=d4xx-X-depth for depth stream
device-name=d4xx-X-rgb for rgb stream

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