From patchwork Wed Oct 5 15:13:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 12999356 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 B6894C433F5 for ; Wed, 5 Oct 2022 15:16:40 +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=vhsKOFFJjUrx9dbd+FTs//oooqDhAQFAEUhRucYdA/4=; b=jjh0NJLbvAQqL2 baVwcxfCzYTjulWMv+FJEG65MJQgEALu1Z5bfwyEO89iwvmjL3nakB3F3yNbGeVzs79JRns7bXoiw jsJ6AsyKKnRAqCYKxtqg0Uq13OWpt/U7f1CSeSeGcRQYFIzHMzqsO0iLt+Mb3/NBHUpOfp/r8y/VG kuWtXehpMHmCdXGN9zEOpaOhma4Nu8xrlX7Rg3lNUf15NR9o9avqr+6xsDzC39wIvWqP5Me3Zwiaa 575XDuUFjkYu7RHWUnBfECUxWIOXYtg3ZIJx7Mt6Xwk2vp5jerA6E7TzJAC5fek57WwMoca3sUI5b 0TDVqXQAb/D+4/o+9clQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1og67U-00EntB-CC; Wed, 05 Oct 2022 15:15:36 +0000 Received: from mail-io1-xd36.google.com ([2607:f8b0:4864:20::d36]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1og65Y-00En1a-3h for linux-arm-kernel@lists.infradead.org; Wed, 05 Oct 2022 15:13:37 +0000 Received: by mail-io1-xd36.google.com with SMTP id y189so11203927iof.5 for ; Wed, 05 Oct 2022 08:13:34 -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 :message-id:reply-to; bh=wWIP+yGy/n2GKp0GScrqMzuD9vwA6F45Gf3P4LmqEGY=; b=PdruZyNn3pDfvsjOn2r6/JOhK9DB97SSe5VBaJCJnuFDSE/9pM3paV7HaNBDmtfJZw j/79XuZttn5HAdQoQSTQn0qOhER4ok/6yDO0ZnBjcJGYD3ewcDRqwZWEHv2XWfeocHMK paAFXtq+lS3SNtIG0lu82xNXlf7MEPh6ixGDk= 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:message-id:reply-to; bh=wWIP+yGy/n2GKp0GScrqMzuD9vwA6F45Gf3P4LmqEGY=; b=MkNqmA9BneJk929A85mj4ik39vNbnxnl5Q3L/Efb/00gxGnd6+3MPcirQJlCbu/iSR UC+CU1IZ4XhlnTSzlgsx43cB0UQ9o7iIf02UE1ze1vRKjQ/VCdxS9tMIlPY6/np3iIZG R5EegJeA6nIfwXzRhH3F+00ynK2BbWj14PsQS+uqab7c1T33YVNpIaiiROXl0A/WQzxl HU1SsqAxsWuN1qx1ihOI9s1lz4WKUwMhYnVc3TS6i+dbjU+898OHEcE5tf1gtnECWWWP iHMq+s/712BxYJbvXGOmFJELXFN0w62sMhyAU5zFStkjJdA1Hzd8wtHb0JOixIQat5hX YXGQ== X-Gm-Message-State: ACrzQf3ZcI/LWosDvCywl8s6JxL6wWD5DM6sKOZ4b4xwTypnKHOoKf66 9R9yVcxGDfTRNgrk435c7gEt0Q== X-Google-Smtp-Source: AMsMyM7plXxDojB4aFrHxdxQ6nlSBFxsxPVUZHWp+3Ju2o16fvFfQ0r75G4f4MR6aUdANqxShuc+LA== X-Received: by 2002:a05:6638:134f:b0:35a:5b6a:9591 with SMTP id u15-20020a056638134f00b0035a5b6a9591mr64725jad.184.1664982814334; Wed, 05 Oct 2022 08:13:34 -0700 (PDT) Received: from j-ThinkPad-E14-Gen-2.stthomas.edu ([140.209.96.21]) by smtp.gmail.com with ESMTPSA id w15-20020a056602034f00b0068a235db030sm7089276iou.27.2022.10.05.08.13.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Oct 2022 08:13:33 -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 v7 08/10] drm: bridge: samsung-dsim: Add input_bus_flags Date: Wed, 5 Oct 2022 20:43:07 +0530 Message-Id: <20221005151309.7278-9-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221005151309.7278-1-jagan@amarulasolutions.com> References: <20221005151309.7278-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221005_081336_192946_0721B915 X-CRM114-Status: GOOD ( 12.06 ) 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. v7, v6: * none 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 f714e49c1eab..f5cd80641cea 100644 --- a/drivers/gpu/drm/bridge/samsung-dsim.c +++ b/drivers/gpu/drm/bridge/samsung-dsim.c @@ -1601,6 +1601,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; @@ -1681,6 +1685,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)