Auxdisplay bindings
Single-page view · as markdown
ARM Versatile Character LCD
Peios Kernel / Hardware and drivers / Device-tree binding reference / Auxdisplay bindings
Schema identifier ($id): "http://devicetree.org/schemas/auxdisplay/arm,versatile-lcd.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Linus Walleij <linusw@kernel.org>", "Rob Herring <robh@kernel.org>"
This binding defines the character LCD interface found on ARM Versatile AB and PB reference platforms.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "arm,versatile-lcd"
reg — required here #
Maximum number of items (maxItems): 1
clocks — not listed as required here #
Maximum number of items (maxItems): 1
clock-names — not listed as required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
lcd@10008000 {
compatible = "arm,versatile-lcd";
reg = <0x10008000 0x1000>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
GPIO based LED segment display
Peios Kernel / Hardware and drivers / Device-tree binding reference / Auxdisplay bindings
Schema identifier ($id): "http://devicetree.org/schemas/auxdisplay/gpio-7-segment.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Chris Packham <chris.packham@alliedtelesis.co.nz>"
Properties and child nodes (properties) #
compatible — not listed as required here #
Exact value (const): "gpio-7-segment"
segment-gpios — required here #
An array of GPIOs one per segment. The first GPIO corresponds to the A segment, the seventh GPIO corresponds to the G segment. Some LED blocks also have a decimal point which can be specified as an optional eighth segment.
-a-
| |
f b
| |
-g-
| |
e c
| |
-d- dp
Minimum number of items (minItems): 7
Maximum number of items (maxItems): 8
Required in this object (required): "segment-gpios"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
led-7seg {
compatible = "gpio-7-segment";
segment-gpios = <&gpio 0 GPIO_ACTIVE_LOW>,
<&gpio 1 GPIO_ACTIVE_LOW>,
<&gpio 2 GPIO_ACTIVE_LOW>,
<&gpio 3 GPIO_ACTIVE_LOW>,
<&gpio 4 GPIO_ACTIVE_LOW>,
<&gpio 5 GPIO_ACTIVE_LOW>,
<&gpio 6 GPIO_ACTIVE_LOW>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Hitachi HD44780 Character LCD Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Auxdisplay bindings
Schema identifier ($id): "http://devicetree.org/schemas/auxdisplay/hit,hd44780.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Geert Uytterhoeven <geert@linux-m68k.org>"
The Hitachi HD44780 Character LCD Controller is commonly used on character LCDs that can display one or more lines of text. It exposes an M6800 bus interface, which can be used in either 4-bit or 8-bit mode. By using a GPIO expander it is possible to use the driver with one of the popular I2C expander boards based on the PCF8574 available for these displays. For an example see below.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "hit,hd44780"
data-gpios — required here #
GPIO pins connected to the data signal lines DB0-DB7 (8-bit mode) or DB4-DB7 (4-bit mode) of the LCD Controller's bus interface.
Exactly one of these rules must match (oneOf) #
Rule 1
Maximum number of items (
maxItems):4
Rule 2
Maximum number of items (
maxItems):8
enable-gpios — required here #
GPIO pin connected to the "E" (Enable) signal line of the LCD Controller's bus interface.
Maximum number of items (maxItems): 1
rs-gpios — required here #
GPIO pin connected to the "RS" (Register Select) signal line of the LCD Controller's bus interface.
Maximum number of items (maxItems): 1
rw-gpios — not listed as required here #
GPIO pin connected to the "RW" (Read/Write) signal line of the LCD Controller's bus interface.
Maximum number of items (maxItems): 1
backlight-gpios — not listed as required here #
GPIO pin used for enabling the LCD's backlight.
Maximum number of items (maxItems): 1
display-height-chars — required here #
Height of the display, in character cells,
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 1
Maximum value (maximum): 4
display-width-chars — required here #
Width of the display, in character cells.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 1
Maximum value (maximum): 64
internal-buffer-width — not listed as required here #
Internal buffer width (default is 40 for displays with 1 or 2 lines, and display-width-chars for displays with more than 2 lines).
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 1
Maximum value (maximum): 64
Required in this object (required): "compatible", "data-gpios", "enable-gpios", "rs-gpios", "display-height-chars", "display-width-chars"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
display-controller {
compatible = "hit,hd44780";
data-gpios = <&hc595 0 GPIO_ACTIVE_HIGH>,
<&hc595 1 GPIO_ACTIVE_HIGH>,
<&hc595 2 GPIO_ACTIVE_HIGH>,
<&hc595 3 GPIO_ACTIVE_HIGH>;
enable-gpios = <&hc595 4 GPIO_ACTIVE_HIGH>;
rs-gpios = <&hc595 5 GPIO_ACTIVE_HIGH>;
display-height-chars = <2>;
display-width-chars = <16>;
};
#include <dt-bindings/gpio/gpio.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
pcf8574: gpio-expander@27 {
compatible = "nxp,pcf8574";
reg = <0x27>;
gpio-controller;
#gpio-cells = <2>;
};
};
display-controller {
compatible = "hit,hd44780";
display-height-chars = <2>;
display-width-chars = <16>;
data-gpios = <&pcf8574 4 GPIO_ACTIVE_HIGH>,
<&pcf8574 5 GPIO_ACTIVE_HIGH>,
<&pcf8574 6 GPIO_ACTIVE_HIGH>,
<&pcf8574 7 GPIO_ACTIVE_HIGH>;
enable-gpios = <&pcf8574 2 GPIO_ACTIVE_HIGH>;
rs-gpios = <&pcf8574 0 GPIO_ACTIVE_HIGH>;
rw-gpios = <&pcf8574 1 GPIO_ACTIVE_HIGH>;
backlight-gpios = <&pcf8574 3 GPIO_ACTIVE_HIGH>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Holtek HT16K33 RAM mapping 16*8 LED controller with keyscan
Peios Kernel / Hardware and drivers / Device-tree binding reference / Auxdisplay bindings
Schema identifier ($id): "http://devicetree.org/schemas/auxdisplay/holtek,ht16k33.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Robin van der Gracht <robin@protonic.nl>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/input/matrix-keymap.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Item 2
Exact value (
const):"holtek,ht16k33"
Rule 2
Exact value (
const):"holtek,ht16k33"
reg — required here #
Maximum number of items (maxItems): 1
refresh-rate-hz — not listed as required here #
Maximum number of items (maxItems): 1
Display update interval in Hertz for dot-matrix displays
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
debounce-delay-ms — not listed as required here #
Maximum number of items (maxItems): 1
Debouncing interval time in milliseconds
linux,keymap — not listed as required here #
true — No constraints added by this property rule.
linux,no-autorepeat — not listed as required here #
Value type (type): "boolean"
Disable keyrepeat
default-brightness-level — not listed as required here #
Minimum value (minimum): 1
Maximum value (maximum): 16
Default value (default): 16
Initial brightness level
led — not listed as required here #
Value type (type): "object"
Shared schema rule ($ref): /schemas/leds/common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg"
Condition (if) #
Properties and child nodes (
properties) #
compatible— not listed as required here #Exact value (
const):"holtek,ht16k33"
When the condition matches (then) #
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
display-controller@70 {
compatible = "holtek,ht16k33";
reg = <0x70>;
refresh-rate-hz = <20>;
interrupt-parent = <&gpio4>;
interrupts = <5 (IRQ_TYPE_LEVEL_HIGH | IRQ_TYPE_EDGE_RISING)>;
debounce-delay-ms = <50>;
linux,keymap = <MATRIX_KEY(2, 0, KEY_F6)>,
<MATRIX_KEY(3, 0, KEY_F8)>,
<MATRIX_KEY(4, 0, KEY_F10)>,
<MATRIX_KEY(5, 0, KEY_F4)>,
<MATRIX_KEY(6, 0, KEY_F2)>,
<MATRIX_KEY(2, 1, KEY_F5)>,
<MATRIX_KEY(3, 1, KEY_F7)>,
<MATRIX_KEY(4, 1, KEY_F9)>,
<MATRIX_KEY(5, 1, KEY_F3)>,
<MATRIX_KEY(6, 1, KEY_F1)>;
led {
color = <LED_COLOR_ID_RED>;
function = LED_FUNCTION_BACKLIGHT;
linux,default-trigger = "backlight";
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 20: 0.56" 4-Digit 7-Segment FeatherWing Display (Red)
Line 21: 0.54" Quad Alphanumeric FeatherWing Display (Red)
Line 24: Generic 16*8 LED controller with dot-matrix display
ASCII LCD displays on Imagination Technologies boards
Peios Kernel / Hardware and drivers / Device-tree binding reference / Auxdisplay bindings
Schema identifier ($id): "http://devicetree.org/schemas/auxdisplay/img,ascii-lcd.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Paul Burton <paulburton@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "img,boston-lcd", "mti,malta-lcd", "mti,sead3-lcd"
reg — not listed as required here #
Maximum number of items (maxItems): 1
offset — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Offset in bytes to the LCD registers within the system controller
Required in this object (required): "compatible"
Exactly one of these rules must match (oneOf) #
Rule 1 #
Rule 2 #
Condition (if) #
Properties and child nodes (
properties) #
compatible— not listed as required here #Rule for matching array elements (
contains)Exact value (
const):"img,boston-lcd"
When the condition matches (then) #
When the condition does not match (else) #
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
lcd: lcd@17fff000 {
compatible = "img,boston-lcd";
reg = <0x17fff000 0x8>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
MAX6958/6959 7-segment LED display controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Auxdisplay bindings
Schema identifier ($id): "http://devicetree.org/schemas/auxdisplay/maxim,max6959.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andy Shevchenko <andriy.shevchenko@linux.intel.com>"
The Maxim MAX6958/6959 7-segment LED display controller provides an I2C interface to up to four 7-segment LED digits. The MAX6959, in comparison to MAX6958, adds input support. Type of the chip can be autodetected via specific register read, and hence the features may be enabled in the driver at run-time, in case they are requested via Device Tree. A given hardware is simple and does not provide any additional pins, such as reset or power enable.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "maxim,max6959"
reg — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
display-controller@38 {
compatible = "maxim,max6959";
reg = <0x38>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Modtronix engineering LCD2S Character LCD Display
Peios Kernel / Hardware and drivers / Device-tree binding reference / Auxdisplay bindings
Schema identifier ($id): "http://devicetree.org/schemas/auxdisplay/modtronix,lcd2s.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Lars Poeschel <poeschel@lemonage.de>"
The LCD2S is a Character LCD Display manufactured by Modtronix Engineering. The display supports a serial I2C and SPI interface. The driver currently only supports the I2C interface.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "modtronix,lcd2s"
reg — required here #
Maximum number of items (maxItems): 1
I2C bus address of the display.
display-height-chars — required here #
Height of the display, in character cells.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 1
Maximum value (maximum): 4
display-width-chars — required here #
Width of the display, in character cells.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 16
Maximum value (maximum): 20
Required in this object (required): "compatible", "reg", "display-height-chars", "display-width-chars"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
lcd2s: auxdisplay@28 {
compatible = "modtronix,lcd2s";
reg = <0x28>;
display-height-chars = <4>;
display-width-chars = <20>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)