Re: [PATCH 1/6] dt-bindings: panel: explicitly list SPI CPHA and CPOL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: Re: [PATCH 1/6] dt-bindings: panel: explicitly list SPI CPHA and CPOL
- From: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxx>
- Date: Fri, 22 Jul 2022 20:37:49 +0200
- Cc: Thierry Reding <thierry.reding@xxxxxxxxx>, Sam Ravnborg <sam@xxxxxxxxxxxx>, David Airlie <airlied@xxxxxxxx>, Daniel Vetter <daniel@xxxxxxxx>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@xxxxxxxxxx>, Linus Walleij <linus.walleij@xxxxxxxxxx>, Markuss Broks <markuss.broks@xxxxxxxxx>, Lars-Peter Clausen <lars@xxxxxxxxxx>, Michael Hennerich <Michael.Hennerich@xxxxxxxxxx>, Jonathan Cameron <jic23@xxxxxxxxxx>, Alexandru Tachici <alexandru.tachici@xxxxxxxxxx>, Marcelo Schmitt <marcelo.schmitt1@xxxxxxxxx>, Tomislav Denis <tomislav.denis@xxxxxxx>, Cosmin Tanislav <cosmin.tanislav@xxxxxxxxxx>, Nishant Malpani <nish.malpani25@xxxxxxxxx>, Dragos Bogdan <dragos.bogdan@xxxxxxxxxx>, Nuno Sa <nuno.sa@xxxxxxxxxx>, Jean-Baptiste Maneyrol <jmaneyrol@xxxxxxxxxxxxxx>, "David S. Miller" <davem@xxxxxxxxxxxxx>, Eric Dumazet <edumazet@xxxxxxxxxx>, Jakub Kicinski <kuba@xxxxxxxxxx>, Paolo Abeni <pabeni@xxxxxxxxxx>, Mark Brown <broonie@xxxxxxxxxx>, Tomi Valkeinen <tomi.valkeinen@xxxxxx>, Andrzej Hajda <andrzej.hajda@xxxxxxxxx>, Maxime Ripard <mripard@xxxxxxxxxx>, Marek Belisko <marek@xxxxxxxxxxxxx>, "H. Nikolaus Schaller" <hns@xxxxxxxxxxxxx>, Christian Eggers <ceggers@xxxxxxx>, Beniamin Bia <beniamin.bia@xxxxxxxxxx>, Stefan Popa <stefan.popa@xxxxxxxxxx>, Oskar Andero <oskar.andero@xxxxxxxxx>, Mårten Lindahl <martenli@xxxxxxxx>, Dan Murphy <dmurphy@xxxxxx>, Sean Nyekjaer <sean@xxxxxxxxxx>, Cristian Pop <cristian.pop@xxxxxxxxxx>, Lukas Wunner <lukas@xxxxxxxxx>, Matt Ranostay <matt.ranostay@xxxxxxxxxxxx>, Matheus Tavares <matheus.bernardino@xxxxxx>, Sankar Velliangiri <navin@xxxxxxxxxxx>, Lubomir Rintel <lkundrak@xxxxx>, Stefan Wahren <stefan.wahren@xxxxxxxxxxx>, Pratyush Yadav <p.yadav@xxxxxx>, dri-devel@xxxxxxxxxxxxxxxxxxxxx, devicetree@xxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, linux-iio@xxxxxxxxxxxxxxx, linux-fbdev@xxxxxxxxxxxxxxx, netdev@xxxxxxxxxxxxxxx, linux-spi@xxxxxxxxxxxxxxx
- In-reply-to: <20220721193004.GA1783390-robh@kernel.org>
- References: <20220721153155.245336-1-krzysztof.kozlowski@linaro.org> <20220721153155.245336-2-krzysztof.kozlowski@linaro.org> <20220721193004.GA1783390-robh@kernel.org>
- User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0
On 21/07/2022 21:30, Rob Herring wrote:
> On Thu, Jul 21, 2022 at 05:31:50PM +0200, Krzysztof Kozlowski wrote:
>> The spi-cpha and spi-cpol properties are device specific and should be
>> accepted only if device really needs them. Explicitly list them in
>> device bindings in preparation of their removal from generic
>> spi-peripheral-props.yaml schema.
>>
>> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxx>
>> ---
>> .../bindings/display/panel/lgphilips,lb035q02.yaml | 10 ++++++++++
>> .../bindings/display/panel/samsung,ld9040.yaml | 10 ++++++++++
>> .../bindings/display/panel/samsung,lms380kf01.yaml | 12 +++++++++---
>> .../bindings/display/panel/samsung,lms397kf04.yaml | 12 +++++++++---
>> .../bindings/display/panel/samsung,s6d27a1.yaml | 12 +++++++++---
>> .../bindings/display/panel/sitronix,st7789v.yaml | 10 ++++++++++
>> .../devicetree/bindings/display/panel/tpo,td.yaml | 10 ++++++++++
>> 7 files changed, 67 insertions(+), 9 deletions(-)
>>
>> diff --git a/Documentation/devicetree/bindings/display/panel/lgphilips,lb035q02.yaml b/Documentation/devicetree/bindings/display/panel/lgphilips,lb035q02.yaml
>> index 5e4e0e552c2f..0bd7bbad5b94 100644
>> --- a/Documentation/devicetree/bindings/display/panel/lgphilips,lb035q02.yaml
>> +++ b/Documentation/devicetree/bindings/display/panel/lgphilips,lb035q02.yaml
>> @@ -21,6 +21,16 @@ properties:
>> enable-gpios: true
>> port: true
>>
>> + spi-cpha:
>> + type: boolean
>> + description:
>> + The device requires shifted clock phase (CPHA) mode.
>> +
>> + spi-cpol:
>> + type: boolean
>> + description:
>> + The device requires inverse clock polarity (CPOL) mode.
>
> Not great duplicating the type and description everywhere.
>
> We can move the definition back to spi-controller.yaml, so then that
> does type checking of the property, but not presence/absence checks.
If I understand correctly, all client devices (which do no reference
spi-controller) will need to explicitly mention CPHA/CPOL. Good idea.
Best regards,
Krzysztof
[Index of Archives]
[Linux Kernel]
[Linux ARM (vger)]
[Linux ARM MSM]
[Linux Omap]
[Linux Arm]
[Linux Tegra]
[Fedora ARM]
[Linux for Samsung SOC]
[eCos]
[Linux Fastboot]
[Gcc Help]
[Git]
[DCCP]
[IETF Announce]
[Security]
[Linux MIPS]
[Yosemite Campsites]
|