26 Dec, 2018
1 commit
-
The port index is not calculated correctly. It should not be descreased,
because the gpio number is from 0 on imx8 platform.
Otherwise we will access wrong registers.Signed-off-by: Ye Li
10 Aug, 2018
1 commit
-
The pca953x_gpio is not SPL non-DM ready, so make it build only in uboot proper
Signed-off-by: Abel Vesa
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) -
The formal production name starts with imx, so change relevant names
in codes to use this prefix.Signed-off-by: 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) -
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 FanConflicts:
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) -
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)
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
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
-
Add entries for the R8A77965 M3N SoC.
Signed-off-by: Marek Vasut
Cc: Nobuhiro Iwamatsu
01 Mar, 2018
1 commit
-
This patch added Kconfig support for CONFIG_XILINX_GPIO
and enabled it in respective defconfig.Signed-off-by: Vipul Kumar
Signed-off-by: Siva Durga Prasad Paladugu
Signed-off-by: Michal Simek
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
13 Feb, 2018
1 commit
-
In the following statements
if (a) return a; if (a) return c;
the second return can never be executed.Identified by cppcheck.
Signed-off-by: Heinrich Schuchardt
Acked-by: Philipp Tomsich
Reviewed-by: Philipp Tomsich
08 Feb, 2018
1 commit
-
This converts the following to Kconfig:
CONFIG_MXC_GPIOSigned-off-by: Adam Ford
04 Feb, 2018
1 commit
-
Add i.MX8M GPIO support.
There are 4 GPIO banks on i.MX8M.Signed-off-by: Peng Fan
Reviewed-by: Fabio Estevam
Cc: Stefano Babic
Reviewed-by: Stefano Babic
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
28 Jan, 2018
9 commits
-
Make the MPC8xxx GPIO driver compatible with a live device tree.
Signed-off-by: Mario Six
-
Finally, make the mpc8xxx driver capable of handling more GPIO devices;
this entails adding a special case for the MPC5121 SoC, and adding a set
of new compatible strings.Signed-off-by: Mario Six
-
Rename the Kconfig option, structures (and their members), as well as
functions of the mpc85xx driver to include mpc8xxx to reflect the more
generic usage.Signed-off-by: Mario Six
-
In preparation to making the MPC85xx GPIO driver useable for a broader
range of SoCs, rename the driver file.Signed-off-by: Mario Six
-
Fix some style violations in the MPC85XX GPIO driver.
Signed-off-by: Mario Six
-
Make the pca953x_gpio driver compatible with a live device tree.
Reviewed-by: Simon Glass
Signed-off-by: Mario Six -
Fix some style violations in the pca953x_gpio driver.
Signed-off-by: Mario Six
-
Add DT compatible string for RCar Gen2.
Signed-off-by: Marek Vasut
Cc: Nobuhiro Iwamatsu
26 Jan, 2018
1 commit
-
Add allwinner,sun50i-h5-pinctrl compatible for H5 boards.
Signed-off-by: Chris Blake
Reviewed-by: Jagan Teki
[jagan: remove external link and format commit message]
Signed-off-by: Jagan Teki
20 Jan, 2018
2 commits
-
The command portion of the GPIO driver can only be used in full SPL so
re-work to guard the command related portions and mark it as static.Cc: Dan Murphy
Signed-off-by: Tom Rini -
The command portion of the GPIO driver can only be used in full SPL so
re-work to guard the command related portions and mark it as static.Cc: Bin Meng
Cc: Simon Glass
Cc: Philipp Tomsich
Signed-off-by: Tom Rini
Reviewed-by: Simon Glass
16 Jan, 2018
1 commit
-
Signed-off-by: Jorge Ramirez-Ortiz
10 Jan, 2018
1 commit
-
Use available DM stm32f7_gpio.c and pinctrl_stm32.c drivers
instead of board GPIO initialization.Remove stm32_gpio.c which is no more used and migrate
structs stm32_gpio_regs and stm32_gpio_priv into
arch-stm32f4/gpio.h to not break compilation.Signed-off-by: Patrice Chotard
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
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
09 Dec, 2017
3 commits
-
Add generic compatible to the GPIO driver for Gen3 SoCs.
Signed-off-by: Marek Vasut
Cc: Nobuhiro Iwamatsu -
Add new compatible to the GPIO driver for R8A77995 D3 SoC.
Signed-off-by: Marek Vasut
Cc: Nobuhiro Iwamatsu -
Add new compatible to the GPIO driver for R8A77970 V3M SoC.
Signed-off-by: Marek Vasut
Cc: Nobuhiro Iwamatsu
30 Nov, 2017
1 commit
-
When requesting a GPIO, set the PFC GPSR register to GPIO mode,
otherwise the GPIO cannot work.Signed-off-by: Marek Vasut
Cc: Nobuhiro Iwamatsu
28 Nov, 2017
2 commits
-
Signed-off-by: Masahiro Yamada
-
Same macros are defined in various places. Collect them into
include/linux/bitops.h like Linux.Signed-off-by: Masahiro Yamada