From patchwork Fri Apr 8 16:21:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1910 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id E9FF63F0D5 for ; Fri, 8 Apr 2022 18:23:23 +0200 (CEST) Received: by mail-pf1-f199.google.com with SMTP id m8-20020a62a208000000b0050593296139sf429866pff.1 for ; Fri, 08 Apr 2022 09:23:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1649435002; cv=pass; d=google.com; s=arc-20160816; b=KFIKpqjGUuJMnfgYpnp0xbln+stHFk9YqAKUkJd3Di1OjaJrH+Hu0Cr2kzwR00BtXI lPKUZFB4EvySAV2kId5OaqBPNEUMVT6qCD55UOchS5VltEEzsunT/QpsbXDBI0TzxVRT c4eZOszG1BInGx1kFYylhTEHqrPLW3S/f/j5DKc0Mx/6xB3SsgoYSTGOfQ44GUM87gjb bTVbfGklHGSobLDKIo30ET6HdDmxxg/dSCWaWlD07sRvPVzEwHrPSGENVjDcHiZZjeex nR7MzAeTIaUFG4Lg+poySzRGmndbc474MhVjWoo4HH+xWq/1nGfLCcpuqsgGFS6EOin8 7Qwg== 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=FlCJyaKC9fMT8kp7Crw140do3N/F0aq0mN0bd+d34F0=; b=ksoXtRUPMCkc3rOg0m+UgDIZLIONWifIP3W++C+6f01nGhkFQmYJmnMXKqEL3wWuxu Erl6t30TEhws7EWMWCUII1n3Xb072X7G/YKVtpq1yopA0HxyeGOdO5DibRdVr82OTuqo YhG8KDXAwjRoL7fnXaDpesnvv1xQ3NKJnF2QoMTx2V75wUGIjD43JAtG4xct8hYck99w 57bQPt+aiDuMK9Z2/TOv/zh/7jUaPifmHTRZOgRxS+6Gt4DYphCmt71LCIg2BVCPwpqV MkL+0jT7t9Zjqy0B4BdVyIRryaWIlFYV+RajM0GNRSYg/daPw4nUQrCCTJRN/JVRkm+Z GeMw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=GEYKFzIc; 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=FlCJyaKC9fMT8kp7Crw140do3N/F0aq0mN0bd+d34F0=; b=kNk9s7HIL73iDZGyJpt6lm6iQw46JfvtVEfd1IkJuvtWkPGkQ6XFUUxB2T8gpGeS4R GsbDLgv8L67pJ8Xuj/X8No7D8C/HT9oSpoVvMzP+FGF/yLhOrEkJ+TuUKhMsacISjTM7 4hCEpezj7B/9oBFfJrI4ik/SLe3OsGj0ZPT7A= 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=FlCJyaKC9fMT8kp7Crw140do3N/F0aq0mN0bd+d34F0=; b=mqYV2RJ4wcV9+Cf/kYuN9Kff6ML723MBM3oawN16IDYIhXQ3X4LUoFkh6uoVkjqIzo ikwa2OpgOWomnr2F538IzKjm6+uj2zgUoSKBOuqG7rVGYwiB+Ekto7gDhXyGOIPTtPL+ vEVrbIN8Gh49i5m7FctZn0q5Oc27MqziWn/yTD2OjD7k57L/OSbetkiX+kPCy3SkIF6B gq/mwzeDirBzJI9TlchyqSbf3107Mv8SJ2xFomKbwr2a6CqB3SdRNtybWvKRiugk1+BX MEnWhNhmzldX4xBU2+pk8YTiDeuYyVwWzfHZnjpjwjogsNCkQf6WMfYmEOc9h7d0RvZt DSnw== X-Gm-Message-State: AOAM530j+hgnYSXdbo/aMfgB/bd+cOrFGHP71GzbVe2KSIduwWXCn8Q0 O6nedhVbfxSvZ5+TBRCpfCAhKGWx X-Google-Smtp-Source: ABdhPJxRpVR9cRuzaeFQmoToXbFNa2qlXZVUlHXLOORiFNEJB7MIVGtzaDtLbnNHEPUmbLK6hdPilg== X-Received: by 2002:a05:6a00:1395:b0:505:6fc9:3525 with SMTP id t21-20020a056a00139500b005056fc93525mr7203994pfg.38.1649435002780; Fri, 08 Apr 2022 09:23:22 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:903:22c1:b0:155:efc1:1565 with SMTP id y1-20020a17090322c100b00155efc11565ls2225323plg.3.gmail; Fri, 08 Apr 2022 09:23:22 -0700 (PDT) X-Received: by 2002:a17:903:249:b0:153:857c:a1fe with SMTP id j9-20020a170903024900b00153857ca1femr20155854plh.44.1649435002097; Fri, 08 Apr 2022 09:23:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649435002; cv=none; d=google.com; s=arc-20160816; b=JnRXeEFLoQF0yfFQPJN4A57s5PLkGJwz2KUeWKJFYOrQ8+J0kSyyXQP8zanU18dCqZ I25DMEyTGqhWZxkgdpB2MkCsLj0e3aZj0NRCqu/HCMwbV9amHUPU8yzwBepxsCCV+Eeh JFEDqICRkav8JsUcGDYjQ0M9aNa+TCoE0hUdBRm3vgpbobEL+DCjYpn7PMkt3t1Nxibc q74bjt+GfssY8BSD0D2Ja+HyzTxf0sXrv02u2xB4jV3zDP/jZqx94oMJ9TURG4muvKRD jaZtJFFDuzWupKB+MxNuAgJqBYOtMAUv0xmxgOXZhbJ1H5fLr50mOOiKKTsMpPLOc+4y Gf3g== 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=lhe1gjfVmNBzu+OAJh4OI2ThwckJvfBSRTmYzb4Lz0s=; b=i/R0+5E9+nGC3Zpuar79wf2zTZkHxp4LhIohcYp9R+CBZvK77gs4L5ccrOxxqLmJUs cEtJw91BlhNAo38VLHh1OEXWlgEEv6GDYdRZqa1+e/jWZezyHW+MOPhi20uco+cZmDDE JlSP+pKyWqnJZ8AhdU2WPvmylv2x8+2Q/UsEW1WJeHh0OaiyfATGWDnWQckjdcedEFKu +as1WpuANFudQ0+nE5J55clLmTEPAtPDDt7ZxyNSq7jZqhxmtrgoRIjlTlzqHERyScDi ccDAuafOOngEdK6R/NL7HhV1o8qgA3wfIhGND4kYo70RphnunNFHpxePnJeHhxkxYSK8 G7Pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=GEYKFzIc; 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 12-20020a17090a198c00b001caf31405d6sor742965pji.32.2022.04.08.09.23.22 for (Google Transport Security); Fri, 08 Apr 2022 09:23:22 -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:90a:c302:b0:1bd:14ff:15 with SMTP id g2-20020a17090ac30200b001bd14ff0015mr22844531pjt.19.1649435001831; Fri, 08 Apr 2022 09:23:21 -0700 (PDT) Received: from j-ThinkPad-E14-Gen-2.domain.name ([45.249.78.214]) by smtp.gmail.com with ESMTPSA id n18-20020a056a0007d200b004fdac35672fsm24929863pfu.68.2022.04.08.09.23.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Apr 2022 09:23:21 -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 , Rob Herring Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, NXP Linux Team , linux-amarula , Jagan Teki Subject: [PATCH 09/11] drm: bridge: samsung-dsim: Add input_bus_flags Date: Fri, 8 Apr 2022 21:51:06 +0530 Message-Id: <20220408162108.184583-10-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220408162108.184583-1-jagan@amarulasolutions.com> References: <20220408162108.184583-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=GEYKFzIc; 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. 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 02802526f82f..71bbaf19f530 100644 --- a/drivers/gpu/drm/bridge/samsung-dsim.c +++ b/drivers/gpu/drm/bridge/samsung-dsim.c @@ -1543,6 +1543,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; @@ -1622,6 +1626,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->platform_init) {