From patchwork Wed Jul 20 15:52:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 2198 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 277F13F03E for ; Wed, 20 Jul 2022 17:53:50 +0200 (CEST) Received: by mail-pj1-f72.google.com with SMTP id q5-20020a17090a7a8500b001f0253f5aa3sf1291479pjf.4 for ; Wed, 20 Jul 2022 08:53:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1658332429; cv=pass; d=google.com; s=arc-20160816; b=nwq5LJQwSmpwGFyAk6n4Ri2hru2WMcNxQMR6De2bnTnjguiy9dKPoDA3qZ0pR3W94J 6QY9nFbdfipm4rnLZ4zb+0P/aa0PUXev8/HqAmszMiFK5XQ387CfUiJkPp9hB7wNVWbE v/MhOeP5M2SH3n3nOKXtHwLizKjFenzPSSVFwTrQ449YgE+8SEbh8S0Q8NKQB+XnX8M+ REnYxHJfaArAEHkwPiu+4LUZ6sXG4MHvyjowW18jUp1UWXjNpeOFswYQn0HG+z6IXYQ4 XLLbzGxK1YnbewR6jWuFc+xLa+WRbgUxbsa6qbfa2JYigU2asPvj3NVjls+iscDhtavk yvOw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=eNzFkWP5kqhUn0Ol/7NJIf7AHuMBlU5OFyijGYkgc60=; b=u46Mz0vHzzVwALv8QYaTJ04Ok4Zzp2+5BRohZUTePtUfHT3IMAbi+zQ8RhRv6TE3VF oHZ7zWlKNPc1AsDwYElLpf4XkOdmeEyIUWuFz+VgNVJhXTyH8bk61wQWNlrVdEIL10ln /9iLhAqxrbLkVUYfYqJVkpzIqC6wOuZOMc0BFx+K4LCXU7lOjdv8DG2ROm0192iN5jpY eQ4IQ645iJEmi72nAi9rNi0Kp6yE2s0NU4PxVcSi2QlTU2lYoG8iFcgxuck70IZj7T02 rBQtOLP5C8UBrhN85RMkZ2v+sVCi2r+jPWDDw6+lkXPMomyboDcX96KRj0nEhc6nZQas DgVA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=GNSCNaKr; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com 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:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=eNzFkWP5kqhUn0Ol/7NJIf7AHuMBlU5OFyijGYkgc60=; b=l6ppqA6uCx1wDcFOzaczciASh6D69IvnYTigcfMdAEDvstWymmqCCTCHIdqZJx1niu ENKRz8v8B9RmTWEC6AYp9C2QNG00KhQa2LP6b1SDwddOw04vyj/nqXVhsd3FZmxl5OEN DuKoinqbiPowMtgbcOT4Mq+EhP+hrB1UtZnIY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=eNzFkWP5kqhUn0Ol/7NJIf7AHuMBlU5OFyijGYkgc60=; b=nqwnV/i1e0k55GNgRbqQ/PIAYcLC9fXC6j8P2pL9GeEkgNV115r0RM8/32rM6lr2RD c2NJN0iUEmJT3GIZ5qBWbhK9QetE4qBFZ7IcZm4CHnsD54EKD96rsLXewSKz+y4Y88uv LpqQ5ClKN2Y5P4KWszHuh+WyG+nP7CofbcAhe/qbxECTEycxJ5RS3j0pHgXZ/By7bM0k 19Y9uKgtz2Q14eaAsUDWLOurJ4mpXqxELHOhKyYU0WaVRf5xK3dPyE3JX717dS8w99UJ qoUvliZAOsyMKqrpS4kfQqyE+dJuRldvHMdUlU9OwIJbnvCxhdXEQKAeugzLb20J1Ynq 4PnQ== X-Gm-Message-State: AJIora90O3zmz6R37HGDF0yz0uGA4X4q7EwaALzDa7Yf+K/8UAdMHs77 IDuGVNP0x4UHhOUkhFHyrcqaGGN8 X-Google-Smtp-Source: AGRyM1sQViVicG9fCNbhzfrOr87OYbwvHPAXsjieo/cL4Wg55UKOxq287TyK8+S0ZSjMjByT3jrZSg== X-Received: by 2002:a17:902:d488:b0:16c:59ce:5000 with SMTP id c8-20020a170902d48800b0016c59ce5000mr39600289plg.134.1658332429795; Wed, 20 Jul 2022 08:53:49 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:55cc:b0:1ef:b044:8bd7 with SMTP id o12-20020a17090a55cc00b001efb0448bd7ls1782418pjm.0.-pod-canary-gmail; Wed, 20 Jul 2022 08:53:49 -0700 (PDT) X-Received: by 2002:a17:902:dac1:b0:16c:6988:d226 with SMTP id q1-20020a170902dac100b0016c6988d226mr38619515plx.39.1658332428971; Wed, 20 Jul 2022 08:53:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658332428; cv=none; d=google.com; s=arc-20160816; b=L/KQmDSgl17/3OxmHcn3Su79ZpYGIcxA9c94HxYYp7e2VFYBTJK9zg9gaHMCPxhdsI bYIW8CH4SwP8e5u4Mv9SLVDPI/EmwIKU7Z0SlboTmkSIazhoBrkmuLhOAm4pd1vuyzMd GMDv/zLBOJkRrGueGsW539DMKZdebozbu91pDfOTp7OQ9hm5izAZdX7R27yoWXY9Gh1q 7GkLN4pF6dvOWNqGpd9/GOe148DNd/JjYfXE7rgGf7YGmdsGX/EzYCDxCFILn+GOA6yQ tsrwNjZWHUQJ1KogR3d4a5+5ok9I+xRzA8wmMQS1xsbYKYnAW8nPYHj1IJ4DJ2mcWU// oe5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=iKqKSpIoemqVJvmONKd6Y8SQyJA7cnV4uKHmCv+ADCk=; b=BEbnvfBPbTCeTw4otf9CSDq+G1GThGCpLGUTfDVEXNVtCITumNcZjBPyLy6+AHsRCr QphQ3RBXxjY93A1cjz0SD+/MdG2CFeaxHbgzenrf9E/wFZ+LibeeEAJt30V5m7ppGHuH nEjUJUEnNS/ImjJlzDm5TspjVXKwPycthZ7FwM1wWeYU1uFnAb0o+qV67jqtlWRDacmG QyljpRxMitiL9VWM0CFJwReHciIs4yv3BlcDf+Goc5gvEVeZ7LP84mf1eTXuJJMJ3PHV /lbBsnqm9OC4dkfotns3kfQ0nX4103yAsTEr+hhNWO3QJdJHThQiYdFDFEsDS5MQppuU pmUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=GNSCNaKr; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id n9-20020a17090a2fc900b001f219459fadsor1104059pjm.2.2022.07.20.08.53.48 for (Google Transport Security); Wed, 20 Jul 2022 08:53:48 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a17:90b:3890:b0:1f0:2abb:e7d1 with SMTP id mu16-20020a17090b389000b001f02abbe7d1mr6276345pjb.158.1658332428629; Wed, 20 Jul 2022 08:53:48 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c00a:a073:d177:d5:aee:4f03]) by smtp.gmail.com with ESMTPSA id a8-20020a170902710800b0015e8d4eb1d7sm13919198pll.33.2022.07.20.08.53.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Jul 2022 08:53:48 -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 v3 11/13] drm: bridge: samsung-dsim: Add input_bus_flags Date: Wed, 20 Jul 2022 21:22:08 +0530 Message-Id: <20220720155210.365977-12-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220720155210.365977-1-jagan@amarulasolutions.com> References: <20220720155210.365977-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=GNSCNaKr; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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. 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 2584343b767a..ef439b49f2b8 100644 --- a/drivers/gpu/drm/bridge/samsung-dsim.c +++ b/drivers/gpu/drm/bridge/samsung-dsim.c @@ -1591,6 +1591,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; @@ -1670,6 +1674,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)