From patchwork Thu Feb 22 17:07:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jyri Sarha X-Patchwork-Id: 129300 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp817774lja; Thu, 22 Feb 2018 09:08:08 -0800 (PST) X-Google-Smtp-Source: AH8x226jlNb2uyxUFhdVKG1YxiqGZTacrMqIMuEYk2pMBDhfq2Kt/ly8CTvxSx4myHpA1vOHed+o X-Received: by 2002:a17:902:52cd:: with SMTP id a71-v6mr4904927pli.389.1519319288727; Thu, 22 Feb 2018 09:08:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519319288; cv=none; d=google.com; s=arc-20160816; b=dfZpAoJDu3MyrRURbP03h/J+iNKODOHjMI9Mp14D0/00pEbWb8djYL9iE8yiei3Ay1 bVq9gW0JRnwek2g3LwK6erI2KDsaG1EZgzVYXbDR0y71Wd+C7GHWaVGIUyFOyniDpOoa QYMaFKwVDrRKLZB6LIXd+rSwB2Ersi4HLIwmWqoJrEDcCOk2TUmnqxMPCeXs4/1/gf5b kyhhOWHrUMhqasF4/vzFBL8JjB4ET4N/EkW0lw727fHQVvR4JSCQGHmvFg6d/78GUWY6 vKLmi4S2DmpVSNFif8Cje0ecnL2F2IwJeNjQWtTqkZUyTccJNBQ//WDplvCoYQmyvVcC h2fw== 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:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to :arc-authentication-results; bh=N8nltXh1jPflNE81oENlVuhW/RvRoiR2X9oT8JF3Qaw=; b=GfMymr/GBlLbigz2eoAuho3rP9lGFgXbuosQmu+KUeOubgMzx5w68LZMyvkE3uOJwy yWQMbKly0zpvlRKYNSbznkFKS4wbmYSkrPs0KLPRYC52MvyAcpAExU2dKXNzaFGFwiVk FTtNAQbrHQb22NoxnSLVgFDasZmQVSUWE9XW5aqBbr/sxdweAfYuj//xhylAgq03K/gg zWsmFoE09MVRr3ueaNPwufxonGKs/6M1Bw4tMiHK4Ge33ru+W1MqSQD5QxciKHfGPiv8 Ggi5Z2UUfsoTzALGHG7+M+Ekl45B5PBGE4m7uh25cU4EyEErRz7hcVO8R6bFCgk4tQyg VZqQ== 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=JQ/a8IKk; 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 k66si317648pfa.415.2018.02.22.09.08.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 22 Feb 2018 09:08:08 -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=JQ/a8IKk; 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 1E9376EED0; Thu, 22 Feb 2018 17:08:06 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from lelnx193.ext.ti.com (lelnx193.ext.ti.com [198.47.27.77]) by gabe.freedesktop.org (Postfix) with ESMTPS id B05656EECE for ; Thu, 22 Feb 2018 17:08:04 +0000 (UTC) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelnx193.ext.ti.com (8.15.1/8.15.1) with ESMTP id w1MH7rIb007623; Thu, 22 Feb 2018 11:07:53 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1519319273; bh=lshjS8zugz2sA/NbVgtrRAo7JYRq09Cc4TcQrXBw1EM=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=JQ/a8IKk/gWRcWwBJje4g59NXik41WSCx160BYjyIY2eiahfR+IbyFfHUL5DcRiFz jnVxo8gNHFvWxBJpHrAKyJU6/ndCSVSVxXOnx2MTeVtCTWaEipwy2h5TotEoC9EFIH OLlOypntWK3ZHRrfF/cC6tEDFbZVxJ/+xSTB6Q3c= Received: from DLEE111.ent.ti.com (dlee111.ent.ti.com [157.170.170.22]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id w1MH7r0N032112; Thu, 22 Feb 2018 11:07:53 -0600 Received: from DLEE109.ent.ti.com (157.170.170.41) by DLEE111.ent.ti.com (157.170.170.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Thu, 22 Feb 2018 11:07:53 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Thu, 22 Feb 2018 11:07:53 -0600 Received: from jadmar.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w1MH7mQS014515; Thu, 22 Feb 2018 11:07:51 -0600 From: Jyri Sarha To: Subject: [PATCH 1/4] drm/tilcdc: Add support for drm panels Date: Thu, 22 Feb 2018 19:07:42 +0200 Message-ID: <2ae6a45a36b6e7fd666e72124a458a75a0099545.1519318304.git.jsarha@ti.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: 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.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: airlied@linux.ie, Jyri Sarha , tony@atomide.com, tomi.valkeinen@ti.com, thierry.reding@gmail.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Add support for drm panels to tilcdc. Adding the support on top of the existing bridge support needs only couple of lines of code when using using the drm panel bridge helpers. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/tilcdc/Kconfig | 2 ++ drivers/gpu/drm/tilcdc/tilcdc_external.c | 29 ++++++++++++++++++++--------- 2 files changed, 22 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/tilcdc/Kconfig b/drivers/gpu/drm/tilcdc/Kconfig index 81ac824..5259804 100644 --- a/drivers/gpu/drm/tilcdc/Kconfig +++ b/drivers/gpu/drm/tilcdc/Kconfig @@ -4,6 +4,8 @@ config DRM_TILCDC select DRM_KMS_HELPER select DRM_KMS_CMA_HELPER select DRM_GEM_CMA_HELPER + select DRM_BRIDGE + select DRM_PANEL_BRIDGE select VIDEOMODE_HELPERS select BACKLIGHT_CLASS_DEVICE select BACKLIGHT_LCD_SUPPORT diff --git a/drivers/gpu/drm/tilcdc/tilcdc_external.c b/drivers/gpu/drm/tilcdc/tilcdc_external.c index 711c7b3..d651bdd 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_external.c +++ b/drivers/gpu/drm/tilcdc/tilcdc_external.c @@ -188,18 +188,16 @@ int tilcdc_attach_bridge(struct drm_device *ddev, struct drm_bridge *bridge) int tilcdc_attach_external_device(struct drm_device *ddev) { struct tilcdc_drm_private *priv = ddev->dev_private; - struct device_node *remote_node; struct drm_bridge *bridge; + struct drm_panel *panel; int ret; - remote_node = of_graph_get_remote_node(ddev->dev->of_node, 0, 0); - if (!remote_node) + ret = drm_of_find_panel_or_bridge(ddev->dev->of_node, 0, 0, + &panel, &bridge); + if (ret == -ENODEV) return 0; - - bridge = of_drm_find_bridge(remote_node); - of_node_put(remote_node); - if (!bridge) - return -EPROBE_DEFER; + else if (ret) + return ret; priv->external_encoder = devm_kzalloc(ddev->dev, sizeof(*priv->external_encoder), @@ -215,10 +213,23 @@ int tilcdc_attach_external_device(struct drm_device *ddev) return ret; } + if (panel) { + bridge = devm_drm_panel_bridge_add(ddev->dev, panel, + DRM_MODE_CONNECTOR_DPI); + if (IS_ERR(bridge)) { + ret = PTR_ERR(bridge); + goto err_encoder_cleanup; + } + } + ret = tilcdc_attach_bridge(ddev, bridge); if (ret) - drm_encoder_cleanup(priv->external_encoder); + goto err_encoder_cleanup; + + return 0; +err_encoder_cleanup: + drm_encoder_cleanup(priv->external_encoder); return ret; } From patchwork Thu Feb 22 17:07:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jyri Sarha X-Patchwork-Id: 129298 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp817704lja; Thu, 22 Feb 2018 09:08:04 -0800 (PST) X-Google-Smtp-Source: AH8x224dF2G46tOliv8s5CqY8gWswxUehQHXhe9lru8mLUmtHtuxo2BKH86Qpvd6x2kgJtaTPdYx X-Received: by 10.98.10.219 with SMTP id 88mr5593812pfk.202.1519319284334; Thu, 22 Feb 2018 09:08:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519319284; cv=none; d=google.com; s=arc-20160816; b=wdFvWQOJ41xqCdYH1w7z8f5fxd6vcVrk6TQUZRP6V7Zi367nu+DLyRU59Dhz9dYAjX mOGZ815o9WWTRSkjjTB9qF46hGw7RwBOKVKFzni1Kg7rgbdT+IlXx2n7J1BvUblZ7qUC F8KWwN35Q0o9V9yWtHiD12+HMV9NrJ2vL54TJ6YnawMqcU1cV83i4L7WfFFOCnpI127z RvtQN69YM3P3L2FvZANoXreia4Net1Mq2pzVpw0owbhDFtc2Wj2zK4zLaGycB8HLBKbb IUukPW7fO0TDff/N9EUREPfRUGGGmMr1193uf3jVbfbY11k1jAxUBCNFPq1KXDW73YV2 0ceg== 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:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to :arc-authentication-results; bh=jMl6Z7epO4bLHirSDs7soukDD+VjZBoVJ3P22MLkPv8=; b=GGkmxzfAIkEx84jFlxu0EnxHszsU4X07RBijf7PZ1ohHHmLwdHm1QPekUnmPGKH6Yj 7ovysDs0X25aA945bvjktAyv5wqHeiCzjeCDWoFVqaaxBUXkiFo0UqdD4FwfIs3E1nG9 BHU9PCutwS0aYqt1mxagrW2OPqg+lFd1Hc3Sq3E5BgJmjCk4g44DISd9zY3QxKE/64JL eFw1EgL3nGbXbByeLpP8ZDry/8uJ3qQJhbWkaO7K2E4UoHJAoDT6sGxGFQ5oDug2ueCr wnV/gjzu2gPqCqeZzJboyM1JVA4HdLCgQUWLeI2zphP+RmGZQpCWoUB7AjDl368ALXaI FTPw== 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=KeeKfV3/; 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 d67si329473pfe.112.2018.02.22.09.08.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 22 Feb 2018 09:08:04 -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=KeeKfV3/; 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 65C976EEC9; Thu, 22 Feb 2018 17:08:01 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from fllnx210.ext.ti.com (fllnx210.ext.ti.com [198.47.19.17]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8497D6EEC9 for ; Thu, 22 Feb 2018 17:08:00 +0000 (UTC) Received: from dflxv15.itg.ti.com ([128.247.5.124]) by fllnx210.ext.ti.com (8.15.1/8.15.1) with ESMTP id w1MH7tXP011752; Thu, 22 Feb 2018 11:07:55 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1519319275; bh=GNUqMGt1Q9hsiw5VFC7894XYMnCiHcuWIaeYM/x1vgA=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=KeeKfV3/+5DKTboAQC+qWGrRM5Bqq2s1q6NZ7yGCK4AQymVR2QO7ZZoPZOunpob0/ tw4ODhmFJW9+OjYpB07oSJ5EMecI/AsdujunTEOM6SCp2aO7IRMGsJu0kO7rQNEcwN jRg/c8RMjBeXUjYxtRlkxDl9nT/Ty96Q0HbjKGTg= Received: from DLEE107.ent.ti.com (dlee107.ent.ti.com [157.170.170.37]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w1MH7tb6027796; Thu, 22 Feb 2018 11:07:55 -0600 Received: from DLEE113.ent.ti.com (157.170.170.24) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Thu, 22 Feb 2018 11:07:55 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Thu, 22 Feb 2018 11:07:55 -0600 Received: from jadmar.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w1MH7mQT014515; Thu, 22 Feb 2018 11:07:53 -0600 From: Jyri Sarha To: Subject: [PATCH 2/4] drm/tilcdc: tilcdc_panel: Rename device from "panel" to "tilcdc-panel" Date: Thu, 22 Feb 2018 19:07:43 +0200 Message-ID: <1c621b3c1132090cfd7f1109e44a36f21672df5f.1519318304.git.jsarha@ti.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: 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.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: airlied@linux.ie, Jyri Sarha , tony@atomide.com, tomi.valkeinen@ti.com, thierry.reding@gmail.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Rename the bundled tilcdc_panel driver from just "panel" to "tilcdc-panel" to avoid noisy error messages from the driver trying to probe all device nodes named "panel". Signed-off-by: Jyri Sarha --- drivers/gpu/drm/tilcdc/tilcdc_panel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/tilcdc/tilcdc_panel.c b/drivers/gpu/drm/tilcdc/tilcdc_panel.c index cf9ca16..d616d64 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_panel.c +++ b/drivers/gpu/drm/tilcdc/tilcdc_panel.c @@ -421,7 +421,7 @@ struct platform_driver panel_driver = { .remove = panel_remove, .driver = { .owner = THIS_MODULE, - .name = "panel", + .name = "tilcdc-panel", .of_match_table = panel_of_match, }, }; From patchwork Thu Feb 22 17:07:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jyri Sarha X-Patchwork-Id: 129299 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp817746lja; Thu, 22 Feb 2018 09:08:07 -0800 (PST) X-Google-Smtp-Source: AH8x226T5wwTCyqZdl9s29/LVaMDY2L61KIrbQ2RYFi3YqtQ4TfU+BCfX6BZZcGDI1pedGCFD3FT X-Received: by 10.99.185.84 with SMTP id v20mr6349636pgo.112.1519319286858; Thu, 22 Feb 2018 09:08:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519319286; cv=none; d=google.com; s=arc-20160816; b=OaXHfqsDfYv0cg7bK3fyXpfnAJLyn+gySJoMeY5aWrpiQJ8y7gXDBcgSnqfkLg9N3d r53UtCwRYPLvAnk3QN8q8BNcU0Tytspw16KuYBCbwDW7cLe4YD21/e1uMh1YKJTxbauj ByS0gg6c28WgLQj2kgIVxobYIVb4Z71jLS3AladPYpL8zVRQhQTGj/Kq+fqv8tOKAuka 0TUX8knN0Q+YhYQCi3NKQNhfUMadgP08YvrIgApmpuuqGpHpkbN6PHx1IT8c5IEqNvBU vTWLLQtwn3JYub8vVJouqWxYEO+ur0/S5jxlV8xIJ6rjucDwm+e9geZw9Bdk4/RntS8o D2jg== 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:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to :arc-authentication-results; bh=jeSnoHcleA7zLt9p353iIEJoKfPD3MIm7eqBBFVpyAI=; b=IEaXbhAgzKk10C8cj3+C848shjy5OO7ZSFq1rdnLGcuYWKxITktWmVMe1xviQavWvt +40kO5fQp2fKqSPXkewZJ7RGaDAhdNG4jCBs1mfxiAeq5A/pVGzMHpoZ3dq6O8nRx6lF 7VE8V8QAC/Frpz/RO8E89TaccN3bDJYTgri+o8robspmJdfOXczHe0atUEfzuZ7xRugP vox79tq9ZOTDEBt/jh8bpodiqsC3IpyeVCSlgsGAOtHOui5Q7IBhfqhzMkRC6gOfzRDh AcUpH1cZJ3NqyxvzJ9Y7BwAQV9gNl2P0Bo6pRMXYr6wghmnkz84lArMfEg34vptCbCNw 8dUw== 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=wd4g8jyy; 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 j10-v6si314320plg.657.2018.02.22.09.08.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 22 Feb 2018 09:08:06 -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=wd4g8jyy; 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 9B5EE6EECE; Thu, 22 Feb 2018 17:08:05 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from lelnx193.ext.ti.com (lelnx193.ext.ti.com [198.47.27.77]) by gabe.freedesktop.org (Postfix) with ESMTPS id 138296EECE for ; Thu, 22 Feb 2018 17:08:03 +0000 (UTC) Received: from dflxv15.itg.ti.com ([128.247.5.124]) by lelnx193.ext.ti.com (8.15.1/8.15.1) with ESMTP id w1MH7vkA007632; Thu, 22 Feb 2018 11:07:57 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1519319277; bh=LvAws3WjoF3S/JjvIvnTYr/UfpqwZ0I2ch3eZjLD7zI=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=wd4g8jyynyUrbQ0d9uZWdgPGBhk5tPFGpT37a8QshdJK/15oIOMyJCEeUcMsV1GEC G8Ryvnp2d5+MgVjq/PiX3nEfuUGQFtBDBoiPMT6bcytt8WPnG/73Jez149lgRHNREj rtK1gZp8aPhs09HC99z9wMv6HJmIkgokZ33MkQrs= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w1MH7vJu027870; Thu, 22 Feb 2018 11:07:57 -0600 Received: from DFLE111.ent.ti.com (10.64.6.32) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Thu, 22 Feb 2018 11:07:57 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE111.ent.ti.com (10.64.6.32) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Thu, 22 Feb 2018 11:07:57 -0600 Received: from jadmar.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w1MH7mQU014515; Thu, 22 Feb 2018 11:07:55 -0600 From: Jyri Sarha To: Subject: [PATCH 3/4] drm/panel: simple: Add TVC S9700RTWV43TR-01B 800x480 panel support Date: Thu, 22 Feb 2018 19:07:44 +0200 Message-ID: <32ac05f2ed22acc59bb3663ffc5cb4481215ca05.1519318304.git.jsarha@ti.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: 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.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: airlied@linux.ie, Jyri Sarha , tony@atomide.com, tomi.valkeinen@ti.com, thierry.reding@gmail.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Add support for TVC S9700RTWV43TR-01B 800x480 panel found on TI's AM335X-EVM. Signed-off-by: Jyri Sarha --- drivers/gpu/drm/panel/panel-simple.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 5591984..3b0ba9f 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -1962,6 +1962,29 @@ static const struct panel_desc tpk_f10a_0102 = { }, }; +static const struct drm_display_mode tvc_s9700rtwv43tr_01b_mode = { + .clock = 3000, + .hdisplay = 800, + .hsync_start = 800 + 39, + .hsync_end = 800 + 39 + 47, + .htotal = 800 + 39 + 47 + 39, + .vdisplay = 480, + .vsync_start = 480 + 13, + .vsync_end = 480 + 13 + 2, + .vtotal = 480 + 13 + 2 + 29, + .vrefresh = 62, +}; + +static const struct panel_desc tvc_s9700rtwv43tr_01b = { + .modes = &tvc_s9700rtwv43tr_01b_mode, + .num_modes = 1, + .bpc = 8, + .size = { + .width = 155, + .height = 90, + }, +}; + static const struct display_timing urt_umsh_8596md_timing = { .pixelclock = { 33260000, 33260000, 33260000 }, .hactive = { 800, 800, 800 }, @@ -2214,6 +2237,9 @@ static const struct of_device_id platform_of_match[] = { .compatible = "tpk,f10a-0102", .data = &tpk_f10a_0102, }, { + .compatible = "tvc,s9700rtwv43tr-01b", + .data = &tvc_s9700rtwv43tr_01b, + }, { .compatible = "urt,umsh-8596md-t", .data = &urt_umsh_8596md_parallel, }, { From patchwork Thu Feb 22 17:07:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jyri Sarha X-Patchwork-Id: 129301 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp818341lja; Thu, 22 Feb 2018 09:08:41 -0800 (PST) X-Google-Smtp-Source: AH8x227sPS7EODYWOjCBVMUJdNs07AcUFTj5RzgCAHw+esUdl18UgVaj2Ot3IWeDa44zFk9mC4x6 X-Received: by 2002:a17:902:a610:: with SMTP id u16-v6mr6891343plq.293.1519319321121; Thu, 22 Feb 2018 09:08:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519319321; cv=none; d=google.com; s=arc-20160816; b=u95yhBEMDCWZCuUT6d5UX3dN8jNkKDEC7XDoda4GuSPXI4g4/JFmFV6uPPPiWwaxbt WTsLbXGRWH7KmLwHgp46snOQu7ZnZLkeKfpkWiz1O0DerHS26G3FxnpMa7QiQMOf6CcC 0Z81Gum17+vTYH9o1MxP9UhiQHEtEKKKMcjio/qWMfZyhcbA3USkxLMneMA1X/5r1hXI PVNCNR71w+QEuULMeCZqEKwth88Kx5zJSkCqvOFjx5uJw0rNfa+W3AqI8C8uTSPd6Mge 5KT0GsoODUVXzoBxf0TfVR3ApUh4SWjAErVToTGp5xWB2QrSSvAWS1d5nrgbXq2DJSJH 0o9A== 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:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to :arc-authentication-results; bh=Mp+jDS3GHGpFcP6utluvaYsDGSmrbX+qQ/8ZDxsc5I4=; b=0b6iKuKTx8NlW9hJdH8ivV6cRilwNV7ubT+l2Z3NbymWaHjJmONyWJRjx0keATjimx 6ax/r7c5mGXNDsqsCHWipyYzMi0u9NhsXYI7E7q9igZaq4AOsXv1b4GW2zo/Z/3SNghQ 7QMyZ8R+yN9Yj26VjeiUGlyyf2IILqmoUWIkenW9iOSjiVVNHQKV3mVPnliAkZGfaUKm WjMM7D7GBEJQzRT+li8vDLczDMhvz5zKPMDl9Lluhzjv8Ly5JbHbuiq+YtkXXWilxq53 5H1doCiuv3kst0VV2rMQyS7Dc0M11xyXLDSGPx2EyIR+R8uXJyO7kgG/bGJ6vRYuqgCZ y71Q== 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=E5/dRMU5; 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 e68si332797pfb.119.2018.02.22.09.08.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 22 Feb 2018 09:08:41 -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=E5/dRMU5; 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 00E066EED1; Thu, 22 Feb 2018 17:08:09 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from lelnx194.ext.ti.com (lelnx194.ext.ti.com [198.47.27.80]) by gabe.freedesktop.org (Postfix) with ESMTPS id 130A96EECE for ; Thu, 22 Feb 2018 17:08:04 +0000 (UTC) Received: from dflxv15.itg.ti.com ([128.247.5.124]) by lelnx194.ext.ti.com (8.15.1/8.15.1) with ESMTP id w1MH80NH000967; Thu, 22 Feb 2018 11:08:00 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1519319280; bh=q3zSamTwjrEtEnXdFqyyiVE4Ku4rnztKJWe591pXETw=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=E5/dRMU5js33U4QgymzDPoS/h/2u7IZlClLLu9PAzzkZGyoB2GcnxzuEv0YMgl42f 7a1T1I4bLOxsPEuh5lx37MfpJp+YJl63TM0NJ/jT76aXjyHy0luN36c0Tag+W/c7aq 0+9pAwxqZ22/98W0RsPuY36wJGo+RLxhXVtobCP4= Received: from DLEE108.ent.ti.com (dlee108.ent.ti.com [157.170.170.38]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w1MH80LE027916; Thu, 22 Feb 2018 11:08:00 -0600 Received: from DLEE114.ent.ti.com (157.170.170.25) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.35; Thu, 22 Feb 2018 11:07:59 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1261.35 via Frontend Transport; Thu, 22 Feb 2018 11:07:59 -0600 Received: from jadmar.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id w1MH7mQV014515; Thu, 22 Feb 2018 11:07:57 -0600 From: Jyri Sarha To: Subject: [PATCH 4/4] ARM: dts: am335x-evm: Use drm simple-panel instead of tilcdc-panel Date: Thu, 22 Feb 2018 19:07:45 +0200 Message-ID: <2da605558ef2e8a1ed0bc48662eefe9d79ef28b6.1519318304.git.jsarha@ti.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: References: 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.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: airlied@linux.ie, Jyri Sarha , tony@atomide.com, tomi.valkeinen@ti.com, thierry.reding@gmail.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Move to use the new drm panel support in tilcdc together with added "tvc,s9700rtwv43tr-01b"-panel support in drm panel-simple. Signed-off-by: Jyri Sarha --- arch/arm/boot/dts/am335x-evm.dts | 44 ++++++++++++++++------------------------ 1 file changed, 18 insertions(+), 26 deletions(-) diff --git a/arch/arm/boot/dts/am335x-evm.dts b/arch/arm/boot/dts/am335x-evm.dts index fee6b3e..5a442b5 100644 --- a/arch/arm/boot/dts/am335x-evm.dts +++ b/arch/arm/boot/dts/am335x-evm.dts @@ -98,7 +98,7 @@ }; }; - backlight { + backlight: backlight { compatible = "pwm-backlight"; pwms = <&ecap0 0 50000 0>; brightness-levels = <0 51 53 56 62 75 101 152 255>; @@ -106,35 +106,19 @@ }; panel { - compatible = "ti,tilcdc,panel"; + compatible = "tvc,s9700rtwv43tr-01b"; + status = "okay"; + pinctrl-names = "default"; pinctrl-0 = <&lcd_pins_s0>; - panel-info { - ac-bias = <255>; - ac-bias-intrpt = <0>; - dma-burst-sz = <16>; - bpp = <32>; - fdd = <0x80>; - sync-edge = <0>; - sync-ctrl = <1>; - raster-order = <0>; - fifo-th = <0>; - }; - display-timings { - 800x480p62 { - clock-frequency = <30000000>; - hactive = <800>; - vactive = <480>; - hfront-porch = <39>; - hback-porch = <39>; - hsync-len = <47>; - vback-porch = <29>; - vfront-porch = <13>; - vsync-len = <2>; - hsync-active = <1>; - vsync-active = <1>; + backlight = <&backlight>; + ports { + port { + panel_0: endpoint@0 { + remote-endpoint = <&lcdc_0>; + }; }; }; }; @@ -503,6 +487,14 @@ status = "okay"; blue-and-red-wiring = "crossed"; + + ports { + port { + lcdc_0: endpoint@0 { + remote-endpoint = <&panel_0>; + }; + }; + }; }; &elm {