Re: [PATCH v3 3/8] media: camss: Define timestamp registers for csid-gen2

From: Gjorgji Rosikopulos (Consultant)

Date: Tue Dec 01 2026 - 06:25:20 EST


Hi Bryan, Loic,

On 11/27/2026 6:11 PM, Loic Poulain wrote:
> From: Bryan O'Donoghue <bryan.odonoghue@xxxxxxxxxx>
>
> Timestamp registers inside of the CSID block are available at different
> offsets from the CSID base depending on whether the CSID is lite or not.
>
> Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@xxxxxxxxxx>
> Signed-off-by: Loic Poulain <loic.poulain@xxxxxxxxxxxxxxxx>
> ---
> drivers/media/platform/qcom/camss/camss-csid-gen2.c | 16 ++++++++++++++++
> 1 file changed, 16 insertions(+)
>
> diff --git a/drivers/media/platform/qcom/camss/camss-csid-gen2.c b/drivers/media/platform/qcom/camss/camss-csid-gen2.c
> index a351ac4b91728b981fe80e030fcb5ebfdab138b2..85e9eaf78df75f95d5f44f83b45dc7a3633401d0 100644
> --- a/drivers/media/platform/qcom/camss/camss-csid-gen2.c
> +++ b/drivers/media/platform/qcom/camss/camss-csid-gen2.c
> @@ -121,6 +121,22 @@
> + 0x100 * (rdi))
> #define CSID_RDI_RPP_LINE_DROP_PERIOD(rdi) ((csid_is_lite(csid) ? 0x230 : 0x330)\
> + 0x100 * (rdi))
> +#define CSID_RDI_TIMESTAMP_CURR0_SOF(rdi) ((csid_is_lite(csid) ? 0x290 : 0x390)\
> + + 0x100 * (rdi))
> +#define CSID_RDI_TIMESTAMP_CURR1_SOF(rdi) ((csid_is_lite(csid) ? 0x294 : 0x394)\
> + + 0x100 * (rdi))
> +#define CSID_RDI_TIMESTAMP_PREV0_SOF(rdi) ((csid_is_lite(csid) ? 0x298 : 0x398)\
> + + 0x100 * (rdi))
> +#define CSID_RDI_TIMESTAMP_PREV1_SOF(rdi) ((csid_is_lite(csid) ? 0x29C : 0x39C)\
> + + 0x100 * (rdi))
> +#define CSID_RDI_TIMESTAMP_CURR0_EOF(rdi) ((csid_is_lite(csid) ? 0x2A0 : 0x3A0)\
> + + 0x100 * (rdi))
> +#define CSID_RDI_TIMESTAMP_CURR1_EOF(rdi) ((csid_is_lite(csid) ? 0x2A4 : 0x3A4)\
> + + 0x100 * (rdi))
> +#define CSID_RDI_TIMESTAMP_PREV0_EOF(rdi) ((csid_is_lite(csid) ? 0x2A8 : 0x3A8)\
> + + 0x100 * (rdi))
> +#define CSID_RDI_TIMESTAMP_PREV1_EOF(rdi) ((csid_is_lite(csid) ? 0x2AC : 0x3AC)\
> + + 0x100 * (rdi))
>
> #define CSID_TPG_CTRL 0x600
> #define TPG_CTRL_TEST_EN 0
>

Looks good to me.

Reviewed-by: Gjorgji Rosikopulos <gjorgji.rosikopulos@xxxxxxxxxxxxxxxx>

~Gjorgji