Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751283AbdFVFCc (ORCPT ); Thu, 22 Jun 2017 01:02:32 -0400 Received: from mail-db5eur01on0118.outbound.protection.outlook.com ([104.47.2.118]:23202 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751152AbdFVFC3 (ORCPT ); Thu, 22 Jun 2017 01:02:29 -0400 Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=axentia.se; From: Peter Rosin To: linux-kernel@vger.kernel.org Cc: Peter Rosin , Boris Brezillon , David Airlie , dri-devel@lists.freedesktop.org, Alexandre Belloni , Nicolas Ferre , Daniel Vetter Subject: [PATCH v5 0/2] drm: atmel-hlcdc: clut support Date: Thu, 22 Jun 2017 07:03:09 +0200 Message-Id: <1498107791-17450-1-git-send-email-peda@axentia.se> X-Mailer: git-send-email 2.1.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [81.224.171.159] X-ClientProxiedBy: AM3PR07CA0130.eurprd07.prod.outlook.com (2603:10a6:207:8::16) To AM5PR0202MB2547.eurprd02.prod.outlook.com (2603:10a6:203:6d::8) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 66431729-71b5-4d69-ebec-08d4b92be072 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131423075);SRVR:AM5PR0202MB2547; X-Microsoft-Exchange-Diagnostics: 1;AM5PR0202MB2547;3:6nWCwm7A+8EKni9WT3a/aLPQGoFpsX2oV7FPKVJBGVCLrHTRw0Az3FLKhicH3C9NSupvbBPUtMnOFEVqlfHHlINrz1/EzUxE80GjdajLZanTDH9yjNU+cSq9weISQqSqs2sJzhPL0dmc6hXmfZh1/G2/IqN6c0pV4mBdl3AUUgcXGFASGT7M8ERT1ZefwM7Q8oUzJSDEAMp3TwCU+TL1Ej5gfOYiOPXPHT6x7ON0vp2Cq5Lbc4YejJBAGaeTJTswNJ3vGaZlUxSDcsdfJ921OhaSnf+jJqDbG0RpugzZI5q2Fp3KHH3yU3lptVnPwqvy;25:CrNGBLE/9KNrXF+aG7/kud1qsOp8Qptuuk8MCYpoYpW2rtnIX19i2PHmqhfGq9afBURsro34oVszTpmXqVmrebdVN+a83QSnSUls0NoIvQPgb0Mwsy8tHBNVX0jzc+WTykJGfgcJSXhb3ZgF/M67By7fmFN5UbQADfipCaVczkReNz5lBwwIUq3tsmFTqmP76pUwC46AQ9WIqmV0d9XlbEVoGWUJw5jlMM3F7I7Go9xC3DlLptxNvrCD+enIuTbmARuDlVXiH0eLjGtz4IgeIPQsoBq45hcyVxSwXknLMWSBIKeQUeKpwaUtnYdTJqXSxA8PpiAp4Vnkh9ufpAMnopJk+XIofHbEA9xGfp5FVtVMEb8EG43K23uR7xCwO86Z8w0nuBMj1ZU40yNcToH0Tgg9OOiF666WGPIwZlfZVMWm2rOi8OyVQu+jTby/ZXh+oTQpyIHC8anl9cwxCtiF29Iv+0hFgM0ciddM6ejszvc= X-MS-TrafficTypeDiagnostic: AM5PR0202MB2547: X-Microsoft-Exchange-Diagnostics: 1;AM5PR0202MB2547;31:ibBjJDY3QNVz+INfDXVyZikxVCAzl3VTGzAjJQnmBshX2603N0usD6G120gXMYnEhJfOYgWQDL6yE0/8M4ejsrgusCGpO3Q/THrSo8sAS/2s6k8MfGIayrHkpGp5q++J12zLwZfj33PgNa1upgM+zIYLEzDKGNVPGKmTuTWmyLIl2Lstn9h3kZzD/KEJH/FrIl3D6UEt4+w8RMZzYPBCdYcuezuY0GXbrpLpuIwaREY= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(10201501046)(100000703101)(100105400095)(93006095)(93001095)(3002001)(6041248)(20161123560025)(2016111802025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123558100)(20161123564025)(20161123562025)(6072148)(6043046)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:AM5PR0202MB2547;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:AM5PR0202MB2547; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;AM5PR0202MB2547;4:AUocHIicvZUitm5osX+755rb8u2s7cFkZOzlxMCe?= =?us-ascii?Q?4+XLgHmG/lU+NxeYMTro7pjeTXytH53l71kyTVvVmTabYP9296dusbRBWFgd?= =?us-ascii?Q?HHnH4vnHCxMTwjq/acoi4OFIm0qp4GjkdxYNzVR8lqfWGCl5K6/O67fBWXjI?= =?us-ascii?Q?depfXq2Fa7Msh0ft9yJOynxY45uQWGNvigV8cdaO4yS0VpjglGtMCO5PbSwl?= =?us-ascii?Q?k1b1q5D1uMgEB3S3ErCyenck1ZK23pHyKEOseVkb4iNHUS8muDPwzQf92VKl?= =?us-ascii?Q?6GHfzcom/Ov8rQa6bg7L9Ok8F8TVKMjPMxraXxnumr0LPINdRJBnipVR01HQ?= =?us-ascii?Q?WBpg4pn89EBzp5jqWxc8U+7QOiGpQQZ/K77ls59vZEkEBjFgP5Gd5BGwr6Tk?= =?us-ascii?Q?sT5oRTXHfx6Hhgu6RmALPb2VB8sQvCLw1n/Pk4ABS/2jbiSQdJ6Qc6/GSJTM?= =?us-ascii?Q?U466o9W4y78DRHqNH2JfjZy/KTdsL861na6uLaroJ/30jdWUTi1bwuKEU00M?= =?us-ascii?Q?hV2SuGGKBb+z/vu8Pf11G7YmRysjH6E9GMeVXJj41sIt6G6RWyBq21XhNRxe?= =?us-ascii?Q?q494zkRATine8yH4OE5Os7UfYxgoykhdd52NiyOFHbTyBx9OjVdl3QY0L4YZ?= =?us-ascii?Q?h24Idzy140b4Xer7MIJ/Eutd8BtG13wyi4/fa0lwRfJjQMLQrq5IEcf5BaYX?= =?us-ascii?Q?aNeBuQ0PL6+qcmDmSYQPsqcsfSXCR5rWUOIih9O9Wq90VxOeCk4Va8JCdL+b?= =?us-ascii?Q?4+F4ic4Sx3yiatp8zui3lalNswIvM7lHcLhjHGxbXShl54z6KqWZh1EQcn9z?= =?us-ascii?Q?H+lFX9FltcCFLRPWtI8SybRiYlS7L1eaOlv8Ob/duLRUm6xtk6LGEw/I9UFO?= =?us-ascii?Q?vvA7j9bRaDJDJGCR6mAY+KbBCfxOrT7Aj3+N6SF3Du92Ledwa/MVbv3bZeRi?= =?us-ascii?Q?5uEVsKPSiGzET0oirDRAwE1X6Xwv3vzETq4clbWUA1oSlYP1hM6u0iOwteZc?= =?us-ascii?Q?NysS4WbrkC/IDA+35fznTgUH2SnjWOmLX+cCDBWwJHlWtPM9/dU6jDYUIHrs?= =?us-ascii?Q?vhR4BryerJiPtwxlhJjU2szdf9Ddq8GfkFmY/Qm3oZIGmSiplB8mdEFNyxs8?= =?us-ascii?Q?ygteRztSiM+M8jzTWZrAEopCXRTNfHkdTXnIUSTNVkXoM+03y1SUiAG1Gc3h?= =?us-ascii?Q?dlLHdBfr/+InZ/bKqxmGxOjxoRFni0utD1RO?= X-Forefront-PRVS: 03468CBA43 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(4630300001)(6009001)(39410400002)(39830400002)(39450400003)(39400400002)(7736002)(50986999)(8676002)(478600001)(36756003)(42186005)(305945005)(5660300001)(86362001)(74482002)(6666003)(6916009)(53936002)(6512007)(81166006)(54906002)(48376002)(47776003)(38730400002)(110136004)(50466002)(66066001)(2361001)(2906002)(3846002)(5003940100001)(2351001)(6116002)(50226002)(25786009)(6486002)(6506006)(4326008)(189998001)(33646002)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:AM5PR0202MB2547;H:orc.lan;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics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xLWqCXnWaocuQgewQjUzpPssn3J8x5GwPHyuZXEOjJZDqcAmQHARAh7X20KbZrXiW06XpdF/Dp1svuBAyU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;AM5PR0202MB2547;7:RU7jO2oGnsiCpylqWEqfyTXB8WMu+f5a0YrXa3MXyGtOyVYWgygEtsx9Ool5BEK7B9w7NuEFcpXb2EQWoB7Vx9XT3ywIDpQRGeI6jTeztw2nRa8PbmWFQRcEU+o4y/hDaPcbeP/RJLLlFzQAzPViEK9SoOrdbMiYC4LKq11hmULxU4MNlF4y2sNNrc3dadCWrWfOHnjK76EsLOhaYca44tIbxOjPl1m/I/GPLR2K+oHM9+qKim+X9N5YpVmoP/oTO3hUhs9/7g9/G5iI2u6wf8WkdzokjH9+7ZIY8tZjqoob1/q3i4uVVykMUr4ttjD70k821aZBKFgUQI1c05daGJvcfPCm/uJig3Kc90ZyHSmkz1TvuSyv4UGMtyuoRLdkLFmsghlRiMIfx7M5rZb9mszCsdhXs6VxVPQ1FQvey28OW6ORYW6huOy+NHU7nOnWZ4GCNyrX+sURFZc+9ZSp0l2A0Z1q6DqDorbBT2wwqoz4Je6D4fGVP1q+QHmjk1eWMdeJT3CquLEoUYIQg41/cSFMRo0PF6PzaUlQa8m775H3Y4yb71s8tGoDxc6bnKGnpuHbo1kRS+y3ANTBNR2E/lCMLqMhxCyDvCGBO7AAVKeIGSqSIZIiv+jNZ1AXaxoWAccj50LTc08upoxNYq2J4QU4T5f4BnP22Sqdfl7s5mz0rLv8RstOAU93Qx9fVvTLVPfpHUBnBp2rNcq8MBCzgJEp3RKUESELfWl1ueYZ1qhPZsgD9iuoDiH51g7MK4a61eZzKyfkO7V2AMxegzUYl2ZJQQRi4PC1bD2BLYQ7044= X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jun 2017 05:02:25.9556 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0202MB2547 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1376 Lines: 44 Hi! This series adds support for an 8-bit clut mode in the atmel-hlcdc driver. Changes since v4: - Added .clut_offset for overlay2 at 0xe00 for sama5d4 (unconfirmed if 0xe00 is the correct offset, but I'll eat my hat if it's not there). The sama5d4 overlay2 is indeed there, it is just AWOL in the current datasheet. - Added Acked-by from Daniel on patch 2/2. Changes since v3: - Dropped ugly code (patches 2/3 and 3/3) for legacy fbdev interaction. - Slit out the .set_property change to a patch of its own. Changes since v2: - Fix mapping to the clut registers. Changes since v1: - Move the clut update from atmel_hlcdc_crtc_mode_valid to atmel_hlcdc_plane_atomic_update. - Add default .gamma_set helper (drm_atomic_helper_legacy_gamma_set). - Don't keep a spare copy of the clut, reuse gamma_store instead. - Don't try to synchronize the legacy fb clut with the drm clut. Cheers, peda Peter Rosin (2): drm: atmel-hlcdc: add missing .set_property helper to the crtc drm: atmel-hlcdc: add support for 8-bit color lookup table mode drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_crtc.c | 5 +++++ drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c | 14 ++++++++++++ drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.h | 16 ++++++++++++++ drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c | 29 +++++++++++++++++++++++++ 4 files changed, 64 insertions(+) -- 2.1.4