public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
From: jernej.skrabec@siol.net (Jernej Škrabec)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 11/18] drm/sun4i: Add A83T support
Date: Mon, 27 Nov 2017 17:01:49 +0100	[thread overview]
Message-ID: <2744508.m82qQEPny3@jernej-laptop> (raw)
In-Reply-To: <1c4f6b275597dec7d97b5c1d9f749ba27c0610f3.1511797218.git-series.maxime.ripard@free-electrons.com>

Hi Maxime,

Dne ponedeljek, 27. november 2017 ob 16:41:35 CET je Maxime Ripard napisal(a):
> Add support for the A83T display pipeline.
> 
> Reviewed-by: Chen-Yu Tsai <wens@csie.org>
> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
> ---
>  Documentation/devicetree/bindings/display/sunxi/sun4i-drm.txt | 3 +++
>  drivers/gpu/drm/sun4i/sun4i_drv.c                             | 2 ++
>  drivers/gpu/drm/sun4i/sun4i_tcon.c                            | 5 +++++
>  drivers/gpu/drm/sun4i/sun8i_mixer.c                           | 4 ++++
>  4 files changed, 14 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/display/sunxi/sun4i-drm.txt
> b/Documentation/devicetree/bindings/display/sunxi/sun4i-drm.txt index
> d4259a4f5171..d6b52e5c48c0 100644
> --- a/Documentation/devicetree/bindings/display/sunxi/sun4i-drm.txt
> +++ b/Documentation/devicetree/bindings/display/sunxi/sun4i-drm.txt
> @@ -93,6 +93,7 @@ Required properties:
>     * allwinner,sun6i-a31s-tcon
>     * allwinner,sun7i-a20-tcon
>     * allwinner,sun8i-a33-tcon
> +   * allwinner,sun8i-a83t-tcon-lcd
>     * allwinner,sun8i-v3s-tcon
>   - reg: base address and size of memory-mapped region
>   - interrupts: interrupt associated to this IP
> @@ -224,6 +225,7 @@ supported.
> 
>  Required properties:
>    - compatible: value must be one of:
> +    * allwinner,sun8i-a83t-de2-mixer

What will be the name of the second mixer, once support for HDMI is added? 
Should we start directly with 0 and 1 postfix ?

>      * allwinner,sun8i-v3s-de2-mixer
>    - reg: base address and size of the memory-mapped region.
>    - clocks: phandles to the clocks feeding the mixer
> @@ -253,6 +255,7 @@ Required properties:
>      * allwinner,sun6i-a31s-display-engine
>      * allwinner,sun7i-a20-display-engine
>      * allwinner,sun8i-a33-display-engine
> +    * allwinner,sun8i-a83t-display-engine
>      * allwinner,sun8i-v3s-display-engine
> 
>    - allwinner,pipelines: list of phandle to the display engine
> diff --git a/drivers/gpu/drm/sun4i/sun4i_drv.c
> b/drivers/gpu/drm/sun4i/sun4i_drv.c index 75c76cdd82bc..c418be2f22be 100644
> --- a/drivers/gpu/drm/sun4i/sun4i_drv.c
> +++ b/drivers/gpu/drm/sun4i/sun4i_drv.c
> @@ -193,6 +193,7 @@ static bool sun4i_drv_node_is_tcon(struct device_node
> *node) of_device_is_compatible(node, "allwinner,sun6i-a31s-tcon") ||
>  		of_device_is_compatible(node, "allwinner,sun7i-a20-tcon") ||
>  		of_device_is_compatible(node, "allwinner,sun8i-a33-tcon") ||
> +		of_device_is_compatible(node, "allwinner,sun8i-a83t-tcon-lcd") ||
>  		of_device_is_compatible(node, "allwinner,sun8i-v3s-tcon");
>  }
> 
> @@ -353,6 +354,7 @@ static const struct of_device_id sun4i_drv_of_table[] =
> { { .compatible = "allwinner,sun6i-a31s-display-engine" },
>  	{ .compatible = "allwinner,sun7i-a20-display-engine" },
>  	{ .compatible = "allwinner,sun8i-a33-display-engine" },
> +	{ .compatible = "allwinner,sun8i-a83t-display-engine" },
>  	{ .compatible = "allwinner,sun8i-v3s-display-engine" },
>  	{ }
>  };
> diff --git a/drivers/gpu/drm/sun4i/sun4i_tcon.c
> b/drivers/gpu/drm/sun4i/sun4i_tcon.c index 46ce6daa0b1a..871df75793a9
> 100644
> --- a/drivers/gpu/drm/sun4i/sun4i_tcon.c
> +++ b/drivers/gpu/drm/sun4i/sun4i_tcon.c
> @@ -1132,6 +1132,10 @@ static const struct sun4i_tcon_quirks
> sun8i_a33_quirks = { .has_lvds_pll		= true,
>  };
> 
> +static const struct sun4i_tcon_quirks sun8i_a83t_quirks = {
> +	/* nothing is supported */
> +};
> +
>  static const struct sun4i_tcon_quirks sun8i_v3s_quirks = {
>  	/* nothing is supported */
>  };
> @@ -1143,6 +1147,7 @@ static const struct of_device_id sun4i_tcon_of_table[]
> = { { .compatible = "allwinner,sun6i-a31s-tcon", .data = &sun6i_a31s_quirks
> }, { .compatible = "allwinner,sun7i-a20-tcon", .data = &sun7i_a20_quirks },
> { .compatible = "allwinner,sun8i-a33-tcon", .data = &sun8i_a33_quirks },
> +	{ .compatible = "allwinner,sun8i-a83t-tcon-lcd", .data =
> &sun8i_a83t_quirks }, { .compatible = "allwinner,sun8i-v3s-tcon", .data =
> &sun8i_v3s_quirks }, { }
>  };
> diff --git a/drivers/gpu/drm/sun4i/sun8i_mixer.c
> b/drivers/gpu/drm/sun4i/sun8i_mixer.c index 44d5e639ebb2..5a1376965270
> 100644
> --- a/drivers/gpu/drm/sun4i/sun8i_mixer.c
> +++ b/drivers/gpu/drm/sun4i/sun8i_mixer.c
> @@ -395,6 +395,10 @@ static const struct sun8i_mixer_cfg sun8i_v3s_mixer_cfg
> = {
> 
>  static const struct of_device_id sun8i_mixer_of_table[] = {
>  	{
> +		.compatible = "allwinner,sun8i-a83t-de2-mixer",
> +		.data = &sun8i_v3s_mixer_cfg,
> +	},
> +	{

Maybe you want to squash 12 patch since this works only by luck.

Best regards,
Jernej

>  		.compatible = "allwinner,sun8i-v3s-de2-mixer",
>  		.data = &sun8i_v3s_mixer_cfg,
>  	},
> --
> git-series 0.9.1

  reply	other threads:[~2017-11-27 16:01 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-27 15:41 [PATCH v2 00/18] drm/sun4i: Add A83t LVDS support Maxime Ripard
2017-11-27 15:41 ` [PATCH v2 01/18] dt-bindings: panel: lvds: Document power-supply property Maxime Ripard
2017-11-28 17:48   ` Rob Herring
2017-11-30 15:30     ` Maxime Ripard
2017-11-30 19:57       ` Rob Herring
2017-11-27 15:41 ` [PATCH v2 02/18] drm/panel: lvds: Add support for the " Maxime Ripard
2017-11-27 15:41 ` [PATCH v2 03/18] dt-bindings: display: sun4i-drm: Add LVDS properties Maxime Ripard
2017-11-27 15:41 ` [PATCH v2 04/18] drm/sun4i: Fix error path handling Maxime Ripard
2017-11-27 15:41 ` [PATCH v2 05/18] drm/sun4i: Force the mixer rate at 150MHz Maxime Ripard
2017-11-27 16:07   ` Jernej Škrabec
2017-11-28  8:58     ` Maxime Ripard
2017-11-28 21:56       ` Jernej Škrabec
2017-11-29 15:55         ` Maxime Ripard
2017-11-27 15:41 ` [PATCH v2 06/18] drm/sun4i: Rename layers to UI planes Maxime Ripard
2017-11-27 15:41 ` [PATCH v2 07/18] drm/sun4i: sun8i: Rework the UI channels code Maxime Ripard
2017-11-27 15:41 ` [PATCH v2 08/18] drm/sun4i: Reorder and document DE2 mixer registers Maxime Ripard
2017-11-27 15:41 ` [PATCH v2 09/18] drm/sun4i: Create minimal multipliers and dividers Maxime Ripard
2017-11-27 15:41 ` [PATCH v2 10/18] drm/sun4i: Add LVDS support Maxime Ripard
2017-11-27 15:41 ` [PATCH v2 11/18] drm/sun4i: Add A83T support Maxime Ripard
2017-11-27 16:01   ` Jernej Škrabec [this message]
2017-11-28  9:02     ` Maxime Ripard
2017-11-28 11:50       ` Icenowy Zheng
2017-11-28 15:46         ` Maxime Ripard
2017-11-28 15:48       ` Jernej Škrabec
2017-11-28 22:00         ` Maxime Ripard
2017-11-28 22:33           ` Jernej Škrabec
2017-11-30 15:33             ` Maxime Ripard
2017-12-02 21:58               ` Jernej Škrabec
2017-11-27 16:19   ` Chen-Yu Tsai
2017-11-28  8:59     ` Maxime Ripard
2017-11-27 15:41 ` [PATCH v2 12/18] " Maxime Ripard
2017-11-27 15:41 ` [PATCH v2 13/18] ARM: dts: sun8i: a83t: Add display pipeline Maxime Ripard
2017-11-27 15:41 ` [PATCH v2 14/18] ARM: dts: sun8i: a83t: Enable the PWM Maxime Ripard
2017-11-27 15:41 ` [PATCH v2 15/18] ARM: dts: sun8i: a83t: Add LVDS pins group Maxime Ripard
2017-11-27 15:41 ` [PATCH v2 16/18] ARM: dts: sun8i: a83t: Add the PWM pin group Maxime Ripard
2017-11-27 15:41 ` [PATCH v2 17/18] ARM: dts: sun8i: a711: Reinstate the PMIC compatible Maxime Ripard
2017-11-27 15:41 ` [PATCH v2 18/18] ARM: dts: sun8i: a711: Enable the LCD Maxime Ripard
2017-11-27 16:20 ` [PATCH v2 00/18] drm/sun4i: Add A83t LVDS support Jernej Škrabec
2017-11-28 15:46   ` Maxime Ripard

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=2744508.m82qQEPny3@jernej-laptop \
    --to=jernej.skrabec@siol.net \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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