Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp997987rwb; Wed, 28 Sep 2022 11:46:34 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6D1od2JCG/1TDZZ8sXLz7iqnIIOFqXFhkZ8Z6KaBbbcUAeVtM2nDVoTtypRvwsiJc7kwmb X-Received: by 2002:a17:907:75c7:b0:779:bf7:9be7 with SMTP id jl7-20020a17090775c700b007790bf79be7mr28921290ejc.432.1664390794267; Wed, 28 Sep 2022 11:46:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664390794; cv=none; d=google.com; s=arc-20160816; b=ExFVaNOZK8o9QKPWyvju+Glxs7m3b4C45e95Nh2vroHFpAUNm76C4IoytxET1lD3c6 EpUnjlOc7TRDj2+5trtArVVlw1FVLGnlFJVVQunso505O1jTpEXeJPEriKRfk2AAuoeZ SbWV9Xm/s65Dk9HfgbfRo1E55mM7xvK00geAg9DIeJjBms+tNi17PZHUJkTSK36VavTD rSfqNM59pUphk7e64Po35YZ/2QLoEOWgQvxkPAy9RLupACe85KcnvKzcdHjryxuylP55 lxqnTjRN8avc7SBb2Ogb62BTadRlwTrn5DaEV8mAit52SBg1rvr9RYCReTzzFMsD3zsa DKIQ== 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=+nMkJVipOiVxem0Rt3I7+AhSsJ7p85+gzYWYe8Su7kw=; b=tVR+rxLWZp0WRzE39k076m4p65uhiOz8RRbj0cPy++I/p6NK70J2Wd5VWKNsYZEZoO EKTBlOpCQvHZ5gt8jUeMtP1zPSb++xWJTmK0M1KgHSi7Jr/lQWTN8Mj74FWvmlS5VsUv uVXIpxN8+M8c0Y3c/mf0Tny5yBHtntw93TBMqanz4ErjRQtkSUg4CXav93VcBg8pJqB9 etVWHXWQvdRb6Ub70O0JUg8NRc/XsLy38A5Pt4g/QBGIHmj3PZ9lx1ZbWa8woVUgBXEj KLk6Uy9h5+6FYxNt6DUVPkf/QSq3wHw72E0nWeZCYkg7TFScX6uJV6o/TtS+zC81ckz9 Ie8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=cxSPjhKe; 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=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o1-20020a1709062e8100b0078261fd56efsi4643982eji.571.2022.09.28.11.46.08; Wed, 28 Sep 2022 11:46:34 -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=@ti.com header.s=ti-com-17Q1 header.b=cxSPjhKe; 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=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234606AbiI1Rwy (ORCPT + 99 others); Wed, 28 Sep 2022 13:52:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234333AbiI1Rwu (ORCPT ); Wed, 28 Sep 2022 13:52:50 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F794F8F80; Wed, 28 Sep 2022 10:52:45 -0700 (PDT) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 28SHqPaf076937; Wed, 28 Sep 2022 12:52:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1664387545; bh=+nMkJVipOiVxem0Rt3I7+AhSsJ7p85+gzYWYe8Su7kw=; h=From:To:CC:Subject:Date; b=cxSPjhKeevtkcslAy9veL4QUcK9bKnvIALWhTlwhe3ca42N69ZXrgPWF/FUoFUHnG e2GNAfe/zeJ47yrXZ8behrPXloZ1oxM9QLcsVgvAsPO4UNJxuTbrIUpeM76OyFqB/k twmyC/OGksfFTuWf469gUpFYFKD6qp1a1grtos1w= Received: from DFLE105.ent.ti.com (dfle105.ent.ti.com [10.64.6.26]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 28SHqPOH029164 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 28 Sep 2022 12:52:25 -0500 Received: from DFLE114.ent.ti.com (10.64.6.35) by DFLE105.ent.ti.com (10.64.6.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6; Wed, 28 Sep 2022 12:52:24 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6 via Frontend Transport; Wed, 28 Sep 2022 12:52:24 -0500 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 28SHqOMQ100880; Wed, 28 Sep 2022 12:52:24 -0500 From: Aradhya Bhatia To: Tomi Valkeinen , Jyri Sarha , Rob Herring , David Airlie , Daniel Vetter , Krzysztof Kozlowski CC: Nishanth Menon , Vignesh Raghavendra , Rahul T R , DRI Development List , Devicetree List , Linux Kernel List Subject: [RFC PATCH v5 0/6] Add DSS support for AM625 SoC Date: Wed, 28 Sep 2022 23:22:17 +0530 Message-ID: <20220928175223.15225-1-a-bhatia1@ti.com> X-Mailer: git-send-email 2.37.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 This patch series adds a new compatible for the Display SubSyetem controller on TI's AM625 SoC. It further adds the required support for the same in the tidss driver. The AM625-DSS is a newer version of the DSS from the AM65X version with the major change being the addition of another OLDI TX. With the help of 2 OLDI TXes, the AM625 DSS supports OLDI displays with a resolution of upto 2K. This patch set further adds support for the OLDI on AM625, and is, in essence, the second version of the following patch series: https://patchwork.kernel.org/project/dri-devel/list/?series=660970&state=%2A&archive=both The changes in the above-mentioned series forced some re-works in this series, and are better reviewed as a single set. TODO: - Support for OLDI Bridges that work on clone / dual-link modes is yet to be added. - The pixel clock for the OLDI VP passes through a clock divider, which was being explicitly set in previous series, but that was not the right way. That patch has been dropped and a newer implementation is in works. Note: - Due to lack of hardware, only dual-link mode has been tested. Changelog: V5: - Rebase for current merge window - Add max DT ports in DSS features - Combine the OLDI support series (Changes from OLDI support series v1) - Address Tomi Valkeinen's comments 1. Update the OLDI link detection approach 2. Add port #3 for 2nd OLDI TX 3. Configure 2 panel-bridges for cloned panels 4. Drop the OLDI clock set patch 5. Drop rgb565-to-888 patch V4: - Rebase for current merge window - Add acked and reviewed by tags V3: - Change yaml enum in alphabetical order - Correct a typo V2: - Remove redundant regsiter array Aradhya Bhatia (6): dt-bindings: display: ti,am65x-dss: Add am625 dss compatible dt-bindings: display: ti: am65x-dss: Add new port for am625-dss drm/tidss: Add support for AM625 DSS drm/tidss: Add support to configure OLDI mode for am625-dss. drm/tidss: Add IO CTRL and Power support for OLDI TX in am625 drm/tidss: Enable Dual and Duplicate Modes for OLDI .../bindings/display/ti/ti,am65x-dss.yaml | 22 ++- drivers/gpu/drm/tidss/tidss_dispc.c | 155 ++++++++++++++++-- drivers/gpu/drm/tidss/tidss_dispc.h | 11 ++ drivers/gpu/drm/tidss/tidss_dispc_regs.h | 6 + drivers/gpu/drm/tidss/tidss_drv.c | 1 + drivers/gpu/drm/tidss/tidss_drv.h | 3 + drivers/gpu/drm/tidss/tidss_kms.c | 146 ++++++++++++++--- 7 files changed, 304 insertions(+), 40 deletions(-) -- 2.37.0