From patchwork Fri Apr 26 13:23:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jyri Sarha X-Patchwork-Id: 162911 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp747959jan; Fri, 26 Apr 2019 06:23:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqwHfEY/P9uo1z1l5I5TLurb2x8B6fzj9zb68HEXLRbNWIG7//C087R6qoRKhn3AEEkh676W X-Received: by 2002:a17:902:1621:: with SMTP id g30mr45678126plg.168.1556285022417; Fri, 26 Apr 2019 06:23:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556285022; cv=none; d=google.com; s=arc-20160816; b=aqY5LUjbo4aE+IMX9NFKTS67kZqEPNlKlhN+bFWGkYcfgp6UM2E92Ibji620fwNiPs 9Niutusx3IRCGFat8aKV0AYG7/Ie0VmxGKy64xz/6XpQ2CoXqLj6wRHfRCR1iFD+dqYz GfQ3Fiy7adPDqfWLzekSZ37iElBQfEdJEqu8wgp0NHfF/NewWAk+miBqkv8GFX8lP9tB SXGDIegr34u7Xfoaz+ojsvi/60XBknZB8hncYMKxcp4I/aqZzOoobHB29dg1y4sC/BGs KjYdivEPSeV7GDHhz7XHMoGJPRGnCDdwtvFg9KG0UZHROCnMtzPwCLE6lCg5PcYDXrlO fZKA== 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=8lAyTP2FaI+yQ7DiOCK6p+kRnfn3lYWlIlhioXRUk0Q=; b=WJgdj7X6ov/COobsilaudPw75GSMqJamKAurQVBjQBbuZlBco+HIi7bhTNPntBNGWZ 6jni0g+wVDbrKhKq0u9beCZcpWYazbB2wU4GmoWQgvwmXFBPiBtKVFAkj3uigaQ2qiSS oQp9tcsRGz+lyP3TpkxyuogHqvrCdjbnWQUVRq32ti94haAX1Emwa6UmnbaXrmJfS+M9 ZUfYrVjRgGU6crj6sXP0MUGDGMgVVjdzmV9amE9IUobAJ0m7S0O/eOkmQHHFUF1AZLqF +FHqeTV2PmL00UPKwZJtAUVG0tOO9KQQQxp6iUdsgwckdtybjmM/wGwlAdSjCjLugys8 iGlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=hXgLIxPk; 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 o4si23183021pgp.160.2019.04.26.06.23.42; Fri, 26 Apr 2019 06:23:42 -0700 (PDT) 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=hXgLIxPk; 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 S1726155AbfDZNXl (ORCPT + 7 others); Fri, 26 Apr 2019 09:23:41 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:49546 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726069AbfDZNXl (ORCPT ); Fri, 26 Apr 2019 09:23:41 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id x3QDNL5o017653; Fri, 26 Apr 2019 08:23:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1556285001; bh=8lAyTP2FaI+yQ7DiOCK6p+kRnfn3lYWlIlhioXRUk0Q=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=hXgLIxPk7NbU87XozlhuO09KBRR+70MavLPNvKdktBO8uGv4Ay8rSJ52jxFxjdORQ dF3ZTOMWplUdrvgFHHJbfk/+L1oaLsDZHDweet6ikS7DSSXsEpU7M43z03/2Ly0hco n8RgxHFlvjjcD5LIMUe3p96/ER+KvAY51sJ8e4gc= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x3QDNLGo014732 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 26 Apr 2019 08:23:21 -0500 Received: from DLEE113.ent.ti.com (157.170.170.24) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Fri, 26 Apr 2019 08:23:20 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE113.ent.ti.com (157.170.170.24) 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; Fri, 26 Apr 2019 08:23:20 -0500 Received: from jadmar.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id x3QDNFsL024078; Fri, 26 Apr 2019 08:23:18 -0500 From: Jyri Sarha To: , , CC: , , , , , , , , Subject: [PATCH v7 1/6] drm/bridge: sii902x: add input_bus_flags Date: Fri, 26 Apr 2019 16:23:10 +0300 Message-ID: <04c0665a905df954544a640536f890a14e222fa6.1556284767.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 Reviewed-by: Laurent Pinchart --- 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);