23 Jun, 2014

3 commits


23 Oct, 2013

5 commits


21 Aug, 2013

1 commit


20 Aug, 2013

1 commit


15 Aug, 2013

1 commit

  • Hook up "pm_power_off" to palmas power off routine if there is DT
    property "ti,system-power-controller" defined, so platform which is
    powered by this regulator can be powered off properly.

    Acked-by: Nishanth Menon
    Signed-off-by: Mallikarjun Kasoju
    Signed-off-by: Bill Huang
    Signed-off-by: Lee Jones

    Bill Huang
     

24 Jun, 2013

1 commit

  • The Patch adds TPS659038 PMIC support in the palmas mfd driver.
    The TPS659038 has almost the same registers as of the earlier
    supported variants of PALMAS family such as the TWL6035.

    The critical differences between TPS659038 and TWL6035 being:

    1) TPS659038 has nothing related to battery charging and back up battery stuff.
    2) TPS659038 does not have does not have SMPS10(Boost) step up convertor.
    3) TPS659038 does not have Battery detection and anything related to battery.
    4) SD card detection, Battery presence detection, Vibrator, USB OTG are missing
    when compared to TWL6035.

    Signed-off-by: J Keerthy
    Signed-off-by: Samuel Ortiz

    J Keerthy
     

20 Jun, 2013

2 commits


17 Jun, 2013

1 commit


09 Apr, 2013

1 commit

  • Palmas device have three different i2c addresses. The device creates
    the two new dummy i2c clients for accessing the register by using
    primary client adapter. This new dummy i2c client have their of_node
    as NULL.

    The dummy i2c client is used for registering interrupt and on this,
    it creates irq domain handle. This created irq domain handle has
    their of_node as NULL.

    Now when any child of this device is registered through the DT as
    follows:
    palmas: tps65913@58 {
    ::::::::::::::::::

    #interrupt-cells = ;
    interrupt-controller;

    palmas_rtc {
    compatible = "ti,palmas-rtc";
    interrupt-parent = ;
    interrupts = ;
    };
    ::::::::::;;;
    };

    And child driver (palam-rtc in this case) get their irq number as
    irq = platform_get_irq(pdev, 0);

    The returned irq number is error in this case. The reason is that
    the created irq_domain handle for the palmas interrupt does not have
    valid node and so matching of node fails with palmas node.

    Hence initialising the newly dummy created client->of_node with the
    primary clients of_node so that irq_domain handle have proper of_node
    for matching.

    Signed-off-by: Laxman Dewangan
    Signed-off-by: Samuel Ortiz

    Laxman Dewangan
     

05 Apr, 2013

1 commit


12 Mar, 2013

1 commit

  • Currently driver sets the irq type to IRQF_TRIGGER_LOW which is
    causing interrupt registration failure in ARM based SoCs as:
    [ 0.208479] genirq: Setting trigger mode 8 for irq 118 failed (gic_set_type+0x0/0xf0)
    [ 0.208513] dummy 0-0059: Failed to request IRQ 118: -22

    Provide the irq flags through platform data if device is registered
    through board file or get the irq type from DT node property in place
    of hardcoding the irq flag in driver to support multiple platforms.

    Also configure the device to generate the interrupt signal according to
    flag type.

    Signed-off-by: Laxman Dewangan
    Signed-off-by: Samuel Ortiz

    Laxman Dewangan
     

14 Feb, 2013

1 commit

  • Palma RTC is capable of generating alarm interrupt. Pass the alarm interrupt
    as IRQ_RESOURCE for palmas-rtc sub device driver so that rtc driver can get
    irq as platform_get_irq().

    Also pass the irq domain in mfd_add_devices() to properly offset the irqs for
    sub devices. This is needed when adding device through DT.

    Signed-off-by: Laxman Dewangan
    Signed-off-by: Samuel Ortiz

    Laxman Dewangan
     

29 Nov, 2012

2 commits

  • CONFIG_HOTPLUG is going away as an option so __devinitdata is no
    longer needed.

    Signed-off-by: Bill Pemberton
    Cc: Srinidhi Kasagar
    Cc: Peter Tyser
    Acked-by: Linus Walleij
    Signed-off-by: Greg Kroah-Hartman

    Bill Pemberton
     
  • CONFIG_HOTPLUG is going away as an option so __devinit is no longer
    needed.

    Signed-off-by: Bill Pemberton
    Cc: Srinidhi Kasagar
    Cc: Peter Tyser
    Cc: Daniel Walker
    Cc: Bryan Huntsman
    Acked-by: David Brown
    Acked-by: Mark Brown
    Signed-off-by: Greg Kroah-Hartman

    Bill Pemberton
     

24 Sep, 2012

2 commits


22 Sep, 2012

2 commits


17 Sep, 2012

1 commit

  • Using kfree to free data allocated with devm_kzalloc causes double frees.

    The semantic patch that fixes this problem is as follows:
    (http://coccinelle.lip6.fr/)

    //
    @@
    expression x;
    @@

    x = devm_kzalloc(...)
    ...
    ?-kfree(x);
    //

    Signed-off-by: Julia Lawall
    Signed-off-by: Samuel Ortiz

    Julia Lawall
     

14 Sep, 2012

1 commit

  • Currently the MFD core supports remapping MFD cell interrupts using an
    irqdomain but only if the MFD is being instantiated using device tree
    and only if the device tree bindings use the pattern of registering IPs
    in the device tree with compatible properties. This will be actively
    harmful for drivers which support non-DT platforms and use this pattern
    for their DT bindings as it will mean that the core will silently change
    remapping behaviour and it is also limiting for drivers which don't do
    DT with this particular pattern. There is also a potential fragility if
    there are interrupts not associated with MFD cells and all the cells are
    omitted from the device tree for some reason.

    Instead change the code to take an IRQ domain as an optional argument,
    allowing drivers to take the decision about the parent domain for their
    interrupts. The one current user of this feature is ab8500-core, it has
    the domain lookup pushed out into the driver.

    Signed-off-by: Mark Brown
    Signed-off-by: Samuel Ortiz

    Mark Brown
     

09 Jul, 2012

3 commits


18 May, 2012

1 commit

  • Palmas is a PMIC from Texas Instruments and this is the MFD part of the
    driver for this chip. The PMIC has SMPS and LDO regulators, a general
    purpose ADC, GPIO, USB OTG mode detection, watchdog and RTC features.

    Signed-off-by: Graeme Gregory
    Acked-by: Samuel Ortiz
    Signed-off-by: Mark Brown

    Graeme Gregory