1. Oct 27, 2015
  2. Oct 26, 2015
  3. Oct 23, 2015
  4. Oct 20, 2015
  5. Oct 17, 2015
    • Mika Westerberg's avatar
      pinctrl: baytrail: Fix compilation warnings when !CONFIG_PM · ec879f12
      Mika Westerberg authored
      
      
      When CONFIG_PM is not set we get following compilation warnings:
      
       warning: ‘byt_gpio_runtime_suspend’ defined but not used [-Wunused-function]
       warning: ‘byt_gpio_runtime_resume’ defined but not used [-Wunused-function]
      
      Fix this by guarding byt_gpio_runtime_suspend()/byt_gpio_runtime_resume()
      with #ifdef CONFIG_PM.
      
      Signed-off-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      ec879f12
    • Mika Westerberg's avatar
      pinctrl: intel: Fix compilation warning when !CONFIG_PM_SLEEP · f487bbf3
      Mika Westerberg authored
      
      
      We get following warning when CONFIG_PM_SLEEP is not set
      
        warning: ‘intel_gpio_irq_init’ defined but not used [-Wunused-function]
      
      Since the function is only called from intel_pinctrl_resume() move it
      inside CONFIG_PM_SLEEP guard as well.
      
      Signed-off-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      f487bbf3
    • Jonas Gorski's avatar
      pinctrl: qcom: ssbi: fix compilation with DEBUG_FS=n · 11091fb0
      Jonas Gorski authored
      The DEBUG_FS=n #defines for the dbg_show functions were missed when
      renaming the driver from msm_ to pm8xxx_, causing it to break the build
      when DEBUG_FS isn't enabled:
      
        CC [M]  drivers/pinctrl/qcom/pinctrl-ssbi-gpio.o
      drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c:597:14: error: ‘pm8xxx_gpio_dbg_show’ undeclared here (not in a function)
        .dbg_show = pm8xxx_gpio_dbg_show,
      
      Fix this by renaming them correctly.
      
      Fixes: b4c45fe9
      
       ("pinctrl: qcom: ssbi: Family A gpio & mpp drivers")
      Signed-off-by: default avatarJonas Gorski <jogo@openwrt.org>
      Reviewed-by: default avatarBjorn Andersson <bjorn.andersson@sonymobile.com>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      11091fb0
    • Wei Chen's avatar
      pinctrl: atlas7: support atlas7 step B changes · 3fa508cd
      Wei Chen authored
      
      
      The the pin groups and pin functions have been changed
      in atlas7 step B soc. We have to update the driver
      to support step B chip.
      
      Changes:
      1. add 5 jtag pins to IOC_TOP:
      	"jtag_tdo", "jtag_tms","jtag_tck", "jtag_tdi", "jtag_trstn"
      	these 5 pins can be mutiplex with other functions, so we
      	have to conver these 5 pins in pinmux.
      2. add pin groups for audio digmic, audio spdif, can transceiver
      	en, can transceiver stb, i2s0, i2s1 and jtag.
      3. serval pins can be located to more PADs:
      	audio_uart0_urfs, audio_uart1_urfs, audio_uart2_urfs,
      	audio_uart2_urxd, audio_uart2_usclk, audio_uart2_utfs,
      	audio_uart2_utxd, can0_rxd, can0_txd, can1_rxd, can1_txd
      	jtag_ntrst, jtag_swdiotms, jtag_tck, jtag_tdi, jtag_tdo,
      	pw_cko0, pw_cko1, pw_i2s01, pw_pwm0, pw_pwm1, sd2_cdb,
      	sd2_wpb, uart2_cts, uart2_rts, uart2_rxd, uart2_txd,
      	uart3_cts, uart3_rts, uart3_rxd, uart3_txd, uart4_cts,
      	uart4_rts, usb0_drvvbus, usb1_drvvbus.
      
      Because of Changes#3, some functions should have more than one
      pin groups. So we have to split the original pin group to serval
      pin groups.
      
      For example:
      audio_uart0 has 5 pins, on STEPA, each of these 5 pins only has
      one related PAD. But on STEPB, audio_uart0_urfs has 4 related
      PAD.
      So we place the 4 pins with one PAD into a single pin group:
      	audio_uart0_basic_group.
      and place urfs pin wtih different PADs to 4 different pin groups:
      	audio_uart0_urfs_group0, ..., audio_uart0_urfs_group3
      
      A full audio_uart0 pin group can be:
      	pinctrl-0 = <&audio_uart0_basic_group &audio_uart0_urfs_group0>;
      If audio_uart0 pin group encountered some confiction, we only have
      to change the urfs group:
      	pinctrl-0 = <&audio_uart0_basic_group &audio_uart0_urfs_group2>;
      
      Signed-off-by: default avatarWei Chen <Wei.Chen@csr.com>
      Signed-off-by: default avatarBarry Song <Baohua.Song@csr.com>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      3fa508cd
  6. Oct 16, 2015
  7. Oct 03, 2015
  8. Oct 02, 2015
    • Robin Gong's avatar
      pinctrl: freescale: imx: fix system crash if enable two pinctl instances · ee163518
      Robin Gong authored
      
      
      Fix system chrash caused by groups whose number is smaller than the number
      of groups of the last pinctl instance which is not initialized.
      
      iMX7D supports two iomux controllers (iomuxc-lpsr and iomuxc) on probing
      the second instance (iomuxc) the chrash below occurs.
      
      Uncompressing Linux... done, booting the kernel.
      [    0.000000] Booting Linux on physical CPU 0x0
      [    0.000000] Linux version 4.2.0-next-20150901-00006-gebfa43c (aalonso@bluefly)
      [    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7)
      [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasin instruction cache
      [    0.000000] Machine model: Freescale i.MX7 SabreSD Board
      [    0.661012] [<802a6cb0>] (strcmp) from [<802cc80c>] (imx_dt_node_to_map+0x58/0x208)
      [    0.668879] [<802cc80c>] (imx_dt_node_to_map) from [<802cbe24>] (pinctrl_dt_to_map+0x174/0x2b0)
      [    0.677654] [<802cbe24>] (pinctrl_dt_to_map) from [<802c8f18>] (pinctrl_get+0x100/0x424)
      [    0.685878] [<802c8f18>] (pinctrl_get) from [<802c9510>] (pinctrl_register+0x26c/0x480)
      [    0.694104] [<802c9510>] (pinctrl_register) from [<802ccf3c>] (imx_pinctrl_probe+0x580/0x6e8)
      [    0.702706] [<802ccf3c>] (imx_pinctrl_probe) from [<80351b58>] (platform_drv_probe+0x44/0xa4)
      [    0.711455] [<80351b58>] (platform_drv_probe) from [<803503ec>] (driver_probe_device+0x174/0x2b4)
      [    0.720405] [<803503ec>] (driver_probe_device) from [<803505fc>] (__driver_attach+0x8c/0x90)
      [    0.728982] [<803505fc>] (__driver_attach) from [<8034e930>] (bus_for_each_dev+0x6c/0xa0)
      [    0.737381] [<8034e930>] (bus_for_each_dev) from [<8034fb88>] (bus_add_driver+0x148/0x1f0)
      [    0.745804] [<8034fb88>] (bus_add_driver) from [<80350c00>] (driver_register+0x78/0xf8)
      [    0.753880] [<80350c00>] (driver_register) from [<800097d0>] (do_one_initcall+0x8c/0x1d4)
      [    0.762282] [<800097d0>] (do_one_initcall) from [<80987dac>] (kernel_init_freeable+0x144/0x1e4)
      [    0.771061] [<80987dac>] (kernel_init_freeable) from [<806d9c7c>] (kernel_init+0x8/0xe8)
      [    0.779285] [<806d9c7c>] (kernel_init) from [<8000f628>] (ret_from_fork+0x14/0x2c)
      [    0.786981] Code: e3520000 e5e32001 1afffffb e12fff1e (e4d03001)
      
      Signed-off-by: default avatarRobin Gong <b38343@freescale.com>
      Signed-off-by: default avatarAdrian Alonso <aalonso@freescale.com>
      Acked-by: default avatarShawn Guo <shawnguo@kernel.org>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      ee163518
    • Ludovic Desroches's avatar
      pinctrl: at91-pio4: add PM stuff · de4e882f
      Ludovic Desroches authored
      
      
      Allow GPIOs to be configured as wakeup sources. When going to suspend,
      disable all GPIO irqs excepting the one configured as wakeup sources.
      
      Signed-off-by: default avatarLudovic Desroches <ludovic.desroches@atmel.com>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      de4e882f
    • Vishnu Patekar's avatar
      pinctrl: sunxi: add allwinner A83T PIO controller support · 4730f33f
      Vishnu Patekar authored
      
      
      Allwinner A83T soc port controller has 8 ports.
      It has 3 IRQ banks namely PB, PG, PH.
      Pinmuxing are different for some pins as compared to
      sun8i A23 and A33.
      
      Signed-off-by: default avatarVishnu Patekar <vishnupatekar0510@gmail.com>
      Acked-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
      Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      4730f33f