Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1340800ybf; Thu, 27 Feb 2020 09:07:32 -0800 (PST) X-Google-Smtp-Source: APXvYqyVy7CIpqDcI78kDqaXusVt3poGp1PCjXj1rW6BCjnBtrweixHDHDNOnwRO2J6uXZTyEUmQ X-Received: by 2002:a05:6808:319:: with SMTP id i25mr22374oie.128.1582823251991; Thu, 27 Feb 2020 09:07:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582823251; cv=none; d=google.com; s=arc-20160816; b=LlEgU2h8JRbhom7ZHEgmwqvOLh2tDuXBsYixwxGXrLmUrFf1bS5W2VELjx8mMod0cI X8yzbGPUYBwRQEl6okygXaLkVN9Ll2nGetr1E9XIYnmUxpuqvVyDPVkyDtlLKCNPOspr OBkmBlTy4z9QtfssMlyTTzhTFQ3CVOPfSIkAaZJjxjJL6I72dCFI6e9sQY7Rce7KeWw2 yjFvewZLeSr1DKTyNShTE8JrWeDMb8ZopzKBzD7Hy+ZoBMMQ73Z92hsQb+e8OJpxVhr2 SSNTFi95vhQ0b98b5YXJ5krY1zINC/+roRNWWtY9iczmJocJZO2k7mfHKAp6Z8q7Xdck esrg== 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:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=lPgcw1pPC2Uvej+dQsmU3RJlA1ZzgfCh2U1xcXB889Q=; b=qSUdZcb9nJGKvk3uye7/2JYGwivxL19+OjtOafQmeJDQkwaiGzMx5J4+kAtKtURPjD onDg7P960tgxaFQXtr27KGZBtORsfokhDBMqH9yEtAhmwbHa/Ub1DIxZK1ksf1kvUut1 WZBQPGx7srUmX5NekhfsytGCp05aZ+NuuS6slAuOj4fgjQFqhPG53YPVZvj9JGhbcYzL 8S8s2kn1CP4lIERaqV1gPBESGPwuVEnX7VEKNnxIAM0yDD3eq9XNd/JLwYysDPWDrWTI NtDJaqPrLqI8BRBhYlQbB+7ZxeDAR7pjd2iLvUQIHu5v8/2FrOvGF9WsCSDRxPr4kNFk ydEg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s188si163618oia.277.2020.02.27.09.07.18; Thu, 27 Feb 2020 09:07:31 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729336AbgB0RHD (ORCPT + 99 others); Thu, 27 Feb 2020 12:07:03 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:40094 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727211AbgB0RHD (ORCPT ); Thu, 27 Feb 2020 12:07:03 -0500 Received: from localhost (unknown [IPv6:2a01:e0a:2c:6930:5cf4:84a1:2763:fe0d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: bbrezillon) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id 68AEA296385; Thu, 27 Feb 2020 17:07:01 +0000 (GMT) Date: Thu, 27 Feb 2020 18:06:58 +0100 From: Boris Brezillon To: Mark Brown Cc: Geert Uytterhoeven , Mark Rutland , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , Vignesh Raghavendra , Tudor Ambarus , Richard Weinberger , Sekhar Nori , Linux Kernel Mailing List , linux-spi , Rob Herring , MTD Maling List , Miquel Raynal , Pratyush Yadav Subject: Re: [PATCH v2 01/11] dt-bindings: spi: allow expressing DTR capability Message-ID: <20200227180658.58633141@collabora.com> In-Reply-To: <20200227164425.GF4062@sirena.org.uk> References: <20200226093703.19765-1-p.yadav@ti.com> <20200226093703.19765-2-p.yadav@ti.com> <20200227171147.32cc6fcf@collabora.com> <20200227162842.GE4062@sirena.org.uk> <20200227164425.GF4062@sirena.org.uk> Organization: Collabora X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 27 Feb 2020 16:44:25 +0000 Mark Brown wrote: > On Thu, Feb 27, 2020 at 05:40:31PM +0100, Geert Uytterhoeven wrote: > > On Thu, Feb 27, 2020 at 5:28 PM Mark Brown wrote: > > > > It's what we do for other properties, and if this is anything like the > > > other things adding extra wiring you can't assume that the ability to > > > use the feature for TX implies RX. > > > Double Transfer Rate uses the same wire. > > But is it still on either the TX or RX signals? There's no separate RX/TX pins when using xD-xD-xD modes (pins switch from RX to TX) and I doubt DTR will ever be used on single SPI. > > > But as you sample at both the rising and the falling edges of the clock, this > > makes the cpha setting meaningless for such transfers, I think ;-) > > Might affect what the first bit is possibly? > > > However, as the future may bring us QDR, perhaps this should not be a > > boolean flag, but an integer value? > > Cfr. spi-tx-bus-width vs. the original spi-tx-dual/spi-tx-quad proposal. > > > What would be a good name (as we only need one)? spi-data-phases? > > Sounds reasonable, apart from the increasingly vague connection with > something that's recognizably SPI :P Or maybe we should refrain from adding a new flag and wait a bit to see if this DTR mode is actually used for regular SPI transfers (AKA not spi-mem) :-).