From patchwork Mon Aug 29 18:40:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 12958349 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 47545ECAAD8 for ; Mon, 29 Aug 2022 18:45:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=XOyDm2+0bnzdJhkgyUj4WRUS72vQXpDREvMJppjYJP4=; b=WiJZTXsKKx9q1B v0RlpxHgYdvrAb136+ZAGURezZwbNnFa/O8S6Vh9MTzqWwYy09zFp1yGmOmyKgyO6F5lA/Idy6Bn9 1hrnvCIQO/OSQargz6DFlMuRnbO2azggk3sg9B1tdARjEBxSSyTb7szHemHW7UkYiTzJdpnJBXmKG dz3tyzoFCaO6MVBtKk2JoPpv8Z9NsA0jmjUne8S5bR+fBZXVFe/spB1iUCjfXGitBo8HBLkJWQBdb 8NvEYuYhl72Y/nqTjqayU47G4ba3yXiDZExYcZTkwG6LyEMG1y4wBq7bpBNo6VPksA9234gi1bdxB uO5oq8EiOdzFoQ4xxwyQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oSjju-00CHi0-JE; Mon, 29 Aug 2022 18:44:03 +0000 Received: from mail-pf1-x42c.google.com ([2607:f8b0:4864:20::42c]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oSji0-00CGbC-Ij for linux-arm-kernel@lists.infradead.org; Mon, 29 Aug 2022 18:42:06 +0000 Received: by mail-pf1-x42c.google.com with SMTP id p185so9032116pfb.13 for ; Mon, 29 Aug 2022 11:42:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=gg+A4/98sts77T30oMd2QqQaJoBU8yXhs87UapIfZsk=; b=aBmth8jStXvVwvHfKY8BHZUhkLqaYnA89PKvSTsQ5vQUqmU8p7UuEb+dB4pvY5Ucvg mcC4Z/IvqltQVv5S4Td1q7p61KSYfEIIKFT6SubsfQpghSk1bUw7P3/FJZH1VvqnsSp0 HlslYcl7fqqa4sx6gIu35LNHnK8wI+DIx1Kr4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=gg+A4/98sts77T30oMd2QqQaJoBU8yXhs87UapIfZsk=; b=BhQpltZ0FXa1uVmpG8mcs8GTSRCJKC7Oj9ssddG1XWqViJAa/YQX7rIk7oSuOUxAbx ewPPIahJZpnTaIOqNSjXzsOROkNO7Wv925tVt4QUrti/fwHiN2SmvTSL4mSPcWEXy9Yf Aj5agitHdeECEr/k89CBzwnid58TwlPhE8/dtmGDK4PCSyUd6CGFyPJ7TzpUJ2kuJ8Y+ CTldkvdpHXBs6KkycjaQ6x6+BpuR6OSpiDNVkaXMklDPcUEnMmqTSXWX4nqXOdJdDUXn qku/XagbaBGlL2EDw2UXq3fkTeHw25LT8UCMSvTKcqk9WvUUi/Q+CJ+kn9uFsudyfh/Z oYfA== X-Gm-Message-State: ACgBeo0XarJd2D7K2anQk3bpOViINo1dJ0dZFeCZwckRKxUI1+ZGd9CG /MO9++7lhEJATLe7CpR1/kkxxg== X-Google-Smtp-Source: AA6agR5I1L27Rd+FZsw1WB+4G0p1imMCRH56Suy/n5wfU/sw+O/azOzB5h8k60Qbi25m+E1df1GA9A== X-Received: by 2002:a05:6a00:1826:b0:537:b261:3e4d with SMTP id y38-20020a056a00182600b00537b2613e4dmr18086398pfa.65.1661798524198; Mon, 29 Aug 2022 11:42:04 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c00a:a073:43f7:1644:6259:830d]) by smtp.gmail.com with ESMTPSA id k13-20020aa7998d000000b005385e2e86eesm1619042pfh.18.2022.08.29.11.41.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Aug 2022 11:42:03 -0700 (PDT) From: Jagan Teki To: Andrzej Hajda , Inki Dae , Marek Szyprowski , Joonyoung Shim , Seung-Woo Kim , Kyungmin Park , Frieder Schrempf , Fancy Fang , Tim Harvey , Michael Nazzareno Trimarchi , Adam Ford , Neil Armstrong , Robert Foss , Laurent Pinchart , Tommaso Merciai , Marek Vasut Cc: Matteo Lisi , dri-devel@lists.freedesktop.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, NXP Linux Team , linux-amarula , Jagan Teki Subject: [PATCH v4 10/12] drm: bridge: samsung-dsim: Add input_bus_flags Date: Tue, 30 Aug 2022 00:10:29 +0530 Message-Id: <20220829184031.1863663-11-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220829184031.1863663-1-jagan@amarulasolutions.com> References: <20220829184031.1863663-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220829_114204_857908_0A46302A X-CRM114-Status: GOOD ( 12.85 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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. v4, v3, v2: * none v1: * none 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 871cc8cc5352..f3b5e265b027 100644 --- a/drivers/gpu/drm/bridge/samsung-dsim.c +++ b/drivers/gpu/drm/bridge/samsung-dsim.c @@ -1593,6 +1593,10 @@ __weak void samsung_dsim_plat_remove(struct samsung_dsim *priv) { } +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; @@ -1672,6 +1676,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; if (dsi->driver_data->quirks & DSIM_QUIRK_PLAT_DATA)