From patchwork Tue Sep 25 14:32:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 10614097 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E03E81390 for ; Tue, 25 Sep 2018 14:32:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D10B72A4D0 for ; Tue, 25 Sep 2018 14:32:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C4E0D2A4F2; Tue, 25 Sep 2018 14:32:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 33D262A4D0 for ; Tue, 25 Sep 2018 14:32:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729306AbeIYUkQ (ORCPT ); Tue, 25 Sep 2018 16:40:16 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:35846 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729199AbeIYUkP (ORCPT ); Tue, 25 Sep 2018 16:40:15 -0400 Received: by mail-lj1-f196.google.com with SMTP id p89-v6so5804365ljb.3 for ; Tue, 25 Sep 2018 07:32:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=U4y6ZtputpXJXWyhFUlFmPRAtoxRofEKwhSqArkgoLA=; b=WLm9bszrOwvsEjfs/3m34sOYZNZVbZyp2pnRx+zS1orGMnW3lV7JxktGgi0xrsDG+0 JpiDlwjK+/O4Ihh0+tZhMPU2YqIngeUBKSMzp7ywDLm2KeYRz1SRSD4BTZHmPAMj6v7l phEKWDI/T9578E8KlP+13sXTtJDvUcxuR10Kc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=U4y6ZtputpXJXWyhFUlFmPRAtoxRofEKwhSqArkgoLA=; b=cDP+zurUAMEFZiDH6Tnl0PChkAigVeOfHsqJ8gjHaCt/R+kznyzs8UNXY4jzKwCO9E tMvaL+Zb71CPPuNnFMnihHiv4tXgtWq3rxDa3xdpr0QWZLxMbv5LNDuR6mAWddoI/Fm+ TPI3MnlSUsfRGiftJvg2hvqEP/9bMc7u+csjbd9K6MgcB8Q0Q60hJqcfhH6r3yqZXoGa 7oFn2KANUbBkBIiJlxHrezRcKhA18afn1ENNre+jHWEfcQZKWam8B/TB6kz1WhLizgGG eSmjuLkeBrJobc5WyzWqgVCgeUycxzREtOIPSaFM35LNCJzS1LP6aL2OpKAifluMODkO cwQQ== X-Gm-Message-State: ABuFfohmhVPN2mAQBIp9edGZ9hv05r1nP4M4QNqYHLGkUFkbtjDQlH9L FAZa1+IW+MapXSFN2IUp2+y5ww== X-Google-Smtp-Source: ACcGV61JD9mUHRW4/RLz8NCe3kdz5MMbHz+dgEQaaqkcWwSX1HMPT5n4fHrpdcBS9c393MJ7t4tQlA== X-Received: by 2002:a2e:900a:: with SMTP id h10-v6mr1090723ljg.121.1537885947316; Tue, 25 Sep 2018 07:32:27 -0700 (PDT) Received: from localhost.bredbandsbolaget (c-ae7b71d5.014-348-6c756e10.bbcust.telenor.se. [213.113.123.174]) by smtp.gmail.com with ESMTPSA id d13-v6sm441020lfi.74.2018.09.25.07.32.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 25 Sep 2018 07:32:25 -0700 (PDT) From: Linus Walleij To: Mark Brown , linux-spi@vger.kernel.org, Andrzej Hajda , Lorenzo Bianconi Cc: linux-gpio@vger.kernel.org, Linus Walleij , devicetree@vger.kernel.org Subject: [PATCH 1/2] spi: Add a DT binding for high-impedance turn-around Date: Tue, 25 Sep 2018 16:32:19 +0200 Message-Id: <20180925143220.19007-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.17.1 Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Some 3WIRE SPI devices require the host to insert a "high-impedance turn-around" essentially a clock pulse after switching the one line from output to input. This is needed to support the TPO TPG110 panel to use the 3WIRE SPI bindings. Cc: devicetree@vger.kernel.org Cc: Andrzej Hajda Cc: Lorenzo Bianconi Signed-off-by: Linus Walleij --- ChangeLog v1->v2: - Change some spelling, instert dash in high-impedance use turn-around instead of turnaround. --- Documentation/devicetree/bindings/spi/spi-bus.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/spi/spi-bus.txt b/Documentation/devicetree/bindings/spi/spi-bus.txt index 1f6e86f787ef..d0b2d88a20ee 100644 --- a/Documentation/devicetree/bindings/spi/spi-bus.txt +++ b/Documentation/devicetree/bindings/spi/spi-bus.txt @@ -70,6 +70,10 @@ All slave nodes can contain the following optional properties: - spi-cs-high - Empty property indicating device requires chip select active high. - spi-3wire - Empty property indicating device requires 3-wire mode. +- spi-3wire-high-impedance-turn-around - Empty property indicating that a + 3wire host need to insert a high-impedance turn-around + clock cycle after turning the one output line into an + input line. - spi-lsb-first - Empty property indicating device requires LSB first mode. - spi-tx-bus-width - The bus width (number of data wires) that is used for MOSI. Defaults to 1 if not present.