]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
leds: lp55xx: add DT bindings for LP55231
authorDaniel Mack <zonque@gmail.com>
Mon, 5 May 2014 11:46:54 +0000 (04:46 -0700)
committerBryan Wu <cooloney@gmail.com>
Thu, 8 May 2014 06:28:08 +0000 (14:28 +0800)
The TI55231 appears to be fully compatible to the 5523 model from
National Semicondutor. This patch just adds DT bindings for it.

Signed-off-by: Daniel Mack <zonque@gmail.com>
Acked-by: Milo Kim <milo.kim@ti.com>
Signed-off-by: Bryan Wu <cooloney@gmail.com>
Documentation/devicetree/bindings/leds/leds-lp55xx.txt
drivers/leds/leds-lp5523.c

index c55b8c016a9e2bc55490efb3228a285a129725fc..1b66a413fb9dfed9c6bb2c94d5cc02b1e7e26532 100644 (file)
@@ -1,7 +1,13 @@
 Binding for TI/National Semiconductor LP55xx Led Drivers
 
 Required properties:
-- compatible: "national,lp5521" or "national,lp5523" or "ti,lp5562" or "ti,lp8501"
+- compatible: one of
+       national,lp5521
+       national,lp5523
+       ti,lp55231
+       ti,lp5562
+       ti,lp8501
+
 - reg: I2C slave address
 - clock-mode: Input clock mode, (0: automode, 1: internal, 2: external)
 
index cb5ed82994baed92157bcebc27c27c6fb1d173a1..9e1716f8098ca2b95aa9e558b912968af8d1e2ed 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * lp5523.c - LP5523 LED Driver
+ * lp5523.c - LP5523, LP55231 LED Driver
  *
  * Copyright (C) 2010 Nokia Corporation
  * Copyright (C) 2012 Texas Instruments
@@ -814,6 +814,7 @@ MODULE_DEVICE_TABLE(i2c, lp5523_id);
 #ifdef CONFIG_OF
 static const struct of_device_id of_lp5523_leds_match[] = {
        { .compatible = "national,lp5523", },
+       { .compatible = "ti,lp55231", },
        {},
 };