From patchwork Tue May 23 15:31:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 9743 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2239478vqo; Tue, 23 May 2023 08:46:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6owTjeb223/88qGRHkmsIt/MdXg6Je+MeSOcsKSugJjLQy7/81wjhfAMnGIdfWDoOQekAy X-Received: by 2002:a05:6a00:804:b0:645:b13e:e674 with SMTP id m4-20020a056a00080400b00645b13ee674mr19276526pfk.26.1684856814908; Tue, 23 May 2023 08:46:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684856814; cv=none; d=google.com; s=arc-20160816; b=Sqe2v3TqGJCFB/cUWZ/nmhCoDhc0v1bEFl+r3W8wJm1KP9lUhtSuqRUA+S9C2ujcu+ NYWPrDlpvtbh8ILnvUwYIie6y+VG5CTclMKED96gt3A8a+/C52JCUnO/v8fLWCC2Q8bO jifATQVZ2sRF0/07OZXXk3UAjEI4NZ9X25XHSqkRHGs1cLRPEb5QZNJqtYxmOG/QIO1a 3hq+rB7BxqiTr1PLYGSIyEcQwJLni53Nx+K/F+SRuzquX8VhiBvqJhmW3k44xWk9KkMF U9dvkbpCJnmnDxHDK41vPtJ5b+fB6OD7XAauerPH5OUlnrISpmLK6Gv1tLMUD4JzcAAF xIsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=P7mvEybYpfz5Pi8jmAOrlsBWe9tPghl9qMxmTdCfBBk=; b=NfqBW7GEi1O+Zww2B2mdmCrRbPG24dYsreffvENtGwL/ayGU0CUybjmAB/8KVt40z7 isRmy00F7Wglt2id/jRhBSAPSIy397cO9DD96cT58jXraxC0kE6I151tGHAmG70Esn/7 K1xZNTvt75FfQBAsbuiWyEBIsLuJXlWMlu9urBV3OXv9KQSV6egNcOAfUqOaxwjVxkWa pDHynEn8ryslQVHH9qIGsJxFbSDHB//FKxQDEh85Dxe3wuuZ//PtlopbjKFMJB+7wXie pkuIj1FHyrSUinZr7lI9qDTO0DFrsE+WqsXvmXfoCr/+wYQO/CVna3oiN/zR75bO9uay wYRQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l189-20020a6388c6000000b00528c6c2ea96si894352pgd.306.2023.05.23.08.46.42; Tue, 23 May 2023 08:46:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233049AbjEWPdN (ORCPT + 99 others); Tue, 23 May 2023 11:33:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237038AbjEWPdL (ORCPT ); Tue, 23 May 2023 11:33:11 -0400 Received: from riemann.telenet-ops.be (riemann.telenet-ops.be [IPv6:2a02:1800:110:4::f00:10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D3B018F for ; Tue, 23 May 2023 08:32:43 -0700 (PDT) Received: from xavier.telenet-ops.be (xavier.telenet-ops.be [IPv6:2a02:1800:120:4::f00:14]) by riemann.telenet-ops.be (Postfix) with ESMTPS id 4QQdc9028wz4wyWg for ; Tue, 23 May 2023 17:32:41 +0200 (CEST) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed30:b0ac:7afd:272:4cff]) by xavier.telenet-ops.be with bizsmtp id 0FXf2A00d0Jkz7G01FXfar; Tue, 23 May 2023 17:31:40 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1q1Tyu-002t3U-Hz; Tue, 23 May 2023 17:31:39 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1q1Tz8-00Ckam-UT; Tue, 23 May 2023 17:31:38 +0200 From: Geert Uytterhoeven To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Laurent Pinchart , Kieran Bingham Cc: dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH v3 0/5] drm: shmobile: Fixes and enhancements Date: Tue, 23 May 2023 17:31:32 +0200 Message-Id: X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766700419353905030?= X-GMAIL-MSGID: =?utf-8?q?1766700419353905030?= Hi all, Currently, there are two drivers for the LCD controller on Renesas SuperH-based and ARM-based SH-Mobile and R-Mobile SoCs: 1. sh_mobile_lcdcfb, using the fbdev framework, 2. shmob_drm, using the DRM framework. However, only the former driver can be used, as all platform support integrates the former. None of these drivers support DT-based systems. This patch series is a first step to enable the SH-Mobile DRM driver for Renesas ARM-based SH-Mobile and R-Mobile SoCs. The next steps planned are to (1) add DT support (works, but needs a hack due to lack of (2)), and (2) convert the driver to atomic modesetting. Changes compared to v2[1]: - Add Reviewed-by. Changes compared to v1[2]: - Add Reviewed-by, - Drop dependency on ARM. This has been tested on the R-Mobile A1-based Atmark Techno Armadillo-800-EVA development board, using a temporary platform-enablement patch[3]. Thanks for applying to drm-misc! [1] https://lore.kernel.org/r/cover.1680273039.git.geert+renesas@glider.be/ [2] https://lore.kernel.org/r/cover.1681734821.git.geert+renesas@glider.be/ [3] https://lore.kernel.org/r/c03d4edbd650836bf6a96504df82338ec6d800ff.1680272980.git.geert+renesas@glider.be Geert Uytterhoeven (5): drm: shmobile: Use %p4cc to print fourcc codes drm: shmobile: Add support for DRM_FORMAT_XRGB8888 drm: shmobile: Switch to drm_crtc_init_with_planes() drm: shmobile: Add missing call to drm_fbdev_generic_setup() drm: shmobile: Make DRM_SHMOBILE visible on Renesas SoC platforms drivers/gpu/drm/shmobile/Kconfig | 4 +-- drivers/gpu/drm/shmobile/shmob_drm_crtc.c | 35 +++++++++++++++++++--- drivers/gpu/drm/shmobile/shmob_drm_drv.c | 3 ++ drivers/gpu/drm/shmobile/shmob_drm_kms.c | 9 ++++-- drivers/gpu/drm/shmobile/shmob_drm_plane.c | 5 ++++ 5 files changed, 48 insertions(+), 8 deletions(-)