Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3363888pxj; Mon, 7 Jun 2021 08:51:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxbII7T0pfkJ3/9P/XVvQJxD/8/2CpQQ9vJl7tBFfPuAXg3IS3IagFzJxJ5Boh7gzJLKEdv X-Received: by 2002:a17:906:318b:: with SMTP id 11mr18266115ejy.395.1623081074475; Mon, 07 Jun 2021 08:51:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623081074; cv=none; d=google.com; s=arc-20160816; b=TwrLqxyzxrfwMLRg6RrkyDxPHFk8z9QPp833adiSqCAAwkTFSL9PbLDYMRxrgwKOOM hMlwH41kfajQKlPQSlk3pu7O7hDyQPh3yoz0NlD+a8Jc6HZkxdnlZEFS9xfEXgeQ0Mj+ uyUumueufF9ClxitgJa6QFCnHBl7HvPQ5pkMhM/ME4s8kk5EiqLFOEnSItljY0eAXBNP StaPt+kqyCnRRpaDGaIPLsB6FodAUrOp4iZHhOtsROR/NmJBoWnfJSZscoe2l0JLaZKS U5RW94ozcCXCA+PYEnXkhHKdOTLXVo4fx8oEPkPXA2irQkvVUerFgHpwkmhlaEo1iR09 Iexw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=1cSDyRqs4/waFFpp4XK4bTohmPsgMHDek8V3s+9aWfY=; b=CuhTAJhhKJHc2d9izfQUlbxnsK2iEfW3B9/DMHwRfaT6g6DeLcvsPBOojiViXQekS8 OOY1hxO1NSGRSx1+5LGnypld4ZCuplp4wEv1EBrlDaSgizaUKxcvQaNcBf87MyBZmi30 8NbdrerVHLUDJidHSLYbj25WmIrQmNXcl9u+9PkBVrfB+VAe/Q5me/cex4LVvohA7HfO 9yh49Pv4YOCq/QwFsV0udnUVYo7CitT59oGHpSyUo1yKIRiP6P2S9avsxWK5DA5S8wF4 2/Jmk2NsW867Ax02OKt9s+G7YJnSnc9fmoY/gFPnnjJLrhF77LhBv3lCaen2jgHfgK/a E0Nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gateworks-com.20150623.gappssmtp.com header.s=20150623 header.b=XWcJ8Pq8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r26si12248725eda.375.2021.06.07.08.50.50; Mon, 07 Jun 2021 08:51:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gateworks-com.20150623.gappssmtp.com header.s=20150623 header.b=XWcJ8Pq8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231147AbhFGPvj (ORCPT + 99 others); Mon, 7 Jun 2021 11:51:39 -0400 Received: from mail-pl1-f173.google.com ([209.85.214.173]:33406 "EHLO mail-pl1-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230351AbhFGPvi (ORCPT ); Mon, 7 Jun 2021 11:51:38 -0400 Received: by mail-pl1-f173.google.com with SMTP id c13so8949468plz.0 for ; Mon, 07 Jun 2021 08:49:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gateworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=1cSDyRqs4/waFFpp4XK4bTohmPsgMHDek8V3s+9aWfY=; b=XWcJ8Pq86ApEWUqDjcMFt4Szfu0Nm0jhb7uS/2rKv98XxQ+xxglNjfhSE8FoDQoNEw fViBV2ca32xN8SjCgrGv6tSSLoXEnD51WyXXWAX2r+5l17aXo56RfMJkjrX4/+UV//3H tNF1di6YqKjDDUqGgn/yaIwnVWu2Ps4RygiRMXvFrpheucbHR+6720sYEkP1q48gQ0SQ 2pttc+Z+rJNdbsh1xbi2OhLsJJjPA64jPuy90nPnq8JYjfNnJz3RJr2twUeyBvKwXX+e gqxw/nWFjNuF7JGWOZgpA2fZsuScGx996opkk1yHJkzehKS+q94wNAtT1dZEcwIlk0xC w6Tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=1cSDyRqs4/waFFpp4XK4bTohmPsgMHDek8V3s+9aWfY=; b=holpswY1366FrDjH0Eccy264KH7HEK1gdNulEzTGjSZDg2MyJris2LJQh0AwljwStu xp2yYSXFob7CrjhOG9KqoCfaIOx8gDk2wcJr1K0B2oog/ed8YSZhlewQ/G4pAgmZaDXF oX+x9PhIXf0fvDrsdr7vWMPHyfpWAFW39JAT/8PV8KRz4jgB9WxQ/+qHiaY+iIHV41xx VKGVeJTMcltmAGDiBWBP76Xg29qhTEfyP3tmm0R3VJecf8YwU13oj9SJdSo6FlgOqzuX GZDlxZVg8D7Tr01SW0lZ69R+BdsXjF3zdqAGeyC7HPJoJd0IcoVUsXT9jeHAeY9l/7/1 avMg== X-Gm-Message-State: AOAM530kOj2l+NT9Bmo2gAUGLoq0MY+P7TQmtSW14U9Z6lMbDrVHDZW3 LNCtA6zSknBRXe6oEe8Nnhinii29GzZu07tY0WPGog== X-Received: by 2002:a17:903:1241:b029:10f:ff8c:a3fe with SMTP id u1-20020a1709031241b029010fff8ca3femr14775019plh.13.1623080910612; Mon, 07 Jun 2021 08:48:30 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Tim Harvey Date: Mon, 7 Jun 2021 08:48:19 -0700 Message-ID: Subject: Re: [PATCH] TDA1997x: enable EDID support To: =?UTF-8?Q?Krzysztof_Ha=C5=82asa?= Cc: Hans Verkuil , Mauro Carvalho Chehab , linux-media , lkml Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 7, 2021 at 4:56 AM Krzysztof Ha=C5=82asa wrot= e: > > Hi Hans, > > Hans Verkuil writes: > > >> Without this patch, the TDA19971 chip's EDID is inactive. > > > > Was this wrong from the very beginning? How can this ever have been tes= ted > > without an EDID? > > It seems so. I suspect it might have worked in tests because this > register isn't cleared on reboot. I.e., setting it once after power up > makes it work to the next power up. > Or, maybe, the HDMI signal source didn't need EDID. > Krzysztof, Most likely it was that the HDMI signal source I tested with didn't need EDID. I primarily used a V-SG4K HMDI signal generator in my testing and development of the driver (http://www.marshall-usa.com/monitors/model/V-SG4K-HDI.php) which definitely doesn't need it. Other devices I tested with were another Gateworks board with HDMI out (which also didn't need EDID) and occasionally a 1st gen Google Chromecast and Amazon Fire stick (which I'm not sure about). > I'm looking at the previous version of this driver from Gateworks and it > contains: > > /* Configure EDID > * > * EDID_ENABLE bits: > * 7 - nack_off > * 6 - edid_only > * 1 - edid_b_en > * 0 - edid_a_en > */ > reg =3D io_read(REG_EDID_ENABLE); > if (!tda1997x->internal_edid) > reg &=3D ~0x83; /* EDID Nack ON */ > else > reg |=3D 0x83; /* EDID Nack OFF */ > io_write(REG_EDID_ENABLE, reg); > > Not sure what the "non-internal" EDID could be - a separate I2C EEPROM > chip? I'm using this on Gateworks' GW54xx boards and I can't see any > such EEPROM in the vicinity of the TDA19971, but I don't know how it is > wired - perhaps Tim has some idea? Not sure where the source above is from (this was all so long ago) but my guess is that 'internal_edid' meant an EDID had been provided via software and the else case meant there was no EDID available. There is no support on that chip for an external EEPROM. Tim