From patchwork Fri Mar 22 08:06: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: 160870 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp519111jan; Fri, 22 Mar 2019 01:06:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqzMwyhXZrKbM62ZvMVxLTsGgtoe5GDIZ4tF7AbGgCKFksTdgMylWCyKdcdXJW8SXaiB1Nps X-Received: by 2002:a17:902:2aca:: with SMTP id j68mr8157078plb.233.1553241999731; Fri, 22 Mar 2019 01:06:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553241999; cv=none; d=google.com; s=arc-20160816; b=EUhMyyUSxkvyity6u3ENxl0NtRbCOcjWBA/PrN9dB8I77V8AfyWrvzccDBesG9w1Rb Mzg2YtWv5w7DA/aTOyMOBS5y0wZBC77671UU177TUHp8250J8+7kZxmMuJ7ydyyIOATY DEQ0Lwi5MMqiQAfmVq+CRLd0YN/3oV/zTajyNgJD1RCjxGGPfpCFMfeSDLcKPuFEMY8M WFLq3T/LqoOQUgmNdyjWZY8TheH7d4oNXr6qypZIpJyJPg+eDdi8UAaMpnLb3iMoCd4l OAsJ++9uf9K66ii+amJ26fcLPcgMJSJj5L7AekO+yRkujkTEuFJLHeJETCg1TN4nGqHo udLg== 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=fq3Wlay3cJd4DhOvXQgNjiEmCqWyZbAX4QKmOrkvTj7a66HhFDjm/SalKMmiV/ENtz Fcl7E3ykoBfSIqUIVNySi3h8JR0JivDAhqk4fh3U7UTotOsOgkCD5nhAqWNUEPeeB5qR uKZgtEeCT8wLK1Rw5NPuUPpwjxabGG5ESfK/K/07C62FhS/5mnyDWH33ueu/hHLlFZoY emsatxak2dLGkxs1Tca7euAjRaO/SvgPKVhZxkzW49ZRaF6UNvKAOppUheTcyI8bWG6T 9xVTM+d4AeyQc8k3zzVH+s5x6aDa+v015bAY3kl7KoT8mJAoIZOyDDFpjE2NBoqMfm/i Tt/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=niHOMSkw; 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 i7si6805977plb.410.2019.03.22.01.06.39; Fri, 22 Mar 2019 01:06:39 -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=niHOMSkw; 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 S1727451AbfCVIGj (ORCPT + 7 others); Fri, 22 Mar 2019 04:06:39 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:44990 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726055AbfCVIGi (ORCPT ); Fri, 22 Mar 2019 04:06:38 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id x2M86Nbx048385; Fri, 22 Mar 2019 03:06:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1553241983; bh=8lAyTP2FaI+yQ7DiOCK6p+kRnfn3lYWlIlhioXRUk0Q=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=niHOMSkwxGTuGbpeXgsViTlWlW3qtU7Tfb9pEVvuS6yMRUE+7qB8AWlwUSoYMs3OT OO5TW0+356JQ9HKqx4tizQ0AI2rP+BXXS9mmJxk719zWaCVGtSQKuUdAKqqn/7paLn g2QCl5PXi6ak24LHESKCmI7aPfTMqgAlhSWxK/uI= Received: from DFLE105.ent.ti.com (dfle105.ent.ti.com [10.64.6.26]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x2M86NwT035524 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 22 Mar 2019 03:06:23 -0500 Received: from DFLE104.ent.ti.com (10.64.6.25) by DFLE105.ent.ti.com (10.64.6.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Fri, 22 Mar 2019 03:06:21 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1713.5 via Frontend Transport; Fri, 22 Mar 2019 03:06:21 -0500 Received: from jadmar.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id x2M86GbY003094; Fri, 22 Mar 2019 03:06:19 -0500 From: Jyri Sarha To: , , CC: , , , , , , , , Subject: [PATCH v5 1/6] drm/bridge: sii902x: add input_bus_flags Date: Fri, 22 Mar 2019 10:06:10 +0200 Message-ID: <04c0665a905df954544a640536f890a14e222fa6.1553241734.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);