From patchwork Thu Jul 27 21:51:24 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alain Volmat X-Patchwork-Id: 707172 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E6FCEC00528 for ; Thu, 27 Jul 2023 21:52:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230497AbjG0VwX (ORCPT ); Thu, 27 Jul 2023 17:52:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229448AbjG0VwW (ORCPT ); Thu, 27 Jul 2023 17:52:22 -0400 Received: from qs51p00im-qukt01080302.me.com (qs51p00im-qukt01080302.me.com [17.57.155.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A3222135 for ; Thu, 27 Jul 2023 14:52:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1690494739; bh=LU0k+tUkFkEwfTZnI6jZM5Vvh1FH+qSfXs1IaYag2Qs=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=cz1asW0V+DKN9/4qtcQoVZ58RgTI693nXUCsnOHaT3sW6qfcp3JjgrLyrS5tRf8GZ zF3ZGgXflvi1ILi6cHFQQWuEGcpyVO0szhTdypTM6OOGQlGaaJhholCr/dOdRgBgT9 Xf/fSwLqJbNKIinGg7Z3DKA7XIAPtwMtxQl9EkuoKrdALfIXHLlNjQr004zDNw4hig mC7NMsyGGQxClfyuMLKfO/8IOUY4QidqfLyaMW+1GQF8JPbnD5AUkuwL+33JaVdAGI xcXlaKLRE0t4rIkvw6yij2rCVReV+0kJTvympyS18z6IGAHVZlMGI2WVERk0caD87a 5hz/WLbggKEpg== Received: from localhost (qs51p00im-dlb-asmtp-mailmevip.me.com [17.57.155.28]) by qs51p00im-qukt01080302.me.com (Postfix) with ESMTPSA id 01E0211403F4; Thu, 27 Jul 2023 21:52:18 +0000 (UTC) From: Alain Volmat To: Alain Volmat , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Patrice Chotard , Philipp Zabel Cc: Alain Volmat , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 00/14] drm/sti: add display support on stih418 family Date: Thu, 27 Jul 2023 21:51:24 +0000 Message-Id: <20230727215141.53910-1-avolmat@me.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Proofpoint-GUID: rh6ayKPi9W13LZuJbCRggefceHbkV9hM X-Proofpoint-ORIG-GUID: rh6ayKPi9W13LZuJbCRggefceHbkV9hM X-Proofpoint-Virus-Version: =?utf-8?q?vendor=3Dfsecure_engine=3D1=2E1=2E170-?= =?utf-8?q?22c6f66c430a71ce266a39bfe25bc2903e8d5c8f=3A6=2E0=2E425=2C18=2E0?= =?utf-8?q?=2E790=2C17=2E0=2E605=2E474=2E0000000_definitions=3D2022-01-12=5F?= =?utf-8?q?03=3A2022-01-11=5F01=2C2022-01-12=5F03=2C2020-01-23=5F02_signatur?= =?utf-8?q?es=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 mlxscore=0 mlxlogscore=999 suspectscore=0 clxscore=1011 phishscore=0 bulkscore=0 spamscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2307270199 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This serie adds support for graphic display features on the stih418 soc. Major differences compare to the already supported stih407 are - a new HDMI PHY to support 4K resolutions - updated mixer to support the higher number of planes available on the stih418 - updated GDP (graphic planes), called here gdpplus Alain Volmat (14): drm/sti: add hdmi tx6g0c28 phy for STi platform dt-bindings: display: add st,stih418-vtg compatible for sti vtg drm/sti: add support for VTG on the stih418 platform drm/sti: add STih418 platform support in sti mixer drm/sti: add support for stih418 in tvout drm/sti: remove VTG_SYNC_ID_HDMI from sti_vtg.h drm/sti: add more possible GDP / VID planes entries in sti_plane drm/sti: add more planes supports in sti_mixer drm/sti: add support for GDPPLUS / stih418 GDPs drm/sti: add compositor support for stih418 platform ARM: dts: sti: move vtg_main / vtg_aux into stih407/stih410 dtsi ARM: dts: sti: addition of display nodes for stih418 platform ARM: dts: sti: add the gpu node for the MALI-400 on stih418.dtsi ARM: dts: sti: enable basic display on stih418-b2264 board .../bindings/display/st,stih4xx.txt | 2 +- arch/arm/boot/dts/st/stih407-family.dtsi | 13 - arch/arm/boot/dts/st/stih407.dtsi | 12 + arch/arm/boot/dts/st/stih410.dtsi | 12 + arch/arm/boot/dts/st/stih418-b2264.dts | 34 ++ arch/arm/boot/dts/st/stih418-clock.dtsi | 2 +- arch/arm/boot/dts/st/stih418.dtsi | 188 +++++++++++ drivers/gpu/drm/sti/Makefile | 1 + drivers/gpu/drm/sti/sti_compositor.c | 30 ++ drivers/gpu/drm/sti/sti_compositor.h | 3 + drivers/gpu/drm/sti/sti_crtc.c | 11 + drivers/gpu/drm/sti/sti_gdp.c | 250 +++++++++------ drivers/gpu/drm/sti/sti_gdp.h | 8 +- drivers/gpu/drm/sti/sti_hdmi.c | 4 + drivers/gpu/drm/sti/sti_hdmi_tx6g0c28phy.c | 292 ++++++++++++++++++ drivers/gpu/drm/sti/sti_hdmi_tx6g0c28phy.h | 13 + drivers/gpu/drm/sti/sti_mixer.c | 133 ++++++-- drivers/gpu/drm/sti/sti_mixer.h | 3 +- drivers/gpu/drm/sti/sti_plane.c | 8 + drivers/gpu/drm/sti/sti_plane.h | 8 +- drivers/gpu/drm/sti/sti_tvout.c | 35 ++- drivers/gpu/drm/sti/sti_vtg.c | 62 +++- drivers/gpu/drm/sti/sti_vtg.h | 1 - 23 files changed, 967 insertions(+), 158 deletions(-) create mode 100644 drivers/gpu/drm/sti/sti_hdmi_tx6g0c28phy.c create mode 100644 drivers/gpu/drm/sti/sti_hdmi_tx6g0c28phy.h Acked-by: Krzysztof Kozlowski