Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752807AbdFUPN4 (ORCPT ); Wed, 21 Jun 2017 11:13:56 -0400 Received: from esa3.microchip.iphmx.com ([68.232.153.233]:64246 "EHLO esa3.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751191AbdFUPNy (ORCPT ); Wed, 21 Jun 2017 11:13:54 -0400 X-IronPort-AV: E=Sophos;i="5.39,369,1493708400"; d="scan'208";a="4002175" Subject: Re: [PATCH] drm: atmel-hlcdc: sama5d4 does not have overlay2 To: Peter Rosin , Boris Brezillon , Peter Rosin CC: , David Airlie , References: <1497518653-2788-1-git-send-email-peda@lysator.liu.se> <20170615113748.1c98f898@bbrezillon> <08a95adb-90af-1439-73be-4f992d433d1d@axentia.se> From: Nicolas Ferre Organization: microchip Message-ID: <9d3e6692-010a-fceb-5dfb-b79bc102eeda@microchip.com> Date: Wed, 21 Jun 2017 17:14:21 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 MIME-Version: 1.0 In-Reply-To: <08a95adb-90af-1439-73be-4f992d433d1d@axentia.se> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2523 Lines: 87 On 16/06/2017 at 00:40, Peter Rosin wrote: > On 2017-06-15 11:37, Boris Brezillon wrote: >> On Thu, 15 Jun 2017 11:24:13 +0200 >> Peter Rosin wrote: >> >>> From: Peter Rosin >>> >>> Remove the layer. >> >> Duh. It was present in the datasheet I had. Just downloaded last >> version of the datasheet and it's no longer there. > > Heh. > >> Nicolas, there's still a reference to OVR2 in the block diagram >> (Section "31.3 Block Diagram"), can ask fix that (or ask someone who >> can). > > Also, on page 2 (the Features chapter under peripherals) there's: > > "LCD TFT Controller with 4 overlays..." > > I think it should be three? Hi Peter and Boris, After checking with the designers here, it seems that it's an issue with the latest datasheet. This is why Boris implemented it some time ago. So, the conclusion is: the OVR2 was removed from latest sama5d4 documentation by mistake. It will be corrected in next datasheet release. The OVR2 exists and works correctly on sama5d4. So, please don't remove this layer ;-) Peter, thanks a lot for your work with supporting the CLUT feature! Best regards, Nicolas >>> Fixes: 5b9fb5e6c6c7 ("drm: atmel-hlcdc: add support for sama5d4 SoCs") >>> Signed-off-by: Peter Rosin >>> --- >>> drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c | 20 +------------------- >>> 1 file changed, 1 insertion(+), 19 deletions(-) >>> >>> diff --git a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c >>> index 30dbffd..888524a 100644 >>> --- a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c >>> +++ b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c >>> @@ -295,28 +295,10 @@ static const struct atmel_hlcdc_layer_desc atmel_hlcdc_sama5d4_layers[] = { >>> }, >>> }, >>> { >>> - .name = "overlay2", >>> - .formats = &atmel_hlcdc_plane_rgb_formats, >>> - .regs_offset = 0x240, >>> - .id = 2, >>> - .type = ATMEL_HLCDC_OVERLAY_LAYER, >>> - .cfgs_offset = 0x2c, >>> - .layout = { >>> - .pos = 2, >>> - .size = 3, >>> - .xstride = { 4 }, >>> - .pstride = { 5 }, >>> - .default_color = 6, >>> - .chroma_key = 7, >>> - .chroma_key_mask = 8, >>> - .general_config = 9, >>> - }, >>> - }, >>> - { >>> .name = "high-end-overlay", >>> .formats = &atmel_hlcdc_plane_rgb_and_yuv_formats, >>> .regs_offset = 0x340, >>> - .id = 3, >>> + .id = 2, >>> .type = ATMEL_HLCDC_OVERLAY_LAYER, >>> .cfgs_offset = 0x4c, >>> .layout = { >> > > -- Nicolas Ferre