From patchwork Mon Jan 2 10:09:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rahul T R X-Patchwork-Id: 3454 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp4095556wrt; Mon, 2 Jan 2023 02:13:15 -0800 (PST) X-Google-Smtp-Source: AMrXdXuIo9LoLqJqa90hGv3+RaALDawm0FGRaLVEP9pN4taU4a0HzUOYfVoBdHBLhp61FcMeSzoO X-Received: by 2002:a17:902:6805:b0:191:1545:a652 with SMTP id h5-20020a170902680500b001911545a652mr51008987plk.31.1672654395384; Mon, 02 Jan 2023 02:13:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672654395; cv=none; d=google.com; s=arc-20160816; b=IZtIVRZXaosGft5IeRL/oaVCSr0xQOMZdDGBiLwVjQRyulIalkFfqdwP3OQHFZAzjE swSI6ViHgP3uyfFTa7T2XA3nHfD4DZd3mkixLguFWV7BlqVuNO0CF4WZ1OS1JwY0IuRV H6RTcRpKV2mIgw9qyUOISYGc/TIUT2GgFjDfN2iKxAKjmufaTUIy65OSEhdzbHNKmHtl z99ejNrLsBNcrwDP52iFpc+M0nWfGBjBdK1IbMdnAdPY0aGsJUMSpi1pTwgmkpdxeW3x 7pbCFIpYj0ZVAhO95VgvwF1h0LT8x9UsZsp3odtDxOR1gAFvRW5t1GFXOPGGH/WFLEb1 xdRQ== 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=SxbhjSBoYjRSQ7hXxPepTrGSxOuqdE9t1u3iNmmkM0g=; b=OyNdU7Rc5P44W+evXxuIqTPW8Y4CX7Jna9sCL9kFhHB0UBnDAlc7JvQbaBmbnWm6gE oVyKmX6gA8ZH4n/Du+y773B17fgd60DWsPs5sMCPUE9Nnt6KtwTQv26h9czG/J0p3wvU Ple5ibh20wrhX7cIgvjYupjlV5njT15/hPSHIHI7oyIon53g1vS/fRIZolCBJmvBJGtC eGcx8AVOwXgp8+Yx2KpD4kWC45eCNJzxP3WdRfbdo1xZF6a3dtCH/qcmBqrAy9oOQylb RmeKJLexOeNdqa2yDtwom7Wdc5o8cigyNY0AEYi5xBXLS4XVzHutfW47lh50lJ2chRA8 XdcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=QF46D8Iv; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id iz11-20020a170902ef8b00b001890c6ff018si27542130plb.486.2023.01.02.02.13.03; Mon, 02 Jan 2023 02:13:15 -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=QF46D8Iv; 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 S231800AbjABKKR (ORCPT + 99 others); Mon, 2 Jan 2023 05:10:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231785AbjABKKL (ORCPT ); Mon, 2 Jan 2023 05:10:11 -0500 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63700B1B; Mon, 2 Jan 2023 02:10:10 -0800 (PST) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 302A9l2i104426; Mon, 2 Jan 2023 04:09:47 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1672654187; bh=SxbhjSBoYjRSQ7hXxPepTrGSxOuqdE9t1u3iNmmkM0g=; h=From:To:CC:Subject:Date; b=QF46D8IvziBAC1lE5ifHptJrP2On88ueR8hxN9IkHlP1aXW6nazB9r6/5vGdKJmUI OgbA6enEQxV7vZHfdS7vwB/e/VSoAf9vmnMEDRlD/YxU7SUMDSNYJESdpMY+Apm2sG SmZRYG+VfxsZAEzezl8/mw5CmTTj7b/5+qIYEnHw= Received: from DFLE111.ent.ti.com (dfle111.ent.ti.com [10.64.6.32]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 302A9lF0025604 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 2 Jan 2023 04:09:47 -0600 Received: from DFLE110.ent.ti.com (10.64.6.31) by DFLE111.ent.ti.com (10.64.6.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Mon, 2 Jan 2023 04:09:46 -0600 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE110.ent.ti.com (10.64.6.31) 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; Mon, 2 Jan 2023 04:09:46 -0600 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 302A9jNs031913; Mon, 2 Jan 2023 04:09:46 -0600 From: Rahul T R To: , , , CC: , , , , , , , , , , , , , , , , , Rahul T R Subject: [PATCH v10 0/5] Add support for CDNS DSI J721E wrapper Date: Mon, 2 Jan 2023 15:39:37 +0530 Message-ID: <20230102100942.1828-1-r-ravikumar@ti.com> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1753905255300755276?= X-GMAIL-MSGID: =?utf-8?q?1753905255300755276?= Following series of patches adds supports for CDNS DSI bridge on j721e. v10: - Rebased to v6.2-rc1 - Accumulated the Reviewed-by acks v9: - Fixed below based on review comments in v8 - Added more info on wrapper in the commit message - Fixed the description in Kconfig - Fixed the formatting of of_match table - exit -> deinit in platform ops - Remove duplicate of struct declaration in cdns-dsi-j721e.h v8: - Rebased to 6.1-rc1 v7: - Rebased to next-20220920 - Accumulated the Reviewed-by acks v6: - Dropped generic definations for properties like reg, resets etc.. - Fixed the defination for port@0 and port@1 - removed the ti,sn65dsi86 node from the example, which is not related v5: - Remove power-domain property in the conversion commit - Add power-domain only for j721e compatible - Fix white space error in one of the commit v4: - split conversion txt to yaml - seperate commit for addinig new compatible - conditionally limit the items for reg property, based on the compatible v3: - Convert cdns-dsi.txt binding to yaml - Move the bridge under display/bridge/cadence - Add new compatible to enable the wrapper module v2: - Moved setting DPI0 to bridge_enable, since it should be done after pm_runtime_get Rahul T R (5): dt-bindings: display: bridge: Convert cdns,dsi.txt to yaml dt-bindings: display: bridge: cdns,dsi: Add compatible for dsi on j721e drm/bridge: cdns-dsi: Move to drm/bridge/cadence drm/bridge: cdns-dsi: Create a header file drm/bridge: cdns-dsi: Add support for J721E wrapper .../bindings/display/bridge/cdns,dsi.txt | 112 ---- .../bindings/display/bridge/cdns,dsi.yaml | 180 +++++++ drivers/gpu/drm/bridge/Kconfig | 11 - drivers/gpu/drm/bridge/Makefile | 1 - drivers/gpu/drm/bridge/cadence/Kconfig | 21 + drivers/gpu/drm/bridge/cadence/Makefile | 3 + .../{cdns-dsi.c => cadence/cdns-dsi-core.c} | 481 ++---------------- .../gpu/drm/bridge/cadence/cdns-dsi-core.h | 471 +++++++++++++++++ .../gpu/drm/bridge/cadence/cdns-dsi-j721e.c | 51 ++ .../gpu/drm/bridge/cadence/cdns-dsi-j721e.h | 16 + 10 files changed, 777 insertions(+), 570 deletions(-) delete mode 100644 Documentation/devicetree/bindings/display/bridge/cdns,dsi.txt create mode 100644 Documentation/devicetree/bindings/display/bridge/cdns,dsi.yaml rename drivers/gpu/drm/bridge/{cdns-dsi.c => cadence/cdns-dsi-core.c} (65%) create mode 100644 drivers/gpu/drm/bridge/cadence/cdns-dsi-core.h create mode 100644 drivers/gpu/drm/bridge/cadence/cdns-dsi-j721e.c create mode 100644 drivers/gpu/drm/bridge/cadence/cdns-dsi-j721e.h