Commit 89149c1
sensor monitor: add IMX291 + advertise the command in --help (#159)
The `sensor monitor` subcommand was implemented (#149) for SC2315E and
IMX385 but missing from `print_usage`, and the supported-sensors set
didn't cover IMX291. Add IMX291 register table tuned for DOL/WDR
debugging and document the feature with an example.
The IMX291 set focuses on what matters when chasing WDR exposure bugs:
HCG_FRSEL 0x3009 (1) HCG bit 4 + FRSEL bits 3:0 packed
GAIN 0x3014 (1) analog gain
VMAX 0x3018 (3) vertical period
HMAX 0x301C (2) horizontal period
SHS1 0x3020 (3) integration time (only functional shutter on IMX291)
OPORTSEL 0x3046 (1) output mode
SHS2 / RHS1 are deliberately omitted -- they read as 0 on IMX291
(present in the silicon address map but non-functional, see Sony
IMX291 datasheet vs IMX290 datasheet -- only IMX290/307/327 expose
DOL through that triplet).
Watching `HCG_FRSEL` is particularly useful: AE writes this register
when it wants to flip High Conversion Gain, and a buggy gu8HCGReg in
the sensor driver can drop FRSEL bits there, kicking the sensor out
of WDR for one frame. The fix in widgetii/sony_imx291@b51850c was
diagnosed via this register; the docs include the symptom pattern
to look for.
`print_usage` now lists `sensor monitor` alongside `trace`, `gpio`,
`reginfo` etc. with the supported-sensor list inline.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent e1f92fe commit 89149c1
3 files changed
Lines changed: 53 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
689 | 689 | | |
690 | 690 | | |
691 | 691 | | |
692 | | - | |
693 | | - | |
| 692 | + | |
| 693 | + | |
694 | 694 | | |
695 | 695 | | |
696 | 696 | | |
| |||
704 | 704 | | |
705 | 705 | | |
706 | 706 | | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
707 | 715 | | |
708 | 716 | | |
709 | 717 | | |
710 | 718 | | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
711 | 742 | | |
712 | 743 | | |
713 | 744 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
101 | 104 | | |
102 | 105 | | |
103 | 106 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
45 | 61 | | |
46 | 62 | | |
47 | 63 | | |
48 | 64 | | |
49 | 65 | | |
50 | 66 | | |
| 67 | + | |
51 | 68 | | |
52 | 69 | | |
53 | 70 | | |
| |||
0 commit comments