Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1493934imu; Wed, 23 Jan 2019 18:54:05 -0800 (PST) X-Google-Smtp-Source: ALg8bN49THxXFogb3R2nai4/MBeSXA6p2Hh/7L0+9/T7QockKhF4KnGYh+Ubj88LwhmaMMbyhMBC X-Received: by 2002:a62:18ce:: with SMTP id 197mr4814957pfy.88.1548298445420; Wed, 23 Jan 2019 18:54:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548298445; cv=none; d=google.com; s=arc-20160816; b=GwAcugTWxYUkehabu6r3fZP0i/lzbNqReIQWcFmhXaPctjWY0wDPEpqmCJWvX1xSbF j9XALWl+oqzJyqYhVApcvRWn0iKabLMcw2W0S8P3icy51Hxd2Em7wWLfFcbgHuU/h5cg vuIX+UJ+qjQakPmJUfYp11rSoFgMm58sDP20NGYuXpD68eHRTY7A2x8zVyyQa7/4pHlS +H6zft6fCtM3Mg+h2UNYZHMv64kZJyipSQI52IyuS9ad5ekwy05J+XeTw/AYKyt7vzy+ QrD5yC+jqrJTZ5jPtP5slnq018kJGNQvPjSSQM5nNDFwjAdir4AXR+XCntGvHcGQaOaD 4fLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:cc:subject:message-id:date:from :mime-version:dkim-signature; bh=n6RtpWHA8V03ECowmNKLCRPul4C13va65Kvspu1U98s=; b=NLl/6pwF4I2HY3nGoRseiPLkXToSyPaxH95oLt60iP00k3VPfbKamEpZDR5++NZtb2 Of88rn9FHJ/D9PS1jksEx25GY57uVX0ou5so0S/r+IZvNNjT2lt9pvNBtX3BF1WekhEc MbzQl0lhBCFPRVQD6Z8G/bm+SMxqQZaAHA6/3I0ugzBjh1bI07swAnkv0O2JWn5fy6bE NvY9PttRe2CaB/b8Ln7InepKtU5xXmSV4tF7beGAgImGNbifIBcejaCXc6d2Dcot4U1Q VG4mOmWlWtvPjuilKyR4qg3FADRgX0ogjG1SuTt2NthTxuKWiCHMRS6ioaALTFl0corX 0P2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ohmlinxelectronics-com.20150623.gappssmtp.com header.s=20150623 header.b="sc/QcFSf"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b70si3362115pfe.168.2019.01.23.18.53.49; Wed, 23 Jan 2019 18:54:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=@ohmlinxelectronics-com.20150623.gappssmtp.com header.s=20150623 header.b="sc/QcFSf"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727222AbfAXCxn (ORCPT + 99 others); Wed, 23 Jan 2019 21:53:43 -0500 Received: from mail-lj1-f195.google.com ([209.85.208.195]:46752 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727151AbfAXCxn (ORCPT ); Wed, 23 Jan 2019 21:53:43 -0500 Received: by mail-lj1-f195.google.com with SMTP id v15-v6so3836506ljh.13 for ; Wed, 23 Jan 2019 18:53:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ohmlinxelectronics-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:cc; bh=n6RtpWHA8V03ECowmNKLCRPul4C13va65Kvspu1U98s=; b=sc/QcFSfgqJcCJepc6ZnfMzlKPlay3k7gx+JiAT+muAy+eSBAzjTpKL183EWVbdHID eM6/itBQDj5qTl/aE0HkIFKfCQUQEov6uByXHtcmsGLFoUYlfcDH4uCd32Orhzy8LTrm oQzDT7Y+QntQTGRqkzZOAdlT885HJ2Lt97SoqSk38W1NYcljUMhM7EB2d3Pk+n5VtYf7 C0v7Pk4RI2HbdRK09UHdLU+UoWtVCuc7VtASbFNddrl5Dl99DK4dTxaZrXTjpuIV3NMd 582wwmtT9U3uK2upzCf9Zx1ffNh9znHkZsi0OnXKHeRVHuOOzeVyY45FDyV7Jrqr+MMw FZ6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:cc; bh=n6RtpWHA8V03ECowmNKLCRPul4C13va65Kvspu1U98s=; b=gfGkPuLMG49QGyhPNR70krfAeH2O79ZelC6WvmgpwAiCyY5RRG5q+4HA1uljXM88g4 R615KhRMT3/gKjcs9ANeNRXYyoa7SNXckZJnp2Wtv0V1r6rZMC20aFtnOmA6vz6zKlTY kbi8OQbod3q6Q7nLWEx777ngyWBb/PLAQMROzW9ZPPIZgLCEwnNgVr3nsQen6FPuQOg3 XTr5sxrxqSVwYNmjGSeF6CEqdARxhwOngpDiuBjO6SJcDwLVJyeQYPds/ks/fH814ww8 GtuslxxmgnQk7GE2GQG808OMjH4QgJaSqMfleLVdKIQY5F94uOB6TZy+uVwwKLhh9Cbt lvMQ== X-Gm-Message-State: AJcUukcFTt4RvDoDUHwTy66jb60ubD70G1uyCCrzcwz5huhNpxRu/2GN BIRxQ8Da9JesPmze5JQr43U5EsKA5AQIHLAOB3bLBA== X-Received: by 2002:a2e:6595:: with SMTP id e21-v6mt2825531ljf.123.1548298421079; Wed, 23 Jan 2019 18:53:41 -0800 (PST) MIME-Version: 1.0 From: Ken Sloat Date: Wed, 23 Jan 2019 21:53:30 -0500 Message-ID: Subject: devicetree: media: Documentation of Bt.656 Bus DT bindings Cc: Ken Sloat , linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, yong.deng@magewell.com, mchehab@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, maxime.ripard@bootlin.com, wens@csie.org, kieran.bingham@ideasonboard.com, laurent.pinchart@ideasonboard.com, jean-michel.hautbois@vodalys.com, Nate Drude Content-Type: text/plain; charset="UTF-8" To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There are a number of v4l2 subdevices in the kernel that support a Bt.656 bus also known as "embedded sync." Previously in older versions of the kernel (and in the current 4.14 LTS kernel), the standard way to enable this in device tree on a parallel bus was to simply omit all hysync and vsync flags. During some other kernel development I was doing, it was brought to my attention that there is now a standard defined binding in "video-interfaces.txt" called "bus-type" that should be used in order to enable Bt.656 mode. While omitting the flags still appears to work because of other assumptions made in v4l2-fwnode driver, this method is now outdated and improper. However, I have noticed that several dt binding docs have not been updated to reflect this change and still reference the old method: Documentation/devicetree/bindings/media/sun6i-csi.txt /* If hsync-active/vsync-active are missing, embedded BT.656 sync is used */ Documentation/devicetree/bindings/media/i2c/tvp5150.txt "If none of hsync-active, vsync-active and field-even-active is specified, the endpoint is assumed to use embedded BT.656 synchronization." Documentation/devicetree/bindings/media/i2c/adv7604.txt "If none of hsync-active, vsync-active and pclk-sample is specified the endpoint will use embedded BT.656 synchronization." and amazingly even Documentation/devicetree/bindings/media/video-interfaces.txt in one of the code snippets /* If hsync-active/vsync-active are missing, embedded BT.656 sync is used */ In order to avoid future confusion in the matter and ensure that the proper bindings are used, I am proposing submitting patches to update these docs to at minimum remove these statements and maybe even adding additional comments specifying the optional property and value for Bt.656 where missing. I wanted to open a discussion here first before doing this though. Thoughts? Thanks, Ken Sloat