ti,mspm0-lcd

Description

TI MSPM0 LCD Segment Display Controller (SLAU847F, Chapter 20)

Describes the LCD hardware peripheral only (COM/SEG pin assignment,
multiplexing, voltage configuration).  Display geometry and character
encoding live in a required child node of compatible "slcd-panel".

Use the MSPM0_LCD_VOLTAGE_SOURCE_* and MSPM0_LCD_BIAS_MODE_* constants
from <zephyr/dt-bindings/auxdisplay/ti-mspm0-lcd.h> for the
voltage-source and bias-mode properties.

Examples

#include <zephyr/dt-bindings/auxdisplay/ti-mspm0-lcd.h>
/* LP-MSPM0L2228: 6-digit 14-segment display, 4-mux, AVDD internal divider */
auxdisplay_0: &lcd0 {
  mux-mode = <MSPM0_LCD_MUX_MODE_4>;
  bias-mode = <MSPM0_LCD_BIAS_MODE_1_3>;
  frequency-divider = <3>;
  voltage-source = <MSPM0_LCD_VOLTAGE_SOURCE_AVDD_INT_DIV>;
  lcd-com-pins = <24 42 43 44>;
  lcd-seg-pins = <18 19 20 23 36 37 38 39 40 41
                  45 46 47 48 49 50 51 52 53 54 55 56 57 58>;
};

Properties

Properties not inherited from the base binding file.

Name

Type

Details

mux-mode

int

LCD multiplex mode (LCDMXX in LCDCTL0).
0=Static, 1=2-mux, 2=3-mux, 3=4-mux, 4=5-mux, 5=6-mux, 6=7-mux, 7=8-mux.
Hardware segment blinking is only supported for modes 0-3 (Static to 4-mux).
Use MSPM0_LCD_MUX_MODE_* constants.

This property is required.

Legal values: 0, 1, 2, 3, 4, 5, 6, 7

bias-mode

int

LCD bias mode (LCDBIASSEL in LCDVCTL).
Use MSPM0_LCD_BIAS_MODE_* constants.

This property is required.

Legal values: 0, 1, 2

frequency-divider

int

LCD frequency divider value N (0-31); hardware divides by N+1.
CLKLCD = LFCLK / ((N+1) × mux_frame_clocks).

This property is required.

voltage-source

int

LCD charge-pump / bias voltage generation configuration (LCDVCTL).
Use MSPM0_LCD_VOLTAGE_SOURCE_* constants:
  MSPM0_LCD_VOLTAGE_SOURCE_EXT_REF_EXT_DIV (0):     External ref on R33, external divider.
  MSPM0_LCD_VOLTAGE_SOURCE_EXT_REF_INT_DIV (1):     External ref on R33, internal divider.
  MSPM0_LCD_VOLTAGE_SOURCE_AVDD_INT_DIV    (2):     AVDD reference, internal divider.
  MSPM0_LCD_VOLTAGE_SOURCE_CHARGE_PUMP_EXT (3):     Charge pump, external supply on R33/R13.
  MSPM0_LCD_VOLTAGE_SOURCE_CHARGE_PUMP_INT_REF (4): Charge pump, internal VREF on R13.
  MSPM0_LCD_VOLTAGE_SOURCE_AVDD_EXT_DIV    (5):     AVDD on R33, external divider.
  MSPM0_LCD_VOLTAGE_SOURCE_CHARGE_PUMP_AVDD (6):   Charge pump using AVDD as supply.

This property is required.

Legal values: 0, 1, 2, 3, 4, 5, 6

high-power-drive

boolean

Enable high-power LCD drive mode (LCD_HP_LP = 1 in LCDVCTL).
Selects the high-power (low-impedance) resistor ladder when the
internal bias resistor divider is active (LCDINTBIASEN=1). Only
meaningful for MSPM0_LCD_VOLTAGE_SOURCE_EXT_REF_INT_DIV,
MSPM0_LCD_VOLTAGE_SOURCE_AVDD_INT_DIV, and MSPM0_LCD_VOLTAGE_SOURCE_CHARGE_PUMP_INT_REF.

reference-mode-switched

boolean

Enable switched mode for the internal reference circuit
(LCDREFMODE = 1 in LCDVCTL). Reduces power consumption by
periodically disabling the reference. Only relevant for
MSPM0_LCD_VOLTAGE_SOURCE_CHARGE_PUMP_INT_REF.

voltage-boost

boolean

Enable the on-chip LCD voltage boost (LCDVBSTEN in LCDVCTL).
Required when the VDDA supply voltage is below 1.6 V. This is a
property of the board's supply rail, independent of voltage-source.

internal-reference-voltage

int

Internal reference voltage in mV (VLCDx field in LCDVCTL).
Only applicable for charge-pump-internal-ref voltage source.

Legal values: 2600, 2660, 2720, 2780, 2840, 2900, 2960, 3020, 3080, 3140, 3200, 3260, 3320, 3380, 3440, 3500

internal-reference-ontime

int

On-time of the VREF for charge pump, in CLKCP cycles
(LCDVREFCFG.ONTIME). Only applicable for MSPM0_LCD_VOLTAGE_SOURCE_CHARGE_PUMP_INT_REF
with reference-mode-switched enabled.

Default value: 16

Legal values: 16, 32, 128, 256

charge-pump-frequency

int

Charge pump frequency in Hz (LCDCPFSELx in LCDVCTL).
Only applicable for MSPM0_LCD_VOLTAGE_SOURCE_CHARGE_PUMP_* voltage sources.

Default value: 4096

Legal values: 4096, 2048, 1365, 1024, 819, 682, 585, 512, 455, 409, 372

blink-rate

int

Hardware segment blink rate prescaler (LCDBLKPREx in LCDBLKCTL).
The blink clock is derived from CLKFRAME / 2^(blink-rate+1).
  0 = ÷2  (fastest), 1 = ÷4,  2 = ÷8,   3 = ÷16,
  4 = ÷32,           5 = ÷64, 6 = ÷128, 7 = ÷256 (slowest).
Only effective for mux modes 0-3 (Static to 4-mux).
Use MSPM0_LCD_BLINK_RATE_* constants.

Default value: 3

Legal values: 0, 1, 2, 3, 4, 5, 6, 7

lcd-com-pins

array

LCD peripheral pin indices (0-63) used as COM lines, in COM order.

This property is required.

lcd-seg-pins

array

LCD peripheral pin indices (0-63) used as SEG lines.

This property is required.

pinctrl-0

phandles

Pin configuration/s for the first state. Content is specific to the
selected pin controller driver implementation.

pinctrl-1

phandles

Pin configuration/s for the second state. See pinctrl-0.

pinctrl-2

phandles

Pin configuration/s for the third state. See pinctrl-0.

pinctrl-3

phandles

Pin configuration/s for the fourth state. See pinctrl-0.

pinctrl-4

phandles

Pin configuration/s for the fifth state. See pinctrl-0.

pinctrl-names

string-array

Names for the provided states. The number of names needs to match the
number of states.