From patchwork Mon Feb 25 11:23:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jyri Sarha X-Patchwork-Id: 159170 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp1907828jad; Mon, 25 Feb 2019 03:23:36 -0800 (PST) X-Google-Smtp-Source: AHgI3IZwdgiOM3yTPkq5ZyB8WueTdGEP/HUUoPWB4bM6ll0Qr+dEiJt0N4PX1brecuV5oGyOk5eS X-Received: by 2002:a63:5318:: with SMTP id h24mr14554078pgb.76.1551093816334; Mon, 25 Feb 2019 03:23:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551093816; cv=none; d=google.com; s=arc-20160816; b=NT80vsu8VH5dm9VsGjAeb4sF5Fl+tgFJKYVyluQyGM3vDfmC/fBrM1wk1xrHH8680K OXXxO2MgDmHxLcjSipCTOVbZJpJOw0r2tdMIk8WvTUZste4SaZiFJ2LVvPgN/bosxDJR iuNnUXQXbvsooTbUR73vDDrvTp0bnd/0dqkudCdzFsOcYw8XUqARAm1zp5YZYJksKe1p cThL1/bxlzuMmLmBjXlio6xNaS3cJcEuoCidXvki1E01EseBuKGLhD9OzaoLuIyX5wDg 5LP4xZUb0n4AYeRktQU47eRdjvwxkEJiQ44z3wQqmIIusUIyXTIQl7SlwcsOQdbgRiCu aH+w== 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=brYS4RFzgBLfY5boNtP2klqnX4kkzgQXtrKWysqBNX4=; b=GlAQombErAEwQXiyDvUw7qY46/ng7treF6jquEguflFIjTeDGQfXck1AjZqt4O0uPP BrY83lmAkv2xMAsSszxX2S7rImRO53vVSSeDj/YFktG1b7f4TgZluMmDaLIQMHyBaVt1 QgXCjGvduv8KyE6lzqLORYlZMMEuwN/k7QGLhPU0W0jzGxcygZunZhW7Mk2ztDBIBZCJ DjOmnz0u5ArTqzSrh9xpO9syvOyWBL9E/vY5rFaAefvbC7StMnNKTRguyJ3KVB2NXwrz eQYAvv0GbSMQPDThTuZGsF7UefxNGc5K5StrXnohADnHfelJoge7gGWePqlyhT+0shi2 vvSQ== 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 f21si7768132pgv.28.2019.02.25.03.23.36 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 25 Feb 2019 03:23:36 -0800 (PST) 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 17478894E3; Mon, 25 Feb 2019 11:23:35 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by gabe.freedesktop.org (Postfix) with ESMTPS id 42564894DC for ; Mon, 25 Feb 2019 11:23:31 +0000 (UTC) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x1PBNJ0B071814; Mon, 25 Feb 2019 05:23:19 -0600 Received: from DFLE100.ent.ti.com (dfle100.ent.ti.com [10.64.6.21]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x1PBNJBg121543 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 25 Feb 2019 05:23:19 -0600 Received: from DFLE103.ent.ti.com (10.64.6.24) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Mon, 25 Feb 2019 05:23:18 -0600 Received: from dflp33.itg.ti.com (10.64.6.16) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Mon, 25 Feb 2019 05:23:18 -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 x1PBND7O010192; Mon, 25 Feb 2019 05:23:16 -0600 From: Jyri Sarha To: Subject: [PATCH 1/4] drm/bridge: sii902x: add input_bus_flags Date: Mon, 25 Feb 2019 13:23:09 +0200 Message-ID: <55145f406e698651b99bc7a35421cd38548c1d79.1551090126.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=1551093799; bh=xEC54RjQsRhPEX78ht/FQBy+jP5JbjFdq/EFRti6Ve4=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=w/bH0IBKdjGE3NcswvaWq27O0ABMi2mPpKJvumBnGAdu/rYZiJjj+ywiAzCxbN2/6 Buc7JF4YVZO+uGIM8lzUKV91xRMwXmleGiK/FcG55c41ZiDENCPQJk1bHq5hN25fji PORBsLsukc75iPQIzSVC61lV9Jo8gr+K+KqubBKM= 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, boris.brezillon@free-electrons.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 --- 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);