From patchwork Sun Jul 4 09:02:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 12357343 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.7 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNWANTED_LANGUAGE_BODY, URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7282CC07E96 for ; Sun, 4 Jul 2021 09:05:38 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4612E60241 for ; Sun, 4 Jul 2021 09:05:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4612E60241 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id CFE7989DB2; Sun, 4 Jul 2021 09:05:37 +0000 (UTC) Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by gabe.freedesktop.org (Postfix) with ESMTPS id B89AE89DB2 for ; Sun, 4 Jul 2021 09:05:36 +0000 (UTC) Received: by mail-pl1-x62e.google.com with SMTP id z13so1045084plg.8 for ; Sun, 04 Jul 2021 02:05:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=A427+AfnA1Ioz/bXS+gNjyx5ot8Nzh0o3fQKGaVpLAE=; b=KaxmMRYPEmdg54XavvkHjZ8mq4QksxD0N/CQJqpLUYFA+3J4uv90DR4ptLg++WDirj L51kBA2kO+b20UX1/tQZGklUb5FbtcJOmoNn52QBOJ+phq9sKEhp2AoZexc116ZUJlFO 5bEUXUhGnvVypx5REzbRYtOaMT2a/sTa7L7Tc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=A427+AfnA1Ioz/bXS+gNjyx5ot8Nzh0o3fQKGaVpLAE=; b=d66Z+60++PXuUyJD2G4Wff3d7lgpJPen7JsvuRWAw7jbsoGJOsXiocP5dBGx/S0QIt ityTaLtr1Tm3TByAoF4waxJvTruNL1JNoXTO31F0ETI8ShS8VzPnZRACWBW8yWvpDLrG huPwzc1+/qn4syW0jLGJVrToP9+k7sD7kBVaaq27V28RQ9bvFmrVSe+tZ8R+ygu9ymsP OjKtXhmTZyzWF4MKr6q3wn2QYaDrXej7pSp9YXLTwqxVL4VADHHOAmOlTfSStygoraJk 682kCd/sv6cctZ0mE7pIDmQf4Q6xGdifgtQJtnkL+Vr9EdglatT8wv61rZccKeowksyz gs9w== X-Gm-Message-State: AOAM531FiL28kqIB78YN5T/qflvgzZ8/QBN/F7OqOscnr8TYELt2g1CN CfzdLj5G4RTZMvvZDTuzKlfxCw== X-Google-Smtp-Source: ABdhPJzF0gwFjaSFBGpjxUR1GLBewbvTOx45N662kaGKe4lbYN/xyidAjUEaurcx8R0MQht34Y4E7Q== X-Received: by 2002:a17:90a:ae0c:: with SMTP id t12mr8483517pjq.149.1625389536434; Sun, 04 Jul 2021 02:05:36 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c00a:a884:1ae9:772f:6f0f:3e24]) by smtp.gmail.com with ESMTPSA id m24sm3360793pgd.60.2021.07.04.02.05.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Jul 2021 02:05:36 -0700 (PDT) From: Jagan Teki To: Inki Dae , Joonyoung Shim , Seung-Woo Kim , Kyungmin Park , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Frieder Schrempf , Daniel Vetter , Marek Vasut , Krzysztof Kozlowski , Fabio Estevam Subject: [RFC PATCH 14/17] drm: bridge: samsung-dsim: Add input_bus_flags Date: Sun, 4 Jul 2021 14:32:27 +0530 Message-Id: <20210704090230.26489-15-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210704090230.26489-1-jagan@amarulasolutions.com> References: <20210704090230.26489-1-jagan@amarulasolutions.com> MIME-Version: 1.0 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, linux-samsung-soc@vger.kernel.org, dri-devel@lists.freedesktop.org, NXP Linux Team , linux-amarula , linux-arm-kernel@lists.infradead.org, Jagan Teki Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" eLCDIF is expecting to have input_bus_flags as DE_LOW in order to set active low during valid data transfer on each horizontal line. Add DE_LOW flag via drm bridge timings. Signed-off-by: Jagan Teki --- drivers/gpu/drm/bridge/samsung-dsim.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/bridge/samsung-dsim.c b/drivers/gpu/drm/bridge/samsung-dsim.c index ea379cb0cc32..bc845ae100d4 100644 --- a/drivers/gpu/drm/bridge/samsung-dsim.c +++ b/drivers/gpu/drm/bridge/samsung-dsim.c @@ -1723,6 +1723,10 @@ static const struct component_ops samsung_dsim_component_ops = { .unbind = samsung_dsim_unbind, }; +static const struct drm_bridge_timings samsung_dsim_bridge_timings = { + .input_bus_flags = DRM_BUS_FLAG_DE_LOW, +}; + static int samsung_dsim_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; @@ -1819,6 +1823,7 @@ static int samsung_dsim_probe(struct platform_device *pdev) dsi->bridge.funcs = &samsung_dsim_bridge_funcs; dsi->bridge.of_node = dev->of_node; + dsi->bridge.timings = &samsung_dsim_bridge_timings; dsi->bridge.type = DRM_MODE_CONNECTOR_DSI; drm_bridge_add(&dsi->bridge);