]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Merge tag 'mfd-3.7-1' of git://git.kernel.org/pub/scm/linux/kernel/git/sameo/mfd-2.6
authorLinus Torvalds <torvalds@linux-foundation.org>
Fri, 5 Oct 2012 03:01:30 +0000 (12:01 +0900)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 5 Oct 2012 03:01:30 +0000 (12:01 +0900)
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
  ...

26 files changed:
1  2 
Documentation/devicetree/bindings/regulator/tps6586x.txt
arch/arm/boot/dts/imx6q.dtsi
arch/arm/boot/dts/pxa910.dtsi
arch/arm/mach-imx/Kconfig
arch/arm/mach-imx/mach-imx6q.c
arch/arm/mach-omap2/usb-host.c
arch/arm/mach-u300/i2c.c
arch/arm/plat-omap/include/plat/usb.h
drivers/gpio/Kconfig
drivers/gpio/Makefile
drivers/mfd/Kconfig
drivers/mfd/db8500-prcmu.c
drivers/mfd/rc5t583.c
drivers/mfd/tps6586x.c
drivers/mfd/twl-core.c
drivers/pwm/Kconfig
drivers/regulator/Kconfig
drivers/regulator/ab3100.c
drivers/regulator/anatop-regulator.c
drivers/regulator/palmas-regulator.c
drivers/regulator/wm831x-dcdc.c
drivers/regulator/wm831x-ldo.c
include/linux/i2c/twl.h
include/linux/mfd/tps6586x.h
include/linux/mfd/twl6040.h
include/linux/of.h

index 07b9ef6e49d5a82fb3b8026947eae0d4411e5d98,03dfa4e0aa75e9406e1eabb7e5a6806a9afc2cc1..8b40cac24d93959740b828f8614736177028f066
@@@ -22,11 -18,12 +22,15 @@@ Required properties
  - vinldo678-supply: The input supply for the LDO6, LDO7 and LDO8
  - vinldo9-supply: The input supply for the LDO9
  
+ Optional properties:
+ - ti,system-power-controller: Telling whether or not this pmic is controlling
+   the system power.
  Each regulator is defined using the standard binding for regulators.
  
 +Note: LDO5 and LDO_RTC is supplied by SYS regulator internally and driver
 +      take care of making proper parent child relationship.
 +
  Example:
  
        pmu: tps6586x@34 {
                #gpio-cells = <2>;
                gpio-controller;
  
 -              sm0-supply = <&some_reg>;
 -              sm1-supply = <&some_reg>;
 -              sm2-supply = <&some_reg>;
+               ti,system-power-controller;
 +              sys-supply = <&some_reg>;
 +              vin-sm0-supply = <&some_reg>;
 +              vin-sm1-supply = <&some_reg>;
 +              vin-sm2-supply = <&some_reg>;
                vinldo01-supply = <...>;
                vinldo23-supply = <...>;
                vinldo4-supply = <...>;
index 35e5895ba3df31856c73193a6bf79f791d54f985,52ed4d1ff4edfd284d49766f19261eeab035fbdd..f3990b04fecf4661216c9cf321dc817c72e1a0b7
                                compatible = "fsl,imx6q-ccm";
                                reg = <0x020c4000 0x4000>;
                                interrupts = <0 87 0x04 0 88 0x04>;
 +                              #clock-cells = <1>;
                        };
  
-                       anatop@020c8000 {
-                               compatible = "fsl,imx6q-anatop";
+                       anatop: anatop@020c8000 {
+                               compatible = "fsl,imx6q-anatop", "syscon", "simple-bus";
                                reg = <0x020c8000 0x1000>;
                                interrupts = <0 49 0x04 0 54 0x04 0 127 0x04>;
  
Simple merge
Simple merge
index 36979d3dfe341aa2cc3d41d0b1742bd1ef261a1a,8d7c141407447717627fea80996aca0cbe71d94a..47c91f7185d2fb7cdef048388e5cf82620e68a87
  #include <linux/of_address.h>
  #include <linux/of_irq.h>
  #include <linux/of_platform.h>
 -#include <linux/pinctrl/machine.h>
  #include <linux/phy.h>
+ #include <linux/regmap.h>
  #include <linux/micrel_phy.h>
- #include <linux/mfd/anatop.h>
+ #include <linux/mfd/syscon.h>
  #include <asm/cpuidle.h>
  #include <asm/smp_twd.h>
  #include <asm/hardware/cache-l2x0.h>
Simple merge
Simple merge
index bd20588c356b47703cc18aa0a78f29094126813b,e68d0998d55fa74652b94380d91e566ae8ea030e..87ee140fefaa94b5b14f8ff94dcc5fdaaaf4e07a
@@@ -4,7 -4,9 +4,8 @@@
  #define       __ASM_ARCH_OMAP_USB_H
  
  #include <linux/io.h>
+ #include <linux/platform_device.h>
  #include <linux/usb/musb.h>
 -#include <plat/board.h>
  
  #define OMAP3_HS_USB_PORTS    3
  
Simple merge
index 0ffaa8423e87c07d9d83d9408edc0da804939c40,f857b463af0fe5f217314811d23879de87d0eed4..b2c109d1303d48afd5dc19d03be105b9b4d41fee
@@@ -68,9 -67,9 +68,10 @@@ obj-$(CONFIG_GPIO_TPS6586X)  += gpio-tps
  obj-$(CONFIG_GPIO_TPS65910)   += gpio-tps65910.o
  obj-$(CONFIG_GPIO_TPS65912)   += gpio-tps65912.o
  obj-$(CONFIG_GPIO_TWL4030)    += gpio-twl4030.o
+ obj-$(CONFIG_GPIO_TWL6040)    += gpio-twl6040.o
  obj-$(CONFIG_GPIO_UCB1400)    += gpio-ucb1400.o
  obj-$(CONFIG_GPIO_VR41XX)     += gpio-vr41xx.o
 +obj-$(CONFIG_GPIO_VT8500)     += gpio-vt8500.o
  obj-$(CONFIG_GPIO_VX855)      += gpio-vx855.o
  obj-$(CONFIG_GPIO_WM831X)     += gpio-wm831x.o
  obj-$(CONFIG_GPIO_WM8350)     += gpio-wm8350.o
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index e98a5e7827df86d9b6b691adb07134f26e2a2f0e,2ae1d97fac1e6d329f54a9a8ffa6f2a201b29b95..67d47b59a66d878c9188afaaa62b92f255d657bb
@@@ -109,20 -110,9 +109,20 @@@ config REGULATOR_DA905
          This driver supports the voltage regulators of DA9052-BC and
          DA9053-AA/Bx PMIC.
  
 +config REGULATOR_FAN53555
 +      tristate "Fairchild FAN53555 Regulator"
 +      depends on I2C
 +      select REGMAP_I2C
 +      help
 +        This driver supports Fairchild FAN53555 Digitally Programmable
 +        TinyBuck Regulator. The FAN53555 is a step-down switching voltage
 +        regulator that delivers a digitally programmable output from an
 +        input voltage supply of 2.5V to 5.5V. The output voltage is
 +        programmed through an I2C interface.
 +
  config REGULATOR_ANATOP
        tristate "Freescale i.MX on-chip ANATOP LDO regulators"
-       depends on MFD_ANATOP
+       depends on MFD_SYSCON
        help
          Say y here to support Freescale i.MX on-chip ANATOP LDOs
          regulators. It is recommended that this option be
Simple merge
index ce0fe72a428e811418aa8190c7f534ce1009d5a4,596535dd917a7d061a48a648350b237885634f5f..1af97686f4448864d92b7dbfdf58e79c883edbb8
@@@ -61,18 -64,17 +64,18 @@@ static int anatop_regmap_set_voltage_se
        return 0;
  }
  
- static int anatop_get_voltage_sel(struct regulator_dev *reg)
+ static int anatop_regmap_get_voltage_sel(struct regulator_dev *reg)
  {
        struct anatop_regulator *anatop_reg = rdev_get_drvdata(reg);
 -      u32 val;
 +      u32 val, mask;
  
        if (!anatop_reg->control_reg)
                return -ENOTSUPP;
  
-       val = anatop_read_reg(anatop_reg->mfd, anatop_reg->control_reg);
+       regmap_read(anatop_reg->anatop, anatop_reg->control_reg, &val);
 -      val = (val & ((1 << anatop_reg->vol_bit_width) - 1)) >>
 +      mask = ((1 << anatop_reg->vol_bit_width) - 1) <<
                anatop_reg->vol_bit_shift;
 +      val = (val & mask) >> anatop_reg->vol_bit_shift;
  
        return val - anatop_reg->min_bit_val;
  }
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index ba43d4806b833e48fe7d67df559e6849c1253817,8991532d439133f596f37c46a34a514148fa6881..a8eff4ad9be5f63197435653c05690cfe3e38186
@@@ -192,8 -194,13 +194,12 @@@ struct twl6040_vibra_data 
        int vddvibr_uV;                 /* VDDVIBR volt, set 0 for fixed reg */
  };
  
+ struct twl6040_gpo_data {
+       int gpio_base;
+ };
  struct twl6040_platform_data {
        int audpwron_gpio;      /* audio power-on gpio */
 -      unsigned int irq_base;
  
        struct twl6040_codec_data *codec;
        struct twl6040_vibra_data *vibra;
Simple merge