Message ID | 2a7c51b6e619c02ec175a5c219b0a0fd7a24499d.1701267411.git.mehdi.djait@bootlin.com |
---|---|
State | Not Applicable |
Headers | show |
Series | drm/tiny: Add driver for the sharp LS027B7DH01 Memory LCD | expand |
Context | Check | Description |
---|---|---|
robh/checkpatch | success | |
robh/patch-applied | success | |
robh/dtbs-check | warning | build log |
robh/dt-meta-schema | success |
On 29/11/2023 15:29, Mehdi Djait wrote: > + pwms: > + maxItems: 1 > + description: External COM inversion signal > + > +required: > + - compatible > + - reg > + - spi-lsb-first > + - enable-gpios > + > +additionalProperties: false > + > +examples: > + - | > + #include <dt-bindings/gpio/gpio.h> > + > + spi { > + #address-cells = <1>; If there is going to be new version, then: Use 4 spaces for example indentation. Anyway: Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> --- This is an automated instruction, just in case, because many review tags are being ignored. If you know the process, you can skip it (please do not feel offended by me posting it here - no bad intentions intended). If you do not know the process, here is a short explanation: Please add Acked-by/Reviewed-by/Tested-by tags when posting new versions, under or above your Signed-off-by tag. Tag is "received", when provided in a message replied to you on the mailing list. Tools like b4 can help here. However, there's no need to repost patches *only* to add the tags. The upstream maintainer will do that for tags received on the version they apply. https://elixir.bootlin.com/linux/v6.5-rc3/source/Documentation/process/submitting-patches.rst#L577 Best regards, Krzysztof
diff --git a/Documentation/devicetree/bindings/display/sharp,ls027b7dh01.yaml b/Documentation/devicetree/bindings/display/sharp,ls027b7dh01.yaml new file mode 100644 index 000000000000..d0a4efae2827 --- /dev/null +++ b/Documentation/devicetree/bindings/display/sharp,ls027b7dh01.yaml @@ -0,0 +1,71 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/sharp,ls027b7dh01.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Sharp LS027B7DH01 Memory LCD Display + +maintainers: + - Mehdi Djait <mehdi.djait@bootlin.com> + +description: + The Sharp LS027B7DH01 is a 2.7" 400x240 monochrome display connected over a + SPI bus. The display requires an alternating signal to prevent the buildup of + a DC bias that will stop any update. Two modes can be used for the generation + of this signal Software by writing to the display or Hardware by supplying the + External COM inversion signal. + +allOf: + - $ref: panel/panel-common.yaml# + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +properties: + compatible: + const: sharp,ls027b7dh01 + + reg: + maxItems: 1 + + spi-cs-high: true + + spi-lsb-first: true + + spi-max-frequency: + maximum: 2000000 + + enable-gpios: + maxItems: 1 + + pwms: + maxItems: 1 + description: External COM inversion signal + +required: + - compatible + - reg + - spi-lsb-first + - enable-gpios + +additionalProperties: false + +examples: + - | + #include <dt-bindings/gpio/gpio.h> + + spi { + #address-cells = <1>; + #size-cells = <0>; + + display@0{ + compatible = "sharp,ls027b7dh01"; + reg = <0>; + spi-cs-high; + spi-lsb-first; + spi-max-frequency = <2000000>; + enable-gpios = <&gpiof 3 GPIO_ACTIVE_HIGH>; + pwms = <&pwm 1 1000000000 0>; + }; + }; + +...
Add device tree bindings for the Sharp LS027B7DH01: a 2.7" 400x240 monochrome display connected over SPI. Signed-off-by: Mehdi Djait <mehdi.djait@bootlin.com> --- .../bindings/display/sharp,ls027b7dh01.yaml | 71 +++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/sharp,ls027b7dh01.yaml