From patchwork Fri Sep 16 18:17: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: 12978786 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 3115BECAAD8 for ; Fri, 16 Sep 2022 18:23:29 +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=NI5VV57LXFwdx54JmxwAhIlpXYd6QnA3ygVc5lnU5t0=; b=sTO0SIxHqze2yx YQHEDvYG6SgUwzCcSwHG2G99YTth2plbjqgssE772MJo4KerXnhxYgJn1yZLCOFtZaYJE/ZAGv/79 E4+FiTZTC1x6jV75c8x8FEPv0DTFb2xbQN46qSp0FCLdeMYr84i1FmZ93qGBZ2OkGueu2BfNeu6ql B0G4+0a9WYeOgcrn4/yJhxgWrX2qQDn9lWOVyHL2aySxLkJGTkrrtgS8ht8f24euV9hm2OWgi66mg MH3m9KsSCuzkZ/EXQdEoYrMoY6ht+55ySxPkIEG2XXXZt+BrEDg7TXTBUuWQ5zYrcevznf9ugsAn+ D5Di7XOx0wr8cntTy+PA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oZFyd-00Fmr6-EQ; Fri, 16 Sep 2022 18:22:11 +0000 Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oZFw1-00FlYD-HH for linux-arm-kernel@lists.infradead.org; Fri, 16 Sep 2022 18:19:31 +0000 Received: by mail-pl1-x629.google.com with SMTP id v1so22177016plo.9 for ; Fri, 16 Sep 2022 11:19:27 -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:subject:date; bh=+fFzpIi3PzPgMcGro61CvH6vcLPJxCss6KFI8NyEpQE=; b=ngIiJzuCuLYLdItpwqV2305DppqZ6E6z9DuFmuoBn/RSIdhQOi3oq+9r0lecEFatGq b6gDqEhlU4aEEcpVvkS79JQcYwXbhKF6XApC2LYn/zmeLXOH9eCJIX5LLjpiqPv3WOu+ fM7eTEjmOIxk94LhcpC07DguyLrT1QgKWmrbA= 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 :subject:date; bh=+fFzpIi3PzPgMcGro61CvH6vcLPJxCss6KFI8NyEpQE=; b=6Cwpae+Gf8RvpoF6oIjcMmBHLStWDpwkXMzICf9MdQhvDge1nGKVNnhv5nqtn/dLEA s4g97WQhPsWrHFWKVLTdPtLpaRdMu4Uz9/PMAR/uk+de7hyxy0Hlq62RsytzpJABXGf/ OG6e2CUmI2Jx1I+nvuJMfwbWtKzxDemA+iwJJmLuqApZS77DpzWsTbiq/2+LDw/J3Vxn prLfwHeptVysR/r5OeKU8jPKeP/ntVVrKhLELpSDgkz0dTrcnVkNSWQTsZDUUfq10x/Z FdGaLLtz99aLy8Nq5TjWj1EyyzLK9zfznZBXjDdpeV/vNo2XG15m8AzynGsx+CAh0VX7 DEQQ== X-Gm-Message-State: ACrzQf2tJ0++1bDX5np9hhWd3LVPv+UFmupczTBKQAZXQL+Y5r4NZLkP CH/yVhSvsiOhDL0iREaoZACIPg== X-Google-Smtp-Source: AMsMyM7KxRQAJzRdRzZLXmFeDc1z8XC7h+VUNBDrhnPxAoqNUvwMRkHcL8Dq1Z2JIeNNQATZWNhb+w== X-Received: by 2002:a17:902:e549:b0:178:6d7c:abf6 with SMTP id n9-20020a170902e54900b001786d7cabf6mr1092457plf.131.1663352366475; Fri, 16 Sep 2022 11:19:26 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c00a:a073:ae5d:6ee4:5c2f:6733]) by smtp.gmail.com with ESMTPSA id d14-20020a17090a6a4e00b002007b60e288sm1770000pjm.23.2022.09.16.11.19.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Sep 2022 11:19:25 -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 v5 09/11] drm: bridge: samsung-dsim: Add input_bus_flags Date: Fri, 16 Sep 2022 23:47:29 +0530 Message-Id: <20220916181731.89764-10-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220916181731.89764-1-jagan@amarulasolutions.com> References: <20220916181731.89764-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220916_111929_630910_8CC817AC X-CRM114-Status: GOOD ( 12.36 ) 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. v5: * rebased based on updated bridge changes v4, v3, v2, 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 527fef6f1ff6..a0f5438b7921 100644 --- a/drivers/gpu/drm/bridge/samsung-dsim.c +++ b/drivers/gpu/drm/bridge/samsung-dsim.c @@ -1585,6 +1585,10 @@ static const struct samsung_dsim_host_ops samsung_dsim_generic_host_ops = { .unregister_host = samsung_dsim_unregister_host, }; +static const struct drm_bridge_timings samsung_dsim_bridge_timings = { + .input_bus_flags = DRM_BUS_FLAG_DE_LOW, +}; + int samsung_dsim_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; @@ -1665,6 +1669,7 @@ 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->plat_data->host_ops && dsi->plat_data->host_ops->register_host)