Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1710833ybc; Wed, 13 Nov 2019 03:11:07 -0800 (PST) X-Google-Smtp-Source: APXvYqxfcsuK0bvlLp8FcAqzJKMB3GWabBwFTiasUX4rBqvWVXIh7K9HeKcwUg29Skz7aUKI7VTu X-Received: by 2002:aa7:d344:: with SMTP id m4mr2875120edr.270.1573643467377; Wed, 13 Nov 2019 03:11:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573643467; cv=none; d=google.com; s=arc-20160816; b=UfMYz7XzArAUEctobOa63fjvkBbeD4eeQNT1FPOsk5eABrbqYz7q2jZr0XshhJU+Wg 7tJfDIMmqP+J2pjQdqPIrgz2Xckid8RHtqUSlUkcGUdQeTPPfKOFB+bkXgjnZdWNC0MI nE6XqRuDik6ouEemnpZjr++Dwi8JVS+Ld82HTrB+31++iwXaTt6/VLaqaS3gcddkn4nN HZReSaIjJ37G43fabFEyYmyJkZM+gFC5SW5J9/VyeE/8iJ+YrUOTTdliqpCVJ+RuwnFx NtoUBCiGTi2hx2YIOUNnQcHdRkvPqesc5SxFhryojCFW/naKfGTO629o+9MSQARnydkK 0NdA== 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:dkim-signature; bh=9wU6KxqnR0Kw42lkPxAxiBvKKDA/fl3xWaNuzyFDdRA=; b=VVxpKIdl8ISggzZx1kwiVcenciqYR89V6hUocfvStaMz2eYJar1FgCvGvJH/h0N/OH EeEKTUGg7vfnbHmh6wlir0xXWLWOfBy2PWlUrDYMab03c688aOjjZAJoVD5/qA7dAKfm eGDrygXJqPuvtLOht7KX3rktGweeT4iWa1pMjbKbhGunth4k3TNnkBMEUUpRQ+8mQBdb EfmKlSGjyliTVIDiSY1p5YudKFmEP4y1kWWsW2FufAXCM+3Zk/c/JtY3UrA5mwLQSB9V blCFW5OI4oOLooMqFPvQB4ENTDXh3sZCB9N9/4T4+P5btKAhSGlh5DhTidc8ZmYb7sga AK+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ysoft.com header.s=20160406-ysoft-com header.b=q7O49WJ9; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ysoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z15si868254eju.310.2019.11.13.03.10.42; Wed, 13 Nov 2019 03:11:07 -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 (test mode) header.i=@ysoft.com header.s=20160406-ysoft-com header.b=q7O49WJ9; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=ysoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727641AbfKMLJr (ORCPT + 99 others); Wed, 13 Nov 2019 06:09:47 -0500 Received: from uho.ysoft.cz ([81.19.3.130]:42176 "EHLO uho.ysoft.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726339AbfKMLJr (ORCPT ); Wed, 13 Nov 2019 06:09:47 -0500 Received: from [10.1.8.111] (unknown [10.1.8.111]) by uho.ysoft.cz (Postfix) with ESMTP id F3E16A36F6; Wed, 13 Nov 2019 12:09:43 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ysoft.com; s=20160406-ysoft-com; t=1573643384; bh=9wU6KxqnR0Kw42lkPxAxiBvKKDA/fl3xWaNuzyFDdRA=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=q7O49WJ9UPTuSY8FWNuY1DbYfGo+E3Td6y5HLBlXCQo6DkcVhhXmEapuYzX4hLyr8 E38aa7uBq8U5sRsYzpw0LKlNZLV9T8fM+6j1DbX5CS2Xt/ixvEdkEKOKz3jzfOU7bs oC3A+0dKkyyLxPEl0mX8opeUKNjgUyEI1+eD4YD0= Subject: Re: [PATCH 3/5] iio: ping: add parallax ping sensors To: Jonathan Cameron , Andreas Klinger Cc: robh+dt@kernel.org, mark.rutland@arm.com, mripard@kernel.org, shawnguo@kernel.org, heiko@sntech.de, icenowy@aosc.io, laurent.pinchart@ideasonboard.com, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, gregkh@linuxfoundation.org, christophe.jaillet@wanadoo.fr, tglx@linutronix.de, mchehab+samsung@kernel.org, davem@davemloft.net, paulmck@linux.ibm.com, devicetree@vger.kernel.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org References: <20191107130045.rt3ix2atyjd3gekr@arbad> <20191110170650.00527b8b@archlinux> From: =?UTF-8?B?TWljaGFsIFZva8OhxI0=?= Message-ID: <196ba1f0-9d9f-9f46-c86e-2c41a7835c59@ysoft.com> Date: Wed, 13 Nov 2019 12:09:43 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20191110170650.00527b8b@archlinux> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10. 11. 19 18:06, Jonathan Cameron wrote: > On Thu, 7 Nov 2019 14:00:47 +0100 > Andreas Klinger wrote: [snip] >> + * >> + * +---+ +------------------------+ >> + * GPIO | | | | >> + * ping: --+ +------------+ +---------------- >> + * ^ ^ ^ ^ >> + * |<->| interrupt interrupt >> + * udelay(5) (ts_rising) (ts_falling) >> + * |<---------------------->| >> + * . pulse time measured >> + * . --> one round trip of ultra sonic waves >> + * . . >> + * ultra +-+ +-+ +-+ . >> + * sonic | | | | | | . >> + * burst: ---------+ +-+ +-+ +----------------------------------------- >> + * . >> + * ultra +-+ +-+ +-+ >> + * sonic | | | | | | >> + * echo: ----------------------------------+ +-+ +-+ +---------------- > > Nice diagram ;) Using the '+' characters at the edges and '-' characters for levels makes it not easily readable in some cases. Especially for the short subsequent bursts. What about this? * GPIO ___ ________________________ * ping: __/ \____________/ \_________________ * ^ ^ ^ ^ * |<->| interrupt interrupt * udelay(5) (ts_rising) (ts_falling) * |<---------------------->| * . pulse time measured * . --> one round trip of ultra sonic waves * . . * ultra . . * sonic _ _ _. . * burst: ________/ \_/ \_/ \_________________________________________ * . * ultra . * sonic _ _ _. * echo: _________________________________/ \_/ \_/ \_________________ */ Michal