MPS MP3309C backlight
Schema identifier ($id): "http://devicetree.org/schemas/leds/backlight/mps,mp3309c.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Flavio Suligoi <f.suligoi@asem.it>"
The Monolithic Power (MPS) MP3309C is a WLED step-up converter, featuring a programmable switching frequency to optimize efficiency. It supports two different dimming modes:
- analog mode, via I2C commands, as default mode (32 dimming levels) - PWM controlled mode (optional)
The datasheet is available at: https://www.monolithicpower.com/en/mp3309c.html
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):common.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "mps,mp3309c"
reg — required here #
Maximum number of items (maxItems): 1
pwms — not listed as required here #
if present, the backlight is controlled in PWM mode.
Maximum number of items (maxItems): 1
enable-gpios — not listed as required here #
GPIO used to enable the backlight in "analog-i2c" dimming mode.
Maximum number of items (maxItems): 1
mps,overvoltage-protection-microvolt — not listed as required here #
Overvoltage protection (13.5V, 24V or 35.5V).
Allowed values (enum): 13500000, 24000000, 35500000
Default value (default): 35500000
mps,no-sync-mode — not listed as required here #
disable synchronous rectification mode
Value type (type): "boolean"
Required in this object (required): "compatible", "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
/* Backlight with PWM control */
backlight_pwm: backlight@17 {
compatible = "mps,mp3309c";
reg = <0x17>;
pwms = <&pwm1 0 3333333 0>; /* 300 Hz --> (1/f) * 1*10^9 */
brightness-levels = <0 4 8 16 32 64 128 255>;
default-brightness = <6>;
mps,overvoltage-protection-microvolt = <24000000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)