From: Pavel Machek <pavel@denx.de>
To: Biju Das <biju.das.jz@bp.renesas.com>
Cc: cip-dev@lists.cip-project.org,
Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>,
Pavel Machek <pavel@denx.de>,
Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Subject: Re: [PATCH 6.1.y-cip 03/20] drm: rcar-du: Add RZ/G2L DSI driver
Date: Wed, 6 Sep 2023 10:41:45 +0200 [thread overview]
Message-ID: <ZPg7STHDn4LbLy7f@duo.ucw.cz> (raw)
In-Reply-To: <20230905160737.167877-4-biju.das.jz@bp.renesas.com>
[-- Attachment #1: Type: text/plain, Size: 1532 bytes --]
Hi!
> commit 7a043f978ed1433bddb088a732e9bb91501ebd76 upstream.
>
> This driver supports the MIPI DSI encoder found in the RZ/G2L
> SoC. It currently supports DSI video mode only.
Tiny nits:
> --- /dev/null
> +++ b/drivers/gpu/drm/rcar-du/rzg2l_mipi_dsi.c
...
> +static int rzg2l_mipi_dsi_start_video(struct rzg2l_mipi_dsi *dsi)
> +{
> + u32 vich1set0r;
> + u32 status;
> + int ret;
> +
> + /* Configuration for Blanking sequence and start video input*/
" */".
> +++ b/drivers/gpu/drm/rcar-du/rzg2l_mipi_dsi_regs.h
> @@ -0,0 +1,151 @@
> +/* DPHY Registers */
> +#define DSIDPHYCTRL0 0x00
> +#define DSIDPHYCTRL0_CAL_EN_HSRX_OFS BIT(16)
> +#define DSIDPHYCTRL0_CMN_MASTER_EN BIT(8)
> +#define DSIDPHYCTRL0_RE_VDD_DETVCCQLV18 BIT(2)
> +#define DSIDPHYCTRL0_EN_LDO1200 BIT(1)
> +#define DSIDPHYCTRL0_EN_BGR BIT(0)
...
> +/* HS Clock Set Register */
> +#define HSCLKSETR 0x104
> +#define HSCLKSETR_HSCLKMODE_CONT (1 << 1)
> +#define HSCLKSETR_HSCLKMODE_NON_CONT (0 << 1)
> +#define HSCLKSETR_HSCLKRUN_HS (1 << 0)
> +#define HSCLKSETR_HSCLKRUN_LP (0 << 0)
Mixing of BIT() and << looks kind of strange. Plus (0 << 0) is kind of
strange way to say 0. Not sure if this is worth fixing, but usually
people would not do special define for "NON_CONT" when it is 0 and
they already have "CONT" defined.
Best regards,
Pavel
--
DENX Software Engineering GmbH, Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
next prev parent reply other threads:[~2023-09-06 8:41 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-05 16:07 [PATCH 6.1.y-cip 00/20] Add Renesas RZ/G2L DSI,VSP,FCP support Biju Das
2023-09-05 16:07 ` [PATCH 6.1.y-cip 01/20] dt-bindings: display: bridge: Document RZ/G2L MIPI DSI TX bindings Biju Das
2023-09-05 16:07 ` [PATCH 6.1.y-cip 02/20] dt-bindings: display: bridge: renesas,rzg2l-mipi-dsi: Document RZ/V2L support Biju Das
2023-09-05 16:07 ` [PATCH 6.1.y-cip 03/20] drm: rcar-du: Add RZ/G2L DSI driver Biju Das
2023-09-06 8:41 ` Pavel Machek [this message]
2023-09-06 9:22 ` Biju Das
2023-09-05 16:07 ` [PATCH 6.1.y-cip 04/20] drm: rcar-du: Fix Kconfig dependency between DRM and RZG2L_MIPI_DSI Biju Das
2023-09-05 16:07 ` [PATCH 6.1.y-cip 05/20] drm: rcar-du: rzg2l_mipi_dsi: Enhance device lanes check Biju Das
2023-09-06 8:46 ` Pavel Machek
2023-09-06 9:07 ` [cip-dev] " Biju Das
2023-09-05 16:07 ` [PATCH 6.1.y-cip 06/20] arm64: dts: renesas: r9a07g044: Add fcpvd node Biju Das
2023-09-05 16:07 ` [PATCH 6.1.y-cip 07/20] arm64: dts: renesas: r9a07g044: Add vspd node Biju Das
2023-09-05 16:07 ` [PATCH 6.1.y-cip 08/20] arm64: dts: renesas: r9a07g044: Add DSI node Biju Das
2023-09-05 16:07 ` [PATCH 6.1.y-cip 09/20] arm64: dts: renesas: r9a07g054: Add fcpvd node Biju Das
2023-09-05 16:07 ` [PATCH 6.1.y-cip 10/20] arm64: dts: renesas: r9a07g054: Add vspd node Biju Das
2023-09-05 16:07 ` [PATCH 6.1.y-cip 11/20] arm64: dts: renesas: r9a07g054: Add DSI node Biju Das
2023-09-05 16:07 ` [PATCH 6.1.y-cip 12/20] arm64: dts: renesas: rzg2l-smarc: Link DSI with ADV7535 Biju Das
2023-09-05 16:07 ` [PATCH 6.1.y-cip 13/20] arm64: dts: renesas: rzg2lc-smarc: " Biju Das
2023-09-06 8:18 ` Pavel Machek
2023-09-06 8:23 ` Biju Das
2023-09-05 16:07 ` [PATCH 6.1.y-cip 14/20] arm64: defconfig: Enable Renesas RZ/G2L MIPI DSI driver Biju Das
2023-09-05 16:07 ` [PATCH 6.1.y-cip 15/20] drm: renesas: Add RZ/G2L DU Support Biju Das
2023-09-06 0:23 ` nobuhiro1.iwamatsu
2023-09-06 5:40 ` Biju Das
2023-09-06 5:45 ` nobuhiro1.iwamatsu
2023-09-06 12:20 ` Pavel Machek
2023-09-05 16:07 ` [PATCH 6.1.y-cip 16/20] arm64: dts: renesas: r9a07g044: Add DU node Biju Das
2023-09-05 23:39 ` nobuhiro1.iwamatsu
2023-09-06 5:42 ` Biju Das
2023-09-05 16:07 ` [PATCH 6.1.y-cip 17/20] arm64: dts: renesas: r9a07g054: " Biju Das
2023-09-05 16:07 ` [PATCH 6.1.y-cip 18/20] arm64: dts: renesas: rzg2l-smarc: Enable DU and link with DSI Biju Das
2023-09-05 16:07 ` [PATCH 6.1.y-cip 19/20] arm64: dts: renesas: rzg2lc-smarc: " Biju Das
2023-09-05 16:07 ` [PATCH 6.1.y-cip 20/20] defconfig: Enable display on RZ/G2L SMARC EVK Biju Das
2023-09-06 8:47 ` [PATCH 6.1.y-cip 00/20] Add Renesas RZ/G2L DSI,VSP,FCP support Pavel Machek
2023-09-06 10:44 ` nobuhiro1.iwamatsu
2023-09-06 12:08 ` Pavel Machek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZPg7STHDn4LbLy7f@duo.ucw.cz \
--to=pavel@denx.de \
--cc=biju.das.jz@bp.renesas.com \
--cc=cip-dev@lists.cip-project.org \
--cc=nobuhiro1.iwamatsu@toshiba.co.jp \
--cc=prabhakar.mahadev-lad.rj@bp.renesas.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox