Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752357AbdLLMSs (ORCPT ); Tue, 12 Dec 2017 07:18:48 -0500 Received: from lb2-smtp-cloud8.xs4all.net ([194.109.24.25]:59261 "EHLO lb2-smtp-cloud8.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752126AbdLLMSm (ORCPT ); Tue, 12 Dec 2017 07:18:42 -0500 From: Hans Verkuil Subject: Re: [PATCH 3/5] media: i2c: Add TDA1997x HDMI receiver driver To: Rob Herring , Tim Harvey References: <1510253136-14153-1-git-send-email-tharvey@gateworks.com> <1510253136-14153-4-git-send-email-tharvey@gateworks.com> <20171115155204.yhqjocdm32qunllx@rob-hp-laptop> <20171116043059.azaqjfbjeo4rlaon@rob-hp-laptop> Cc: linux-media , alsa-devel@alsa-project.org, "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Shawn Guo , Steve Longerbeam , Philipp Zabel , Hans Verkuil , Mauro Carvalho Chehab Message-ID: Date: Tue, 12 Dec 2017 13:18:37 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: <20171116043059.azaqjfbjeo4rlaon@rob-hp-laptop> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfHpHTi4ZUpSFWLpjy1dsqT0xOaisGV1gw/epWafUKM80J/GShG4iPjLK/s7i8v1Av3yhzOF4BifkhZjzE2y7viFicRdKCKFD1ZkWRq8PdOJybZ7uHzJa OGozPSkrAc70sGEepxby4FwgkM7xJXIenaMppphO9vq7rFforuCyVvQEROl7zB+ruaqO9C4aM0t7nVFm3bXOtE0+pWuT7s2TCYRCLR5BcQvBo8sCoRgil+up IZiE2B7xuP1SHJ+hmIfX6fZyoGljk/kWgygIJprMu0LcZQB3V+KLOJ+lMscvPEJxEypRPW/SNpb96VJy3VkUoZJhTbZKxhzp27KzuOtiIPypmq7KFxHI85RU V/wsrt1DFfQ/SHN/2Kx6oACpWUEKvmjm4woEiLc6vtGF7naxqCS0vTUXfBcoKg8MHNVW8bG3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3732 Lines: 94 Hi Tim, Sorry for the delay, I needed to find some time to think about this. On 11/16/17 05:30, Rob Herring wrote: > On Wed, Nov 15, 2017 at 10:31:14AM -0800, Tim Harvey wrote: >> On Wed, Nov 15, 2017 at 7:52 AM, Rob Herring wrote: >>> On Thu, Nov 09, 2017 at 10:45:34AM -0800, Tim Harvey wrote: >>>> Add support for the TDA1997x HDMI receivers. >>>> >>>> Cc: Hans Verkuil >>>> Signed-off-by: Tim Harvey >>>> --- >>>> v3: >>>> - use V4L2_DV_BT_FRAME_WIDTH/HEIGHT macros >>>> - fixed missing break >>>> - use only hdmi_infoframe_log for infoframe logging >>>> - simplify tda1997x_s_stream error handling >>>> - add delayed work proc to handle hotplug enable/disable >>>> - fix set_edid (disable HPD before writing, enable after) >>>> - remove enabling edid by default >>>> - initialize timings >>>> - take quant range into account in colorspace conversion >>>> - remove vendor/product tracking (we provide this in log_status via infoframes) >>>> - add v4l_controls >>>> - add more detail to log_status >>>> - calculate vhref generator timings >>>> - timing detection fixes (rounding errors, hswidth errors) >>>> - rename configure_input/configure_conv functions >>>> >>>> v2: >>>> - implement dv timings enum/cap >>>> - remove deprecated g_mbus_config op >>>> - fix dv_query_timings >>>> - add EDID get/set handling >>>> - remove max-pixel-rate support >>>> - add audio codec DAI support >>>> - change audio bindings >>>> --- >>>> drivers/media/i2c/Kconfig | 9 + >>>> drivers/media/i2c/Makefile | 1 + >>>> drivers/media/i2c/tda1997x.c | 3485 ++++++++++++++++++++++++++++++++++ >>>> include/dt-bindings/media/tda1997x.h | 78 + >>> >>> This belongs with the binding documentation patch. >>> >> >> Rob, >> >> Thanks - missed that. I will move it for v4. >> >> Regarding your previous comment to the v2 series: >>> The rest of the binding looks fine, but I have some reservations about >>> this. I think this should be common probably. There's been a few >>> bindings for display recently that deal with the interface format. Maybe >>> some vendor property is needed here to map a standard interface format >>> back to pin configuration. >> >> I take it this is not an 'Ack' for the bindings? >> >> Which did you feel should be made common? I admit I was surprised >> there wasn't a common binding for audio bus format (i2s|spdif) but if >> you were referring to the video data that would probably be much more >> complicated. > > The video data. Either you have to try to come up with some way to map > color components to signals/pins (and even cycles) or you just enumerate > the formats and keep adding to them when new ones appear. There's h/w > that allows the former, but in the end you have to interoperate, so > enumerating the formats is probably enough. > >> I was hoping one of the media/driver maintainers would respond to your >> comment with thoughts as I'm not familiar with a very wide variety of >> receivers. > > I am hoping, too. I don't think it is right to store this in the DT. How you map the output pins is a driver thing. So when you are requested to enumerate the mediabus formats (include/uapi/linux/media-bus-format.h) you support, you do so based on the capabilities of the hardware, and when a format is requested you program the hardware accordingly. The device tree should describe the physical characteristics like the number of pins that are hooked up (i.e. are there 24, 30 or 36 pins connected). These vidout-portcfg mappings do not appear to describe physical properties but really register settings. Apologies if I misunderstood any of this. Regards, Hans