From patchwork Mon May 27 13:47:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jyri Sarha X-Patchwork-Id: 165210 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp7192989ili; Mon, 27 May 2019 06:48:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqwahcUBDEojN5xE7NqBEBpuMelEUZf58+DUGNa1NH7pv0EMCDam0IY3OeQDwMBtaoXM3QXj X-Received: by 2002:aa7:90d3:: with SMTP id k19mr133454349pfk.1.1558964895498; Mon, 27 May 2019 06:48:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558964895; cv=none; d=google.com; s=arc-20160816; b=s45Xfq6KdyKhUqEfbr72/W+J2/WMlfEz8tx+9Z5PpSt6EpHWEr6GrQi61/9UaoF0rn AMT7y+Dkzb+Jo9IJrAFiSCDkQ19RRzPtRAYtXB2s5KUdwvKmPHLsMK+UWAKG+yTm1gkS R/yrIewkme++quKXnnQ6HslgTsxRVNeOTXGZ+Xa4mVQCzX0zARNr7iwJPz/vj/CpaLXx EKS0UQvOibU3OzQ61F/luhM3cDPD3sYf8DEOHEuqibYS+nCP8jab0o/DAyfJ0CuPOsOa WVs+ruKv8OvAaM5mNNbgb497tlJOhs4jpx6I4N7a18eBq2g3Oo3uqBrzgl5ElvKSzbag N4iA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:delivered-to; bh=ZKT12Vzx/kSHE/8F3najsAsHMQLq4s4oIvtH5HXzqHU=; b=M5QwPA/6OYijnuxVguqiVtPR9YY6oo5HiY0YlRivx3JBzFEqv/FnSx1iuSdTM6qNZd wRRMqWiGx5vOrLXxCH1pRbgNPkpSfpfGjsbdOdUU5J+AuwBwQXkAcKk4Uq/QTUdVq7Wg QCJri5tW6xhpCVg9wRj9ri1FZK6KQ58mw1HsSuf2/uw5ShyZyT27KTs27w6sjPOilzK8 7xmO3wQ4rTiUvMo0v8WuFrSHAx6KEmZkvo5Ot8MSYdz0oZnHT+ceNL7En+upY5idyGJ7 gmrqwC7qqZo5NSZ8geUv/HQ8lH3dFBJxyoJDMtmVwbed6VdagzDKtPvvJvW/ZttE1DT1 z+mw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id y23si20128046pfn.287.2019.05.27.06.48.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 27 May 2019 06:48:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7D6AC6E217; Mon, 27 May 2019 13:48:13 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by gabe.freedesktop.org (Postfix) with ESMTPS id 399336E216 for ; Mon, 27 May 2019 13:48:12 +0000 (UTC) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x4RDm33o053918; Mon, 27 May 2019 08:48:03 -0500 Received: from DLEE100.ent.ti.com (dlee100.ent.ti.com [157.170.170.30]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x4RDm3LG054707 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 27 May 2019 08:48:03 -0500 Received: from DLEE108.ent.ti.com (157.170.170.38) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Mon, 27 May 2019 08:48:02 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Mon, 27 May 2019 08:48:02 -0500 Received: from jadmar.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id x4RDlviE065947; Mon, 27 May 2019 08:48:00 -0500 From: Jyri Sarha To: , , Subject: [PATCH v8 1/6] drm/bridge: sii902x: add input_bus_flags Date: Mon, 27 May 2019 16:47:52 +0300 Message-ID: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1558964883; bh=jnO0wQSVfRbEBt1Q0sFOXV/qwgajJK9ldb5h/H7MyV0=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=JaRegP5b4EDwtUe0dmkvmgqI310ehK9utAiYb7nK/8fxfUcA/4Ghe4WVM5gS/6SAs y3MMdFWlm1Gpa3x/YfUI3JcCQiXflYFUg4LHBfp2i/vECKfTqatDUMhI5rTtyflkQ0 WHJEYpD1/ZfMtbr0jBmLVSsgy5ApsYDgG3ESabBA= X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.ujfalusi@ti.com, tomi.valkeinen@ti.com, laurent.pinchart@ideasonboard.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Tomi Valkeinen The driver always sets InputBusFmt:EDGE to 0 (falling edge). Add drm_bridge_timings's input_bus_flags to reflect that the bridge samples on falling edges. Signed-off-by: Tomi Valkeinen Signed-off-by: Jyri Sarha Reviewed-by: Andrzej Hajda Reviewed-by: Laurent Pinchart --- drivers/gpu/drm/bridge/sii902x.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/drm/bridge/sii902x.c b/drivers/gpu/drm/bridge/sii902x.c index cdb8dfdb2dff..0d3d730b97ff 100644 --- a/drivers/gpu/drm/bridge/sii902x.c +++ b/drivers/gpu/drm/bridge/sii902x.c @@ -461,6 +461,12 @@ static int sii902x_i2c_bypass_deselect(struct i2c_mux_core *mux, u32 chan_id) return 0; } +static const struct drm_bridge_timings default_sii902x_timings = { + .input_bus_flags = DRM_BUS_FLAG_PIXDATA_SAMPLE_NEGEDGE + | DRM_BUS_FLAG_SYNC_SAMPLE_NEGEDGE + | DRM_BUS_FLAG_DE_HIGH, +}; + static int sii902x_probe(struct i2c_client *client, const struct i2c_device_id *id) { @@ -531,6 +537,7 @@ static int sii902x_probe(struct i2c_client *client, sii902x->bridge.funcs = &sii902x_bridge_funcs; sii902x->bridge.of_node = dev->of_node; + sii902x->bridge.timings = &default_sii902x_timings; drm_bridge_add(&sii902x->bridge); i2c_set_clientdata(client, sii902x);