Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp4952519imd; Tue, 30 Oct 2018 09:45:05 -0700 (PDT) X-Google-Smtp-Source: AJdET5c7V+OiybThues+8nmD9O5p791h4J99tHzJuX9mgsP06axzc+nH9KFv0gWd7kz6P13582hn X-Received: by 2002:a63:ce14:: with SMTP id y20-v6mr19158904pgf.248.1540917905505; Tue, 30 Oct 2018 09:45:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540917905; cv=none; d=google.com; s=arc-20160816; b=tclHkYL6ua+Yg4XvWqI1nlEQqmL3f10NqsUXhLROCB06Yy6RElzpnaVF0YaHhtH/d/ oP3PUcro7tCMM8Izhj6AhNLZXEMZRju6V97YmGSJUwo10QITz8Qp8FlOQkf4PS9qrTHQ /qQqCd6t31RFcJMTHbajy8U7N0Od9ZeqQXvWYLi3Xh7x5ef/xxUNf7L4JcrJF7parVT9 jPWEvMH7KfweGwRTfWsdnAxz/8ZVA6x4iL3mkPYLZ5JzX866TDnVn+LxfrU/3FLnOapj PYOfFAfy9OR0Gr0LoOARZVg1EMZM8JpFGQO77rMaY97gDBs0WuS4sImFa7YxVy1vZ020 dm0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=JoPrjYME7IT8DCRZmqFIS+wzO2/L+O5KvbOsP1TiNSk=; b=esFTv5tpNjvrz59H4SbqQXCed/19ftkB4NU1ieZ0R4sgChMa3rFvNf6QJ/kHCAu/gB E3IZABj9HSElKVXBH9jEeMtOedVTdvngiuBFPl9vyuqDiPtY9PG5xdm1DbKlj6VtFXBr CD/5ms0tvN26NRIqLsW3PPo1ReS8PXM4e4Qkdf4+DuzoOsLMTETbdGTLyKCdXXY9Z4zD TqWdUtlkFPrJxtUhi1toGxt1QDw4D3juuZMO/31agxp3nhYhPy7LSKRQO7oUREV10FJT ozcvwK7L97oe1/IR3MlSINsbHnuI3PT4H+mVMm4JQ8jP+U8YN7BlU2YaO/Fbybgrch0z 0MZg== ARC-Authentication-Results: i=1; mx.google.com; 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 a16-v6si17708241plm.3.2018.10.30.09.44.50; Tue, 30 Oct 2018 09:45:05 -0700 (PDT) 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; 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 S1727848AbeJaBiW (ORCPT + 99 others); Tue, 30 Oct 2018 21:38:22 -0400 Received: from srv-hp10-72.netsons.net ([94.141.22.72]:60336 "EHLO srv-hp10-72.netsons.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727429AbeJaBiW (ORCPT ); Tue, 30 Oct 2018 21:38:22 -0400 Received: from [109.168.11.45] (port=36336 helo=[192.168.101.125]) by srv-hp10.netsons.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.91) (envelope-from ) id 1gHX7d-00ASxm-5V; Tue, 30 Oct 2018 17:44:05 +0100 Subject: Re: [PATCH 3/7] dt-bindings: pinctrl: ds90ux9xx: add description of TI DS90Ux9xx pinmux To: Laurent Pinchart , Vladimir Zapolskiy Cc: Vladimir Zapolskiy , Lee Jones , Linus Walleij , Rob Herring , Marek Vasut , Wolfram Sang , devicetree@vger.kernel.org, linux-gpio@vger.kernel.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org References: <20181008211205.2900-1-vz@mleia.com> <8675619.KiXOS7fxCj@avalon> <9bd129b4-ce18-b036-9376-2cb1cb76aaf2@mentor.com> <2595665.eknevzee7a@avalon> From: Luca Ceresoli Message-ID: <3bfa5338-16a0-f9e2-2c82-70af12e25fb1@lucaceresoli.net> Date: Tue, 30 Oct 2018 17:44:06 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <2595665.eknevzee7a@avalon> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - srv-hp10.netsons.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lucaceresoli.net X-Get-Message-Sender-Via: srv-hp10.netsons.net: authenticated_id: luca@lucaceresoli.net X-Authenticated-Sender: srv-hp10.netsons.net: luca@lucaceresoli.net X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Vladimir, On 16/10/18 14:48, Laurent Pinchart wrote: > Hi Vladimir, > > On Saturday, 13 October 2018 16:47:48 EEST Vladimir Zapolskiy wrote: >> On 10/12/2018 03:01 PM, Laurent Pinchart wrote: >>> On Tuesday, 9 October 2018 00:12:01 EEST Vladimir Zapolskiy wrote: >>>> From: Vladimir Zapolskiy >>>> >>>> TI DS90Ux9xx de-/serializers have a capability to multiplex pin >>>> functions, in particular a pin may have selectable functions of GPIO, >>>> GPIO line transmitter, one of I2S lines, one of RGB24 video signal lines >>>> and so on. >>>> >>>> The change adds a description of DS90Ux9xx pin multiplexers and GPIO >>>> controllers. >>>> >>>> Signed-off-by: Vladimir Zapolskiy [...] >>>> +Available pins, groups and functions (reference to device datasheets): >>>> + >>>> +function: "gpio" ("gpio4" is on DS90Ux925 and DS90Ux926 only, >>>> + "gpio9" is on DS90Ux940 only) >>>> + - pins: "gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6", >>>> + "gpio7", "gpio8", "gpio9" >>>> + >>>> +function: "gpio-remote" >>>> + - pins: "gpio0", "gpio1", "gpio2", "gpio3" >>>> + >>>> +function: "pass" (DS90Ux940 specific only) >>>> + - pins: "gpio0", "gpio3" >>> >>> What do those functions mean ? >> >> "gpio" function should be already familiar to you. > > I assume this function is only available for the local device, not the remote > one ? > >> "gpio-remote" function is the pin function for a GPIO line bridging. >> >> "pass" function sets a pin to a status pin function for detecting >> display timing issues, namely DE or Vsync length value mismatch. > > All this is not clear at all from the proposed DT bindings, it should be > properly documented. It's not clear to me as well. The "gpio-remote" can mean two different things (at least in the camera serdes TI chips): - a GPIO input on the the *local* chip, replicated as an output on the *remote* chip - a GPIO input on the the *remote* chip, replicated as an output on the *local* chip How to you differentiate them in DT? The "pass" function is also not clear. A comprehensive example would help a lot. Bye, -- Luca