From patchwork Thu Mar 14 11:27:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jyri Sarha X-Patchwork-Id: 160320 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp15384986jad; Thu, 14 Mar 2019 04:28:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqwHxktDMwRgOIHB3JNk97Pz+m/HeRceR37KSTGUEcLUemqhaNAXd6VJHO64jfbTRd5nfbhd X-Received: by 2002:a17:902:a9c8:: with SMTP id b8mr13718289plr.12.1552562892459; Thu, 14 Mar 2019 04:28:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552562892; cv=none; d=google.com; s=arc-20160816; b=qB+iwbvqXcPJM0YoZodbtVGC5LDec/cSBoHQ6CLQT0kxJnisiO9Deof7md32Raa1dj KW7l5Ik5hT5JeLRxpIz9XJq9Y9Eej3pmc3v5OIdLUD+fBaXLndYrbLaVIzBgVnRBSrub h9hDHQZZq9zaaPbNLrAJGjeyG5mjsQJk8fXQHNHW2boj82MxLxySHS1CTnJcMrr7RawK z0t7Ul/qx/nO9z2h2om35TauXz+fX3C4VbUHpIbCuXCdyDGwxmrDd2I4E16nLl3xBGBQ jPKaz/qfxDvHrDBf7sqF97HfRGZQTRC0mPKPxwXPtCxaL7eI3CoqD5Pu1G5okeTOl6u8 03TQ== 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=ycjeNwGU6xRhtnZbuSznnePYO+oP638zcmHkzfZ4e28=; b=vsHtb2yK2E8rks2vJ2X52eC3JXnj++Rw5ox8hZDNTNihAGjLlzz8x9GBeBXTypayXo ZanEDIs3BWhNkRdu1OLzEYBcb1mJZxGlT+1BZzP+xU4uvIyYXJJwVqx39sJ2uCqApwG/ ehpt3kcCVrwgIH+6BN9CgzFdTmj2Lpmu2ED4jjyPvz/ic7WPRYefwq9MRDgSLBlc+bml JAauERpe9+zS9Gd5K4Oz+YUupcrU8IpcT7QUnXcHoBRYghWsxq5hV7/wnLK/qxw8SXnX pWKc7Ay7xveBon5RBUXb9cxH66lQ/nAEBhJIxliKTXnwHvzHZsmuTRmaAQNf/3cfxQd2 j8+g== 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 bg1si13394014plb.118.2019.03.14.04.28.12 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 14 Mar 2019 04:28:12 -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 6AC3F6E194; Thu, 14 Mar 2019 11:28:10 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by gabe.freedesktop.org (Postfix) with ESMTPS id 52D3F6E194 for ; Thu, 14 Mar 2019 11:28:09 +0000 (UTC) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id x2EBRxuP128533; Thu, 14 Mar 2019 06:27:59 -0500 Received: from DFLE102.ent.ti.com (dfle102.ent.ti.com [10.64.6.23]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x2EBRxmA101836 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 14 Mar 2019 06:27:59 -0500 Received: from DFLE114.ent.ti.com (10.64.6.35) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Thu, 14 Mar 2019 06:27:58 -0500 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Thu, 14 Mar 2019 06:27:58 -0500 Received: from jadmar.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp33.itg.ti.com (8.14.3/8.13.8) with ESMTP id x2EBRrtu010136; Thu, 14 Mar 2019 06:27:56 -0500 From: Jyri Sarha To: , Subject: [PATCH v4 1/6] drm/bridge: sii902x: add input_bus_flags Date: Thu, 14 Mar 2019 13:27:47 +0200 Message-ID: <9eb914abae61e7e96c9d248ca04285d8c4331024.1552562385.git.jsarha@ti.com> 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=1552562879; bh=8lAyTP2FaI+yQ7DiOCK6p+kRnfn3lYWlIlhioXRUk0Q=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=TevnR4xnDURhpbX/3yB66yPHJx1XPekUCB97o9V1vVOr2dRNIqS2SmgSVNHZW5157 6eC6Ojt1GhmiBpgQej57pPoXr2C27bLIPRxRbwlCs4CgRKeM0NF4ekXfgrn+qgK0o4 NpFisSnPtRf5A2aXwYyY/U8NnkpGw3NUI9iGV5LE= 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: fabrizio.castro@bp.renesas.com, Songjun.Wu@atmel.com, peter.ujfalusi@ti.com, tomi.valkeinen@ti.com, laurent.pinchart@ideasonboard.com, voice.shen@atmel.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 bfa902013aa4..1afa000141d5 100644 --- a/drivers/gpu/drm/bridge/sii902x.c +++ b/drivers/gpu/drm/bridge/sii902x.c @@ -459,6 +459,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) { @@ -529,6 +535,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);