05 Oct, 2012

1 commit

  • Pull MFD changes from Samuel Ortiz:
    "MFD bits for the 3.7 merge window.

    As usual we have a few new drivers:

    - TI LP8788
    - TI OMAP USB TLL
    - Maxim MAX8907
    - SMSC ECE1099
    - Dialog Semiconductor DA9055
    - A simpler syscon driver that allow us to get rid of the anatop one.

    Drivers are also gradually getting Device Tree and IRQ domain support.

    The following drivers got DT support:
    - palmas, 88pm860x, tc3589x and twl4030-audio

    And those ones now use the IRQ domain APIs:
    - 88pm860x, tc3589x, db8500_prcmu

    Also some other interesting changes:
    - Intel's ICH LPC now supports Lynx Point
    - TI's twl4030-audio added a GPO child
    - tps6527 enabled its backlight subdevice
    - The twl6030 pwm driver moved to the new PWM subsystem

    And finally a bunch of cleanup and casual fixes for mc13xxx, 88pm860x,
    palmas, ab8500, wm8994, wm5110, max8907 and the tps65xxx family."

    Fix up various annoying conflicts: the DT and IRQ domain support came in
    twice and was already in 3.6. And then it was apparently rebased.

    Guys, DON'T REBASE!

    * tag 'mfd-3.7-1' of git://git.kernel.org/pub/scm/linux/kernel/git/sameo/mfd-2.6: (89 commits)
    ARM: dts: Enable 88pm860x pmic
    mfd: 88pm860x: Move gpadc init into touch
    mfd: 88pm860x: Device tree support
    mfd: 88pm860x: Use irqdomain
    mfd: smsc: Add support for smsc gpio io/keypad driver
    backlight: tps65217_bl: Add missing platform_set_drvdata in tps65217_bl_probe
    mfd: DA9055 core driver
    mfd: tps65910: Add alarm interrupt of TPS65910 RTC to mfd device list
    mfd: wm5110: Add register patches for revision B
    mfd: wm5110: Disable control interface error report for WM5110 rev B
    mfd: max8907: Remove regulator-compatible from DT docs
    backlight: Add TPS65217 WLED driver
    mfd: Add backlight as subdevice to the tps65217
    mfd: Provide the PRCMU with its own IRQ domain
    mfd: Fix max8907 sparse warning
    mfd: Add lp8788 mfd driver
    mfd: dbx500: Provide a more accurate smp_twd clock
    mfd: rc5t583: Fix warning messages
    regulator: palmas: Add DT support
    mfd: palmas: Change regulator defns to better suite DT
    ...

    Linus Torvalds
     

24 Sep, 2012

1 commit

  • Add DT support to palmas regulator. This involved a little change to
    the platform data structure. Regulator information can now come from
    platform data or DT.

    Signed-off-by: Graeme Gregory
    Signed-off-by: Kishon Vijay Abraham I
    Signed-off-by: Samuel Ortiz

    Graeme Gregory
     

29 Aug, 2012

1 commit


08 Aug, 2012

4 commits


17 Jul, 2012

1 commit

  • The logic of calculating selector in palmas_map_voltage_smps() does not match
    the logic to list voltage in palmas_list_voltage_smps().

    We use below equation to calculate voltage when selector > 0:
    voltage = (0.49V + (selector * 0.01V)) * RANGE
    RANGE is either x1 or x2

    So we need to take into account with the multiplier set in VSEL register when
    calculating selector in palmas_map_voltage_smps()

    Signed-off-by: Axel Lin
    Acked-by: Graeme Gregory
    Signed-off-by: Mark Brown

    Axel Lin
     

03 Jul, 2012

1 commit


25 Jun, 2012

1 commit


23 Jun, 2012

1 commit


08 Jun, 2012

2 commits


04 Jun, 2012

1 commit

  • The devm_kzalloc function eliminates the need for manual resource releasing
    and simplify error handling. Resources allocated by devm_* are freed
    automatically on driver detach.

    Thus adding kfree calls here will introduce double free bug.

    The memory of desc array and the pointers to the rdev[] are allocated by
    devm_kzalloc call for struct palmas_pmic.

    struct palmas_pmic {
    struct palmas *palmas;
    struct device *dev;
    struct regulator_desc desc[PALMAS_NUM_REGS];
    struct regulator_dev *rdev[PALMAS_NUM_REGS];
    struct mutex mutex;

    int smps123;
    int smps457;

    int range[PALMAS_REG_SMPS10];
    };

    Which means we should not call kfree for pmic->rdev and pmic->desc.

    Signed-off-by: Axel Lin
    Signed-off-by: Mark Brown

    Axel Lin
     

03 Jun, 2012

1 commit


19 May, 2012

1 commit

  • Palmas has both Switched Mode (SMPS) and Linear (LDO) regulators in it.
    This regulator driver allows software control of these regulators.

    The regulators available on Palmas series chips vary depending on the muxing.
    This is handled automatically in the driver by reading the mux info from OTP.

    Signed-off-by: Graeme Gregory
    Signed-off-by: Mark Brown

    Graeme Gregory