Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp1215181lqo; Sat, 11 May 2024 12:31:52 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV/yCOs1CHJ4+8N8eBbUg84sBtUBb8thiTdzt37x0mQQP+UcKr69erTl+QhJzTNcgN1GMOpDmpO3cdpDcOmmOmJXbYF2ydvsWqU0DzHeA== X-Google-Smtp-Source: AGHT+IFfq5vG+GG4Ye0CWFT5zj22Qsqmm3QiyxKSPOheWo4CbBujdoeexCWmVzGemB57QQW+uQon X-Received: by 2002:a05:6a21:3e04:b0:1af:b89c:a8dd with SMTP id adf61e73a8af0-1afde1cca53mr5996142637.61.1715455912301; Sat, 11 May 2024 12:31:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715455912; cv=pass; d=google.com; s=arc-20160816; b=oRUKxiTI5rgg0fbI4LKFV/DGKfcH937ND1dWL/0YdZQAZusy4I014uz0L3lna8grSx ePVWPxu+OV5E+8qHo1Bf7YbxfOBo1omUKK9PMAVfOj8wa+6hIn/RDCt3qtBmxK/iKMv5 WQuTbeUPUkdDQnOCGNe8XbQ4gMWys7cgzaalJNKTKb8erGA20/tcflwXF99ZH8gctWuP aLAXFIcDgp3kYrTIBqV07y96xTsu3rI7BZuZQajvGfAg+Nb8rA4ea3VyjOyLwMThsCzs wWDzxkUFmNx1sUChGe/ME/ghaUIB0xU4VV1/p3S//SpAb4JoUZxUzDMOjbRL5G9ZCbHp GG1w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=xQZv/xzUy/h54vzFSq/qFJqi6KOEzJtq8ToI3N/K79s=; fh=RNwByuAV/ehPEcwekbNuiH1rzdeVnplT5iGSNYoo6tc=; b=vWaazFoyspGnDV5gSLqWfV2MXQVdnzfxxs9ZQLgEfFFpdorfcL/yaIxyJS6TWuRT0S +c2RiQ9fcwNnUy2rCDy/iw6+v5koLjdyNMq4Isk8CKym9iIFmt2F/o9pW/bOfIkvXPg1 VLCSdFdEostJfhJkTpIMhx+tNeqiOVcKJhnQqdcwIrnuK64OEUxqc9XllRZmEm/41rAe 60cFsWrnM8QiI66rMD4oq6lNfIuRCxAQ8PI4aSciq1BwMULpaFeWbTQnRUg7TbkU4f+r 3tV6Koqd7GAP92Nnp0BSikmwWCXWnps1lLlq+clwFCbMAhbxFFGwXtJyoQIaIN3LaIac IT0g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=SR1jCDf+; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-176705-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176705-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2b6290c6158si8033734a91.157.2024.05.11.12.31.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 May 2024 12:31:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-176705-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=SR1jCDf+; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-176705-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176705-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 432B7B21053 for ; Sat, 11 May 2024 19:31:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F184620DD2; Sat, 11 May 2024 19:31:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="SR1jCDf+" Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 913051C6B7; Sat, 11 May 2024 19:31:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.142 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715455884; cv=none; b=tyQKvnPi6sOIt7/KkMK5EFdvR0tF9WX/37ytQlWDqpboy/pYgincCfYRKrwqqM+JgGQdtzHtnZgMdRMPExZUWslKC3ltXuXB0FGvt8tLZ4YAXweC7G7oy+R92ANG5or9W0Iy8hU2v4HOw2j5jBBKEe8wYhZANjmXaBKw8SR11vo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715455884; c=relaxed/simple; bh=GM904Fq2LU07JgvnLHnrKsLDSbFCeh5QBMZmKXFDf0c=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=cAc0WS2pIIrF2vemMzfLBNw44Vw1uJpMQc1HOI2xlxY9UbGdwf0oe7sujMIZXzzh0Hg1spQFWBLNhmvF16/5GXrCIEW7326fgGz4BivLKugSnafJdshTVvLafrZgNx2SKCmIsCeRDvXH/pb0H1OHZRRd5OI1CuB6iDkgOI1240w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=SR1jCDf+; arc=none smtp.client-ip=198.47.19.142 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 44BJUvMn029411; Sat, 11 May 2024 14:30:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1715455857; bh=xQZv/xzUy/h54vzFSq/qFJqi6KOEzJtq8ToI3N/K79s=; h=From:To:CC:Subject:Date; b=SR1jCDf+GyceuodFzTMVrltkawR8oZ1ORVkFcF/6Xj0VJRxNahuT35uRAGYuh3Zbo bGtz89p+xrafKUGSbs/YeTNSA8XnvhU2Kkuee5MrhkD4TwYbiCpjIcIaIg2X35Q7GM dVLIGXlft7HSbHsCaDDgrvXGPv8bi+6rQrt1cx8I= Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 44BJUvQq073051 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Sat, 11 May 2024 14:30:57 -0500 Received: from DFLE107.ent.ti.com (10.64.6.28) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Sat, 11 May 2024 14:30:56 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Sat, 11 May 2024 14:30:56 -0500 Received: from localhost (uda0496377.dhcp.ti.com [172.24.227.31]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 44BJUtgC091562; Sat, 11 May 2024 14:30:56 -0500 From: Aradhya Bhatia To: Tomi Valkeinen , Jyri Sarha , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Neil Armstrong , Laurent Pinchart , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley CC: DRI Development List , Devicetree List , Linux Kernel List , Nishanth Menon , Vignesh Raghavendra , Praneeth Bajjuri , Udit Kumar , Francesco Dolcini , Alexander Sverdlin , Randolph Sapp , Devarsh Thakkar , Jayesh Choudhary , Jai Luthra , Aradhya Bhatia Subject: [PATCH 0/4] drm/tidss: Add OLDI bridge support Date: Sun, 12 May 2024 01:00:51 +0530 Message-ID: <20240511193055.1686149-1-a-bhatia1@ti.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Hello all, This patch series add support for the dual OLDI TXes supported in Texas Instruments' AM62x and AM62Px family of SoCs. The OLDI TXes support single-lvds, lvds-clone, and dual-lvds modes. These have now been represented through DRM bridges within TI-DSS. The OLDI configuration should happen before the video-port configuration takes place in tidss_crtc_atomic_enable hook. I have posted a patch allowing DRM bridges to get enabled before the CRTC of that bridge is enabled[0]. The patch 4/4 of this series uses the bridge hooks introduced in [0], and hence will not compile without [0]. This patch series is a complete re-vamp from the previously posted series[1] and hence, the version index has been reset to v1. The OLDI support from that series was dropped and only the base support for AM625 DSS was kept (and eventually merged)[2]. These patches have been tested on AM625 based platforms, SK-AM625 EVM with a Microptis dual-lvds panel (SK-LCD1), and Beagleplay with a Lincolntech dual-lvds panel (LCD-185T). The patches with complete support including the expected devicetree configuration of the OLDI TXes can be found in the "next_oldi_finals-v1-tests" branch of my github fork[3]. Thanks, Aradhya [0]: Dependency Patch: Introduce early_enable / late_disable drm bridge APIs https://lore.kernel.org/all/20240511153051.1355825-7-a-bhatia1@ti.com/ [1]: AM62 OLDI Series - v7 https://lore.kernel.org/all/20230125113529.13952-1-a-bhatia1@ti.com/ [2]: AM62 DSS Series - v9 https://lore.kernel.org/all/20230616150900.6617-1-a-bhatia1@ti.com/ [3]: GitHub Fork for OLDI tests https://github.com/aradhya07/linux-ab/tree/next_oldi_finals-v1-tests Aradhya Bhatia (4): dt-bindings: display: ti,am65x-dss: Minor Cleanup dt-bindings: display: ti: Add schema for AM625 OLDI Transmitter dt-bindings: display: ti,am65x-dss: Add OLDI properties for AM625 DSS drm/tidss: Add OLDI bridge support .../bindings/display/ti/ti,am625-oldi.yaml | 153 +++++ .../bindings/display/ti/ti,am65x-dss.yaml | 178 +++++- MAINTAINERS | 1 + drivers/gpu/drm/tidss/Makefile | 3 +- drivers/gpu/drm/tidss/tidss_dispc.c | 11 +- drivers/gpu/drm/tidss/tidss_dispc.h | 4 + drivers/gpu/drm/tidss/tidss_drv.c | 13 +- drivers/gpu/drm/tidss/tidss_drv.h | 4 + drivers/gpu/drm/tidss/tidss_oldi.c | 568 ++++++++++++++++++ drivers/gpu/drm/tidss/tidss_oldi.h | 73 +++ 10 files changed, 983 insertions(+), 25 deletions(-) create mode 100644 Documentation/devicetree/bindings/display/ti/ti,am625-oldi.yaml create mode 100644 drivers/gpu/drm/tidss/tidss_oldi.c create mode 100644 drivers/gpu/drm/tidss/tidss_oldi.h base-commit: 75fa778d74b786a1608d55d655d42b480a6fa8bd -- 2.34.1