1. 11 8月, 2016 4 次提交
  2. 24 7月, 2016 1 次提交
  3. 22 7月, 2016 5 次提交
  4. 11 7月, 2016 6 次提交
  5. 09 7月, 2016 1 次提交
    • L
      pinctrl: qcom: establish proper EBI2 pin groups · 4d0565a1
      Linus Walleij 提交于
      After some digging around I found documentation (!) of the APQ8060
      EBI2 pin groups. It turns out I first need to split the group in
      two: ebi2cs and ebi2 proper. The chip select pins are kind of
      orthogonal to the other EBI2 pins since CS1B and CS2B can be muxed
      over address bits 7 and 6 (don't know why, but they can). This
      is good to fix up before we add users.
      
      Also found what the "holes" in the assignment all the way up to
      gpio158 was actually for.
      
      All mux documentation comes from "Snapdragon(TM) S3 APQ8060-based
      DragonBoard(TM) GPIO User Guide Rev. E August 10, 2012", published
      by Bsquare Corporation.
      
      As the documentation seems a bit hard to come by I put some comments
      in the group definitions so that it is clear to all readers what
      is going on here and what the lines are used for.
      
      Cc: Björn Andersson <bjorn.andersson@linaro.org>
      Cc: Stephen Boyd <sboyd@codeaurora.org>
      Reviewed-by: NAndy Gross <andy.gross@linaro.org>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      4d0565a1
  6. 06 7月, 2016 1 次提交
  7. 05 7月, 2016 1 次提交
  8. 04 7月, 2016 2 次提交
  9. 29 6月, 2016 19 次提交
    • S
      pinctrl: qcom: msm8974: Add hsic_ctl pinmux · a1c166ac
      Stephen Boyd 提交于
      The msm8974 pinctrl variant has a couple USB HSIC "glue"
      registers that let us mux between the pinctrl register settings
      or the HSIC core settings for the HSIC pins (gpio 144 and gpio
      145). Support this method of operation by adding hsic_data and
      hsic_strobe pins that can select between hsic_ctl and gpio
      functions. This allows us to toggle the hsic pin configuration
      over to the HSIC core at runtime.
      
      Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
      Signed-off-by: NStephen Boyd <stephen.boyd@linaro.org>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      a1c166ac
    • S
      pinctrl: qcom: Clear all function selection bits · 47a01ee9
      Stephen Boyd 提交于
      The function selection bitfield is not always 3 bits wide.
      Sometimes it is 4 bits wide. Let's use the npins struct member to
      determine how many bits wide the function selection bitfield is
      so we clear the correct amount of bits in the register while
      remuxing the pins.
      
      Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
      Signed-off-by: NStephen Boyd <stephen.boyd@linaro.org>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      47a01ee9
    • N
      pinctrl: qcom: Add support for MDM9615 TLMM · 8b37e88c
      Neil Armstrong 提交于
      In order to support the Qualcomm MDM9615 SoC, add support for the TLMM
      using the Qualcomm pinctrl generic driver.
      
      Note: the pinctrl is partial, need Documentation to complete all the groups.
      Signed-off-by: NNeil Armstrong <narmstrong@baylibre.com>
      Acked-by: NBjorn Andersson <bjorn.andersson@linaro.org>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      8b37e88c
    • A
      pinctrl: sirf: atlas7: Add missing of_node_put · 151b8c5b
      Amitoj Kaur Chawla 提交于
      of_find_node_by_name does an of_node_get on its return value,
      so an of_node_put is needed on this value before the corresponding
      variable goes out of scope.
      
      The Coccinelle semantic patch used to make this change is as follows:
      @@
      struct device_node *n;
      struct device_node *n1;
      statement S;
      identifier f;
      expression E;
      constant C;
      @@
      
      n = of_find_node_by_name(...)
      ...
      if (!n) S
      ... when != of_node_put(n)
          when != n1 = f(n,...)
          when != E = n
          when any
          when strict
      (
      + of_node_put(n);
        return -C;
      |
        of_node_put(n);
      |
        n1 = f(n,...)
      |
        E = n
      |
        return ...;
      )
      Signed-off-by: NAmitoj Kaur Chawla <amitoj1606@gmail.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      151b8c5b
    • Y
      pinctrl: nsp: add pinmux driver support for Broadcom NSP SoC · cc4fa83f
      Yendapally Reddy Dhananjaya Reddy 提交于
      This adds the initial support of the Broadcom NSP pinmux driver.
      Signed-off-by: NYendapally Reddy Dhananjaya Reddy <yendapally.reddy@broadcom.com>
      Reviewed-by: NRay Jui <rjui@broadcom.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      cc4fa83f
    • A
      pinctrl: intel: Add Intel Merrifield pin controller support · 4e80c8f5
      Andy Shevchenko 提交于
      This driver adds pinctrl support for Intel Merrifield. The IP block which is
      called Family-Level Interface Shim is a separate entity in SoC. The GPIO driver
      (gpio-intel-mid.c) will be updated accordingly to support pinctrl interface.
      Reviewed-by: NMika Westerberg <mika.westerberg@linux.intel.com>
      Signed-off-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      4e80c8f5
    • P
      pinctrl: remove orphaned exported ".remove" function · 11884b18
      Paul Gortmaker 提交于
      The Kconfig currently controlling compilation of this code is:
      
      drivers/pinctrl/freescale/Kconfig:config PINCTRL_MXS
      drivers/pinctrl/freescale/Kconfig:	bool
      
      ...meaning that it currently is not being built as a module by anyone.
      
      It also doesn't have any modular functionality, so it doesn't need
      module.h included at all.
      
      What it does have is an exported function that was used as a shared
      ".remove" by other drivers, but those use cases (imx23 and imx28)
      are now gone, and hence this can disappear as well.
      
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: linux-gpio@vger.kernel.org
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      11884b18
    • P
      pinctrl: imx28: make it explicitly non-modular · 37824c12
      Paul Gortmaker 提交于
      The Kconfig currently controlling compilation of this code is:
      
      drivers/pinctrl/freescale/Kconfig:config PINCTRL_IMX28
      drivers/pinctrl/freescale/Kconfig:	bool
      
      ...meaning that it currently is not being built as a module by anyone.
      
      Lets remove the modular code that is essentially orphaned, so that
      when reading the driver there is no doubt it is builtin-only.
      
      We explicitly disallow a driver unbind, since that doesn't have a
      sensible use case anyway, and it allows us to drop the ".remove"
      code for non-modular drivers.
      
      Since module_init was not in use by this driver, the init ordering
      remains unchanged with this commit.
      
      Also note that MODULE_DEVICE_TABLE is a no-op for non-modular code.
      
      We also delete the MODULE_LICENSE tag etc. since all that information
      was (or is now) contained at the top of the file in the comments.
      
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: Shawn Guo <shawn.guo@linaro.org>
      Cc: linux-gpio@vger.kernel.org
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      37824c12
    • P
      pinctrl: imx23: make it explicitly non-modular · 1ab599e7
      Paul Gortmaker 提交于
      The Kconfig currently controlling compilation of this code is:
      
      drivers/pinctrl/freescale/Kconfig:config PINCTRL_IMX23
      drivers/pinctrl/freescale/Kconfig:	bool
      
      ...meaning that it currently is not being built as a module by anyone.
      
      Lets remove the modular code that is essentially orphaned, so that
      when reading the driver there is no doubt it is builtin-only.
      
      We explicitly disallow a driver unbind, since that doesn't have a
      sensible use case anyway, and it allows us to drop the ".remove"
      code for non-modular drivers.
      
      Since module_init wasn't actually used by this driver, the init
      ordering remains unchanged with this commit.
      
      Also note that MODULE_DEVICE_TABLE is a no-op for non-modular code.
      
      We also delete the MODULE_LICENSE tag etc. since all that information
      was (or is now) contained at the top of the file in the comments.
      
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: Shawn Guo <shawn.guo@linaro.org>
      Cc: linux-gpio@vger.kernel.org
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      1ab599e7
    • P
      pinctrl: vf610: make it explicitly non-modular · 8bab1a7b
      Paul Gortmaker 提交于
      The Kconfig currently controlling compilation of this code is:
      
      drivers/pinctrl/freescale/Kconfig:config PINCTRL_VF610
      drivers/pinctrl/freescale/Kconfig:	bool "Freescale Vybrid VF610 pinctrl driver"
      
      ...meaning that it currently is not being built as a module by anyone.
      
      Lets remove the modular code that is essentially orphaned, so that
      when reading the driver there is no doubt it is builtin-only.
      
      Since module_init wasn't in use by this driver, the init ordering
      remains unchanged with this commit.
      
      We also delete the MODULE_LICENSE tag etc. since all that information
      is already contained at the top of the file in the comments.
      
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: linux-gpio@vger.kernel.org
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      8bab1a7b
    • P
      pinctrl: imx7d: make it explicitly non-modular · bc21f488
      Paul Gortmaker 提交于
      The Kconfig currently controlling compilation of this code is:
      
      drivers/pinctrl/freescale/Kconfig:config PINCTRL_IMX7D
      drivers/pinctrl/freescale/Kconfig:	bool "IMX7D pinctrl driver"
      
      ...meaning that it currently is not being built as a module by anyone.
      
      Lets remove the modular code that is essentially orphaned, so that
      when reading the driver there is no doubt it is builtin-only.
      
      Since module_init was not in use by this driver, the init ordering
      remains unchanged with this commit.
      
      We also delete the MODULE_LICENSE tag etc. since all that information
      was (or is now) contained at the top of the file in the comments.
      
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: Anson Huang <Anson.Huang@freescale.com>
      Cc: linux-gpio@vger.kernel.org
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      bc21f488
    • P
      pinctrl: imx6ul: make it explicitly non-modular · f23556d3
      Paul Gortmaker 提交于
      The Kconfig currently controlling compilation of this code is:
      
      drivers/pinctrl/freescale/Kconfig:config PINCTRL_IMX6UL
      drivers/pinctrl/freescale/Kconfig:	bool "IMX6UL pinctrl driver"
      
      ...meaning that it currently is not being built as a module by anyone.
      
      Lets remove the modular code that is essentially orphaned, so that
      when reading the driver there is no doubt it is builtin-only.
      
      Since module_init was not in use by this driver, the init ordering
      remains unchanged with this commit.
      
      We also delete the MODULE_LICENSE tag etc. since all that information
      was (or is now) contained at the top of the file in the comments.
      
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: Anson Huang <Anson.Huang@freescale.com>
      Cc: linux-gpio@vger.kernel.org
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      f23556d3
    • P
      pinctrl: imx6sx: make it explicitly non-modular · 7ce3cdda
      Paul Gortmaker 提交于
      The Kconfig currently controlling compilation of this code is:
      
      drivers/pinctrl/freescale/Kconfig:config PINCTRL_IMX6SX
      drivers/pinctrl/freescale/Kconfig:	bool "IMX6SX pinctrl driver"
      
      ...meaning that it currently is not being built as a module by anyone.
      
      Lets remove the modular code that is essentially orphaned, so that
      when reading the driver there is no doubt it is builtin-only.
      
      Since module_init was not in use by this driver, the init ordering
      remains unchanged with this commit.
      
      We also delete the MODULE_LICENSE tag etc. since all that information
      was (or is now) contained at the top of the file in the comments.
      
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: Anson Huang <Anson.Huang@freescale.com>
      Cc: linux-gpio@vger.kernel.org
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      7ce3cdda
    • P
      pinctrl: imx6sl: make it explicitly non-modular · c621e070
      Paul Gortmaker 提交于
      The Kconfig currently controlling compilation of this code is:
      
      drivers/pinctrl/freescale/Kconfig:config PINCTRL_IMX6SL
      drivers/pinctrl/freescale/Kconfig:	bool "IMX6SL pinctrl driver"
      
      ...meaning that it currently is not being built as a module by anyone.
      
      Lets remove the modular code that is essentially orphaned, so that
      when reading the driver there is no doubt it is builtin-only.
      
      Since module_init was not in use by this driver, the init ordering
      remains unchanged with this commit.
      
      Also note that MODULE_DEVICE_TABLE is a no-op for non-modular code.
      
      We also delete the MODULE_LICENSE tag etc. since all that information
      was (or is now) contained at the top of the file in the comments.
      
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: Shawn Guo <shawn.guo@linaro.org>
      Cc: linux-gpio@vger.kernel.org
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      c621e070
    • P
      pinctrl: imx6q: make it explicitly non-modular · 4abaa3c2
      Paul Gortmaker 提交于
      The Kconfig currently controlling compilation of this code is:
      
      drivers/pinctrl/freescale/Kconfig:config PINCTRL_IMX6Q
      drivers/pinctrl/freescale/Kconfig:	bool "IMX6Q/DL pinctrl driver"
      
      ...meaning that it currently is not being built as a module by anyone.
      
      Lets remove the modular code that is essentially orphaned, so that
      when reading the driver there is no doubt it is builtin-only.
      
      Since module_init translates to device_initcall in the non-modular
      case, the init ordering remains unchanged with this commit.
      
      We don't replace module.h with init.h since the file already has that.
      But we do add export.h since this file uses the global THIS_MODULE.
      
      We also delete the MODULE_LICENSE tag etc. since all that information
      is already contained at the top of the file in the comments.
      
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: Dong Aisheng <dong.aisheng@linaro.org>
      Cc: linux-gpio@vger.kernel.org
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      4abaa3c2
    • P
      pinctrl: imx6dl: make it explicitly non-modular · 4277a02d
      Paul Gortmaker 提交于
      The Kconfig currently controlling compilation of this code is:
      
      drivers/pinctrl/freescale/Kconfig:config PINCTRL_IMX6Q
      drivers/pinctrl/freescale/Kconfig:	bool "IMX6Q/DL pinctrl driver"
      
      ...meaning that it currently is not being built as a module by anyone.
      
      Lets remove the modular code that is essentially orphaned, so that
      when reading the driver there is no doubt it is builtin-only.
      
      Since module_init was not in use by this driver, the init ordering
      remains unchanged with this commit.
      
      We also delete the MODULE_LICENSE tag etc. since all that information
      was (or is now) contained at the top of the file in the comments.
      
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: Shawn Guo <shawn.guo@linaro.org>
      Cc: linux-gpio@vger.kernel.org
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      4277a02d
    • P
      pinctrl: imx53: make it explicitly non-modular · 85b80b46
      Paul Gortmaker 提交于
      The Kconfig currently controlling compilation of this code is:
      
      drivers/pinctrl/freescale/Kconfig:config PINCTRL_IMX53
      drivers/pinctrl/freescale/Kconfig:	bool "IMX53 pinctrl driver"
      
      ...meaning that it currently is not being built as a module by anyone.
      
      Lets remove the modular code that is essentially orphaned, so that
      when reading the driver there is no doubt it is builtin-only.
      
      Since module_init was not in use by this driver, the init ordering
      remains unchanged with this commit.
      
      We also delete the MODULE_LICENSE tag etc. since all that information
      is already contained at the top of the file in the comments.
      
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: Dong Aisheng <dong.aisheng@linaro.org>
      Cc: linux-gpio@vger.kernel.org
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      85b80b46
    • P
      pinctrl: imx51: make it explicitly non-modular · b588cb1e
      Paul Gortmaker 提交于
      The Kconfig currently controlling compilation of this code is:
      
      drivers/pinctrl/freescale/Kconfig:config PINCTRL_IMX51
      drivers/pinctrl/freescale/Kconfig:	bool "IMX51 pinctrl driver"
      
      ...meaning that it currently is not being built as a module by anyone.
      
      Lets remove the modular code that is essentially orphaned, so that
      when reading the driver there is no doubt it is builtin-only.
      
      Since module_init was not in use by this driver, the init ordering
      remains unchanged with this commit.
      
      We also delete the MODULE_LICENSE tag etc. since all that information
      is already contained at the top of the file in the comments.
      
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: Dong Aisheng <dong.aisheng@linaro.org>
      Cc: linux-gpio@vger.kernel.org
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      b588cb1e
    • P
      pinctrl: imx50: make it explicitly non-modular · 4415db17
      Paul Gortmaker 提交于
      The Kconfig currently controlling compilation of this code is:
      
      drivers/pinctrl/freescale/Kconfig:config PINCTRL_IMX50
      drivers/pinctrl/freescale/Kconfig:	bool "IMX50 pinctrl driver"
      
      ...meaning that it currently is not being built as a module by anyone.
      
      Lets remove the modular code that is essentially orphaned, so that
      when reading the driver there is no doubt it is builtin-only.
      
      Since module_init was not in use by this driver, the init ordering
      remains unchanged with this commit.
      
      We also delete the MODULE_LICENSE tag etc. since all that information
      is already contained at the top of the file in the comments.
      
      Cc: Linus Walleij <linus.walleij@linaro.org>
      Cc: linux-gpio@vger.kernel.org
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      4415db17