1*5f62a964SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2*5f62a964SEmmanuel Vadot%YAML 1.2 3*5f62a964SEmmanuel Vadot--- 4*5f62a964SEmmanuel Vadot$id: http://devicetree.org/schemas/display/sharp,ls010b7dh04.yaml# 5*5f62a964SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*5f62a964SEmmanuel Vadot 7*5f62a964SEmmanuel Vadottitle: Sharp Memory LCD panels 8*5f62a964SEmmanuel Vadot 9*5f62a964SEmmanuel Vadotmaintainers: 10*5f62a964SEmmanuel Vadot - Alex Lanzano <lanzano.alex@gmail.com> 11*5f62a964SEmmanuel Vadot 12*5f62a964SEmmanuel Vadotdescription: 13*5f62a964SEmmanuel Vadot Sharp Memory LCDs are a series of monochrome displays that operate over 14*5f62a964SEmmanuel Vadot a SPI bus. The displays require a signal (VCOM) to be generated to prevent 15*5f62a964SEmmanuel Vadot DC bias build up resulting in pixels being unable to change. Three modes 16*5f62a964SEmmanuel Vadot can be used to provide the VCOM signal ("software", "external", "pwm"). 17*5f62a964SEmmanuel Vadot 18*5f62a964SEmmanuel Vadotproperties: 19*5f62a964SEmmanuel Vadot compatible: 20*5f62a964SEmmanuel Vadot enum: 21*5f62a964SEmmanuel Vadot - sharp,ls010b7dh04 22*5f62a964SEmmanuel Vadot - sharp,ls011b7dh03 23*5f62a964SEmmanuel Vadot - sharp,ls012b7dd01 24*5f62a964SEmmanuel Vadot - sharp,ls013b7dh03 25*5f62a964SEmmanuel Vadot - sharp,ls013b7dh05 26*5f62a964SEmmanuel Vadot - sharp,ls018b7dh02 27*5f62a964SEmmanuel Vadot - sharp,ls027b7dh01 28*5f62a964SEmmanuel Vadot - sharp,ls027b7dh01a 29*5f62a964SEmmanuel Vadot - sharp,ls032b7dd02 30*5f62a964SEmmanuel Vadot - sharp,ls044q7dh01 31*5f62a964SEmmanuel Vadot 32*5f62a964SEmmanuel Vadot reg: 33*5f62a964SEmmanuel Vadot maxItems: 1 34*5f62a964SEmmanuel Vadot 35*5f62a964SEmmanuel Vadot spi-max-frequency: 36*5f62a964SEmmanuel Vadot maximum: 2000000 37*5f62a964SEmmanuel Vadot 38*5f62a964SEmmanuel Vadot sharp,vcom-mode: 39*5f62a964SEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/string 40*5f62a964SEmmanuel Vadot description: | 41*5f62a964SEmmanuel Vadot software - This mode relies on a software operation to send a 42*5f62a964SEmmanuel Vadot "maintain display" message to the display, toggling the vcom 43*5f62a964SEmmanuel Vadot bit on and off with each message 44*5f62a964SEmmanuel Vadot 45*5f62a964SEmmanuel Vadot external - This mode relies on an external clock to generate 46*5f62a964SEmmanuel Vadot the signal on the EXTCOMM pin 47*5f62a964SEmmanuel Vadot 48*5f62a964SEmmanuel Vadot pwm - This mode relies on a pwm device to generate the signal 49*5f62a964SEmmanuel Vadot on the EXTCOMM pin 50*5f62a964SEmmanuel Vadot 51*5f62a964SEmmanuel Vadot enum: [software, external, pwm] 52*5f62a964SEmmanuel Vadot 53*5f62a964SEmmanuel Vadot enable-gpios: true 54*5f62a964SEmmanuel Vadot 55*5f62a964SEmmanuel Vadot pwms: 56*5f62a964SEmmanuel Vadot maxItems: 1 57*5f62a964SEmmanuel Vadot description: External VCOM signal 58*5f62a964SEmmanuel Vadot 59*5f62a964SEmmanuel Vadotrequired: 60*5f62a964SEmmanuel Vadot - compatible 61*5f62a964SEmmanuel Vadot - reg 62*5f62a964SEmmanuel Vadot - sharp,vcom-mode 63*5f62a964SEmmanuel Vadot 64*5f62a964SEmmanuel VadotallOf: 65*5f62a964SEmmanuel Vadot - $ref: panel/panel-common.yaml# 66*5f62a964SEmmanuel Vadot - $ref: /schemas/spi/spi-peripheral-props.yaml# 67*5f62a964SEmmanuel Vadot 68*5f62a964SEmmanuel Vadot - if: 69*5f62a964SEmmanuel Vadot properties: 70*5f62a964SEmmanuel Vadot sharp,vcom-mode: 71*5f62a964SEmmanuel Vadot const: pwm 72*5f62a964SEmmanuel Vadot then: 73*5f62a964SEmmanuel Vadot required: 74*5f62a964SEmmanuel Vadot - pwms 75*5f62a964SEmmanuel Vadot 76*5f62a964SEmmanuel VadotunevaluatedProperties: false 77*5f62a964SEmmanuel Vadot 78*5f62a964SEmmanuel Vadotexamples: 79*5f62a964SEmmanuel Vadot - | 80*5f62a964SEmmanuel Vadot spi { 81*5f62a964SEmmanuel Vadot #address-cells = <1>; 82*5f62a964SEmmanuel Vadot #size-cells = <0>; 83*5f62a964SEmmanuel Vadot 84*5f62a964SEmmanuel Vadot display@0 { 85*5f62a964SEmmanuel Vadot compatible = "sharp,ls013b7dh03"; 86*5f62a964SEmmanuel Vadot reg = <0>; 87*5f62a964SEmmanuel Vadot spi-cs-high; 88*5f62a964SEmmanuel Vadot spi-max-frequency = <1000000>; 89*5f62a964SEmmanuel Vadot sharp,vcom-mode = "software"; 90*5f62a964SEmmanuel Vadot }; 91*5f62a964SEmmanuel Vadot }; 92*5f62a964SEmmanuel Vadot... 93