[PATCH 2/2] regulator:lp872x: handle error case

2015-08-24 Thread Milo Kim
If memory allocation gets failed on parsing the DT, then it returns error '-ENOMEM' explicitly. Then, the driver exists from the _probe(). Cc: linux-kernel@vger.kernel.org Signed-off-by: Milo Kim --- drivers/regulator/lp872x.c | 11 +++ 1 file changed, 7 insertions(+), 4

[PATCH 1/2] regulator:lp872x: use the private data instead of updating I2C device platform data

2015-08-24 Thread Milo Kim
onfiguration when it is loaded. The lp872x driver should get data from the platform side and use the private data, 'lp872x->pdata' instead of changing the original platform data. Cc: linux-kernel@vger.kernel.org Signed-off-by: Milo Kim --- drivers/regulator/lp872x.c | 7 +--

[PATCH 1/2] power:lp8727_charger: use the private data instead of updating I2C device platform data

2015-08-24 Thread Milo Kim
, then the driver just gets the platform data from the I2C device structure. 4. Map the platform data to private data structure. Cc: Dmitry Eremin-Solenikov Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Milo Kim --- drivers/power/lp8727_charger.c | 25

[PATCH 2/2] power:lp8727_charger: parsing child node after getting debounce-ms

2015-08-24 Thread Milo Kim
ed inside the DT. So, counting child is processed after updating 'debounce-ms'. [*] Documentation/devicetree/bindings/power_supply/lp8727_charger.txt Cc: Dmitry Eremin-Solenikov Cc: linux...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Milo Kim --- drivers/power/lp8727_

[PATCH] leds: turn off the LED and wait for completion on unregistering LED class device

2015-11-20 Thread Milo Kim
ork) It guarantees that LED driver turns off the brightness prior to resource management. Cc: linux-l...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Milo Kim --- drivers/leds/led-class.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/leds/le

[PATCH v2 0/9] Support TI LMU devices

2015-11-25 Thread Milo Kim
g operation. Max brightness is determined by DT property, 'led-max-microamp'. Remove brightness workqueue. * Regulator Use 'of_match' in regulator_desc instead of calling of_regulator_match. Remove unnecessary OF device ID because MFD core registers a platform de

[PATCH v2 6/9] mfd: add TI LMU hardware fault monitoring driver

2015-11-25 Thread Milo Kim
ht and LED drivers handle this event. Cc: Lee Jones Cc: Jacek Anaszewski Cc: Mark Brown Cc: Rob Herring Cc: devicet...@vger.kernel.org Cc: linux-l...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Milo Kim --- .../ABI/testing/debugfs-ti-lmu-fault-monitor | 32 ++ d

[PATCH v2 8/9] leds: add LM3633 driver

2015-11-25 Thread Milo Kim
can have multiple LED channel data. Cc: Jacek Anaszewski Cc: linux-l...@vger.kernel.org Cc: Lee Jones Cc: Mark Brown Cc: Rob Herring Cc: devicet...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Milo Kim --- Documentation/ABI/testing/sysfs-class-led-lm3

[PATCH v2 3/9] Documentation: dt-bindings: leds: add LM3633 LED binding information

2015-11-25 Thread Milo Kim
LM3633 LED device is one of TI LMU device list. Cc: Rob Herring Cc: devicet...@vger.kernel.org Cc: Lee Jones Cc: Jacek Anaszewski Cc: Mark Brown Cc: linux-l...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Milo Kim --- .../devicetree/bindings/leds/leds-lm3633.txt

[PATCH v2 9/9] regulator: add LM363X driver

2015-11-25 Thread Milo Kim
LM3632 can be controlled by external pins. Those are configured through the DT properties. Cc: Mark Brown Cc: Lee Jones Cc: Jacek Anaszewski Cc: Rob Herring Cc: devicet...@vger.kernel.org Cc: linux-l...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Milo Kim --- drivers

[PATCH v2 5/9] mfd: add TI LMU driver

2015-11-25 Thread Milo Kim
river enables it. Please refer to separate patch for 'lm363x-regulator'. Cc: Lee Jones Cc: Jacek Anaszewski Cc: Mark Brown Cc: Rob Herring Cc: devicet...@vger.kernel.org Cc: linux-l...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Milo Kim --- drivers/mfd/

[PATCH v2 4/9] Documentation: dt-bindings: regulator: add LM363x regulator binding information

2015-11-25 Thread Milo Kim
This binding describes LM3631 and LM3632 regulator properties. Cc: Rob Herring Cc: devicet...@vger.kernel.org Cc: Lee Jones Cc: Jacek Anaszewski Cc: Mark Brown Cc: linux-l...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Milo Kim --- .../bindings/regulator/lm363x

[PATCH v2 7/9] backlight: add TI LMU backlight driver

2015-11-25 Thread Milo Kim
Brown Cc: Rob Herring Cc: devicet...@vger.kernel.org Cc: linux-l...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Milo Kim --- drivers/video/backlight/Kconfig | 7 + drivers/video/backlight/Makefile| 3 + drivers/video/backlight/ti-lmu

[PATCH v2 1/9] Documentation: dt-bindings: mfd: add TI LMU device binding information

2015-11-25 Thread Milo Kim
This patch describes overall binding for TI LMU MFD devices. Cc: Rob Herring Cc: devicet...@vger.kernel.org Cc: Lee Jones Cc: Jacek Anaszewski Cc: Mark Brown Cc: linux-l...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Milo Kim --- Documentation/devicetree/bindings/mfd

[PATCH v2 2/9] Documentation: dt-bindings: leds: backlight: add TI LMU backlight binding information

2015-11-25 Thread Milo Kim
LM3532, LM3631, LM3632, LM3633, LM3695 and LM3697 use common dt-bindings for describing backlight device. Cc: Rob Herring Cc: devicet...@vger.kernel.org Cc: Lee Jones Cc: Jacek Anaszewski Cc: Mark Brown Cc: linux-l...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Milo Kim

[PATCH v3] backlight: lp855x: use private data for regulator control

2015-07-19 Thread Milo Kim
river retry to get probed. v1 -> v2: Keeps optional property '-supply' in LP855x DT binding. Cc: Sean Paul Cc: Jingoo Han Cc: Lee Jones Cc: linux-kernel@vger.kernel.org Signed-off-by: Milo Kim --- drivers/video/backlight/lp855x_bl.c | 23 --- include/li

[PATCH 07/19] irqchip: atmel-aic: make common IRQ domain translate function

2016-01-03 Thread Milo Kim
rc Zyngier Cc: Alexandre Belloni Cc: Boris BREZILLON Cc: Ludovic Desroches Cc: Nicolas Ferre Cc: linux-kernel@vger.kernel.org Signed-off-by: Milo Kim --- drivers/irqchip/irq-atmel-aic-common.c | 94 +- drivers/irqchip/irq-atmel-aic-common.h | 10 drivers/i

[PATCH 04/19] irqchip: atmel-aic: replace magic numbers with named constant

2016-01-03 Thread Milo Kim
eixner Cc: Jason Cooper Cc: Marc Zyngier Cc: Alexandre Belloni Cc: Boris BREZILLON Cc: Ludovic Desroches Cc: Nicolas Ferre Cc: linux-kernel@vger.kernel.org Signed-off-by: Milo Kim --- drivers/irqchip/irq-atmel-aic-common.c | 11 ++- drivers/irqchip/irq-atmel-aic-common.h | 1

[PATCH 06/19] irqchip: atmel-aic: introduce register data structure

2016-01-03 Thread Milo Kim
fied AIC driver. Cc: Thomas Gleixner Cc: Jason Cooper Cc: Marc Zyngier Cc: Alexandre Belloni Cc: Boris BREZILLON Cc: Ludovic Desroches Cc: Nicolas Ferre Cc: linux-kernel@vger.kernel.org Signed-off-by: Milo Kim --- drivers/irqchip/irq-atmel-aic-common.c | 91 ++

[PATCH 09/19] irqchip: atmel-aic: add common retrigger function

2016-01-03 Thread Milo Kim
Ferre Cc: linux-kernel@vger.kernel.org Signed-off-by: Milo Kim --- drivers/irqchip/irq-atmel-aic-common.c | 21 + drivers/irqchip/irq-atmel-aic.c| 13 - drivers/irqchip/irq-atmel-aic5.c | 15 --- 3 files changed, 21 insertions(+), 28 deletions

[PATCH 01/19] irqchip: atmel-aic: fix wrong bit operation for IRQ priority

2016-01-03 Thread Milo Kim
clears source type bits instead of priority bits. This patch fixes wrong mask bit operation. Cc: Thomas Gleixner Cc: Jason Cooper Cc: Marc Zyngier Cc: Alexandre Belloni Cc: Boris BREZILLON Cc: Ludovic Desroches Cc: Nicolas Ferre Cc: linux-kernel@vger.kernel.org Signed-off-by: Milo Kim

[PATCH 13/19] irqchip: atmel-aic: clean up irq_chip_generic

2016-01-03 Thread Milo Kim
-off-by: Milo Kim --- drivers/irqchip/irq-atmel-aic.c | 3 --- drivers/irqchip/irq-atmel-aic5.c | 8 2 files changed, 11 deletions(-) diff --git a/drivers/irqchip/irq-atmel-aic.c b/drivers/irqchip/irq-atmel-aic.c index bab93a0..721ecb6 100644 --- a/drivers/irqchip/irq-atmel-aic.c +++ b

[PATCH 18/19] irqchip: atmel-aic: use unified AIC driver

2016-01-03 Thread Milo Kim
Cc: Nicolas Ferre Cc: linux-kernel@vger.kernel.org Signed-off-by: Milo Kim --- drivers/irqchip/Makefile | 4 +-- drivers/irqchip/irq-atmel-aic-common.c | 10 +++--- drivers/irqchip/irq-atmel-aic.c| 54 drivers/irqchip/irq-atmel-aic5.c

[PATCH 19/19] irqchip: atmel-aic: rename AIC driver and fix Kconfig

2016-01-03 Thread Milo Kim
Cc: Nicolas Ferre Cc: linux-kernel@vger.kernel.org Signed-off-by: Milo Kim --- arch/arm/mach-at91/Kconfig | 2 +- drivers/irqchip/Kconfig| 7 - drivers/irqchip/Makefile | 3 +- drivers/irqchip/irq-aic.c

[PATCH 17/19] irqchip: atmel-aic: use unified IRQ chip initialization function

2016-01-03 Thread Milo Kim
eixner Cc: Jason Cooper Cc: Marc Zyngier Cc: Alexandre Belloni Cc: Boris BREZILLON Cc: Ludovic Desroches Cc: Nicolas Ferre Cc: linux-kernel@vger.kernel.org Signed-off-by: Milo Kim --- drivers/irqchip/irq-atmel-aic-common.c | 29 + drivers/irqchip/irq-atmel-aic-com

[PATCH 16/19] irqchip: atmel-aic: get total number of IRQs from device node

2016-01-03 Thread Milo Kim
IRQ number, 'NR_AT91RM9200_IRQS'. Cc: Thomas Gleixner Cc: Jason Cooper Cc: Marc Zyngier Cc: Alexandre Belloni Cc: Boris BREZILLON Cc: Ludovic Desroches Cc: Nicolas Ferre Cc: linux-kernel@vger.kernel.org Signed-off-by: Milo Kim --- drivers/irqchip/irq-atm

[PATCH 14/19] irqchip: atmel-aic: add common HW init function

2016-01-03 Thread Milo Kim
Desroches Cc: Nicolas Ferre Cc: linux-kernel@vger.kernel.org Signed-off-by: Milo Kim --- drivers/irqchip/irq-atmel-aic-common.c | 42 ++ drivers/irqchip/irq-atmel-aic.c| 31 - drivers/irqchip/irq-atmel-aic5.c | 32

[PATCH 11/19] irqchip: atmel-aic: add common PM IRQ chip operation

2016-01-03 Thread Milo Kim
Cc: Jason Cooper Cc: Marc Zyngier Cc: Alexandre Belloni Cc: Boris BREZILLON Cc: Ludovic Desroches Cc: Nicolas Ferre Cc: linux-kernel@vger.kernel.org Signed-off-by: Milo Kim --- drivers/irqchip/irq-atmel-aic-common.c | 113 - drivers/irqchip/irq-atmel-aic.c

[PATCH 15/19] irqchip: atmel-aic: add common interrupt handler

2016-01-03 Thread Milo Kim
@vger.kernel.org Signed-off-by: Milo Kim --- drivers/irqchip/irq-atmel-aic-common.c | 24 drivers/irqchip/irq-atmel-aic.c| 25 - drivers/irqchip/irq-atmel-aic5.c | 24 3 files changed, 24 insertions(+), 49 deletions(-) diff

[PATCH 12/19] irqchip: atmel-aic: use EOI register data in aic_reg_data

2016-01-03 Thread Milo Kim
Structure 'aic_reg_data' has EOI data, chip type data can be moved to common part. Cc: Thomas Gleixner Cc: Jason Cooper Cc: Marc Zyngier Cc: Alexandre Belloni Cc: Boris BREZILLON Cc: Ludovic Desroches Cc: Nicolas Ferre Cc: linux-kernel@vger.kernel.org Signed-off-by: Milo Kim --

[PATCH 08/19] irqchip: atmel-aic: add common mask and unmask functions

2016-01-03 Thread Milo Kim
Alexandre Belloni Cc: Boris BREZILLON Cc: Ludovic Desroches Cc: Nicolas Ferre Cc: linux-kernel@vger.kernel.org Signed-off-by: Milo Kim --- drivers/irqchip/irq-atmel-aic-common.c | 52 ++ drivers/irqchip/irq-atmel-aic.c| 4 --- drivers/irqchip/irq-at

[PATCH 10/19] irqchip: atmel-aic: add common set_type function

2016-01-03 Thread Milo Kim
IRQ data and accessing AIC/AIC5 registers. Cc: Thomas Gleixner Cc: Jason Cooper Cc: Marc Zyngier Cc: Alexandre Belloni Cc: Boris BREZILLON Cc: Ludovic Desroches Cc: Nicolas Ferre Cc: linux-kernel@vger.kernel.org Signed-off-by: Milo Kim --- drivers/irqchip/irq-atmel-aic-common.c | 20 ++

[PATCH 05/19] irqchip: atmel-aic: use simple constant to get number of interrupts per chip

2016-01-03 Thread Milo Kim
Cooper Cc: Marc Zyngier Cc: Alexandre Belloni Cc: Boris BREZILLON Cc: Ludovic Desroches Cc: Nicolas Ferre Cc: linux-kernel@vger.kernel.org Signed-off-by: Milo Kim --- drivers/irqchip/irq-atmel-aic.c | 2 +- drivers/irqchip/irq-atmel-aic5.c | 9 +++-- 2 files changed, 4 insertions(+), 7

[PATCH 03/19] irqchip: atmel-aic: clean up RTT interrupt code

2016-01-03 Thread Milo Kim
ooper Cc: Marc Zyngier Cc: Alexandre Belloni Cc: Boris BREZILLON Cc: Ludovic Desroches Cc: Nicolas Ferre Cc: linux-kernel@vger.kernel.org Signed-off-by: Milo Kim --- drivers/irqchip/irq-atmel-aic-common.c | 45 -- drivers/irqchip/irq-atmel-aic-common.h | 4 ---

[PATCH 00/19] irqchip: atmel-aic: make unified AIC driver

2016-01-03 Thread Milo Kim
: 597 AIC5: 688 Consolidated AIC: 609 Milo Kim (19): irqchip: atmel-aic: fix wrong bit operation for IRQ priority irqchip: atmel-aic: clean up RTC interrupt code irqchip: atmel-aic: clean up RTT interrupt code irqchip: atmel-aic: replace magic numbers with named constant

[PATCH 02/19] irqchip: atmel-aic: clean up RTC interrupt code

2016-01-03 Thread Milo Kim
r Cc: Marc Zyngier Cc: Alexandre Belloni Cc: Boris BREZILLON Cc: Ludovic Desroches Cc: Nicolas Ferre Cc: linux-kernel@vger.kernel.org Signed-off-by: Milo Kim --- drivers/irqchip/irq-atmel-aic-common.c | 28 drivers/irqchip/irq-atmel-aic-common.h | 2 -- drivers/ir

[PATCH 00/16] Support TI LMU devices

2015-11-01 Thread Milo Kim
. Branch name is 'ti-lmu'. git clone -b ti-lmu https://github.com/milokim/linux.git Milo Kim (16): Documentation: dt-bindings: mfd: add TI LMU device binding information Documentation: dt-bindings: backlight: add TI LMU backlight binding information Documentation: dt-bindings: hwm

[PATCH 13/16] backlight: ti-lmu-backlight: add LM3697 driver

2015-11-01 Thread Milo Kim
d' is set to true. Then, TI LMU backlight handles LMU HWMON event in ti_lmu_backlight_hwmon_notifier(). Common backlight driver is controlled by TI LMU backlight driver. Only LM3697 specific code is implemented here. Cc: Jingoo Han Cc: Lee Jones Cc: linux-kernel@vger.kernel.org Signed-off-by

[PATCH 02/16] Documentation: dt-bindings: backlight: add TI LMU backlight binding information

2015-11-01 Thread Milo Kim
LM3532, LM3631, LM3632, LM3633, LM3695 and LM3697 use common dt-bindings for describing device. Cc: devicet...@vger.kernel.org Cc: Jingoo Han Cc: Lee Jones Cc: linux-kernel@vger.kernel.org Signed-off-by: Milo Kim --- .../bindings/video/backlight/ti-lmu-backlight.txt | 67

[PATCH 05/16] Documentation: dt-bindings: regulator: add LM363x regulator binding information

2015-11-01 Thread Milo Kim
This binding supports LM3631 and LM3632 regulator configuration. Cc: devicet...@vger.kernel.org Cc: Lee Jones Cc: Mark Brown Cc: linux-kernel@vger.kernel.org Signed-off-by: Milo Kim --- .../bindings/regulator/lm363x-regulator.txt| 28 ++ 1 file changed, 28

[PATCH 12/16] backlight: ti-lmu-backlight: add LM3695 driver

2015-11-01 Thread Milo Kim
LM3695 has 2 backlight strings and 11 bit dimming is supported. Common backlight driver is controlled by TI LMU backlight driver. Only LM3695 specific code is implemented here. Cc: Jingoo Han Cc: Lee Jones Cc: linux-kernel@vger.kernel.org Signed-off-by: Milo Kim --- drivers/video/backlight

[PATCH 01/16] Documentation: dt-bindings: mfd: add TI LMU device binding information

2015-11-01 Thread Milo Kim
This patch describes overall binding for TI LMU MFD devices. Cc: devicet...@vger.kernel.org Cc: Lee Jones Cc: linux-kernel@vger.kernel.org Signed-off-by: Milo Kim --- Documentation/devicetree/bindings/mfd/ti-lmu.txt | 282 +++ 1 file changed, 282 insertions(+) create mode

[PATCH 15/16] leds: add LM3633 driver

2015-11-01 Thread Milo Kim
/ \ + (2) / \ (4) + (b) > _/ \_ ... + (1) (5) + + |<- period -> | + +What: /sys/class/leds//pattern_times +Date: Oct 2015 +Kerne

[PATCH 16/16] regulator: add LM363X driver

2015-11-01 Thread Milo Kim
LM3632 can be controlled by external pins. Those are described in the device tree bindings. Cc: Mark Brown Cc: Lee Jones Cc: devicet...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Milo Kim --- drivers/regulator/Kconfig| 9 + drivers/regulator/Makefile

[PATCH 09/16] backlight: ti-lmu-backlight: add LM3631 driver

2015-11-01 Thread Milo Kim
: Milo Kim --- drivers/video/backlight/Kconfig | 9 +++ drivers/video/backlight/Makefile| 1 + drivers/video/backlight/lm3631_bl.c | 129 3 files changed, 139 insertions(+) create mode 100644 drivers/video/backlight/lm3631_bl.c diff --git a

[PATCH 11/16] backlight: ti-lmu-backlight: add LM3633 driver

2015-11-01 Thread Milo Kim
d' is set to true. Then, TI LMU backlight handles LMU HWMON event in ti_lmu_backlight_hwmon_notifier(). Common backlight driver is controlled by TI LMU backlight driver. Only LM3633 specific code is implemented here. Cc: Jingoo Han Cc: Lee Jones Cc: linux-kernel@vger.kernel.org Signed-off-by

[PATCH 06/16] mfd: add TI LMU driver

2015-11-01 Thread Milo Kim
arate patch for lm363x-regulator. Cc: Lee Jones Cc: Jingoo Han Cc: Guenter Roeck Cc: Jean Delvare Cc: Jacek Anaszewski Cc: Mark Brown Cc: lm-sens...@lm-sensors.org Cc: linux-l...@vger.kernel.org Cc: devicet...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Milo Kim --- driver

[PATCH 03/16] Documentation: dt-bindings: hwmon: add TI LMU HWMON binding information

2015-11-01 Thread Milo Kim
ned-off-by: Milo Kim --- Documentation/devicetree/bindings/hwmon/ti-lmu-hwmon.txt | 12 1 file changed, 12 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/ti-lmu-hwmon.txt diff --git a/Documentation/devicetree/bindings/hwmon/ti-lmu-hwmon.txt b/Documentation/

[PATCH 14/16] hwmon: add TI LMU hardware fault monitoring driver

2015-11-01 Thread Milo Kim
ght driver handles this event. Cc: Guenter Roeck Cc: Jean Delvare Cc: Lee Jones Cc: devicet...@vger.kernel.org Cc: lm-sens...@lm-sensors.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Milo Kim --- drivers/hwmon/Kconfig| 10 ++ drivers/hwmon/Makefile | 1 + drivers/hw

[PATCH 08/16] backlight: ti-lmu-backlight: add LM3532 driver

2015-11-01 Thread Milo Kim
: Milo Kim --- drivers/video/backlight/Kconfig | 9 ++ drivers/video/backlight/Makefile| 1 + drivers/video/backlight/lm3532_bl.c | 183 3 files changed, 193 insertions(+) create mode 100644 drivers/video/backlight/lm3532_bl.c diff --git a/drivers

[PATCH 10/16] backlight: ti-lmu-backlight: add LM3632 driver

2015-11-01 Thread Milo Kim
: Milo Kim --- drivers/video/backlight/Kconfig | 9 +++ drivers/video/backlight/Makefile| 1 + drivers/video/backlight/lm3632_bl.c | 125 3 files changed, 135 insertions(+) create mode 100644 drivers/video/backlight/lm3632_bl.c diff --git a

[PATCH 07/16] backlight: add TI LMU backlight common driver

2015-11-01 Thread Milo Kim
goo Han Cc: Lee Jones Cc: devicet...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Milo Kim --- drivers/video/backlight/Kconfig| 9 + drivers/video/backlight/Makefile | 1 + drivers/video/backlight/ti-lmu-backlight.c | 429 ++

[PATCH 04/16] Documentation: dt-bindings: leds: add LM3633 LED binding information

2015-11-01 Thread Milo Kim
LM3633 LED device is one of TI LMU device list. Cc: devicet...@vger.kernel.org Cc: Jacek Anaszewski Cc: Lee Jones Cc: linux-kernel@vger.kernel.org Cc: linux-l...@vger.kernel.org Signed-off-by: Milo Kim --- .../devicetree/bindings/leds/leds-lm3633.txt | 28 ++ 1 file

[PATCH RESEND 00/16] Support TI LMU devices

2015-11-01 Thread Milo Kim
. Branch name is 'ti-lmu'. git clone -b ti-lmu https://github.com/milokim/linux.git Milo Kim (16): Documentation: dt-bindings: mfd: add TI LMU device binding information Documentation: dt-bindings: backlight: add TI LMU backlight binding information Documentation: dt-bindings: hwm

[PATCH RESEND 02/16] Documentation: dt-bindings: backlight: add TI LMU backlight binding information

2015-11-01 Thread Milo Kim
LM3532, LM3631, LM3632, LM3633, LM3695 and LM3697 use common dt-bindings for describing device. Cc: devicet...@vger.kernel.org Cc: Jingoo Han Cc: Lee Jones Cc: linux-kernel@vger.kernel.org Signed-off-by: Milo Kim --- .../bindings/video/backlight/ti-lmu-backlight.txt | 67

[PATCH RESEND 07/16] backlight: add TI LMU backlight common driver

2015-11-01 Thread Milo Kim
goo Han Cc: Lee Jones Cc: devicet...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Milo Kim --- drivers/video/backlight/Kconfig| 9 + drivers/video/backlight/Makefile | 1 + drivers/video/backlight/ti-lmu-backlight.c | 429 ++

[PATCH RESEND 03/16] Documentation: dt-bindings: hwmon: add TI LMU HWMON binding information

2015-11-01 Thread Milo Kim
ned-off-by: Milo Kim --- Documentation/devicetree/bindings/hwmon/ti-lmu-hwmon.txt | 12 1 file changed, 12 insertions(+) create mode 100644 Documentation/devicetree/bindings/hwmon/ti-lmu-hwmon.txt diff --git a/Documentation/devicetree/bindings/hwmon/ti-lmu-hwmon.txt b/Documentation/

[PATCH RESEND 06/16] mfd: add TI LMU driver

2015-11-01 Thread Milo Kim
arate patch for lm363x-regulator. Cc: Lee Jones Cc: Jingoo Han Cc: Guenter Roeck Cc: Jean Delvare Cc: Jacek Anaszewski Cc: Mark Brown Cc: lm-sens...@lm-sensors.org Cc: linux-l...@vger.kernel.org Cc: devicet...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Milo Kim --- driver

[PATCH RESEND 14/16] hwmon: add TI LMU hardware fault monitoring driver

2015-11-01 Thread Milo Kim
ght driver handles this event. Cc: Guenter Roeck Cc: Jean Delvare Cc: Lee Jones Cc: devicet...@vger.kernel.org Cc: lm-sens...@lm-sensors.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Milo Kim --- drivers/hwmon/Kconfig| 10 ++ drivers/hwmon/Makefile | 1 + drivers/hw

[PATCH RESEND 13/16] backlight: ti-lmu-backlight: add LM3697 driver

2015-11-01 Thread Milo Kim
d' is set to true. Then, TI LMU backlight handles LMU HWMON event in ti_lmu_backlight_hwmon_notifier(). Common backlight driver is controlled by TI LMU backlight driver. Only LM3697 specific code is implemented here. Cc: Jingoo Han Cc: Lee Jones Cc: linux-kernel@vger.kernel.org Signed-off-by

[PATCH RESEND 16/16] regulator: add LM363X driver

2015-11-01 Thread Milo Kim
LM3632 can be controlled by external pins. Those are described in the device tree bindings. Cc: Mark Brown Cc: Lee Jones Cc: devicet...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Milo Kim --- drivers/regulator/Kconfig| 9 + drivers/regulator/Makefile

[PATCH RESEND 11/16] backlight: ti-lmu-backlight: add LM3633 driver

2015-11-01 Thread Milo Kim
d' is set to true. Then, TI LMU backlight handles LMU HWMON event in ti_lmu_backlight_hwmon_notifier(). Common backlight driver is controlled by TI LMU backlight driver. Only LM3633 specific code is implemented here. Cc: Jingoo Han Cc: Lee Jones Cc: linux-kernel@vger.kernel.org Signed-off-by

[PATCH RESEND 15/16] leds: add LM3633 driver

2015-11-01 Thread Milo Kim
/ \ + (2) / \ (4) + (b) > _/ \_ ... + (1) (5) + + |<- period -> | + +What: /sys/class/leds//pattern_times +Date: Oct 2015 +Kerne

[PATCH RESEND 10/16] backlight: ti-lmu-backlight: add LM3632 driver

2015-11-01 Thread Milo Kim
: Milo Kim --- drivers/video/backlight/Kconfig | 9 +++ drivers/video/backlight/Makefile| 1 + drivers/video/backlight/lm3632_bl.c | 125 3 files changed, 135 insertions(+) create mode 100644 drivers/video/backlight/lm3632_bl.c diff --git a

[PATCH RESEND 12/16] backlight: ti-lmu-backlight: add LM3695 driver

2015-11-01 Thread Milo Kim
LM3695 has 2 backlight strings and 11 bit dimming is supported. Common backlight driver is controlled by TI LMU backlight driver. Only LM3695 specific code is implemented here. Cc: Jingoo Han Cc: Lee Jones Cc: linux-kernel@vger.kernel.org Signed-off-by: Milo Kim --- drivers/video/backlight

[PATCH RESEND 04/16] Documentation: dt-bindings: leds: add LM3633 LED binding information

2015-11-01 Thread Milo Kim
LM3633 LED device is one of TI LMU device list. Cc: devicet...@vger.kernel.org Cc: Jacek Anaszewski Cc: Lee Jones Cc: linux-kernel@vger.kernel.org Cc: linux-l...@vger.kernel.org Signed-off-by: Milo Kim --- .../devicetree/bindings/leds/leds-lm3633.txt | 28 ++ 1 file

[PATCH RESEND 05/16] Documentation: dt-bindings: regulator: add LM363x regulator binding information

2015-11-01 Thread Milo Kim
This binding supports LM3631 and LM3632 regulator configuration. Cc: devicet...@vger.kernel.org Cc: Lee Jones Cc: Mark Brown Cc: linux-kernel@vger.kernel.org Signed-off-by: Milo Kim --- .../bindings/regulator/lm363x-regulator.txt| 28 ++ 1 file changed, 28

[PATCH RESEND 09/16] backlight: ti-lmu-backlight: add LM3631 driver

2015-11-01 Thread Milo Kim
: Milo Kim --- drivers/video/backlight/Kconfig | 9 +++ drivers/video/backlight/Makefile| 1 + drivers/video/backlight/lm3631_bl.c | 129 3 files changed, 139 insertions(+) create mode 100644 drivers/video/backlight/lm3631_bl.c diff --git a

[PATCH RESEND 08/16] backlight: ti-lmu-backlight: add LM3532 driver

2015-11-01 Thread Milo Kim
: Milo Kim --- drivers/video/backlight/Kconfig | 9 ++ drivers/video/backlight/Makefile| 1 + drivers/video/backlight/lm3532_bl.c | 183 3 files changed, 193 insertions(+) create mode 100644 drivers/video/backlight/lm3532_bl.c diff --git a/drivers

[PATCH RESEND 01/16] Documentation: dt-bindings: mfd: add TI LMU device binding information

2015-11-01 Thread Milo Kim
This patch describes overall binding for TI LMU MFD devices. Cc: devicet...@vger.kernel.org Cc: Lee Jones Cc: linux-kernel@vger.kernel.org Signed-off-by: Milo Kim --- Documentation/devicetree/bindings/mfd/ti-lmu.txt | 282 +++ 1 file changed, 282 insertions(+) create mode

[PATCH] backlight: lp855x: use private data for regulator control

2015-06-29 Thread Milo Kim
0>; regulator-max-microvolt = <330>; (snip) }; Cc: Sean Paul Cc: Jingoo Han Cc: Lee Jones Cc: devicet...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Milo Kim --- .../devicetree/bindings/video/backlight/lp855x.txt |

[PATCH v2 1/3] ARM: dts: imx6: Add Savageboard common file

2016-12-05 Thread Milo Kim
output simultaneously. * Pinmux eMMC, ethernet, HDMI, I2C, power button, PWM, SD card and UART. * Others Enable ethernet, UART1 debug, USB host, USDHC3 for microSD card and USDHC4 for built-in eMMC storage. Signed-off-by: Milo Kim --- arch/arm/boot/dts/imx6qdl-savageboard.dtsi | 262

[PATCH v2 0/3] ARM: dts: imx6: Support Poslab Savageboard dual & quad

2016-12-05 Thread Milo Kim
-reset-gpios and iomuxc node. Milo Kim (3): ARM: dts: imx6: Add Savageboard common file ARM: dts: imx6: Support Savageboard dual ARM: dts: imx6: Support Savageboard quad arch/arm/boot/dts/imx6dl-savageboard.dts | 50 ++ arch/arm/boot/dts/imx6q-savageboard.dts| 54 ++ arch/arm

[PATCH v2 3/3] ARM: dts: imx6: Support Savageboard quad

2016-12-05 Thread Milo Kim
Use common board file and support SATA interface additionally. Signed-off-by: Milo Kim --- arch/arm/boot/dts/imx6q-savageboard.dts | 54 + 1 file changed, 54 insertions(+) create mode 100644 arch/arm/boot/dts/imx6q-savageboard.dts diff --git a/arch/arm/boot/dts

[PATCH v2 2/3] ARM: dts: imx6: Support Savageboard dual

2016-12-05 Thread Milo Kim
Common savageboard DT file is used for board support. Signed-off-by: Milo Kim --- arch/arm/boot/dts/imx6dl-savageboard.dts | 50 1 file changed, 50 insertions(+) create mode 100644 arch/arm/boot/dts/imx6dl-savageboard.dts diff --git a/arch/arm/boot/dts/imx6dl

Re: [PATCH 1/3] ARM: dts: imx6: Add Savageboard common file

2016-12-05 Thread Milo Kim
On 12/05/2016 08:36 PM, Fabio Estevam wrote: On Sun, Dec 4, 2016 at 11:07 PM, Milo Kim wrote: + regulators { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <0>; + +

Re: [PATCH 1/2] ARM: dts: sun8i: Specify memblock for Nano Pi M1

2016-12-05 Thread Milo Kim
On 12/05/2016 05:09 PM, Maxime Ripard wrote: On Mon, Dec 05, 2016 at 11:00:31AM +0900, Milo Kim wrote: The board has DDR3 512MB. This patch helps scanning the memory and adding memblock through the DT. Signed-off-by: Milo Kim --- arch/arm/boot/dts/sun8i-h3-nanopi-m1.dts | 5 + 1 file

Re: [PATCH v2 0/3] ARM: dts: imx6: Support Poslab Savageboard dual & quad

2016-12-06 Thread Milo Kim
On 12/06/2016 06:42 PM, Fabio Estevam wrote: You missed to add imx6q-savageboard.dtb and imx6dl-savageboard.dtb entries into arch/arm/boot/dts/Makefile Oh, I didn't notice because I build the dtbs manually. Thanks for catching this. And do you think other patches look OK? Best regards, Milo

Re: [PATCH 1/2] ARM: dts: sun8i: Specify memblock for Nano Pi M1

2016-12-06 Thread Milo Kim
On 12/06/2016 11:00 PM, Maxime Ripard wrote: No, we need a recent U-Boot in order to boot, and such a uboot will setup the memory node anyway. Got it. Thanks! Please just ignore my patches. Best regards, Milo

Re: [PATCH] dt-bindings: mfd: Improve readability for TPS65217 interrupt sources

2016-11-23 Thread Milo Kim
On 11/23/2016 12:57 AM, Lee Jones wrote: pwrbutton { > - interrupts = ; > + interrupts = ; Push button or power button? According to the datasheet, push button interrupt is correct. http://www.ti.com/lit/ds/symlink/tps65217.pdf This is used for a power butt

Re: [PATCH 2/5] power: supply: tps65217: Remove IRQ data from driver data

2016-11-23 Thread Milo Kim
On 11/23/2016 01:58 AM, Sebastian Reichel wrote: On Tue, Nov 22, 2016 at 05:51:07PM +0100, Sebastian Reichel wrote: > On Tue, Nov 15, 2016 at 10:18:52PM +0900, Milo Kim wrote: > > IRQ number is only used on requesting the interrupt, so no need to keep > > it inside the drive

Re: [PATCH] dt-bindings: mfd: Improve readability for TPS65217 interrupt sources

2016-11-23 Thread Milo Kim
On 11/23/2016 08:51 PM, Arnd Bergmann wrote: Ah, the numbers come from the data sheet. Please just remove the header then, there is no need to keep them as an ABI, in particular when the driver doesn't even include that header today. Got it. What matters here is the binding documentation in D

Re: [PATCH resend v4 2/3] ARM: dts: imx6: Support Savageboard dual

2017-01-09 Thread Milo Kim
On 01/10/2017 12:27 PM, Shawn Guo wrote: On Wed, Jan 04, 2017 at 04:04:36PM +0900, Milo Kim wrote: Common savageboard DT file is used for board support. Add the vendor name and specify the dtb file for i.MX6Q build. Reviewed-by: Fabio Estevam Signed-off-by: Milo Kim --- .../devicetree

Re: [PATCH 5/7] ARM: dts: am335x: Add the charger interrupt

2016-10-27 Thread Milo Kim
On 10/22/2016 05:47 AM, Robert Nelson wrote: +#include ^ this hasn't been posted nor pushed to mainline yet.. ;) Oops! I've created this file but not captured not only in my git tree but also in my head! Thanks for your review. Best regards, Milo

Re: [PATCH 7/7] mfd: tps65217: Fix mismatched interrupt number

2016-10-27 Thread Milo Kim
On 10/26/2016 10:56 PM, Lee Jones wrote: diff --git a/include/linux/mfd/tps65217.h b/include/linux/mfd/tps65217.h > index 4ccda89..75a3a5f 100644 > --- a/include/linux/mfd/tps65217.h > +++ b/include/linux/mfd/tps65217.h > @@ -235,9 +235,9 @@ struct tps65217_bl_pdata { > }; > > enum tps65217_irq

[PATCH v2 4/4] spi: sun6i: Support Allwinner H3 SPI controller

2016-10-27 Thread Milo Kim
, 'fifo_depth' instead of fixed value to support both SPI controllers. Cc: Mark Brown Cc: Maxime Ripard Cc: Chen-Yu Tsai Signed-off-by: Milo Kim --- drivers/spi/spi-sun6i.c | 18 +- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/drivers/spi/spi-sun6i.c

[PATCH v2 3/4] spi: sun6i: Add binding for Allwinner H3 SPI controller

2016-10-27 Thread Milo Kim
H3 SPI has same architecture as A31 except FIFO capacity. To configure the buffer size separately, compatible property should be different. Optional DMA specifiers and example are added. Acked-by: Maxime Ripard Cc: Mark Brown Cc: Rob Herring Cc: Chen-Yu Tsai Signed-off-by: Milo Kim

[PATCH v2 1/4] ARM: dts: sun8i: Add SPI pinctrl node in H3

2016-10-27 Thread Milo Kim
H3 supports two SPI controllers. Four pins (MOSI, MISO, SCLK, SS) are configured through the pinctrl subsystem. Cc: Maxime Ripard Cc: Chen-Yu Tsai Signed-off-by: Milo Kim --- arch/arm/boot/dts/sun8i-h3.dtsi | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm/boot/dts

[PATCH v2 0/4] Support H3 SPI controller

2016-10-27 Thread Milo Kim
(warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]) Milo Kim (4): ARM: dts: sun8i: Add SPI pinctrl node in H3 ARM: dts: sun8i: Add SPI controller node in H3 spi: sun6i: Add binding for Allwinner H3 SPI controller spi: sun6i: Support Allwinner H3 SPI

[PATCH v2 2/4] ARM: dts: sun8i: Add SPI controller node in H3

2016-10-27 Thread Milo Kim
H3 SPI subsystem is almost same as A31 SPI except buffer size, so those DT properties are reusable. Cc: Maxime Ripard Cc: Chen-Yu Tsai Signed-off-by: Milo Kim --- arch/arm/boot/dts/sun8i-h3.dtsi | 32 1 file changed, 32 insertions(+) diff --git a/arch/arm

[PATCH v2 2/3] ARM: dts: sun8i: Use the common file in NanoPi NEO SBC

2016-10-28 Thread Milo Kim
NanoPi common dtsi supports all components of NEO SBC, so just include it. Cc: James Pettigrew Signed-off-by: Milo Kim --- arch/arm/boot/dts/sun8i-h3-nanopi-neo.dts | 79 +-- 1 file changed, 1 insertion(+), 78 deletions(-) diff --git a/arch/arm/boot/dts/sun8i-h3

[PATCH v2 1/3] ARM: dts: sun8i: Add common dtsi file for NanoPi SBCs

2016-10-28 Thread Milo Kim
This patch provides a common file for NanoPi M1 and Neo SBC. Those have common features below. * UART0 * 2 LEDs * USB host (EHCI3, OHCI3) and PHY * MicroSD * GPIO key switch Cc: James Pettigrew Signed-off-by: Milo Kim --- arch/arm/boot/dts/sun8i-h3-nanopi.dtsi | 144

[PATCH v2 3/3] ARM: dts: sun8i: Add dts file for NanoPi M1 SBC

2016-10-28 Thread Milo Kim
NanoPi M1 is the Allwinner H3 based board. This patch enables UART for debug console, LEDs, GPIO key switch, 3 USB host ports, a micro SD slot and related power and pin controls by using NanoPi common dtsi file. Cc: James Pettigrew Signed-off-by: Milo Kim --- arch/arm/boot/dts/sun8i-h3-nanopi

[PATCH v2 0/3] ARM: dts: sun8i: Support NanoPi SBCs

2016-10-28 Thread Milo Kim
NanoPi M1 and NEO have common features, so duplicate properties can be moved into new dtsi file. v2: Add James's copyrights in NanoPi common dtsi file Milo Kim (3): ARM: dts: sun8i: Add common dtsi file for NanoPi SBCs ARM: dts: sun8i: Use the common file in NanoPi NEO SBC ARM

[PATCH v2 0/8] Support TPS65217 PMIC interrupt in DT

2016-10-28 Thread Milo Kim
Use #defines instead of enum type for interrupt numbers Milo Kim (8): ARM: dts: tps65217: Specify the interrupt controller ARM: dts: tps65217: Add the charger device ARM: dts: tps65217: Add the power button device ARM: dts: am335x: Support the PMIC interrupt dt-bindings: mfd: Provide

[PATCH v2 1/8] ARM: dts: tps65217: Specify the interrupt controller

2016-10-28 Thread Milo Kim
-pwrbutton.c Signed-off-by: Milo Kim --- arch/arm/boot/dts/tps65217.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/tps65217.dtsi b/arch/arm/boot/dts/tps65217.dtsi index a632724..27935f8 100644 --- a/arch/arm/boot/dts/tps65217.dtsi +++ b/arch/arm/boot/dts/tps65217

[PATCH v2 5/8] dt-bindings: mfd: Provide human readable defines for TPS65217 interrupts

2016-10-28 Thread Milo Kim
TPS65217 supports three interrupt sources. This patch enables assigning each IRQ number in the charger and power button node. Then corresponding IRQ will be requested by each driver. Signed-off-by: Milo Kim --- include/dt-bindings/mfd/tps65217.h | 26 ++ 1 file changed

[PATCH v2 3/8] ARM: dts: tps65217: Add the power button device

2016-10-28 Thread Milo Kim
Support the power button driver and disable it by default. Signed-off-by: Milo Kim --- arch/arm/boot/dts/tps65217.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/tps65217.dtsi b/arch/arm/boot/dts/tps65217.dtsi index 8f77d0d..02de56b 100644 --- a/arch/arm/boot/dts

[PATCH v2 8/8] mfd: tps65217: Fix mismatched interrupt number

2016-10-28 Thread Milo Kim
pt when it is probed. According to the TPS65217 register map[**], USB interrupt is the LSB. This patch defines synchronized IRQ value. [*] include/dt-bindings/mfd/tps65217.h [**] http://www.ti.com/lit/ds/symlink/tps65217.pdf Signed-off-by: Milo Kim --- include/linux/mfd/tps65217.h | 11 +

[PATCH v2 6/8] ARM: dts: am335x: Add the charger interrupt

2016-10-28 Thread Milo Kim
This enables the charger driver gets corresponding IRQ number by using platform_get_irq_byname() helper. Signed-off-by: Milo Kim --- arch/arm/boot/dts/am335x-bone-common.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/am335x-bone-common.dtsi b/arch/arm/boot

<    1   2   3   4   >