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: 12728 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:918b:0:b0:3e4:2afc:c1 with SMTP id s11csp42504vqg; Thu, 27 Jul 2023 15:18:38 -0700 (PDT) X-Google-Smtp-Source: APBJJlFJWgGZVMIb2qDxmyWeHj9fPzcDhmg3L4HujZ8YrwWEtGEGASs13FyGtq9KZq1rJ8UFs/DY X-Received: by 2002:a17:902:d345:b0:1aa:d971:4623 with SMTP id l5-20020a170902d34500b001aad9714623mr673079plk.38.1690496318160; Thu, 27 Jul 2023 15:18:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690496318; cv=none; d=google.com; s=arc-20160816; b=xNLTu4Bq1y2eYP8C/dDj5Pw9sCbA07fzVQJ/+4sa7IVKCzc9+znnupYO9h4jvN2qrr eo3jFvTwweDyiz9XCDMFUQOGvPiOgJk+/WwW7NwXj+318oPV+GtM/kx1bf5JLbWCRoA+ X046GD0qoLHFa0MR3VND5SZ40TdKiKwq/OMMfgC9/l0cLcu9H51QYS6r4p3tQe8SKMCo 9wUqt/TsYFa41027ShWGZABh0qwmnqeI22pDchJFNqeyv77Sa/46X/MXOwEsD5Dd/ZF5 PyXo/eBY2cU1gCgLl9VWjQA+BivuoOIvAzSg5B4T2zyydAP++0+4nW7yK/tn8bSuyksC X2LA== 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:dkim-signature; bh=LU0k+tUkFkEwfTZnI6jZM5Vvh1FH+qSfXs1IaYag2Qs=; fh=fq2x3X5uMRsty+9u6MjDsG8uJYIobyffFfx5pi5GHco=; b=iv4uEVjM7YnmhvtIVQxIAq/6dvnovdHJSeHjTVfWvjZb9rODzBMymJo0QhwQtIA6tY UjgistFUAkgW5p+gRkALJz5LrtY8n5zqxEKPUIJK3iaeJuJF69SAejLgdJVhu1BGzhrK z+nBrs4h/ZSqiNFpK0EvbMpbfc20F8UTp+9gHtVx99/BGCTKMbFqXafE9UGASBZS9DCv oQEwbcLl1dlYpjs27UYOYhVYAj30MoW3wDkGpbTIfqCqP0/QdvhpkID7mL86QAlFsUt6 OyWpR5LhHIWUcWq89wzksx+2XftMZ2TQOx6WIpQGSb7OqeoI80sMx9hAJlRGxYVVje2p tnFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@me.com header.s=1a1hai header.b=cz1asW0V; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=me.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x35-20020a17090a6c2600b00265ca1c461asi3393108pjj.175.2023.07.27.15.18.24; Thu, 27 Jul 2023 15:18:38 -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; dkim=pass header.i=@me.com header.s=1a1hai header.b=cz1asW0V; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=me.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231459AbjG0VwX (ORCPT + 99 others); Thu, 27 Jul 2023 17:52:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59678 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230319AbjG0VwW (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 5A386213F 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 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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: INBOX X-GMAIL-THRID: 1772613867533197025 X-GMAIL-MSGID: 1772613867533197025 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