From patchwork Wed Feb 27 21:54:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jyri Sarha X-Patchwork-Id: 159296 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp4939342jad; Wed, 27 Feb 2019 13:54:49 -0800 (PST) X-Google-Smtp-Source: AHgI3IZyBprR+V+x4KtS4aKUcl4I35s1wELob+A1ETSCzVWvP3Jxy0E8qki32Q3IPFBmMgxG4NAl X-Received: by 2002:a63:1105:: with SMTP id g5mr5098499pgl.322.1551304489169; Wed, 27 Feb 2019 13:54:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551304489; cv=none; d=google.com; s=arc-20160816; b=LDQOneNJAH9DzDwSU86cAzolJzMxf3w8/6mUv8yk0ttM9ThdtNfLyNFCqj//s8CJJL kASlmuWrqh2wMri8LpjTAjDdqsmpD5dSSvE4KOoQ7cbc1Okzsb2sYhTiaY8ZV5kCn8aq 8DgjY84I6L+jPaRKz/3IZSU5tlSKZdDpf4dAwzlebiXpEqOO1cqVUCgX4jEB4mWEIqFR nl56HuaekU3Gj4wU5rdQ2D5alKzL/X/VxiYkZtC+sr8MSG/Nv+kBp3g7PLtR7M2cCuaF R2Xh3s39dhoX4V4Vf3y9OJPcfOg3uEI/z+5vJBZwhnok4SjdKh0Dqyt4RSfEa6Vfggf9 69hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=UFrI3BA0IIMkWTpYq7qsz6lkzhyRsYB5NHE00r38zSQ=; b=joq8VLAv/hGjshxoVHWllBl98ipICnXdIeOGcf1Pq/hxex+Mv7IFVQ92bR/QgqTs/6 w/r98AkfjdkKFtE4NyWCpHns4huAzj+u0pEYSyHleb3/myDOokgHUKVfvTBsntdBbT+h V1SOWouIKCyJprkyHL9w+o9rSXLI7K715JiYGe/puf48aUtbGYtw92nOLLJ93s56DAMI ZOm9xarSErVz9Q3Y10IZHzIu+z/j4qDv9y6ASIfcmEicU1HOFT93AY9VemfPQCpLV1zU ielgn5YIyhSD5IfpV2cISuKUvZFtRTwgUOy5z13TpqD1NURwzA9JCMwCb/W32bE1N8p3 oolQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=aSykWdMn; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g84si6132260pfd.187.2019.02.27.13.54.48; Wed, 27 Feb 2019 13:54:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=aSykWdMn; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729432AbfB0Vys (ORCPT + 7 others); Wed, 27 Feb 2019 16:54:48 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:43524 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726594AbfB0Vys (ORCPT ); Wed, 27 Feb 2019 16:54:48 -0500 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x1RLsUgS034112; Wed, 27 Feb 2019 15:54:30 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1551304470; bh=UFrI3BA0IIMkWTpYq7qsz6lkzhyRsYB5NHE00r38zSQ=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=aSykWdMn9aIynfX6ZMR0YRFcw3g90cJacjovvvM7tHYsO9hUykLnaCmYMIiZziekr 9CGK1PDIMx+bku5vVui0smfHCpizT/aW0P1kAfFD9MQqUNoiEeInwcpbElU394QpGj zdN/xO6Fp2zImdnYUecQRCdPLCG+Peqz8BJSOSNo= Received: from DLEE101.ent.ti.com (dlee101.ent.ti.com [157.170.170.31]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x1RLsUuC105362 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 27 Feb 2019 15:54:30 -0600 Received: from DLEE102.ent.ti.com (157.170.170.32) by DLEE101.ent.ti.com (157.170.170.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Wed, 27 Feb 2019 15:54:28 -0600 Received: from dflp33.itg.ti.com (10.64.6.16) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Wed, 27 Feb 2019 15:54:28 -0600 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 x1RLsNec017712; Wed, 27 Feb 2019 15:54:26 -0600 From: Jyri Sarha To: , CC: , , , , , , , , Subject: [PATCH v2 1/5] drm/bridge: sii902x: add input_bus_flags Date: Wed, 27 Feb 2019 23:54:19 +0200 Message-ID: <087bea83b75afa55f0b156da3893e99c49ebb186.1551303673.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 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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 --- drivers/gpu/drm/bridge/sii902x.c | 7 +++++++ 1 file changed, 7 insertions(+) -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki 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);