Re: [PATCH v3 08/15] drm/sun4i: Add LVDS support

2017-12-13 Thread Chen-Yu Tsai
On Thu, Dec 7, 2017 at 8:25 PM, Maxime Ripard <maxime.rip...@free-electrons.com> wrote: > Hi, > > On Thu, Dec 07, 2017 at 02:05:47PM +0800, Chen-Yu Tsai wrote: >> > +static void sun4i_tcon_lvds_set_status(struct sun4i_tcon *tcon, >> > +

Re: [PATCH v2 01/12] drm/sun4i: backend: Move line stride setup to buffer setup function

2017-12-18 Thread Chen-Yu Tsai
e the case when using the frontend and then routing its > output to the backend. > > Reviewed-by: Neil Armstrong <narmstr...@baylibre.com> > Signed-off-by: Maxime Ripard <maxime.rip...@free-electrons.com> Reviewed-by: Chen-Yu Tsai <w...@csie.org> ___

Re: [PATCH v2 02/12] sun4i/drm: backend: Document the engine operations

2017-12-18 Thread Chen-Yu Tsai
* The array of struct drm_plane backing the layers, or an > +* error pointer on failure. > +*/ > struct drm_plane **(*layers_init)(struct drm_device *drm, > struct sunxi_engine *engine); > > - void (*apply_color

Re: [PATCH v2 04/12] drm/sun4i: engine: Add a custom crtc atomic_check

2017-12-18 Thread Chen-Yu Tsai
e YUV plane or one > plane that uses the frontend output. > > Let's allow our engines to provide an atomic_check callback to validate the > current configuration. > > Reviewed-by: Neil Armstrong <narmstr...@baylibre.com> > Signed-off-by: Maxime Ripard <maxime.rip...@f

Re: [PATCH v2 03/12] drm/sun4i: backend: Add a custom plane state

2017-12-18 Thread Chen-Yu Tsai
lane should use the frontend. > > Reviewed-by: Neil Armstrong <narmstr...@baylibre.com> > Signed-off-by: Maxime Ripard <maxime.rip...@free-electrons.com> Reviewed-by: Chen-Yu Tsai <w...@csie.org> ___ dri-devel mailing

Re: [PATCH v2 05/12] drm/sun4i: engine: Add a VBLANK quirk callback

2017-12-18 Thread Chen-Yu Tsai
struct sunxi_engine *engine); > > + /** > + * @vblank_quirk: > +* > +* This callback is used to implement backend-specific ^ engine Otherwise, Reviewed-by: Chen-Yu Tsai <w...@csie.org> > +* behaviour part of t

Re: [PATCH v2 06/12] drm/sun4i: engine: Create an atomic_begin callback

2017-12-18 Thread Chen-Yu Tsai
ngine.h > +++ b/drivers/gpu/drm/sun4i/sunxi_engine.h > @@ -33,6 +33,19 @@ struct sunxi_engine_ops { > void (*apply_color_correction)(struct sunxi_engine *engine); > > /** > +* @atomic_begin: > +* > +* This callback allows to prepare our backend fo

Re: [PATCH v3 10/15] ARM: dts: sun8i: a83t: Add display pipeline

2017-12-06 Thread Chen-Yu Tsai
can use only the LVDS output on the first TCON. The other parts will be > added eventually. > > Signed-off-by: Maxime Ripard <maxime.rip...@free-electrons.com> Reviewed-by: Chen-Yu Tsai <w...@csie.org> ___ dri-devel mailing

Re: [PATCH v3 08/15] drm/sun4i: Add LVDS support

2017-12-06 Thread Chen-Yu Tsai
On Tue, Dec 5, 2017 at 11:10 PM, Maxime Ripard wrote: > The TCON supports the LVDS interface to output to a panel or a bridge. > Let's add support for it. > > Signed-off-by: Maxime Ripard > --- > drivers/gpu/drm/sun4i/Makefile

Re: [PATCH v3 04/15] dt-bindings: display: sun4i-drm: Add A83T pipeline

2017-12-06 Thread Chen-Yu Tsai
gt;> >> Signed-off-by: Maxime Ripard <maxime.rip...@free-electrons.com> >> --- >> Documentation/devicetree/bindings/display/sunxi/sun4i-drm.txt | 3 +++ >> 1 file changed, 3 insertions(+) > > Reviewed-by: Rob Herring <r...@kernel.org> Reviewed-by: Chen-Yu Tsai <w...@csie.org> ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH v3 14/15] ARM: dts: sun8i: a711: Reinstate the PMIC compatible

2017-12-06 Thread Chen-Yu Tsai
I, unlike most other PMIC > DTSI, it obviously wasn't probing anymore. > > Re-add it so that everything works again. > > Fixes: 90c5d7cdae64 ("ARM: dts: sun8i: a711: Add regulator support") > Signed-off-by: Maxime Ripard <maxime.rip...@free-

Re: [PATCH v3 03/15] dt-bindings: display: sun4i-drm: Add LVDS properties

2017-12-06 Thread Chen-Yu Tsai
On Tue, Dec 5, 2017 at 11:10 PM, Maxime Ripard wrote: > Some clocks and resets supposed to drive the LVDS logic in the display > engine have been overlooked when the driver was first introduced. > > Add those additional resources to the binding, and we'll deal

Re: [PATCH v3 05/15] drm/sun4i: Fix error path handling

2017-12-05 Thread Chen-Yu Tsai
I noticed it after the patch was merged, but then I got busy with other stuff. Reviewed-by: Chen-Yu Tsai <w...@csie.org> ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH 03/21] clk: sunxi-ng: Enable DE2_CCU for Allwinner 64-bit SoCs

2018-05-14 Thread Chen-Yu Tsai
On Mon, May 14, 2018 at 1:20 AM, Jagan Teki <ja...@amarulasolutions.com> wrote: > On Tue, May 1, 2018 at 9:53 PM, Chen-Yu Tsai <w...@csie.org> wrote: >> On Mon, Apr 30, 2018 at 7:40 PM, Jagan Teki <ja...@amarulasolutions.com> >> wrote: >>> Allwinner 64

Re: [PATCH 4/6] drm/panel: simple: Add support for Banana Pi 7" S070WV20-CT16 panel

2018-05-16 Thread Chen-Yu Tsai
On Mon, May 14, 2018 at 11:03 AM, Jagan Teki <ja...@amarulasolutions.com> wrote: > On Thu, Apr 19, 2018 at 3:02 PM, Chen-Yu Tsai <w...@csie.org> wrote: >> This panel is marketed as Banana Pi 7" LCD display. On the back is >> a sticker denoting the model name

Re: [PATCH 4/6] drm/panel: simple: Add support for Banana Pi 7" S070WV20-CT16 panel

2018-05-16 Thread Chen-Yu Tsai
On Wed, May 16, 2018 at 12:20 AM, Jagan Teki <ja...@amarulasolutions.com> wrote: > On Wed, May 16, 2018 at 12:12 PM, Chen-Yu Tsai <w...@csie.org> wrote: >> On Mon, May 14, 2018 at 11:03 AM, Jagan Teki <ja...@amarulasolutions.com> >> wrote: >>> On Thu

Re: [PATCH 06/15] drm/sun4i: tcon: Add support for tcon-top

2018-05-24 Thread Chen-Yu Tsai
On Thu, May 24, 2018 at 1:50 AM, Maxime Ripard wrote: > On Mon, May 21, 2018 at 07:27:46PM +0200, Jernej Škrabec wrote: >> Hi, >> >> Dne ponedeljek, 21. maj 2018 ob 10:07:59 CEST je Maxime Ripard napisal(a): >> > On Sat, May 19, 2018 at 08:31:18PM +0200, Jernej Skrabec

Re: [linux-sunxi] Re: [PATCH v2 11/27] drm/sun4i: tcon: Add support for tcon-top gate

2018-06-15 Thread Chen-Yu Tsai
On Sat, Jun 16, 2018 at 1:33 AM, Jernej Škrabec wrote: > Dne petek, 15. junij 2018 ob 19:13:17 CEST je Chen-Yu Tsai napisal(a): >> On Sat, Jun 16, 2018 at 12:41 AM, Jernej Škrabec >> >> wrote: >> > Hi, >> > >> > Dne petek, 15. junij 2018 ob 10:

Re: [PATCH v2 02/27] clk: sunxi-ng: r40: Allow setting parent rate to display related clocks

2018-06-12 Thread Chen-Yu Tsai
On Wed, Jun 13, 2018 at 4:00 AM, Jernej Skrabec wrote: > Display related peripherals need precise clocks to operate correctly. > > Allow DE2, TCONs and HDMI to set parent clock. > > Signed-off-by: Jernej Skrabec Reviewed-by: Chen-Yu Tsai

Re: [PATCH v2 01/27] clk: sunxi-ng: r40: Add minimal rate for video PLLs

2018-06-12 Thread Chen-Yu Tsai
t; > Signed-off-by: Jernej Skrabec Reviewed-by: Chen-Yu Tsai ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH v2 14/27] drm/sun4i: Don't check for panel or bridge on TV TCONs

2018-06-13 Thread Chen-Yu Tsai
On Wed, Jun 13, 2018 at 3:46 PM, Maxime Ripard wrote: > On Tue, Jun 12, 2018 at 10:00:23PM +0200, Jernej Skrabec wrote: >> TV TCONs are always connected to TV or HDMI encoder, so it doesn't make >> sense to check if panel or bridge is connected to them. >> >> Check if TCON has channel 0 and only

Re: [linux-sunxi] Re: [PATCH v2 11/27] drm/sun4i: tcon: Add support for tcon-top gate

2018-06-15 Thread Chen-Yu Tsai
On Sat, Jun 16, 2018 at 12:41 AM, Jernej Škrabec wrote: > Hi, > > Dne petek, 15. junij 2018 ob 10:31:10 CEST je Maxime Ripard napisal(a): >> Hi, >> >> On Tue, Jun 12, 2018 at 10:00:20PM +0200, Jernej Skrabec wrote: >> > TV TCONs connected to TCON TOP have to enable additional gate in order >> >

Re: [PATCH 06/15] drm/sun4i: tcon: Add support for tcon-top

2018-06-01 Thread Chen-Yu Tsai
On Fri, Jun 1, 2018 at 8:29 AM, Maxime Ripard wrote: > On Thu, May 31, 2018 at 07:54:08PM +0200, Jernej Škrabec wrote: >> Dne četrtek, 31. maj 2018 ob 11:21:33 CEST je Maxime Ripard napisal(a): >> > On Thu, May 24, 2018 at 03:01:09PM -0700, Chen-Yu Tsai wrote: >> >

Re: [linux-sunxi] Re: [PATCH v3 23/24] ARM: dts: sun8i: r40: Add HDMI pipeline

2018-07-01 Thread Chen-Yu Tsai
On Sun, Jul 1, 2018 at 6:41 PM, Jernej Škrabec wrote: > Dne četrtek, 28. junij 2018 ob 08:51:07 CEST je Chen-Yu Tsai napisal(a): >> On Thu, Jun 28, 2018 at 1:15 PM, Jernej Škrabec > wrote: >> > Dne četrtek, 28. junij 2018 ob 04:50:09 CEST je Chen-Yu Tsai napisal(a): >&

Re: [linux-sunxi] [PATCH v3 06/24] drm/sun4i: Fix releasing node when enumerating enpoints

2018-06-29 Thread Chen-Yu Tsai
On Sat, Jun 30, 2018 at 3:15 AM, Jernej Škrabec wrote: > Dne četrtek, 28. junij 2018 ob 03:53:36 CEST je Chen-Yu Tsai napisal(a): >> On Mon, Jun 25, 2018 at 8:02 PM, Jernej Skrabec > wrote: >> > sun4i_drv_add_endpoints() has a memory leak since it uses of_node_put() >

Re: [linux-sunxi] Re: [PATCH v3 05/24] drm/sun4i: Add TCON TOP driver

2018-06-29 Thread Chen-Yu Tsai
On Sat, Jun 30, 2018 at 3:09 AM, Jernej Škrabec wrote: > Dne četrtek, 28. junij 2018 ob 03:47:20 CEST je Chen-Yu Tsai napisal(a): >> Hi, >> >> So I'm late to the party, but... >> >> On Mon, Jun 25, 2018 at 8:02 PM, Jernej Skrabec > wrote: >> >

Re: [PATCH v3 16/24] drm/sun4i: Enable DW HDMI PHY clock

2018-06-29 Thread Chen-Yu Tsai
On Sat, Jun 30, 2018 at 3:19 AM, Jernej Škrabec wrote: > Dne četrtek, 28. junij 2018 ob 04:22:36 CEST je Chen-Yu Tsai napisal(a): >> On Mon, Jun 25, 2018 at 8:02 PM, Jernej Skrabec > wrote: >> > Current DW HDMI PHY code never prepares and enables PHY clock after it is &g

Re: [PATCH v3 03/24] clk: sunxi-ng: r40: Export video PLLs

2018-06-25 Thread Chen-Yu Tsai
On Mon, Jun 25, 2018 at 8:02 PM, Jernej Skrabec wrote: > Video PLLs need to be referenced in R40 DT as possible HDMI PHY parent. > > Export them. > > Reviewed-by: Rob Herring > Signed-off-by: Jernej Skrabec Reviewed-by: Chen-Yu Tsai ___

Re: [PATCH v3 05/24] drm/sun4i: Add TCON TOP driver

2018-06-27 Thread Chen-Yu Tsai
Hi, So I'm late to the party, but... On Mon, Jun 25, 2018 at 8:02 PM, Jernej Skrabec wrote: > As already described in DT binding, TCON TOP is responsible for > configuring display pipeline. In this initial driver focus is on HDMI > pipeline, so TVE and LCD configuration is not implemented. > >

Re: [PATCH v3 09/24] drm/sun4i: Don't skip TCONs if they don't have channel 0

2018-06-27 Thread Chen-Yu Tsai
On Mon, Jun 25, 2018 at 8:02 PM, Jernej Skrabec wrote: > TV TCONs (channel 1 only) are always connected to TV or HDMI encoder. > Because of that, all output endpoints on such TCON node will point to a > encoder which is part of component framework. > > Correct current graph traversing algorithm

Re: [linux-sunxi] [PATCH v3 06/24] drm/sun4i: Fix releasing node when enumerating enpoints

2018-06-27 Thread Chen-Yu Tsai
On Mon, Jun 25, 2018 at 8:02 PM, Jernej Skrabec wrote: > sun4i_drv_add_endpoints() has a memory leak since it uses of_node_put() > when remote is equal to NULL and does nothing when remote has a valid > pointer. > > Invert the logic to fix memory leak. > > Signed-off-by: Jernej Skrabec Given

Re: [PATCH v3 08/24] drm/sun4i: Add support for traversing graph with TCON TOP

2018-06-27 Thread Chen-Yu Tsai
> > Signed-off-by: Jernej Skrabec Reviewed-by: Chen-Yu Tsai ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [linux-sunxi] [PATCH v3 07/24] drm/sun4i: Split out code for enumerating endpoints in output port

2018-06-27 Thread Chen-Yu Tsai
; all endpoints in input port and adds available components to fifo. > > This patch doesn't do any functional change. > > Signed-off-by: Jernej Skrabec Reviewed-by: Chen-Yu Tsai ___ dri-devel mailing list dri-devel@lists.freedesktop.org ht

Re: [PATCH v3 10/24] drm/sun4i: tcon: Generalize engine search algorithm

2018-06-27 Thread Chen-Yu Tsai
to be calculated by subtracting 1 from > +* remote output id. If this for some reason can't be done, 0 > +* is used as input port id. > +*/ You need to call of_node_put(port); to drop the reference to the original port. Otherwise, Reviewed-by: Chen-Yu Tsai &g

Re: [PATCH v3 11/24] drm/sun4i: Don't check for LVDS and RGB when TCON has only ch1

2018-06-27 Thread Chen-Yu Tsai
> > Signed-off-by: Jernej Skrabec Reviewed-by: Chen-Yu Tsai Though I think at some point we could just have separate functions to handle channel 0 and channel 1. ChenYu ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.fr

Re: [linux-sunxi] Re: [PATCH v2 11/27] drm/sun4i: tcon: Add support for tcon-top gate

2018-06-25 Thread Chen-Yu Tsai
On Mon, Jun 25, 2018 at 3:58 PM, Jernej Škrabec wrote: > Dne ponedeljek, 25. junij 2018 ob 05:51:41 CEST je Chen-Yu Tsai napisal(a): >> On Mon, Jun 25, 2018 at 3:52 AM, Jernej Škrabec >> >> wrote: >> > Dne četrtek, 21. junij 2018 ob 17:35:45 CEST je Jernej Škrabec

Re: [linux-sunxi] Re: [PATCH v2 11/27] drm/sun4i: tcon: Add support for tcon-top gate

2018-06-24 Thread Chen-Yu Tsai
On Mon, Jun 25, 2018 at 3:52 AM, Jernej Škrabec wrote: > Dne četrtek, 21. junij 2018 ob 17:35:45 CEST je Jernej Škrabec napisal(a): >> Dne četrtek, 21. junij 2018 ob 03:23:27 CEST je Chen-Yu Tsai napisal(a): >> > On Thu, Jun 21, 2018 at 3:37 AM, Jernej Škrabec >> >>

Re: [linux-sunxi] Re: [PATCH v2 11/27] drm/sun4i: tcon: Add support for tcon-top gate

2018-06-20 Thread Chen-Yu Tsai
On Thu, Jun 21, 2018 at 3:37 AM, Jernej Škrabec wrote: > Dne sobota, 16. junij 2018 ob 07:48:38 CEST je Chen-Yu Tsai napisal(a): >> On Sat, Jun 16, 2018 at 1:33 AM, Jernej Škrabec > wrote: >> > Dne petek, 15. junij 2018 ob 19:13:17 CEST je Chen-Yu Tsai napisal(a): >&

Re: [linux-sunxi] Re: [PATCH v3 09/24] drm/sun4i: Don't skip TCONs if they don't have channel 0

2018-07-01 Thread Chen-Yu Tsai
On Sun, Jul 1, 2018 at 4:27 PM, Jernej Škrabec wrote: > Dne četrtek, 28. junij 2018 ob 08:24:34 CEST je Chen-Yu Tsai napisal(a): >> On Thu, Jun 28, 2018 at 12:45 PM, Jernej Škrabec >> >> wrote: >> > Dne četrtek, 28. junij 2018 ob 03:51:31 CEST je Chen-Yu Tsai na

Re: [linux-sunxi] Re: [PATCH v3 23/24] ARM: dts: sun8i: r40: Add HDMI pipeline

2018-07-01 Thread Chen-Yu Tsai
On Sun, Jul 1, 2018 at 11:13 PM, Jernej Škrabec wrote: > Dne nedelja, 01. julij 2018 ob 15:52:55 CEST je Chen-Yu Tsai napisal(a): >> On Sun, Jul 1, 2018 at 6:41 PM, Jernej Škrabec > wrote: >> > Dne četrtek, 28. junij 2018 ob 08:51:07 CEST je Chen-Yu Tsai napisal(a): >&

Re: [PATCH 01/21] dt-bindings: clock: Add compatible for A64 DE2 CCU

2018-05-01 Thread Chen-Yu Tsai
On Wed, May 2, 2018 at 12:16 AM, Rob Herring wrote: > On Mon, Apr 30, 2018 at 05:10:38PM +0530, Jagan Teki wrote: >> Allwinner A64 has DE2 CCU which is similar to H3/H5 SoC. >> >> Signed-off-by: Jagan Teki >> --- >>

Re: [PATCH 10/21] drm/sun4i: Enable DesignWare HDMI for Allwinner 64-bit SoCs

2018-05-01 Thread Chen-Yu Tsai
On Mon, Apr 30, 2018 at 7:40 PM, Jagan Teki wrote: > Allwinner 64-bit SoC like H5/A64 has DesignWare HDMI so > enable them as default. Should we not also enable it by default for SUN8I (A83T, H3, R40?, etc.) > Signed-off-by: Jagan Teki >

Re: [PATCH 03/21] clk: sunxi-ng: Enable DE2_CCU for Allwinner 64-bit SoCs

2018-05-01 Thread Chen-Yu Tsai
On Mon, Apr 30, 2018 at 7:40 PM, Jagan Teki wrote: > Allwinner 64-bit SoC like H5/A64 has DE2 CCU so enable them > as default. > > Signed-off-by: Jagan Teki > --- > drivers/clk/sunxi-ng/Kconfig | 2 ++ > 1 file changed, 2 insertions(+) > >

Re: [PATCH 04/21] bindings: display: Add compatible for A64 DE2 pipeline

2018-05-01 Thread Chen-Yu Tsai
On Wed, May 2, 2018 at 12:17 AM, Rob Herring wrote: > On Mon, Apr 30, 2018 at 05:10:41PM +0530, Jagan Teki wrote: >> Allwinner A64 has DE2 pipeline similar to other Allwinner >> SOC's like A83T, H3/H5. > > 'dt-bindings: ' for the subject prefix. > >> >> Signed-off-by: Jagan Teki

Re: [linux-sunxi] Re: [PATCH v3 15/24] dt-bindings: display: sun4i-drm: Add description of A64 HDMI PHY

2018-07-03 Thread Chen-Yu Tsai
On Sat, Jun 30, 2018 at 3:32 AM, Jernej Škrabec wrote: > Dne četrtek, 28. junij 2018 ob 09:00:32 CEST je Chen-Yu Tsai napisal(a): >> On Thu, Jun 28, 2018 at 12:51 PM, Jernej Škrabec >> >> wrote: >> > Dne četrtek, 28. junij 2018 ob 04:19:55 CEST je Chen-Yu Tsai na

Re: [linux-sunxi] Re: [PATCH 01/11] clk: sunxi-ng: Don't set k if width is 0 for nkmp plls

2018-01-08 Thread Chen-Yu Tsai
On Fri, Jan 5, 2018 at 3:28 AM, Jernej Škrabec <jernej.skra...@siol.net> wrote: > Hi, > > Dne četrtek, 04. januar 2018 ob 15:45:18 CET je Chen-Yu Tsai napisal(a): >> On Sun, Dec 31, 2017 at 5:01 AM, Jernej Skrabec <jernej.skra...@siol.net> > wrote: >> >

Re: [PATCH v2 07/12] drm/sun4i: Add a driver for the display frontend

2018-01-04 Thread Chen-Yu Tsai
On Mon, Dec 18, 2017 at 10:57 PM, Maxime Ripard wrote: > The display frontend is an hardware block that can be used to implement > some more advanced features like hardware scaling or colorspace > conversions. It can also be used to implement the output format of

Re: [PATCH v2 08/12] drm/sun4i: backend: Wire in the frontend

2018-01-04 Thread Chen-Yu Tsai
On Mon, Dec 18, 2017 at 10:57 PM, Maxime Ripard wrote: > Now that we have a driver, we can make use of it. This is done by > adding a flag to our custom plane state that will trigger whether we should > use the frontend on that particular plane or not. > > The

Re: [PATCH v2 09/12] drm/sun4i: backend: Add a custom atomic_check for the frontend

2018-01-04 Thread Chen-Yu Tsai
end in a given > configuration, and will toggle the switch in that plane state so that the > proper setup function can do their role. > > Reviewed-by: Neil Armstrong <narmstr...@baylibre.com> > Signed-off-by: Maxime Ripard <maxime.rip...@free-el

Re: [PATCH v3 08/13] drm/sun4i: Add a driver for the display frontend

2018-01-17 Thread Chen-Yu Tsai
On Tue, Jan 9, 2018 at 6:09 PM, Maxime Ripard wrote: > The display frontend is an hardware block that can be used to implement > some more advanced features like hardware scaling or colorspace > conversions. It can also be used to implement the output format of

Re: [PATCH v3 09/13] drm/sun4i: backend: Wire in the frontend

2018-01-17 Thread Chen-Yu Tsai
ckend0 and backend1, as described in the following link: http://elixir.free-electrons.com/linux/v4.15-rc8/source/arch/arm/boot/dts/sun6i-a31.dtsi#L1177 So with your code, both backends would end up using frontend0, and if both display pipelines are active, one would potentially step on the other.

Re: [PATCH v3 08/13] drm/sun4i: Add a driver for the display frontend

2018-01-18 Thread Chen-Yu Tsai
On Thu, Jan 18, 2018 at 3:22 PM, Maxime Ripard <maxime.rip...@free-electrons.com> wrote: > Hi, > > On Wed, Jan 17, 2018 at 09:43:31PM +0800, Chen-Yu Tsai wrote: >> > if (sun4i_drv_node_is_connector(node)) >> > return 0; >> > >>

Re: [PATCH v2 05/12] drm/bridge/synopsys: dw-hdmi: Add deinit callback

2018-01-11 Thread Chen-Yu Tsai
On Thu, Jan 11, 2018 at 3:25 AM, Jernej Skrabec wrote: > Some SoCs, like Allwinner A83T, have to do additional cleanup when > HDMI driver unloads. When using DW HDMI through DRM bridge API, there is > no place to store driver's private data so it can be accessed in unbind

Re: [PATCH v2 15/19] drm/sun4i: backend: Check for the number of alpha planes

2018-01-28 Thread Chen-Yu Tsai
bf25d59cf88..900e716443b8 100644 > --- a/drivers/gpu/drm/sun4i/sun4i_layer.c > +++ b/drivers/gpu/drm/sun4i/sun4i_layer.c > @@ -201,32 +201,11 @@ struct drm_plane **sun4i_layers_init(struct drm_device > *drm, > struct sun4i_backend *backend = engine_to_sun4i_backe

Re: [PATCH v2 11/19] drm/sun4i: framebuffer: Add a custom atomic_check

2018-01-28 Thread Chen-Yu Tsai
_helper_check for now. > > Signed-off-by: Maxime Ripard <maxime.rip...@free-electrons.com> Acked-by: Chen-Yu Tsai <w...@csie.org> ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH v2 13/19] drm/sun4i: backend: Set a default zpos in our reset hook

2018-01-28 Thread Chen-Yu Tsai
On Mon, Jan 22, 2018 at 6:35 PM, Maxime Ripard <maxime.rip...@free-electrons.com> wrote: > The our plane state zpos value will be set only if there's an existing ^^^ extra word Otherwise, Acked-by: Chen-Yu Tsai <w...@csie.org> > state attached to the plane when cre

Re: [PATCH v2 14/19] drm/sun4i: backend: Add support for zpos

2018-01-28 Thread Chen-Yu Tsai
ne->state; > + unsigned int priority = state->normalized_zpos; > + > + DRM_DEBUG_DRIVER("Setting layer %d priority to %d\n", layer, > priority); You might want to make the statement less ambiguous, like "Setting layer %d's priority ..." Otherwis

Re: [PATCH v2 16/19] drm/sun4i: backend: Assign the pipes automatically

2018-01-28 Thread Chen-Yu Tsai
ng means it won't break if you split it out. Reviewed-by: Chen-Yu Tsai <w...@csie.org> ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH v2 17/19] drm/sun4i: backend: Make zpos configurable

2018-01-28 Thread Chen-Yu Tsai
..@free-electrons.com> Reviewed-by: Chen-Yu Tsai <w...@csie.org> ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH v2 10/19] drm/sun4i: backend: Fix define typo

2018-01-28 Thread Chen-Yu Tsai
On Mon, Jan 22, 2018 at 6:35 PM, Maxime Ripard <maxime.rip...@free-electrons.com> wrote: > There was a typo in the width spelling of the (unused) > SUN4I_BACKEND_IYUVLINEWITDTH_REG macro. Fix it. > > Signed-off-by: Maxime Ripard <maxime.rip...@free-electrons.com> A

Re: [PATCH v2 09/19] drm/sun4i: backend: Fix structure indentation

2018-01-28 Thread Chen-Yu Tsai
On Mon, Jan 22, 2018 at 6:35 PM, Maxime Ripard <maxime.rip...@free-electrons.com> wrote: > The sun4i_plane_desc structure was somehow indented to two tabulations > instead of one as we shoud do. Fix that. > > Signed-off-by: Maxime Ripard <maxime.rip...@free-electrons.com>

Re: [PATCH v2 12/19] drm/sun4i: backend: Move the coord function in the shared part

2018-01-28 Thread Chen-Yu Tsai
..@free-electrons.com> Acked-by: Chen-Yu Tsai <w...@csie.org> ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH 2/2] drm/sun4i: Handle DRM_MODE_FLAG_**SYNC_POSITIVE correctly

2018-02-09 Thread Chen-Yu Tsai
On Fri, Feb 9, 2018 at 4:40 AM, Maxime Ripard wrote: > On Wed, Feb 07, 2018 at 01:49:59PM +0100, Giulio Benetti wrote: >> Hi, >> >> Il 07/02/2018 11:39, Maxime Ripard ha scritto: >> > On Wed, Jan 24, 2018 at 08:37:28PM +0100, Giulio Benetti wrote: >> > Also, how was

Re: [PATCH v2 08/10] drm/panel: Add Huarui LHR050H41 panel driver

2018-02-21 Thread Chen-Yu Tsai
Hi, On Wed, Feb 21, 2018 at 5:20 PM, Maxime Ripard wrote: > From: Maxime Ripard > > The LHR050H41 panel is the panel shipped with the BananaPi M2-Magic. Add a > driver for it. So I distinctly remember questioning the vendor name the

Re: [PATCH 01/15] clk: sunxi-ng: Add check for minimal rate to NM PLLs

2018-02-26 Thread Chen-Yu Tsai
On Mon, Feb 26, 2018 at 5:38 PM, Maxime Ripard wrote: > Hi, > > On Sat, Feb 24, 2018 at 10:45:31PM +0100, Jernej Skrabec wrote: >> Some NM PLLs doesn't work well when their output clock rate is set below >> certain rate. >> >> Add support for that constrain. > > In such

Re: [PATCH v3 5/8] drm/sun4i: Remove the plane description structure

2018-02-22 Thread Chen-Yu Tsai
mically checked and assigned, we > can remove the static definition. > > Signed-off-by: Maxime Ripard <maxime.rip...@bootlin.com> Reviewed-by: Chen-Yu Tsai <w...@csie.org> ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://li

Re: [PATCH v3 7/8] drm/sun4i: Add support for plane alpha

2018-02-22 Thread Chen-Yu Tsai
On Thu, Feb 22, 2018 at 10:34 PM, Maxime Ripard <maxime.rip...@bootlin.com> wrote: > On Thu, Feb 22, 2018 at 10:17:38PM +0800, Chen-Yu Tsai wrote: >> On Sat, Feb 17, 2018 at 1:39 AM, Maxime Ripard >> <maxime.rip...@bootlin.com> wrote: >> > Our backend supports

Re: [PATCH v3 4/8] drm/sun4i: backend: Assign the pipes automatically

2018-02-22 Thread Chen-Yu Tsai
g zpos > starting with the pipe 0. When and if we encounter our alpha plane, we put > it and all the other subsequent planes in the second pipe. > > Signed-off-by: Maxime Ripard <maxime.rip...@bootlin.com> Reviewed-by: Chen-Yu Tsai <w...@csie.org> _

Re: [PATCH v3 8/8] drm/sun4i: backend: Remove ARGB spoofing

2018-02-22 Thread Chen-Yu Tsai
Signed-off-by: Maxime Ripard <maxime.rip...@bootlin.com> Reviewed-by: Chen-Yu Tsai <w...@csie.org> ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH v3 7/8] drm/sun4i: Add support for plane alpha

2018-02-22 Thread Chen-Yu Tsai
On Sat, Feb 17, 2018 at 1:39 AM, Maxime Ripard <maxime.rip...@bootlin.com> wrote: > Our backend supports a per-plane alpha property. Support it through our new > helper. > > Signed-off-by: Maxime Ripard <maxime.rip...@bootlin.com> Reviewed-by: Chen-Yu Tsai <w...@cs

Re: [PATCH v3 09/11] clk: sunxi-ng: add support for Allwinner A64 DE2 CCU

2017-12-29 Thread Chen-Yu Tsai
On Fri, Dec 22, 2017 at 8:22 PM, Icenowy Zheng wrote: > Allwinner A64's DE2 needs to claim a section of SRAM (SRAM C) to work. > > Add support for it. > > Signed-off-by: Icenowy Zheng > --- > drivers/clk/sunxi-ng/ccu-sun8i-de2.c | 32

Re: [PATCH v3 07/11] ARM: sunxi: h3/h5: add simplefb nodes

2017-12-29 Thread Chen-Yu Tsai
On Fri, Dec 22, 2017 at 8:22 PM, Icenowy Zheng wrote: > The H3/H5 SoCs have a HDMI output and a TV Composite output. > > Add simplefb nodes for these outputs. > > Signed-off-by: Icenowy Zheng > --- > arch/arm/boot/dts/sunxi-h3-h5.dtsi | 29

Re: [PATCH v3 00/11] Allwinner H3/H5/A64(DE2) SimpleFB support

2017-12-29 Thread Chen-Yu Tsai
On Fri, Dec 22, 2017 at 8:22 PM, Icenowy Zheng wrote: > This patchset adds support for the SimpleFB on Allwinner SoCs with > "Display Engine 2.0". > > PATCH 1 to PATCH 3 are DE2 CCU fixes for H3/H5 SoCs. > > PATCH 4 adds the pipeline strings for DE2 SimpleFB. > > PATCH 5 to 7

Re: [PATCH 02/11] clk: sunxi-ng: a83t: Add M divider to TCON1 clock

2018-01-02 Thread Chen-Yu Tsai
On Sun, Dec 31, 2017 at 5:01 AM, Jernej Skrabec wrote: > TCON1 also has M divider, contrary to TCON0. > > Fixes: 05359be1176b ("clk: sunxi-ng: Add driver for A83T CCU") > > Signed-off-by: Jernej Skrabec Added "And the mux is only 2 bits wide,

Re: [PATCH v3 00/11] Allwinner H3/H5/A64(DE2) SimpleFB support

2017-12-26 Thread Chen-Yu Tsai
On Wed, Dec 27, 2017 at 12:10 PM, Icenowy Zheng <icen...@aosc.io> wrote: > 在 2017年12月27日星期三 CST 下午12:09:41,Chen-Yu Tsai 写道: >> On Fri, Dec 22, 2017 at 8:22 PM, Icenowy Zheng <icen...@aosc.io> wrote: >> > This patchset adds support for the SimpleFB on Allwinner SoCs

Re: [PATCH v3 00/11] Allwinner H3/H5/A64(DE2) SimpleFB support

2017-12-26 Thread Chen-Yu Tsai
On Fri, Dec 22, 2017 at 8:22 PM, Icenowy Zheng wrote: > This patchset adds support for the SimpleFB on Allwinner SoCs with > "Display Engine 2.0". > > PATCH 1 to PATCH 3 are DE2 CCU fixes for H3/H5 SoCs. > > PATCH 4 adds the pipeline strings for DE2 SimpleFB. > > PATCH 5 to 7

Re: [PATCH 01/11] clk: sunxi-ng: Don't set k if width is 0 for nkmp plls

2018-01-04 Thread Chen-Yu Tsai
On Sun, Dec 31, 2017 at 5:01 AM, Jernej Skrabec wrote: > For example, A83T have nmp plls which are modelled as nkmp plls. Since k > is not specified, it has offset 0, shift 0 and lowest value 1. This > means that LSB bit is always set to 1, which may change clock rate. >

Re: [PATCH v2 11/12] drm/sun4i: backend: Make sure we don't have a commit pending

2018-01-04 Thread Chen-Yu Tsai
er. > > Signed-off-by: Maxime Ripard <maxime.rip...@free-electrons.com> Reviewed-by: Chen-Yu Tsai <w...@csie.org> ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH v2 10/12] drm/sun4i: backend: Use runtime_pm variant of atomic_commit_tail

2018-01-04 Thread Chen-Yu Tsai
CRTC, our TCON, is enabled > when we perform an atomic_commit. > > Signed-off-by: Maxime Ripard <maxime.rip...@free-electrons.com> Reviewed-by: Chen-Yu Tsai <w...@csie.org> ___ dri-devel mailing list dri-devel@lists.freedesktop.org h

Re: [PATCH v2 12/12] ARM: dts: sun8i: a33 Enable our display frontend

2018-01-04 Thread Chen-Yu Tsai
for it in the DRM driver, let's > enable its DT node. > > Signed-off-by: Maxime Ripard <maxime.rip...@free-electrons.com> Acked-by: Chen-Yu Tsai <w...@csie.org> ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lis

Re: [linux-sunxi] Re: [PATCH v2 00/18] Allwinner R40 HDMI refactoring

2018-08-13 Thread Chen-Yu Tsai
On Tue, Aug 14, 2018 at 1:43 PM, Icenowy Zheng wrote: > 在 2018-07-24二的 14:37 +0200,Maxime Ripard写道: >> On Sun, Jul 22, 2018 at 04:43:56PM +0200, Jernej Škrabec wrote: >> > Hi Maxime, >> > >> > Dne sreda, 11. julij 2018 ob 10:30:36 CEST je Maxime Ripard >> > napisal(a): >> > > On Tue, Jul 10, 2018

[PATCH] drm/sun4i: Remove R40 display pipeline compatibles

2018-08-27 Thread Chen-Yu Tsai
crashing upon probing. The compatibles should be reinstated for the next release. Signed-off-by: Chen-Yu Tsai --- This is for 4.19-rc to fix the boot crash seen on the R40. This should go in drm-misc-fixes and into Linus' tree ASAP. Once merged, the branch should also be merged into drm-misc

Re: [PATCH v3 00/18] arm64: allwinner: Add A64 DE2 HDMI support

2018-07-18 Thread Chen-Yu Tsai
On Wed, Jul 18, 2018 at 6:54 PM, Jagan Teki wrote: > Allwinner A64 has display engine pipeline like other Allwinner SOC's > A83T/H3/H5. > > A64 behaviour similar to Allwinner A83T where > Mixer0 => TCON0 => LVDS/RGB/MIPI-DSI > Mixer1 => TCON1 => HDMI > as per Display System Block Diagram from

Re: [PATCH 00/27] Allwinner H6 DE3 and HDMI support

2018-09-02 Thread Chen-Yu Tsai
On Sun, Sep 2, 2018 at 3:27 PM Jernej Skrabec wrote: > > This series adds support for Display Engine 3.0 and HDMI 2.0a, which > can be found on H6 SoC. > > Display Engine 3.0 in comparison to 2.0 mostly adds features needed for > displaying and processing 10-bit and AFBC formats, which are not

[PATCH v2 1/6] drm/sun4i: tcon: Pass drm_encoder * into sun4i_tcon0_mode_set_cpu

2018-09-06 Thread Chen-Yu Tsai
be dithering support that will be added in a later patch, which looks at properties tied to the connector to determine whether dithering should be enabled or not. Signed-off-by: Chen-Yu Tsai --- drivers/gpu/drm/sun4i/sun4i_tcon.c | 15 ++- 1 file changed, 6 insertions(+), 9 deletions

[PATCH v2 3/6] drm/sun4i: tcon: Add dithering support for RGB565/RGB666 LCD panels

2018-09-06 Thread Chen-Yu Tsai
-by: Chen-Yu Tsai --- drivers/gpu/drm/sun4i/sun4i_tcon.c | 61 ++ 1 file changed, 61 insertions(+) diff --git a/drivers/gpu/drm/sun4i/sun4i_tcon.c b/drivers/gpu/drm/sun4i/sun4i_tcon.c index d6f9d5f3b15b..4834c90b4912 100644 --- a/drivers/gpu/drm/sun4i/sun4i_tcon.c +++ b

[PATCH v2 2/6] drm/sun4i: tcon: Rename Dithering related register macros

2018-09-06 Thread Chen-Yu Tsai
Dithering is only supported for TCON channel 0. Throughout the datasheet all the names associated with these register are prefixed "TCON0", instead of "TCON". The only exception is the control register "TCON_FRM_CTL_REG". Rename the macros to reflect this

[PATCH v2 6/6] [DO NOT MERGE] ARM: dts: sun7i: bananapi-m1-plus: Enable Bananapi 7" 800x480 RGB LCD panel

2018-09-06 Thread Chen-Yu Tsai
thing, but it is nevertheless included for completeness. There is also a FT5306 capacitive touchscreen controller. This should not be confused with the other 7" LCD that is LVDS based and has a resolution of 1024x600. This patch enables all of the above for the BPI-M1+. Signed-off-by: Ch

[PATCH v2 5/6] ARM: dts: sun7i: add pinmux setting for RGB888 output for LCD0

2018-09-06 Thread Chen-Yu Tsai
On the A20, as well as many other Allwinner SoCs, the PD pingroup has the LCD0 RGB output functions. Add a pinmux setting for RGB888 output from LCD0, so boards and tablets with parallel RGB LCD panels may reference it. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun7i-a20.dtsi | 11

[PATCH v2 4/6] drm/panel: simple: Add support for Banana Pi 7" S070WV20-CT16 panel

2018-09-06 Thread Chen-Yu Tsai
ule either supports DSI, or DSI + 24-bit RGB. DSI is converted to 24-bit RGB via an onboard ICN6211 MIPI DSI - RGB bridge chip, then fed to the panel itself. Signed-off-by: Chen-Yu Tsai --- .../display/panel/bananapi,s070wv20-ct16.txt | 12 + drivers/gpu/drm/panel/panel-simple.c

[PATCH v2 0/6] drm/sun4i: Support color dithering for LCD panels

2018-09-06 Thread Chen-Yu Tsai
ters so the LCD backlight wouldn't be completely black. Regards ChenYu Chen-Yu Tsai (5): drm/sun4i: tcon: Pass drm_encoder * into sun4i_tcon0_mode_set_cpu drm/sun4i: tcon: Rename Dithering related register macros drm/panel: simple: Add support for Banana Pi 7" S070WV20-CT16 panel ARM: dt

Re: [linux-sunxi] [PATCH 0/5] Fix A64 HDMI PHY device tree binding

2018-09-09 Thread Chen-Yu Tsai
On Fri, Sep 7, 2018 at 3:22 PM Icenowy Zheng wrote: > > When adding support for A64 HDMI PHY in 4.19, we assumed that the two > PLL-VIDEOs can both feed the HDMI PHY clock. However experiments show > that the mux bit discovered in R40 blob is not applicable on A64. This > is not discovered, as

Re: [PATCH 01/17] dt-bindings: display: sun4i-drm: Add R40 display engine compatible

2018-07-10 Thread Chen-Yu Tsai
iggest number of possible outputs from all Allwinner SoC. > Because of that, add new compatible for it. > > Signed-off-by: Jernej Skrabec Reviewed-by: Chen-Yu Tsai ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH 02/17] drm/sun4i: Add R40 display engine compatible

2018-07-10 Thread Chen-Yu Tsai
On Sat, Jul 7, 2018 at 1:50 AM, Jernej Skrabec wrote: > R40 has versatile display pipeline. It supports two simultanious outputs > on various outputs (TVE, VGA, HDMI, MIPI DSI, LCD). > > Signed-off-by: Jernej Skrabec Reviewed-by: Chen-Yu Tsai ___

Re: [PATCH 03/17] ARM: dts: sun8i: r40: Remove fallback display engine compatible

2018-07-10 Thread Chen-Yu Tsai
On Sat, Jul 7, 2018 at 1:50 AM, Jernej Skrabec wrote: > R40 has pretty unique display pipeline. Because of that, H3 display > engine compatible fallback should be removed. > > Fixes: 05a43a262d03 ("ARM: dts: sun8i: r40: Add HDMI pipeline") > > Signed-off-by: Jernej Sk

Re: [PATCH 04/17] drm/sun4i: tcon-top: Cleanup clock handling

2018-07-10 Thread Chen-Yu Tsai
On Sat, Jul 7, 2018 at 1:51 AM, Jernej Skrabec wrote: > There is no need to acquire reference to clock just to get its name. > > This commit just cleans up the code. There is no functional change. > > Signed-off-by: Jernej Skrabec Reviewed-b

Re: [PATCH 05/17] drm/sun4i: tcon: Release node when traversing of graph

2018-07-10 Thread Chen-Yu Tsai
engine search algorithm") > > Signed-off-by: Jernej Skrabec Reviewed-by: Chen-Yu Tsai ___ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH 06/17] dt-bindings: display: sun4i-drm: Add R40 TV TCON description

2018-07-10 Thread Chen-Yu Tsai
On Sat, Jul 7, 2018 at 1:51 AM, Jernej Skrabec wrote: > TCON description is expanded with R40 TV TCON compatible. It is a bit > special, because it is connected to TCON TOP instead directly to mixer > and it needs special handling. > > Signed-off-by: Jernej Skrabec Reviewed-b

Re: [PATCH 07/17] drm/sun4i: DW HDMI: Release nodes if error happens during CRTC search

2018-07-10 Thread Chen-Yu Tsai
get_remote_node() which also lowers number of > cases where error handling has to be performed. Good job! > Fixes: 57e23de02f48 ("drm/sun4i: DW HDMI: Expand algorithm for possible > crtcs") > > Signed-off-by: Jernej Skrabec Reviewed-by: Chen-Yu Tsai _

Re: [PATCH 09/17] drm/sun4i: mixer: Read id from DT

2018-07-10 Thread Chen-Yu Tsai
On Sat, Jul 7, 2018 at 1:51 AM, Jernej Skrabec wrote: > Currently, TCON supports 2 ways to match TCON with engine (mixer in this > case). Old way is to just traverse of graph backwards and compare node > pointer. New way is to match TCON and engine by their respective ids. > All SoCs with DE2

<    1   2   3   4   5   6   7   8   9   10   >