From patchwork Fri Jan 24 10:55:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 182940 Delivered-To: patch@linaro.org Received: by 2002:a92:1f12:0:0:0:0:0 with SMTP id i18csp440406ile; Fri, 24 Jan 2020 02:55:16 -0800 (PST) X-Google-Smtp-Source: APXvYqyYXqxkeK/FB/EZMyQD9j2qZS1fX1UsyUc+cQwBAD2D7V2MX8JzxlPB7LEzzZKpkZx3hl2d X-Received: by 2002:aa7:90cc:: with SMTP id k12mr2757016pfk.105.1579863315848; Fri, 24 Jan 2020 02:55:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579863315; cv=none; d=google.com; s=arc-20160816; b=uOtCsOArzQir4AoQavZ9LL3fWQVgCfNAF9LxOJP80v1ULobzlm13uITE8NmkV3RjNw 2U9PjWfrHxFU9ER+ROboZF/XirxdpcgWCY+nayaiMzWVbWrD5Q3MU2JRXhOBaGLwdw+S fO+qPzdVVBKyu/8B81tBBPGJFWWAT444A0qmze5cwpS07z/QBeHYvSgiEj++M3B5bTFr wk93KGMvd3Hqq1KyOcoTdySr+BK1nlX+KHxkMF8Kmc6kjUfcx3bJpqteLbF7Bvf0cFBu U/LVtB3oO2ApZO+/jZjsQX9F0xDXUrRCI/BKo6Cfl+Uujj9GJs+2AIr3mm3tF+II2GcV bopA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:message-id:date:subject:to:from :dkim-signature:delivered-to; bh=2F5V7k18navJCF0UWUD4zaaSUoB0UyfRe+Ghy4m7GA8=; b=INpWrxYMbnkyP6Eh+X2H/luqBYgDANd5nnOcJL/2tAve9JGcvhmfY+pUViOK/C7N+U c6V8tjRa6RDfXNjwQ85+/UTmjZm1Qvtm7Er326Aj5JYlcqsXH+6I8c/CD73RqS1vfyRz KIU2nVRTsaa2IraLT2sKOst7EcpqDDIVBHONGIjdqdbm4ldE6jGhESeSfbtcxzaPeUDW mY7wX+sUJr9eMSV+aeAZbl+XxkQ7hdavv0nHbeqyB2KLiC7rhElNxIG1SXI2eurnkayb lSg0MLmXAf1aZK5/CGtwvAIkeX4/spgAppf0SwFpNoZRbxkAqSRyS17WoWIBnC3E+EbV vTAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=LTOjVsJk; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id v9si3962275pgk.349.2020.01.24.02.55.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jan 2020 02:55:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.s=ti-com-17Q1 header.b=LTOjVsJk; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EBAD66E311; Fri, 24 Jan 2020 10:55:10 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by gabe.freedesktop.org (Postfix) with ESMTPS id B931C6E311 for ; Fri, 24 Jan 2020 10:55:09 +0000 (UTC) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 00OAsvDZ034357; Fri, 24 Jan 2020 04:54:57 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1579863297; bh=bRACksJu8JiBS+khTO48e5dJhe7RC9xUnMwi71V2VYQ=; h=From:To:CC:Subject:Date; b=LTOjVsJkcRfZXVvtffG5RrBvnvS4ilJ9CP8RuVJOiI8kHBaQOxEOh0LNBiHVzbRRQ n9svpgXhJ8quSdSEvS0AelzcM5EQu794LoohTfRZyK0RMZE/cTGtQSXoImVWbgTSnv mQzX4gCnoBDE2l/r0VxpZTs4YdpTrkaSpEesNCMw= Received: from DFLE106.ent.ti.com (dfle106.ent.ti.com [10.64.6.27]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id 00OAsvm2023711; Fri, 24 Jan 2020 04:54:57 -0600 Received: from DFLE114.ent.ti.com (10.64.6.35) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Fri, 24 Jan 2020 04:54:57 -0600 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.1847.3 via Frontend Transport; Fri, 24 Jan 2020 04:54:57 -0600 Received: from feketebors.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 00OAsrHp078085; Fri, 24 Jan 2020 04:54:54 -0600 From: Peter Ujfalusi To: , , , , , Subject: [PATCH v2 0/2] drm/bridge: Support for Toshiba tc358768 RGB to DSI bridge Date: Fri, 24 Jan 2020 12:55:35 +0200 Message-ID: <20200124105537.21651-1-peter.ujfalusi@ti.com> X-Mailer: git-send-email 2.25.0 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, jernej.skrabec@siol.net, jonas@kwiboo.se, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, tomi.valkeinen@ti.com, Laurent.pinchart@ideasonboard.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hi, Changes since v1: DT bindings document: - Removed MaxItems for the regulators - additionalProperties: false added to port@1 Driver: - Year is now 2020 - Includes shorted - The three letter members of the private struct documented 0 they are named as in the datasheet - Error handling for the IO functions is following what sil-sii8620.c does - regmap regcache is disabled along with refcache_sync() and volatile callback for regmap - The hw enable and disable functions got separated - Taken the suggested simplifactions from Andrzej for tc358768_calc_pll() and tc358768_dsi_host_transfer() - The driver no longer stores the drm_display_mode, it relies on priv->bridge.encoder->crtc->state->adjusted_mode where it needs it - tc358768_calc_pll() can be used for verification only to not modify the state - refcounting added for hw enable state as a dsi transfer was shutting down the bridge when it was already enabled. Tested on top of drm-next + LED backlight patches + DT patches on dra7-evm with osd101t2045 (panel-simple) and osd101t2587 panel drivers. Cover letter from v1: TC358768 is a parallel RGB to MIPI DSI bridge. The initial driver supports MIPI_DSI_MODE_VIDEO, MIPI_DSI_FMT_RGB888 and only write is implemented for mipi_dsi_host_ops.transfer due to lack of hardware where other modes can be tested. Regards, Peter --- Peter Ujfalusi (2): dt-bindings: display: bridge: Add documentation for Toshiba tc358768 drm/bridge: Add tc358768 driver .../display/bridge/toshiba,tc358768.yaml | 158 +++ drivers/gpu/drm/bridge/Kconfig | 10 + drivers/gpu/drm/bridge/Makefile | 1 + drivers/gpu/drm/bridge/tc358768.c | 992 ++++++++++++++++++ 4 files changed, 1161 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/bridge/toshiba,tc358768.yaml create mode 100644 drivers/gpu/drm/bridge/tc358768.c -- Peter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel