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: 13330801 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B89CAEB64DD for ; Thu, 27 Jul 2023 21:52:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=fb2KDVyuIPIN8w2EoAqjBIh+NVfzAinwjW46kSn/mho=; b=yu4X+EevSWCbxe 5zLCE827nzEU6VPWTYcX1z77dB7qcDi0bBBk5Jq9pJHzyTLdIwqEyEhvuY399L9e4RxWKJ1o/gCaR hlrQasWWIqGqtnwfEaPZaWhQJxK3c0atG3tiYP9fcjlwirNXww3ZgzawuAYZfuGGZXKWLhXml64Bj /KvVuB4fkY8ZfR/SDsy47ab+aEBproBirvE1Rojn3bLQJ9BoYJ/X7kKw0XTl2BnE38zXGoTFvc8z2 KaszMvj9L6i/6sX8RBusICrRMVwE3Vw8N4Xcgouz6KTC4mhqMVOhy5UH5dFVd1jNDSNik5tqdIkf0 MofqwjfCDCQATCQLkuBQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qP8uQ-000ebK-1d; Thu, 27 Jul 2023 21:52:34 +0000 Received: from qs51p00im-qukt01080302.me.com ([17.57.155.21]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qP8uN-000eZU-16 for linux-arm-kernel@lists.infradead.org; Thu, 27 Jul 2023 21:52:32 +0000 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230727_145231_463083_BB1A8A52 X-CRM114-Status: GOOD ( 13.69 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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