22 Jul, 2019

2 commits

  • According to the datasheet http://www.ti.com/lit/ds/symlink/lm36274.pdf:
    Table 23. VPOS Bias Register Field Descriptions VPOS[5:0]:
    VPOS voltage (50-mV steps): VPOS = 4 V + (Code × 50 mV), 6.5 V max
    000000 = 4 V
    000001 = 4.05 V
    :
    011110 = 5.5 V (Default)
    :
    110010 = 6.5 V
    110011 to 111111 map to 6.5 V

    So the LM36274_LDO_VSEL_MAX should be 0b110010 (0x32).
    The valid selectors are 0 ... LM36274_LDO_VSEL_MAX, n_voltages should be
    LM36274_LDO_VSEL_MAX + 1. Similarly, the n_voltages should be
    LM36274_BOOST_VSEL_MAX + 1 for LM36274_BOOST.

    Fixes: bff5e8071533 ("regulator: lm363x: Add support for LM36274")
    Signed-off-by: Axel Lin
    Link: https://lore.kernel.org/r/20190626132632.32629-2-axel.lin@ingics.com
    Signed-off-by: Mark Brown

    Axel Lin
     
  • According to the datasheet https://www.ti.com/lit/ds/symlink/lm3632a.pdf
    Table 20. VPOS Bias Register Field Descriptions VPOS[5:0]
    Sets the Positive Display Bias (LDO) Voltage (50 mV per step)
    000000: 4 V
    000001: 4.05 V
    000010: 4.1 V
    ....................
    011101: 5.45 V
    011110: 5.5 V (Default)
    011111: 5.55 V
    ....................
    100111: 5.95 V
    101000: 6 V
    Note: Codes 101001 to 111111 map to 6 V

    The LM3632_LDO_VSEL_MAX should be 0b101000 (0x28), so the maximum voltage
    can match the datasheet.

    Fixes: 3a8d1a73a037 ("regulator: add LM363X driver")
    Signed-off-by: Axel Lin
    Link: https://lore.kernel.org/r/20190626132632.32629-1-axel.lin@ingics.com
    Signed-off-by: Mark Brown

    Axel Lin
     

09 Jul, 2019

1 commit

  • …anaszewski/linux-leds

    Pull LED updates from Jacek Anaszewski:

    - Add a new LED common module for ti-lmu driver family

    - Modify MFD ti-lmu bindings
    - add ti,brightness-resolution
    - add the ramp up/down property

    - Add regulator support for LM36274 driver to lm363x-regulator.c

    - New LED class drivers with DT bindings:
    - leds-spi-byte
    - leds-lm36274
    - leds-lm3697 (move the support from MFD to LED subsystem)

    - Simplify getting the I2C adapter of a client:
    - leds-tca6507
    - leds-pca955x

    - Convert LED documentation to ReST

    * tag 'leds-for-5.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/j.anaszewski/linux-leds:
    dt: leds-lm36274.txt: fix a broken reference to ti-lmu.txt
    docs: leds: convert to ReST
    leds: leds-tca6507: simplify getting the adapter of a client
    leds: leds-pca955x: simplify getting the adapter of a client
    leds: lm36274: Introduce the TI LM36274 LED driver
    dt-bindings: leds: Add LED bindings for the LM36274
    regulator: lm363x: Add support for LM36274
    mfd: ti-lmu: Add LM36274 support to the ti-lmu
    dt-bindings: mfd: Add lm36274 bindings to ti-lmu
    leds: max77650: Remove set but not used variable 'parent'
    leds: avoid flush_work in atomic context
    leds: lm3697: Introduce the lm3697 driver
    mfd: ti-lmu: Remove support for LM3697
    dt-bindings: ti-lmu: Modify dt bindings for the LM3697
    leds: TI LMU: Add common code for TI LMU devices
    leds: spi-byte: add single byte SPI LED driver
    dt-bindings: leds: Add binding for spi-byte LED.
    dt-bindings: mfd: LMU: Add ti,brightness-resolution
    dt-bindings: mfd: LMU: Add the ramp up/down property

    Linus Torvalds
     

19 Jun, 2019

1 commit

  • Based on 2 normalized pattern(s):

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license version 2 as
    published by the free software foundation

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license version 2 as
    published by the free software foundation #

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-only

    has been chosen to replace the boilerplate/reference in 4122 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Enrico Weigelt
    Reviewed-by: Kate Stewart
    Reviewed-by: Allison Randal
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190604081206.933168790@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     

07 Jun, 2019

1 commit

  • Adding regulator support for the LM36274 backlight driver.
    This device can leverage this existing code as the functionality
    and registers are common enough between the LM36274 and the LM363x
    series of devices.

    Signed-off-by: Dan Murphy
    Acked-by: Mark Brown
    Acked-by: Pavel Machek
    Signed-off-by: Jacek Anaszewski

    Dan Murphy
     

03 Apr, 2019

2 commits


09 Feb, 2019

1 commit


11 Dec, 2018

1 commit

  • Use the gpiod_get() rather than the devm_* version so that the
    regulator core can handle the lifecycle of these descriptors.

    Fixes: b2d751b7f69b ("regulator: lm363x: Pass descriptor instead of GPIO number")
    Signed-off-by: Linus Walleij
    Reviewed-by: Marek Szyprowski
    Reviewed-by: Charles Keepax
    Signed-off-by: Mark Brown

    Linus Walleij
     

15 Oct, 2018

1 commit

  • Since the core regulator code is treating GPIO descriptors as
    nonexclusive, i.e. it assumes that the enable GPIO line may be
    shared with several regulators, let's add the flag introduced
    for fixing this problem on fixed regulators to all drivers
    fetching GPIO descriptors to avoid possible regressions.

    Reported-by: Mark Brown
    Signed-off-by: Linus Walleij
    Signed-off-by: Mark Brown

    Linus Walleij
     

24 May, 2018

1 commit


07 Mar, 2017

1 commit


30 Nov, 2015

2 commits


27 Nov, 2015

1 commit

  • LM363X regulator driver supports LM3631 and LM3632.
    LM3631 has 5 regulators. LM3632 provides 3 regulators.
    One boost output and LDOs are used for the display module.
    Boost voltage is configurable but always on.
    Supported operations for LDOs are enabled/disabled and voltage change.

    Two LDOs of LM3632 can be controlled by external pins.
    Those are configured through the DT properties.

    Signed-off-by: Milo Kim
    Signed-off-by: Mark Brown

    Milo Kim