Skip to content

Conversation

@jcroleda
Copy link

PR Description

  • This PR adds driver support for LTC3208 Multi-Display Driver
  • Datasheet: LTC3208
  • Tested on Raspberry Pi 4B using the following evaluation board: DC824A

PR Type

  • Bug fix (a change that fixes an issue)
  • New feature (a change that adds new functionality)
  • Breaking change (a change that affects other repos or cause CIs to fail)

PR Checklist

  • I have conducted a self-review of my own code changes
  • I have compiled my changes, including the documentation
  • I have tested the changes on the relevant hardware
  • I have updated the documentation outside this repo accordingly
  • I have provided links for the relevant upstream lore

Copy link

@edelweiseescala edelweiseescala left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello, just sharing what I've learned so far

@jcroleda
Copy link
Author

Changelog V2:

  • removed ltc3208_get_brightness
  • fixed indentations
  • replaced device attributes for AUX configurations in favor of devicetree properties
  • cleaned define macros (removed ltc3208_low_byte_data and ltc3208_byte, used field_prep for ltc3208_high_byte_data)
  • updated GPL license on leds-ltc3208.c
  • updated commit message for devicetree bindings

Add Documentation for LTC3208 Multidisplay LED Driver.

Signed-off-by: Jan Carlo Roleda <[email protected]>
Kernel driver implementation for LTC3208 Multidisplay LED Driver

Signed-off-by: Jan Carlo Roleda <[email protected]>
Add entry to Kconfig for LTC3208 driver

Signed-off-by: Jan Carlo Roleda <[email protected]>
for (i = 0; i < LTC3208_NUM_AUX_LEDS; i++) {
ret = device_property_match_string(&client->dev,
ltc3208_dt_aux_channels[i],
str_val);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

str_val doesnt seem to have been initialized

#define LTC3208_MAX_BRIGHTNESS_8BIT 0xFF

#define LTC3208_NUM_LED_GRPS 8
#define LTC3208_NUM_AUX_LEDS 3

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

based on line 314, should this be 4?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants