From patchwork Mon Oct 31 12:19:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rahul T R X-Patchwork-Id: 916 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2278864wru; Mon, 31 Oct 2022 05:20:40 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5jDSsBwQEuPa53AbkLtwyR2dFS+MUFxhxPH81wRybSsVVsTF6aVG3zGACw929CGb43jhsw X-Received: by 2002:a50:950d:0:b0:463:298a:448c with SMTP id u13-20020a50950d000000b00463298a448cmr8058949eda.153.1667218840060; Mon, 31 Oct 2022 05:20:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667218840; cv=none; d=google.com; s=arc-20160816; b=ircco7keUK7pFvJiYzd2StY4ICMacqRTmA6cnuya9ThtdzKAf63efRYosfUfCrMf0D 2sP+AiuQnVodhAad1Z/hAljGMolrcsQXURxDAWE8FDpkG70gn8ScpmCQPaaAbPj/5XhZ 2/NiM5wSDjg8z5H/uwBFp6wXjlmJaXuIYETrcySrhIgUetKyXQgajDaR9/SRoVYfrKC/ jhB8GiGPry6TTunEMg0CpoUlxEJpWk0kQK713utAaLfVRrEoK8J2UCwQ+1BTMadhkbuA V2Kd2HEbZjWI5BizB7Sragj9gEPOYEshn+MP6MRgnbly+GKD+MCgZxvGCPomDyzcz+BU 5evQ== 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=uOCHiSxsSvLq9cqkTvEuyLAzP3fo56xpUetIl2heAr0=; b=PrI9ApPwJRVPj/8fTImYXfeon6J/67Cua5LSl36tZaBPmCuTNv2TwDd+zS/b67F94a eFxHaI/4wITlIE9RyCWs3tA4m60J7YpuVwQxQGdFDBAf7SNAv1XXaXz741wuuvouaw7B NxvsgFBvFWv6Vhhf4ITi0iE4n0DfdVDb7ERVXJUPGyIOTB8NVwYPjQvFpr7aG3eFo5Wx YIfK42crU9kYd8lcN+jdvZml+fc4ZjNC/9VQqKSYc33pWsDDJ0zM5mmHqVYGNmter/B0 SIwbleDnosGgBrdBOwepq8bWrWdDk5Fb0WraSyaP7xmKhiaysRNwG3F/B8EMKvUoBIeM 6nzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=xw0eUPAm; 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 e17-20020a056402191100b00457205ae2b5si8799938edz.358.2022.10.31.05.20.16; Mon, 31 Oct 2022 05:20:40 -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=xw0eUPAm; 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 S231315AbiJaMT4 (ORCPT + 99 others); Mon, 31 Oct 2022 08:19:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230467AbiJaMTy (ORCPT ); Mon, 31 Oct 2022 08:19:54 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E479562CF; Mon, 31 Oct 2022 05:19:52 -0700 (PDT) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 29VCJRa0052972; Mon, 31 Oct 2022 07:19:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1667218767; bh=uOCHiSxsSvLq9cqkTvEuyLAzP3fo56xpUetIl2heAr0=; h=From:To:CC:Subject:Date; b=xw0eUPAmRoLiAjXRr94X7ItrlO0gm0g71OaZQ8cbdKxdF8Yg7PziSpEeq5tMaPY77 CKZPzBUIRGum6H4HNhDkaVmO06o3ZG61K+qrpUTC+acpFkWmLvkYzDB5PFSbCE0dV8 sw8954nakUVmvX45jg7anFAQ59FTXnovSsIjPbFM= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 29VCJRpe005423 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 31 Oct 2022 07:19:27 -0500 Received: from DLEE103.ent.ti.com (157.170.170.33) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6; Mon, 31 Oct 2022 07:19:26 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE103.ent.ti.com (157.170.170.33) 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; Mon, 31 Oct 2022 07:19:26 -0500 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 29VCJPse017206; Mon, 31 Oct 2022 07:19:26 -0500 From: Rahul T R To: , , , CC: , , , , , , , , , , , , , , , , , Rahul T R Subject: [PATCH v9 0/5] Add support for CDNS DSI J721E wrapper Date: Mon, 31 Oct 2022 17:49:19 +0530 Message-ID: <20221031121924.29974-1-r-ravikumar@ti.com> X-Mailer: git-send-email 2.38.0 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-5.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?1748205662395108794?= X-GMAIL-MSGID: =?utf-8?q?1748205662395108794?= Following series of patches adds supports for CDNS DSI bridge on j721e. 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