From patchwork Wed Jan 16 11:48:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Chiras X-Patchwork-Id: 10767737 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DEB6213B4 for ; Thu, 17 Jan 2019 09:02:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CF4C12EBDB for ; Thu, 17 Jan 2019 09:02:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C3A202EC1C; Thu, 17 Jan 2019 09:02:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6B5C32EBDB for ; Thu, 17 Jan 2019 09:02:52 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 463EE6F332; Thu, 17 Jan 2019 09:02:27 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from EUR03-AM5-obe.outbound.protection.outlook.com (mail-eopbgr30078.outbound.protection.outlook.com [40.107.3.78]) by gabe.freedesktop.org (Postfix) with ESMTPS id 203DD6F007 for ; Wed, 16 Jan 2019 11:48:41 +0000 (UTC) Received: from AM6PR04MB4007.eurprd04.prod.outlook.com (52.135.161.10) by AM6PR04MB6101.eurprd04.prod.outlook.com (20.179.5.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1537.24; Wed, 16 Jan 2019 11:48:38 +0000 Received: from AM6PR04MB4007.eurprd04.prod.outlook.com ([fe80::65e5:2a3b:b9a8:3cd9]) by AM6PR04MB4007.eurprd04.prod.outlook.com ([fe80::65e5:2a3b:b9a8:3cd9%5]) with mapi id 15.20.1537.018; Wed, 16 Jan 2019 11:48:37 +0000 From: Robert Chiras To: Daniel Vetter , Philipp Zabel , Marek Vasut Subject: [PATCH 00/11] Add support for DRM bridge and additional pixel formats Thread-Topic: [PATCH 00/11] Add support for DRM bridge and additional pixel formats Thread-Index: AQHUrZFr5/xx8xzEl0eR+VGDCFZAeg== Date: Wed, 16 Jan 2019 11:48:37 +0000 Message-ID: <1547639306-19151-1-git-send-email-robert.chiras@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: AM5PR0502CA0018.eurprd05.prod.outlook.com (2603:10a6:203:91::28) To AM6PR04MB4007.eurprd04.prod.outlook.com (2603:10a6:209:40::10) x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.7.4 x-originating-ip: [95.76.156.53] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; AM6PR04MB6101; 6:U9aJ+/oT0gq4yhI1YiltnIyD89dE4HePurunqI2ojtLo3wGW0W8mlXgJye1g+kwAMqcqbQxCDjiGzMLr/ZN4UdYBl3YNdkI2XzTgtPDbdYX7bfMzstfHk6kEhfccUHWaMHbc4MQRnQFPJEQEFiNmPVVHogJp9KPyNKNYUVrNZrhhiL2er2Bp0WbLCZIQwuwqDxXKArjUaml+jwL2QgfKvL+6wuD28XIqFkW41RR1az1+YKvyehb4T+QyQmQUJy4ria106ZXibhdleZZeoj9cCTOvRBwTI/qKY1Qxy9C5W7zrWpafHd1nBpSr+wJ3uGyxMGeKEoltqIR24kJkkl8DW6aYj0A5xYS5Ja8+mfi6bms46b2eqPq5oI7kZa5SfNQabjOjeWfaIzuezOVukusqWPlco8KO85yh29nBf1GavQdq1gxYYyT/EuBvnkBAN4bXe2Sf8OOhZy9Q54WgaFhXHg==; 5:WOnij2EbPCbvy1+w4M39YzUixJ0pl9tdJ2qMYeILhJdg9LbGLmgUCj9zpA53Bq2+wd9BnriJxUW25prhnviryLE362yKdHDjuQ/KhXOE66pE3BVOe5aYawOm912PB86w0vRbW+SEnhIp6Z3xXOSioSHq6Go8PxPiodb1XxioosXTZnGKf/WWWFPJ1HNhBISUNzIfGN2E99disSiHYLcN+g==; 7:vuH/CFTD/151yTqTSJlb0wNkKyk5iqGB6t8TeAE/ySwysFGLUUThEAAdDdv6lHR7yf5PdZoq7DR/plO20I0upmUscSrcCeH5I67xt7twOJS2YY/hPKdj9Epvvx6DbkWAEui7iz+JaZavtpVxdzXA8Q== x-ms-office365-filtering-correlation-id: cb4e3554-4b5d-4967-23bc-08d67ba88d5b x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600109)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM6PR04MB6101; x-ms-traffictypediagnostic: AM6PR04MB6101: x-microsoft-antispam-prvs: x-forefront-prvs: 091949432C x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(39860400002)(346002)(366004)(376002)(396003)(199004)(189003)(316002)(81156014)(110136005)(102836004)(81166006)(476003)(26005)(2616005)(186003)(8676002)(7736002)(66066001)(3846002)(50226002)(105586002)(305945005)(6486002)(8936002)(99286004)(54906003)(6436002)(106356001)(6116002)(86362001)(2906002)(44832011)(14454004)(478600001)(486006)(71200400001)(68736007)(97736004)(5660300001)(53936002)(36756003)(5024004)(256004)(14444005)(25786009)(386003)(6506007)(6512007)(52116002)(4326008)(71190400001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR04MB6101; H:AM6PR04MB4007.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: FjKINOzXhUDZkk3K11on9nuzDPpJsz726ngtQOwMFxYErY/KVAsfPGwec5nuDtlOZW5P5MVhhKCZvIHb++HHg4KYmZAQsVlZmDbl0g/faj5m/Mcga+92NmYFwl3U6Mlyj3ofcoCAuhyenEWp2C1rfFvLSWfNNn7yHmXLQg3s/F16aqp0zjBnCqgmW+nOoBzmn21AD1Xuom+Vt8Y/6UuuN2nTtgdyusU79AmDC3h9mg7gyoFVeIGH3Ze8E1WL9FAXmNRfQ21QQjLiV+6lmLsUCegXDkzkXpggHiILLyZll+Rx7c3yf4BYKDhv97O3rZPgc/46oSyNqjBHXbN4J9ux4rcAw0mnDgv3VYIamBXAgEGt4OEF05TOFmcpFLX9u2R0LF9HSihWXJdmFoCkXQp9L55wzGg3tCHyGX61tlN37oM= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: cb4e3554-4b5d-4967-23bc-08d67ba88d5b X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Jan 2019 11:48:36.9481 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB6101 X-Mailman-Approved-At: Thu, 17 Jan 2019 09:02:25 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Anson Huang , David Airlie , "linux-kernel@vger.kernel.org" , Fabio Estevam , "dri-devel@lists.freedesktop.org" , "kernel@pengutronix.de" , Robert Chiras , Shawn Guo , dl-linux-imx Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP This patchset improves the use of eLCDIF block on iMX 8 SoCs (like 8MQ, 8MM and 8QXP): 1. Add support for drm_bridge On 8MQ and 8MM, the LCDIF block is not directly connected to a parallel display connector, where an LCD panel can be attached, but instead it is connected to DSI controller. Since this DSI stands between the display controller (eLCDIF) and the physical connector, the DSI can be implemented as a DRM bridge. So, in order to be able to connect the mxsfb driver to the DSI driver, the support for a drm_bridge was needed in mxsfb DRM driver (the actual driver for the eLCDIF block). 2. Add support for additional pixel formats Some of the pixel formats needed by Android were not implemented in this driver, but they were actually supported. So, add support for them. 3. Few minor features and bug-fixing The addition of max-res DT property was actually needed in order to limit the bandwidth usage of the eLCDIF block. This is need on systems where multiple display controllers are presend and the memory bandwidth is not enough to handle all of them at maximum capacity (like it is the case on 8MQ, where there are two display controllers: DCSS and eLCDIF). The rest of the patches are bug-fixes. Changes since v1: * Replaced for_each_crtc_in_state (removed since deprecated) with for_each_new_crtc_in_state * Removed unused MXSFB_FLAG_* flags * Split the patch for LCD reset and moved the pm_runtime_enable fix into a separate patch Mirela Rabulea (2): drm/mxsfb: Add support for new pixel formats in eLCDIF drm/mxsfb: Signal mode changed when bpp changed Robert Chiras (9): drm/mxsfb: Update mxsfb to support a bridge dt-bindings: display: Add max-res property for mxsfb drm/mxsfb: Add max-res property for MXSFB drm/mxsfb: Update mxsfb with additional pixel formats drm/mxsfb: Fix the vblank events drm/mxsfb: Update mxsfb to support LCD reset drm/mxsfb: Move pm_runtime_enable at the end of probe drm/mxsfb: Improve the axi clock usage drm/mxsfb: Clear OUTSTANDING_REQS bits .../devicetree/bindings/display/mxsfb.txt | 6 + drivers/gpu/drm/mxsfb/mxsfb_crtc.c | 215 ++++++++++++++++++--- drivers/gpu/drm/mxsfb/mxsfb_drv.c | 183 ++++++++++++++---- drivers/gpu/drm/mxsfb/mxsfb_drv.h | 10 +- drivers/gpu/drm/mxsfb/mxsfb_out.c | 26 +-- drivers/gpu/drm/mxsfb/mxsfb_regs.h | 112 +++++++---- 6 files changed, 429 insertions(+), 123 deletions(-)