aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Mack <zonque@gmail.com>2014-05-05 07:46:54 -0400
committerBryan Wu <cooloney@gmail.com>2014-05-08 02:28:08 -0400
commit9ef8c877e4ffca969fb2f1260ee133b12b563c2c (patch)
treed95de7216802f599c3bb7a9bcb4f5358c0dcef8f
parent1175d5bc7b490a5175c955b4e656f42577a43ecf (diff)
leds: lp55xx: add DT bindings for LP55231
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>
-rw-r--r--Documentation/devicetree/bindings/leds/leds-lp55xx.txt8
-rw-r--r--drivers/leds/leds-lp5523.c3
2 files changed, 9 insertions, 2 deletions
diff --git a/Documentation/devicetree/bindings/leds/leds-lp55xx.txt b/Documentation/devicetree/bindings/leds/leds-lp55xx.txt
index c55b8c016a9e..1b66a413fb9d 100644
--- a/Documentation/devicetree/bindings/leds/leds-lp55xx.txt
+++ b/Documentation/devicetree/bindings/leds/leds-lp55xx.txt
@@ -1,7 +1,13 @@
1Binding for TI/National Semiconductor LP55xx Led Drivers 1Binding for TI/National Semiconductor LP55xx Led Drivers
2 2
3Required properties: 3Required properties:
4- compatible: "national,lp5521" or "national,lp5523" or "ti,lp5562" or "ti,lp8501" 4- compatible: one of
5 national,lp5521
6 national,lp5523
7 ti,lp55231
8 ti,lp5562
9 ti,lp8501
10
5- reg: I2C slave address 11- reg: I2C slave address
6- clock-mode: Input clock mode, (0: automode, 1: internal, 2: external) 12- clock-mode: Input clock mode, (0: automode, 1: internal, 2: external)
7 13
diff --git a/drivers/leds/leds-lp5523.c b/drivers/leds/leds-lp5523.c
index cb5ed82994ba..9e1716f8098c 100644
--- a/drivers/leds/leds-lp5523.c
+++ b/drivers/leds/leds-lp5523.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * lp5523.c - LP5523 LED Driver 2 * lp5523.c - LP5523, LP55231 LED Driver
3 * 3 *
4 * Copyright (C) 2010 Nokia Corporation 4 * Copyright (C) 2010 Nokia Corporation
5 * Copyright (C) 2012 Texas Instruments 5 * Copyright (C) 2012 Texas Instruments
@@ -814,6 +814,7 @@ MODULE_DEVICE_TABLE(i2c, lp5523_id);
814#ifdef CONFIG_OF 814#ifdef CONFIG_OF
815static const struct of_device_id of_lp5523_leds_match[] = { 815static const struct of_device_id of_lp5523_leds_match[] = {
816 { .compatible = "national,lp5523", }, 816 { .compatible = "national,lp5523", },
817 { .compatible = "ti,lp55231", },
817 {}, 818 {},
818}; 819};
819 820