26 Dec, 2018

1 commit


10 Aug, 2018

1 commit


27 Apr, 2018

5 commits

  • Add support for iMX8 SoC platforms, and extend to support LSIO GPIO0..GPIO7 ports.
    Since the i.MX8 GPIO banks are indexed from 0 not 1 on other i.MX platforms,
    so we have to adjust the index accordingly.

    Signed-off-by: Adrian Alonso
    Signed-off-by: Ye Li
    (cherry picked from commit cb3eabdb56173a75495717bf88fbc1d04623f6d7)

    Adrian Alonso
     
  • The formal production name starts with imx, so change relevant names
    in codes to use this prefix.

    Signed-off-by: Ye Li

    Ye Li
     
  • Currently the driver gets value from PSR register, but this register
    is only for input mode. For output mode, it always return 0 not the
    value we set for output.

    This patch changes to use DR register, which returns the DR value for
    output mode, and PSR value for input mode.

    Signed-off-by: Ye Li
    (cherry picked from commit 4afc3f90943c6b117f79b66d2cd04e64f437b0c2)

    Ye Li
     
  • For GPIO group which shared by multiple masters, it may set in RDC
    to shared and semaphore required. Before access the GPIO register,
    the GPIO driver must get the RDC semaphore, and release the semaphore
    after the GPIO register access.

    When CONFIG_MXC_RDC is set, the features related to RDC semaphores
    is enabled in mxc_gpio driver.

    Signed-off-by: Ye.Li
    (cherry picked from commit 84d63e2e2ce12f714e88baad8b2325684614a7c1)
    Signed-off-by: Peng Fan

    Conflicts:
    drivers/gpio/mxc_gpio.c

    (cherry picked from commit c9943b9c8a78bb2c9886bfe582e82978387d8dee)
    Signed-off-by: Peng Fan
    (cherry picked from commit faf94726cac8316c4342e19936f1e03ef283ace3)
    (cherry picked from commit 6c0474fe0e4fc543c62b22c05c2702a881f56418)
    (cherry picked from commit 7cd5fec7ce6a9ecfdaa1a9c1aaaa0d0ac18a4f86)

    Ye.Li
     
  • The pca953x_gpio driver uses default value of polarity inversion register.
    For some devices like PCA9557 and MAX7310, their polarity inversion register
    default value is 0xf0. So for high 4 ports, when reading their values,
    the values are inverted as the actual level.

    This patch clears the polarity inversion register to 0 at init. So that the port read
    and write values are aligned.

    Signed-off-by: Ye Li
    Acked-by: Fugang Duan
    Acked-by: Peng Fan
    (cherry picked from commit cc4e6b3786671ec2ce2ea74dc6334f72587cc756)

    Ye Li
     

09 Mar, 2018

1 commit

  • The @gdsys.cc addresses are supposed to be used for mailing lists.
    Switch all occurrences of @gdsys.de mail addresses to their @gdsys.cc
    equivalent.

    Also, Dirk's address was wrong in one place; fix that as well.

    Signed-off-by: Mario Six

    Mario Six
     

06 Mar, 2018

1 commit


05 Mar, 2018

2 commits

  • The PCA953x driver uses "gpio@%x_" as the GPIO bank name, where "%x" is
    instantiated with the I2C address of the chip. While this works, it
    becomes very confusing if a board has multiple PCAs with the same
    address on different I2C busses, and it also becomes an issue when a
    GPIO's value is to be set via the 'gpio' command, because this command
    only ever sets the value of the first device it encounters, leaving the
    other devices inaccessible to the command.

    As to not break boards that rely on this naming scheme, we introduce a
    new device tree string property "label" for the driver. If it exists, it
    is used to build a bank name of the form "%s@%x_" (where %x is still
    instantiated with the I2C address). If it does not exist, the legacy
    labeling scheme is used.

    Signed-off-by: Mario Six

    Mario Six
     
  • Add entries for the R8A77965 M3N SoC.

    Signed-off-by: Marek Vasut
    Cc: Nobuhiro Iwamatsu

    Marek Vasut
     

01 Mar, 2018

1 commit


19 Feb, 2018

1 commit

  • At present dtc produces these warnings when compiling sandbox:

    arch/sandbox/dts/test.dtb: Warning (gpios_property):
    Could not get phandle node for /base-gpios:num-gpios(cell 0)
    arch/sandbox/dts/test.dtb: Warning (gpios_property):
    Missing property '#gpio-cells' in node /reset-ctl or bad phandle
    (referred from /extra-gpios:num-gpios[0])

    Both are due to it assuming that the 'num-gpios' property holds a phandle
    pointing to a GPIO node.

    To avoid these warnings, rename the sandbox property so that it does not
    include the string 'gpios'.

    Signed-off-by: Simon Glass

    Simon Glass
     

13 Feb, 2018

1 commit


08 Feb, 2018

1 commit


04 Feb, 2018

1 commit


29 Jan, 2018

1 commit

  • The bcm283x family of SoCs have a GPIO controller that also acts as
    pinctrl controller.

    This patch introduces a new pinctrl driver that can actually properly mux
    devices into their device tree defined pin states and is now the primary
    owner of the gpio device. The previous GPIO driver gets moved into a
    subdevice of the pinctrl driver, bound to the same OF node.

    That way whenever a device asks for pinctrl support, it gets it
    automatically from the pinctrl driver and GPIO support is still available
    in the normal command line phase.

    Signed-off-by: Alexander Graf

    Alexander Graf
     

28 Jan, 2018

9 commits


26 Jan, 2018

1 commit


20 Jan, 2018

2 commits


16 Jan, 2018

1 commit


10 Jan, 2018

1 commit


04 Jan, 2018

1 commit

  • Since commit 051ba9e082f7 ("Kconfig: mx6ull: Deselect MX6UL from
    CONFIG_MX6ULL") CONFIG_MX6ULL does not select CONFIG_MX6UL anymore, so
    take this into consideration in all the checks for CONFIG_MX6UL.

    This fixes a boot regression.

    Reported-by: Stefan Agner
    Signed-off-by: Fabio Estevam
    Reviewed-by: Stefan Agner
    Tested-by: Breno Lima
    Tested-by: Peng Fan
    Reviewed-by: Stefano Babic
    Tested-by: Jörg Krause

    Fabio Estevam
     

14 Dec, 2017

1 commit


12 Dec, 2017

1 commit

  • This driver really is DM GPIO one and so we need to have a correct
    dependency, because DM alone doesn't provide required for CMD_GPIO
    call and we're seeing build failures like this:
    ---------------------->8---------------------
    cmd/built-in.o: In function 'do_gpio':
    .../cmd/gpio.c:188: undefined reference to 'gpio_request'
    ...
    ---------------------->8---------------------

    Signed-off-by: Alexey Brodkin
    Cc: Eugeniy Paltsev
    Cc: Simon Glass
    Reviewed-by: Simon Glass

    Alexey Brodkin
     

09 Dec, 2017

3 commits


30 Nov, 2017

1 commit


28 Nov, 2017

2 commits