* [PATCH 1/2] spi: Add a DT binding for high-impedance turn-around
@ 2018-09-25 14:32 Linus Walleij
2018-09-28 13:18 ` Mark Brown
0 siblings, 1 reply; 3+ messages in thread
From: Linus Walleij @ 2018-09-25 14:32 UTC (permalink / raw)
To: Mark Brown, linux-spi, Andrzej Hajda, Lorenzo Bianconi
Cc: linux-gpio, Linus Walleij, devicetree
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 <a.hajda@samsung.com>
Cc: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
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.
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 1/2] spi: Add a DT binding for high-impedance turn-around
2018-09-25 14:32 [PATCH 1/2] spi: Add a DT binding for high-impedance turn-around Linus Walleij
@ 2018-09-28 13:18 ` Mark Brown
2018-09-28 13:23 ` Linus Walleij
0 siblings, 1 reply; 3+ messages in thread
From: Mark Brown @ 2018-09-28 13:18 UTC (permalink / raw)
To: Linus Walleij
Cc: linux-spi, Andrzej Hajda, Lorenzo Bianconi, linux-gpio,
devicetree
[-- Attachment #1: Type: text/plain, Size: 724 bytes --]
On Tue, Sep 25, 2018 at 04:32:19PM +0200, Linus Walleij wrote:
> 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.
> +- 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.
Should this not be a flag set through the API rather than a DT property?
It doesn't look like something that's per system configurable but rather
something that the device is always going to need to do so every single
usage of the device is going to need this property.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 1/2] spi: Add a DT binding for high-impedance turn-around
2018-09-28 13:18 ` Mark Brown
@ 2018-09-28 13:23 ` Linus Walleij
0 siblings, 0 replies; 3+ messages in thread
From: Linus Walleij @ 2018-09-28 13:23 UTC (permalink / raw)
To: Mark Brown
Cc: linux-spi, Andrzej Hajda, Lorenzo Bianconi,
open list:GPIO SUBSYSTEM,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS
On Fri, Sep 28, 2018 at 3:18 PM Mark Brown <broonie@kernel.org> wrote:
> On Tue, Sep 25, 2018 at 04:32:19PM +0200, Linus Walleij wrote:
> > 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.
>
> > +- 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.
>
> Should this not be a flag set through the API rather than a DT property?
> It doesn't look like something that's per system configurable but rather
> something that the device is always going to need to do so every single
> usage of the device is going to need this property.
Good point. Let me take it for a spin using some flag inside Linux
instead and see if it looks better.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-09-28 19:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-25 14:32 [PATCH 1/2] spi: Add a DT binding for high-impedance turn-around Linus Walleij
2018-09-28 13:18 ` Mark Brown
2018-09-28 13:23 ` Linus Walleij
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).