1. 11 May, 2016 1 commit
    • David Wu's avatar
      pinctrl: rockchip: fix pull setting error for rk3399 · 3ba6767a
      David Wu authored
      This patch fixes the pinctrl pull bias setting, since the pull up/down
      setting is the contrary for gpio0(just the gpio0a and gpio0b) and
      gpio2(just the gpio2c and gpio2d).
      
      From the TRM said, the gpio0a pull polarity setting:
      gpio0a_p
      GPIO0A PE/PS programmation section, every
      GPIO bit corresponding to 2bits[PS:PE]
      2'b00: Z(Normal operation);
      2'b11: weak 1(pull-up);
      2'b01: weak 0(pull-down);
      2'b10: Z(Normal operation);
      
      Then, the other gpios setting as the following:
      gpio1a_p (e.g.: gpio1, gpio2a, gpio2b, gpio3...)
      GPIO1A PU/PD programmation section, every
      GPIO bit corresponding to 2bits
      2'b00: Z(Normal operation);
      2'b01: weak 1(pull-up);
      2'b10: weak 0(pull-down);
      2'b11: Z(Normal operation);
      
      For example,(rk3399evb board)
      sdmmc_cd --->gpio0_a7
      localhost / # io -r -4 0xff320040
      ff320040: 00004d5f
      In general,the value should be 0x0000cd5f since the pin has been set
      in the dts.
      Signed-off-by: default avatarDavid Wu <david.wu@rock-chips.com>
      Signed-off-by: default avatarCaesar Wang <wxt@rock-chips.com>
      Cc: linux-gpio@vger.kernel.org
      Reviewed-by: default avatarDouglas Anderson <dianders@chromium.org>
      Reviewed-by: default avatarHeiko Stuebner <heiko@sntech.de>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      3ba6767a
  2. 10 May, 2016 1 commit
  3. 09 May, 2016 2 commits
    • Arnd Bergmann's avatar
      pinctrl: nomadik: hide nmk_gpio_get_mode when unused · caee57ec
      Arnd Bergmann authored
      nmk_gpio_get_mode is only used in one place, and that is conditionally
      compiled if DEBUG_FS is enabled. A recent cleanup has marked the
      definition 'static', which now leads to a warning:
      
      drivers/pinctrl/nomadik/pinctrl-nomadik.c:614:12: error: 'nmk_gpio_get_mode' defined but not used [-Werror=unused-function]
       static int nmk_gpio_get_mode(struct nmk_gpio_chip *nmk_chip, int offset)
                  ^~~~~~~~~~~~~~~~~
      
      Moving the function itself inside the #ifdef shuts it up again.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Fixes: 5e81e0a0 ("pinctrl: nomadik: use BIT() with offsets consequently")
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      caee57ec
    • Arnd Bergmann's avatar
      pinctrl: ns2: rename pinctrl_utils_dt_free_map · 9d814d41
      Arnd Bergmann authored
      A conflict of two patches caused a build error when a function got renamed
      but a new user appeared in the other patch:
      
      drivers/pinctrl/bcm/pinctrl-ns2-mux.c:540:17: error: 'pinctrl_utils_dt_free_map' undeclared here (not in a function)
        .dt_free_map = pinctrl_utils_dt_free_map,
                       ^~~~~~~~~~~~~~~~~~~~~~~~~
      
      This renames the new user of pinctrl_utils_dt_free_map accordingly.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Fixes: d32f7fd3 ("pinctrl: Rename pinctrl_utils_dt_free_map to pinctrl_utils_free_map")
      Fixes: b5aa1006 ("pinctrl: ns2: add pinmux driver support for Broadcom NS2 SoC")
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      9d814d41
  4. 02 May, 2016 3 commits
  5. 30 Apr, 2016 2 commits
  6. 29 Apr, 2016 2 commits
  7. 28 Apr, 2016 2 commits
  8. 26 Apr, 2016 1 commit
  9. 21 Apr, 2016 19 commits
  10. 20 Apr, 2016 7 commits