1. 27 Dec, 2018 2 commits
  2. 22 Dec, 2018 1 commit
  3. 21 Dec, 2018 12 commits
  4. 18 Dec, 2018 21 commits
  5. 17 Dec, 2018 1 commit
  6. 16 Dec, 2018 1 commit
  7. 14 Dec, 2018 2 commits
    • Maxime Ripard's avatar
      pinctrl: sunxi: Deal with per-bank regulators · 9a2a566a
      Maxime Ripard authored
      The Allwinner SoCs have on most of their GPIO banks a regulator input.
      
      This issue was mainly ignored so far because either the regulator was a
      static regulator that would be providing power anyway, or the bank was used
      for a feature unsupported so far (CSI). For the odd cases, enabling it in
      the bootloader was the preferred option.
      
      However, now that we are starting to support those features, and that we
      can't really rely on the bootloader for this, we need to model those
      regulators as such in the DT.
      
      This is slightly more complicated than what it looks like, since some
      regulators will be tied to the PMIC, and in order to have access to the
      PMIC bus, you need to mux its pins, which will need the pinctrl driver,
      that needs the regulator driver to be registered. And this is how you get a
      circular dependency.
      
      In practice however, the hardware cannot fall into this case since it would
      result in a completely unusable bus. In order to avoid that circular
      dependency, we can thus get and enable the regulators at pin_request time.
      We'll then need to account for the references of all the pins of a
      particular branch to know when to put the reference, but it works pretty
      nicely once implemented.
      Signed-off-by: default avatarMaxime Ripard <maxime.ripard@bootlin.com>
      Signed-off-by: Linus Walleij's avatarLinus Walleij <linus.walleij@linaro.org>
      9a2a566a
    • Rob Herring's avatar
      pinctrl: Use of_node_name_eq for node name comparisons · eaeee373
      Rob Herring authored
      Convert string compares of DT node names to use of_node_name_eq helper
      instead. This removes direct access to the node name pointer.
      
      Cc: Sylwester Nawrocki <s.nawrocki@samsung.com>
      Cc: linux-arm-kernel@lists.infradead.org
      Cc: linux-samsung-soc@vger.kernel.org
      Cc: linux-gpio@vger.kernel.org
      Signed-off-by: Rob Herring's avatarRob Herring <robh@kernel.org>
      Reviewed-by: default avatarTomasz Figa <tomasz.figa@gmail.com>
      Reviewed-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
      Signed-off-by: Linus Walleij's avatarLinus Walleij <linus.walleij@linaro.org>
      eaeee373