|
| 1 | +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 | +# Copyright (c) 2025 Analog Devices, Inc. |
| 3 | +%YAML 1.2 |
| 4 | +--- |
| 5 | +$id: http://devicetree.org/schemas/leds/leds-ltc3208.yaml# |
| 6 | +$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 7 | + |
| 8 | +title: LTC3208 Multidisplay LED Controller from Linear Technologies (Now Analog Devices). |
| 9 | + |
| 10 | +maintainers: |
| 11 | + - Jan Carlo Roleda <jancarlo.roleda@analog.com> |
| 12 | + |
| 13 | +description: |
| 14 | + The LTC3208 is a multidisplay LED controller that can support up to 1A to all |
| 15 | + connected LEDs. |
| 16 | + |
| 17 | + The datasheet for this device can be found in |
| 18 | + https://www.analog.com/en/products/ltc3208.html |
| 19 | + |
| 20 | + |
| 21 | +properties: |
| 22 | + compatible: |
| 23 | + const: adi,ltc3208 |
| 24 | + |
| 25 | + reg: |
| 26 | + maxItems: 1 |
| 27 | + |
| 28 | + '#address-cells': |
| 29 | + const: 1 |
| 30 | + |
| 31 | + '#size-cells': |
| 32 | + const: 0 |
| 33 | + |
| 34 | + adi,disable-camhl-pin: |
| 35 | + type: boolean |
| 36 | + description: Configures whether the external CAMHL pin is disabled. |
| 37 | + if disabled then the output pins associated with CAM will always select |
| 38 | + the CAM register's high half-byte brightness. |
| 39 | + |
| 40 | + adi,select-rgb-sub-en: |
| 41 | + type: boolean |
| 42 | + description: |
| 43 | + Selects whether the ENRGBS pin controls the SUB channel's output pins if set, |
| 44 | + or RGB channel's output pins if unset. |
| 45 | + |
| 46 | + adi,force-cpo-level: |
| 47 | + $ref: /schemas/types.yaml#/definitions/string |
| 48 | + description: Forces the Charge Pump Output to a specified multiplier |
| 49 | + enum: |
| 50 | + - "1" # none; device CPO multiplier acts on dropout signals |
| 51 | + - "1.5" |
| 52 | + - "2" |
| 53 | + default: |
| 54 | + - "1" |
| 55 | + |
| 56 | + adi,disable-rgb-aux4-dropout: |
| 57 | + type: boolean |
| 58 | + description: Configures the RGB and AUX4 dropout signals to be disabled. |
| 59 | + |
| 60 | + adi,aux1-channel: |
| 61 | + $ref: /schemas/types.yaml#/definitions/string |
| 62 | + description: |
| 63 | + LED Channel that the AUX1 output pin mirrors its brightness level from. |
| 64 | + enum: [aux, main, sub, cam] |
| 65 | + default: aux |
| 66 | + |
| 67 | + adi,aux2-channel: |
| 68 | + $ref: /schemas/types.yaml#/definitions/string |
| 69 | + description: |
| 70 | + LED Channel that the AUX2 output pin mirrors its brightness level from. |
| 71 | + enum: [aux, main, sub, cam] |
| 72 | + default: aux |
| 73 | + |
| 74 | + adi,aux3-channel: |
| 75 | + $ref: /schemas/types.yaml#/definitions/string |
| 76 | + description: |
| 77 | + LED Channel that the AUX3 output pin mirrors its brightness level from. |
| 78 | + enum: [aux, main, sub, cam] |
| 79 | + default: aux |
| 80 | + |
| 81 | + adi,aux4-channel: |
| 82 | + $ref: /schemas/types.yaml#/definitions/string |
| 83 | + description: |
| 84 | + LED Channel that the AUX4 output pin mirrors its brightness level from. |
| 85 | + enum: [aux, main, sub, cam] |
| 86 | + default: aux |
| 87 | + |
| 88 | +patternProperties: |
| 89 | + "^led@[0-7]$": |
| 90 | + type: object |
| 91 | + unevaluatedProperties: false |
| 92 | + properties: |
| 93 | + reg: |
| 94 | + description: |
| 95 | + LED Channel Number. each channel maps to a specific channel group used |
| 96 | + to configure the brightness level of the output pins corresponding to |
| 97 | + the channel. |
| 98 | + enum: |
| 99 | + - 0 # Main Channel (8-bit brightness) |
| 100 | + - 1 # Sub Channel (8-bit brightness) |
| 101 | + - 2 # AUX Channel (4-bit brightness) |
| 102 | + - 3 # Camera Channel, Low-side byte (4-bit brightness) |
| 103 | + - 4 # Camera Channel, High-side byte (4-bit brightness) |
| 104 | + - 5 # Red Channel (4-bit brightness) |
| 105 | + - 6 # Blue Channel (4-bit brightness) |
| 106 | + - 7 # Green Channel (4-bit brightness) |
| 107 | + required: |
| 108 | + - reg |
| 109 | + |
| 110 | +required: |
| 111 | + - compatible |
| 112 | + - reg |
| 113 | + |
| 114 | +additionalProperties: false |
| 115 | + |
| 116 | +examples: |
| 117 | + - | |
| 118 | +
|
| 119 | + i2c { |
| 120 | + #address-cells = <1>; |
| 121 | + #size-cells = <0>; |
| 122 | +
|
| 123 | + led-controller@1b { |
| 124 | + compatible = "adi,ltc3208"; |
| 125 | + reg = <0x1b>; |
| 126 | + #address-cells = <1>; |
| 127 | + #size-cells = <0>; |
| 128 | + adi,disable-camhl-pin; |
| 129 | + adi,select-rgb-sub-en; |
| 130 | + adi,force-cpo-level = "1"; |
| 131 | + adi,disable-rgb-aux4-dropout; |
| 132 | +
|
| 133 | + led@0 { |
| 134 | + reg = <0>; |
| 135 | + }; |
| 136 | +
|
| 137 | + led@1 { |
| 138 | + reg = <1>; |
| 139 | + }; |
| 140 | +
|
| 141 | + led@2 { |
| 142 | + reg = <2>; |
| 143 | + }; |
| 144 | +
|
| 145 | + led@3 { |
| 146 | + reg = <3>; |
| 147 | + }; |
| 148 | +
|
| 149 | + led@4 { |
| 150 | + reg = <4>; |
| 151 | + }; |
| 152 | +
|
| 153 | + led@5 { |
| 154 | + reg = <5>; |
| 155 | + }; |
| 156 | +
|
| 157 | + led@6 { |
| 158 | + reg = <6>; |
| 159 | + }; |
| 160 | +
|
| 161 | + led@7 { |
| 162 | + reg = <7>; |
| 163 | + }; |
| 164 | + }; |
| 165 | + }; |
0 commit comments