Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #199

Closed
wants to merge 112 commits into from
Closed

Dev #199

wants to merge 112 commits into from

Conversation

dmipx
Copy link
Contributor

@dmipx dmipx commented Apr 7, 2024

No description provided.

xzhangxa and others added 30 commits January 30, 2023 11:31
* Set up GMSL links and init max9295 and max9296 settings from d4xx
* Add proxy ser device and gmsl-link in DT

Signed-off-by: Junze Wu <[email protected]>
Calling the GMSL APIs only on the first sensor based on the device tree
link to max9295, so for a typical 2 D457 on link A/B to the same
max9296, these initial setting will be executed twice like the reference
drivers.

This should be considered as a temporary solution. Merging 4 sensors
into one D457 device or changing GMSL API should be better.

Signed-off-by: Xin Zhang <[email protected]>
Signed-off-by: Junze Wu <[email protected]>
* Disable Depth, IR, IMU sensors of 1st D457 in DT
* Enable second serializer (ser_b) in DT
* Change dser's max-src from 1 to 2
* Add second D457 RGB sensor with metadata enabled

Signed-off-by: Junze Wu <[email protected]>
This patch is part of the original PR:
#107

Only the left cleanup is moved here, the IR metadata change in that PR
is not included.

Signed-off-by: Xin Zhang <[email protected]>
* Modify pipe Z to pull Depth & EMB
* Modify pipe U to pull RGB & EMB
* Modify DT to add two depth sensors

Signed-off-by: Junze Wu <[email protected]>
1. Remove hardcode register settings for each pipeline, and change to
use dynamic load pipe config base on the info read from device tree.

2. Change API max9295/9296_update_pipe() to max9295/9296_set_pipe(), and
remove setting pipe related registers in max9295/9296_init_setting(), do it in
max9295/9296_set_pipe() base on the info read from device tree.

3. Remove update pipe for IR pipe in tegra channel setting, and do it in d4xx
start streaming stage. In addition, not limited to the IR pipe type, all types
of pipe setting are performed here.

4. Remove param: "ir_type","ir_type_value", and probe/init check from max9295/9296,
since all the pipe setting flow and needed info are maintained in d4xx.

5. Split 0x0312 from map_pipe_opt in max9296, and set this register for each pipe,
in order to support dynamic switching of pipelines developed in the next step.

6. Add max9295/9296_reset_control() in ds5_remove().

Signed-off-by: Kaili Xu <[email protected]>
Signed-off-by: Xin Zhang <[email protected]>
* Add max9296_power_on/off to d4xx
* Fix max9295_reset_control to reset all only if ref count is 0

Signed-off-by: Junze Wu <[email protected]>
* Increase num-channels to 8
* Add sensor nodes with gmsl-link sections
* Add vi and nvcsi nodes
* Remove source node from DT
* vc-id is set as follows as a workaround for conflict
| 0 | 1 | 2 | 3 |
| depth0 | color0 | ir0 | imu0 |
| ir1 | imu1 | depth1 | color1 |

Signed-off-by: Junze Wu <[email protected]>
Signed-off-by: Xin Zhang <[email protected]>
* Acquire available pipe id when streaming starts
* Release video pipe when streaming is done
* Allow streams with same vc-ids to share a pipe

Signed-off-by: Junze Wu <[email protected]>
Default to y for setup with maxim serdes.

Signed-off-by: Xin Zhang <[email protected]>
* Update SerDes pipe setup
* Add API for max9296 one-shot reset
* Do one-shot reset only when start/stop Y12I stream

Signed-off-by: Junze Wu <[email protected]>
- Remove some serdes address settings since the original 9295/9296 code
  doesn't set them, and removing them doesn't impact D457 usage.
- Still need to set pipes at init time to make it work, but reuse existing
  code to reduce duplicated lines.
- Use existing address macros instead of hardcode values.

Signed-off-by: Xin Zhang <[email protected]>
* Create new DT without serializer B and the 4 nodes of 2nd camera
* Update shell scripts to apply correct DT
* Updated README

Signed-off-by: Junze Wu <[email protected]>
Signed-off-by: Dmitry Perchanov <[email protected]>
Signed-off-by: Dmitry Perchanov <[email protected]>
move dtsi to new logical folder
single - dev board
one/dual - evb

Signed-off-by: Dmitry Perchanov <[email protected]>
Signed-off-by: Dmitry Perchanov <[email protected]>
Signed-off-by: Dmitry Perchanov <[email protected]>
dmipx and others added 29 commits February 14, 2024 14:34
Signed-off-by: Dmitry Perchanov <[email protected]>
fix 4.6.1 syntax error

Signed-off-by: Dmitry Perchanov <[email protected]>
Signed-off-by: Dmitry Perchanov <[email protected]>
Signed-off-by: Dmitry Perchanov <[email protected]>
Error 262144 (40000h) cause high cpu usage.

Tracked-by: <LRS-1019>

Signed-off-by: Dmitry Perchanov <[email protected]>
Excessive Warning message of "no communication with d4xx" and App startup delay

Tracked-by: [RSDSO-19607]

Reported-by: Yusheng Hsu <[email protected]>

Signed-off-by: Dmitry Perchanov <[email protected]>
Tracked-by: [RSDSO-19608] [D457] [JP6] enable IIO-HID in kernel

Signed-off-by: Dmitry Perchanov <[email protected]>
Tracked-by: [RSDSO-19302]

Signed-off-by: Dmitry Perchanov <[email protected]>
LRS expects success on hwmc ioctl call.

[Error] /tmp/sandbox/src/librealsense-exception.h:52 - xioctl(VIDIOC_G_EXT_CTRLS) failed Last Error: Bad message

Signed-off-by: Dmitry Perchanov <[email protected]>
Signed-off-by: Dmitry Perchanov <[email protected]>
Align MIPI driver NOT_READY error to UVC flow

Tracked-by: <RSDSO-19622>

Signed-off-by: Dmitry Perchanov <[email protected]>
d4xx: return hwmc error code to lrs sdk.
@dmipx dmipx closed this Apr 7, 2024
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.

6 participants