| #
42b90858 |
| 28-Mar-2023 |
Joseph Chen <chenjh@rock-chips.com> |
gpio: rk: Improve error message
This is important since commit: (d3909692e8 gpio/rk: bank index cannot use static count)
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: Ic2235e538d142
gpio: rk: Improve error message
This is important since commit: (d3909692e8 gpio/rk: bank index cannot use static count)
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: Ic2235e538d142c74bec897d62f2da6ba3543f3fc
show more ...
|
| #
d3909692 |
| 03-Mar-2023 |
Jianqun Xu <jay.xu@rock-chips.com> |
gpio/rk: bank index cannot use static count
Mostly the gpios are probed not in order, so the static count is really uncorrect most of time, remove it and report a error.
Change-Id: I70f0bff7fafb892
gpio/rk: bank index cannot use static count
Mostly the gpios are probed not in order, so the static count is really uncorrect most of time, remove it and report a error.
Change-Id: I70f0bff7fafb8920dd2aca5f8631616f37f0b2b8 Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
show more ...
|
| #
0a5d7f3e |
| 19-May-2022 |
Wyon Bi <bivvy.bi@rock-chips.com> |
gpio: rockchip: prefer to probe the first UCLASS_PINCTRL by seq number
In case of system with several pin-controller device, probe the first UCLASS_PINCTRL by seq number (defined by alias) to avoid
gpio: rockchip: prefer to probe the first UCLASS_PINCTRL by seq number
In case of system with several pin-controller device, probe the first UCLASS_PINCTRL by seq number (defined by alias) to avoid race condition with I2C PINCONTROL driver for GPIO expander.
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com> Change-Id: I9aded5aed1c18a6f405368d65197266f920f68eb
show more ...
|
| #
dbff1ed6 |
| 12-Nov-2020 |
Jianqun Xu <jay.xu@rock-chips.com> |
gpio: rockchip: get gpio bank from pinctrl device
Change-Id: I0dd2bc1b61bfdfe8edfd79b3a794522499eaae5c Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
|
| #
e9c98b3b |
| 12-Nov-2020 |
Jianqun Xu <jay.xu@rock-chips.com> |
gpio: rockchip: fix get gpio mux operation error return
Change-Id: Ia225ae3acea2d2d2347870b3d6a20c4a7d22e7e9 Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
|
| #
9f32e0d2 |
| 20-Aug-2020 |
Jianqun Xu <jay.xu@rock-chips.com> |
gpio: rockchip: handle error code from pinctrl
Change-Id: Iac48b2302da562d0c204884d9eb3f763c2071c9f Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
|
| #
d1aef94b |
| 27-May-2020 |
Jianqun Xu <jay.xu@rock-chips.com> |
gpio/rockchip: rk_gpio support v2 gpio controller
The v2 gpio controller add write enable bit for some register, such as data register, data direction register and so on.
This patch support v2 gpio
gpio/rockchip: rk_gpio support v2 gpio controller
The v2 gpio controller add write enable bit for some register, such as data register, data direction register and so on.
This patch support v2 gpio controller by redefine the read and write operation functions.
Change-Id: I2adbcca06a37c48e6f494b89833cd034ba0dae29 Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
show more ...
|
| #
7d13e745 |
| 28-May-2020 |
Jianqun Xu <jay.xu@rock-chips.com> |
gpio/rockchip: rk_gpio correct pin count for each bank
Do 'gpio status -a' will cause system crash, due to the pins number error for gpio4 (last gpio controller).
Test on RV1126 IOTEST board, which
gpio/rockchip: rk_gpio correct pin count for each bank
Do 'gpio status -a' will cause system crash, due to the pins number error for gpio4 (last gpio controller).
Test on RV1126 IOTEST board, which has only 8 pins for GPIO4.
Change-Id: I4150abd0ca97bc4f3043eb7fcae2287818125031 Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
show more ...
|
| #
a0c87cee |
| 11-Sep-2017 |
Philipp Tomsich <philipp.tomsich@theobroma-systems.com> |
UPSTREAM: rockchip: gpio: remove outdated/misleading comment
Remove a comment claiming that this driver only supports the RK3288, as we also use it on the RK3368, RK3399 and (most likely) on other v
UPSTREAM: rockchip: gpio: remove outdated/misleading comment
Remove a comment claiming that this driver only supports the RK3288, as we also use it on the RK3368, RK3399 and (most likely) on other variants.
Change-Id: I265882dcdd0f702be6699c5f9293355dbd1cb81d Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Reviewed-by: Simon Glass <sjg@chromium.org> Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit c23ce9ab85604c4b6b627e522c1dbf2a618063e6)
show more ...
|
| #
55efd69c |
| 11-Sep-2017 |
Philipp Tomsich <philipp.tomsich@theobroma-systems.com> |
UPSTREAM: rockchip: gpio: convert to livetree
Update the Rockchip GPIO-bank driver to support a live tree.
Change-Id: Ic6aae620739fade81d512a070562f7978b648d6d Signed-off-by: Philipp Tomsich <phili
UPSTREAM: rockchip: gpio: convert to livetree
Update the Rockchip GPIO-bank driver to support a live tree.
Change-Id: Ic6aae620739fade81d512a070562f7978b648d6d Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Reviewed-by: Simon Glass <sjg@chromium.org> Acked-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit a1d3480bc63103f6215925b9447512e933cc4f1a)
show more ...
|
| #
a821c4af |
| 17-May-2017 |
Simon Glass <sjg@chromium.org> |
dm: Rename dev_addr..() functions
These support the flat device tree. We want to use the dev_read_..() prefix for functions that support both flat tree and live tree. So rename the existing function
dm: Rename dev_addr..() functions
These support the flat device tree. We want to use the dev_read_..() prefix for functions that support both flat tree and live tree. So rename the existing functions to avoid confusion.
In the end we will have:
1. dev_read_addr...() - works on devices, supports flat/live tree 2. devfdt_get_addr...() - current functions, flat tree only 3. of_get_address() etc. - new functions, live tree only
All drivers will be written to use 1. That function will in turn call either 2 or 3 depending on whether the flat or live tree is in use.
Note this involves changing some dead code - the imx_lpi2c.c file.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| #
1221ce45 |
| 21-Sep-2016 |
Masahiro Yamada <yamada.masahiro@socionext.com> |
treewide: replace #include <asm/errno.h> with <linux/errno.h>
Now, arch/${ARCH}/include/asm/errno.h and include/linux/errno.h have the same content. (both just wrap <asm-generic/errno.h>)
Replace
treewide: replace #include <asm/errno.h> with <linux/errno.h>
Now, arch/${ARCH}/include/asm/errno.h and include/linux/errno.h have the same content. (both just wrap <asm-generic/errno.h>)
Replace all include directives for <asm/errno.h> with <linux/errno.h>.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> [trini: Fixup include/clk.] Signed-off-by: Tom Rini <trini@konsulko.com>
show more ...
|
| #
dc557e9a |
| 18-Jun-2016 |
Stefano Babic <sbabic@denx.de> |
Merge branch 'master' of git://git.denx.de/u-boot
Signed-off-by: Stefano Babic <sbabic@denx.de>
|
| #
f15715af |
| 03-Jun-2016 |
Tom Rini <trini@konsulko.com> |
Merge branch 'master' of git://git.denx.de/u-boot-tegra
|
| #
074a1fdd |
| 25-May-2016 |
Stephen Warren <swarren@nvidia.com> |
gpio: add Tegra186 GPIO driver
Tegra186's GPIO controller register layout is significantly different from previous chips, so add a new driver for it. In fact, there are two different GPIO controller
gpio: add Tegra186 GPIO driver
Tegra186's GPIO controller register layout is significantly different from previous chips, so add a new driver for it. In fact, there are two different GPIO controllers in Tegra186 that share a similar register layout, but very different port mapping. This driver covers both.
The DT binding is already present in the Linux kernel (in linux-next via the Tegra tree so far).
Signed-off-by: Stephen Warren <swarren@nvidia.com> Reviewed-by: Simon Glass <sjg@chromium.org> # v1 Signed-off-by: Tom Warren <twarren@nvidia.com>
show more ...
|
| #
08ca213a |
| 24-May-2016 |
Stefano Babic <sbabic@denx.de> |
Merge branch 'master' of git://git.denx.de/u-boot
|
| #
4b6e1fda |
| 17-May-2016 |
Tom Rini <trini@konsulko.com> |
Merge git://git.denx.de/u-boot-dm
|
| #
6c3dd3ca |
| 20-Apr-2016 |
Eric Nelson <eric@nelint.com> |
gpio: rk: remove gpio_xlate routine
With the addition of GPIO_ACTIVE_LOW parsing in gpio-uclass, the Rockchip gpio driver doesn't need a custom xlate routine.
Signed-off-by: Eric Nelson <eric@nelin
gpio: rk: remove gpio_xlate routine
With the addition of GPIO_ACTIVE_LOW parsing in gpio-uclass, the Rockchip gpio driver doesn't need a custom xlate routine.
Signed-off-by: Eric Nelson <eric@nelint.com> Acked-by: Simon Glass <sjg@chromium.org>
show more ...
|
| #
88033d73 |
| 14-Mar-2016 |
Tom Rini <trini@konsulko.com> |
Merge git://git.denx.de/u-boot-dm
|
| #
3f603cbb |
| 11-Feb-2016 |
Simon Glass <sjg@chromium.org> |
dm: Use uclass_first_device_err() where it is useful
Use this new function in places where it simplifies the code.
Signed-off-by: Simon Glass <sjg@chromium.org>
|
| #
48647828 |
| 22-Jan-2016 |
Simon Glass <sjg@chromium.org> |
rockchip: gpio: Implement the get_function() method
Provide this method so that 'gpio status' works fully. It now shows whether a pin is used for input, output or some other function.
Signed-off-by
rockchip: gpio: Implement the get_function() method
Provide this method so that 'gpio status' works fully. It now shows whether a pin is used for input, output or some other function.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|
| #
7d0c2c3f |
| 22-Jan-2016 |
Simon Glass <sjg@chromium.org> |
rockchip: gpio: Read the GPIO value correctly
This function should return 0 or 1, not a mask. Fix it.
Signed-off-by: Simon Glass <sjg@chromium.org>
|
| #
c9feb427 |
| 03-Sep-2015 |
Tom Rini <trini@konsulko.com> |
Merge git://git.denx.de/u-boot-rockchip
|
| #
1f8f7730 |
| 30-Aug-2015 |
Simon Glass <sjg@chromium.org> |
rockchip: gpio: Add rockchip GPIO driver
This supports RK3288 at present. It does not implement functions or support for pull up/down.
Signed-off-by: Simon Glass <sjg@chromium.org>
|