1. 09 4月, 2013 3 次提交
    • L
      mfd: palmas: Initialise client->of_node for dummy created client · c4fbec3c
      Laxman Dewangan 提交于
      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 = <2>;
                      interrupt-controller;
      
                      palmas_rtc {
                             compatible = "ti,palmas-rtc";
                             interrupt-parent = <&palmas>;
                             interrupts = <8 0>;
                      };
                      ::::::::::;;;
               };
      
      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: NLaxman Dewangan <ldewangan@nvidia.com>
      Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
      c4fbec3c
    • R
      mfd: tps65090: Add resources for charger · 36c772e3
      Rhyland Klein 提交于
      Add irq resources to pass to the charger mfd sub dev so
      the charger can listen for interrupts.
      Signed-off-by: NRhyland Klein <rklein@nvidia.com>
      Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
      36c772e3
    • R
      mfd: tps65090: Fix enum in header file · 751391c7
      Rhyland Klein 提交于
      The enum is missing the definition for the first bit, which makes all
      the rest off by one. Add definition for the TPS65090_IRQ_INTERRUPT bit
      which at 0.
      Signed-off-by: NRhyland Klein <rklein@nvidia.com>
      Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
      751391c7
  2. 08 4月, 2013 37 次提交