Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

leds: Add SN3218 and SN3216 support to the IS31FL32XX driver

Si-En Technology was acquired by ISSI in 2011, and it appears that
the IS31FL3218/IS31FL3216 are just rebranded SN3218/SN3216 devices.

Add the "si-en,sn3218" and "si-en,sn3216" compatible strings into the
IS31FL32XX driver as aliases for the issi equivalents, and update
binding documentation.

Datasheets:
IS31FL3218: http://www.issi.com/WW/pdf/31FL3218.pdf
SN3218: http://www.si-en.com/uploadpdf/s2011517171720.pdf

IS31FL3216: http://www.issi.com/WW/pdf/31FL3216.pdf
SN3216: http://www.si-en.com/uploadpdf/SN3216201152410148.pdf

Signed-off-by: David Rivshin <drivshin@allworx.com>
Acked-by: Rob Herring <robh@kernel.org>
Tested-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: Jacek Anaszewski <j.anaszewski@samsung.com>

authored by

David Rivshin and committed by
Jacek Anaszewski
e0442d7d 204a70bb

+14 -7
+6 -3
Documentation/devicetree/bindings/leds/leds-is31fl32xx.txt
··· 1 - Binding for ISSI IS31FL32xx LED Drivers 1 + Binding for ISSI IS31FL32xx and Si-En SN32xx LED Drivers 2 2 3 - The IS31FL32xx family of LED drivers are I2C devices with multiple 3 + The IS31FL32xx/SN32xx family of LED drivers are I2C devices with multiple 4 4 constant-current channels, each with independent 256-level PWM control. 5 5 Each LED is represented as a sub-node of the device. 6 6 ··· 10 10 issi,is31fl3235 11 11 issi,is31fl3218 12 12 issi,is31fl3216 13 + si-en,sn3218 14 + si-en,sn3216 13 15 - reg: I2C slave address 14 16 - address-cells : must be 1 15 17 - size-cells : must be 0 ··· 47 45 }; 48 46 }; 49 47 50 - For more product information please see the link below: 48 + For more product information please see the links below: 51 49 http://www.issi.com/US/product-analog-fxled-driver.shtml 50 + http://www.si-en.com/product.asp?parentid=890
+3 -3
drivers/leds/Kconfig
··· 572 572 tristate "LED support for ISSI IS31FL32XX I2C LED controller family" 573 573 depends on LEDS_CLASS && I2C && OF 574 574 help 575 - Say Y here to include support for ISSI IS31FL32XX LED controllers. 576 - They are I2C devices with multiple constant-current channels, each 577 - with independent 256-level PWM control. 575 + Say Y here to include support for ISSI IS31FL32XX and Si-En SN32xx 576 + LED controllers. They are I2C devices with multiple constant-current 577 + channels, each with independent 256-level PWM control. 578 578 579 579 comment "LED driver for blink(1) USB RGB LED is under Special HID drivers (HID_THINGM)" 580 580
+5 -1
drivers/leds/leds-is31fl32xx.c
··· 8 8 * it under the terms of the GNU General Public License version 2 as 9 9 * published by the Free Software Foundation. 10 10 * 11 - * Datasheets: http://www.issi.com/US/product-analog-fxled-driver.shtml 11 + * Datasheets: 12 + * http://www.issi.com/US/product-analog-fxled-driver.shtml 13 + * http://www.si-en.com/product.asp?parentid=890 12 14 */ 13 15 14 16 #include <linux/device.h> ··· 426 424 { .compatible = "issi,is31fl3236", .data = &is31fl3236_cdef, }, 427 425 { .compatible = "issi,is31fl3235", .data = &is31fl3235_cdef, }, 428 426 { .compatible = "issi,is31fl3218", .data = &is31fl3218_cdef, }, 427 + { .compatible = "si-en,sn3218", .data = &is31fl3218_cdef, }, 429 428 { .compatible = "issi,is31fl3216", .data = &is31fl3216_cdef, }, 429 + { .compatible = "si-en,sn3216", .data = &is31fl3216_cdef, }, 430 430 {}, 431 431 }; 432 432