Skip to content

Commit

Permalink
Merge pull request #105 from xzhangxa/refresh
Browse files Browse the repository at this point in the history
Allow refresh serdes configs during runtime
  • Loading branch information
ev-mp authored May 22, 2022
2 parents c28b8f7 + 0300297 commit 4139b1b
Show file tree
Hide file tree
Showing 2 changed files with 541 additions and 12 deletions.
35 changes: 23 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,20 +77,31 @@ sudo depmod
After rebooting Jetson, the D457 driver should work.

## Available directives on max9295/max9296 register setting

- Dump registers
```
cat /sys/bus/i2c/drivers/max9295/30-0040/register_dump
cat /sys/bus/i2c/drivers/max9296/30-0048/register_dump
```
```
cat /sys/bus/i2c/drivers/max9295/30-0040/register_dump
cat /sys/bus/i2c/drivers/max9296/30-0048/register_dump
```

- Dump setting version
```
cat /sys/module/max9295/parameters/max9295_setting_verison
cat /sys/module/max9296/parameters/max9296_setting_verison
```

```
cat /sys/module/max9295/parameters/max9295_setting_verison
cat /sys/module/max9296/parameters/max9296_setting_verison
```

- Disable updating setting dynamically (updating setting manually by running script).
**0** means disable updating setting dynamically, while **1** means enable updating setting dynamically.
```
echo 0 | sudo tee /sys/module/max9295/parameters/max9295_dynamic_update
echo 0 | sudo tee /sys/module/max9296/parameters/max9296_dynamic_update
```

```
echo 0 | sudo tee /sys/module/max9295/parameters/max9295_dynamic_update
echo 0 | sudo tee /sys/module/max9296/parameters/max9296_dynamic_update
```

- Refresh max9295/max9295 register values, this is used for forcely set serdes setting when necessary

```
echo 1 | sudo tee /sys/bus/i2c/drivers/max9295/30-0040/refresh_setting
echo 1 | sudo tee /sys/bus/i2c/drivers/max9296/30-0048/refresh_setting
```
Loading

0 comments on commit 4139b1b

Please sign in to comment.