Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2137638rwb; Sat, 19 Nov 2022 09:33:52 -0800 (PST) X-Google-Smtp-Source: AA0mqf7aA82sGhXiaOYG2WiHCTOMJm8aCWb8ccrSA0BZUkom+HXlYCq3EsWWE8j9YyBKWfcjmOGA X-Received: by 2002:a17:906:d293:b0:7ae:27a7:2a66 with SMTP id ay19-20020a170906d29300b007ae27a72a66mr10166307ejb.72.1668879231976; Sat, 19 Nov 2022 09:33:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668879231; cv=none; d=google.com; s=arc-20160816; b=QFLhHTbgqPeGJOosEjTUNLsSYU2ltyf+5ecexsOKA0ZFwq7IroEuGQ0fKX7YwY0Sg0 24TQ28iw5A4ghQeFKwmUi8sGnF/Ch9N32jNFFYCY++Qm06iNNQwIiMyLpianM9hychaV afPk7twpywL+COhqBrssSdJKh4nv8+p9Ef2tql2AzPhPpEufcDwjpbiG1Y7SgbzoWJLj wbKLwFkyYZrv+u/LmvilDdIdJQZ4fWRjz+OlBk3UsyeqNPTG2qd4jwQpfe7lFWe5oFZ+ OlojvhjF8glxgQxZu1cXgBbbB2+Q0oYLwe2Jl12g/OsTpA/AyWkn9wwe8EpINQBSX48H SLmA== 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=8+Dq0WAc1bNc62nRfuh2tOK1pVafWhkJvKRgbeBBi3w=; b=i6RArBsJ7fB4ZM5cSAp1Tz6sCzH5U4cWczLH8kJYYvjd5OE4vBip6+9fH3bn63DmrC bHuPSlhke2Nv+bg0arEf6TUMwaGs8V3mEfYs2DBxeD+u35IzvHB/nhdhh6etMEbkyk/L F4R2sP7fo3eyTywFfe7/NeHNBynANSMFy/6ablLtw09xU98e+pOlIbkfoedE8XI20/1d ZMdpTNXG9GxlUcdx+xlQFnr4JnX7ynrIO3AEvS0VqXUj9vdWgGOZ1kS1dM6kIFBKXGjn zCh4rQXrtfkAkgFl/EqBnOwnvPaHILzkzZ2gPVgYsWYiadOC8Z/s1OeRKRk8PEynpC2k fIGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=NZZckdXP; 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 sh14-20020a1709076e8e00b0078ae5192906si6383054ejc.193.2022.11.19.09.33.28; Sat, 19 Nov 2022 09:33:51 -0800 (PST) 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=NZZckdXP; 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 S234231AbiKSRa4 (ORCPT + 91 others); Sat, 19 Nov 2022 12:30:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234574AbiKSRap (ORCPT ); Sat, 19 Nov 2022 12:30:45 -0500 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C15017047; Sat, 19 Nov 2022 09:30:44 -0800 (PST) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 2AJHULL5025948; Sat, 19 Nov 2022 11:30:21 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1668879021; bh=8+Dq0WAc1bNc62nRfuh2tOK1pVafWhkJvKRgbeBBi3w=; h=From:To:CC:Subject:Date; b=NZZckdXP227hZUhwqFC3fGg1mX1E8P7EcHFwk/vBlI8+48sOqTiUofLwQzoKxASY5 1oR0K91WNJDrIu2K6aUh9+l5z02DQOo6csLGS88AX32NyENLJvfR9bdLzS2oa19M69 oK+GAUF7y51XMfgu0t/jVNFMXJycYL+H1gjQR7Vk= Received: from DFLE109.ent.ti.com (dfle109.ent.ti.com [10.64.6.30]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 2AJHULpu093871 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Sat, 19 Nov 2022 11:30:21 -0600 Received: from DFLE101.ent.ti.com (10.64.6.22) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Sat, 19 Nov 2022 11:30:21 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE101.ent.ti.com (10.64.6.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16 via Frontend Transport; Sat, 19 Nov 2022 11:30:21 -0600 Received: from localhost (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 2AJHUKnw055604; Sat, 19 Nov 2022 11:30:21 -0600 From: Aradhya Bhatia To: Tomi Valkeinen , Jyri Sarha , Rob Herring , David Airlie , Daniel Vetter , Krzysztof Kozlowski CC: DRI Development List , Devicetree List , Linux Kernel List , Nishanth Menon , Vignesh Raghavendra , Rahul T R , Devarsh Thakkar , Jayesh Choudhary , Aradhya Bhatia Subject: [PATCH v6 0/5] Add DSS support for AM625 SoC Date: Sat, 19 Nov 2022 23:00:14 +0530 Message-ID: <20221119173019.15643-1-a-bhatia1@ti.com> X-Mailer: git-send-email 2.38.1 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.4 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 can support dual-linked OLDI displays with a resolution of upto 2K or WUXGA (1920x1200@60fps) at half the OLDI clock frequency or even cloned video outputs on each of the TXes. TODO: - The pixel clock for the OLDI VP passes through a clock divider, which was being explicitly set in previous versions, but that was not the right way. That patch was dropped and a newer implementation is in works. Note: - The roots of this patch set can be found in the following 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 since all the patches were better understood as a single set, both the series were combined. - The previous patch series couldn't take into account OLDI bridges that worked with Clone / Dual Link Mode. That has been rectified in this patch set. This became possible because the OLDI mode discovery was separated from the panel/bridge discovery loop during modeset initialization. Changelog: V6: - Rebase for current merge window. - Add 'allOf:' condition in the DT binding. - Address Tomi Valkeinen's comments 1. Combine DT binding patches for new compatible and 3rd DSS port. 2. Further separate DSS VPs and output ports. 3. Separate OLDI mode discovery logic from the panel/bridge discovery (which allowed support for OLDI bridges as well.) 4. Organize OLDI IO control regsiter macros platform wise. 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 (5): dt-bindings: display: ti,am65x-dss: Add support 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 | 23 ++- drivers/gpu/drm/tidss/tidss_dispc.c | 171 ++++++++++++++-- drivers/gpu/drm/tidss/tidss_dispc.h | 24 ++- drivers/gpu/drm/tidss/tidss_dispc_regs.h | 37 +++- drivers/gpu/drm/tidss/tidss_drv.c | 1 + drivers/gpu/drm/tidss/tidss_drv.h | 8 +- drivers/gpu/drm/tidss/tidss_encoder.c | 4 +- drivers/gpu/drm/tidss/tidss_encoder.h | 3 +- drivers/gpu/drm/tidss/tidss_irq.h | 2 +- drivers/gpu/drm/tidss/tidss_kms.c | 188 ++++++++++++++++-- 10 files changed, 400 insertions(+), 61 deletions(-) -- 2.38.1