#
4f012d7a |
| 22-May-2024 |
Andrew Turner <andrew@FreeBSD.org> |
arm64/rockchip: Fix the build with GCC
We were missing brackets in GPIO_FLAGS_PINCTRL. Without them GCC complains a use is ambiguous. Fix by adding the needed brackets.
Reviewed by: manu, brooks, i
arm64/rockchip: Fix the build with GCC
We were missing brackets in GPIO_FLAGS_PINCTRL. Without them GCC complains a use is ambiguous. Fix by adding the needed brackets.
Reviewed by: manu, brooks, imp, jhb, emaste Sponsored by: Arm Ltd Differential Revision: https://reviews.freebsd.org/D45264
show more ...
|
Revision tags: release/13.3.0 |
|
#
cba889e6 |
| 03-Feb-2024 |
rilysh <nightquick@proton.me> |
sys/arm64/rockchip/rk_gpio.c: remove an extra semicolon
Signed-off-by: rilysh <nightquick@proton.me> Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/959
|
#
be82b3a0 |
| 26-Dec-2023 |
Emmanuel Vadot <manu@FreeBSD.org> |
clk: Move clock code in dev/clk
We've removed kernel option EXT_RESOURCES almost two years ago. While it was ok to have some code under a common 'extres' subdirectory at first, we now have a lot of
clk: Move clock code in dev/clk
We've removed kernel option EXT_RESOURCES almost two years ago. While it was ok to have some code under a common 'extres' subdirectory at first, we now have a lot of consumer of it and we made it mandatory so no need to have it under a cryptic name.
Reviewed by: mhorne Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D43191
show more ...
|
#
fdafd315 |
| 24-Nov-2023 |
Warner Losh <imp@FreeBSD.org> |
sys: Automated cleanup of cdefs and other formatting
Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row.
Remov
sys: Automated cleanup of cdefs and other formatting
Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row.
Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/ Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/ Remove /\n+#if.*\n#endif.*\n+/ Remove /^#if.*\n#endif.*\n/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/
Sponsored by: Netflix
show more ...
|
Revision tags: release/14.0.0 |
|
#
685dc743 |
| 16-Aug-2023 |
Warner Losh <imp@FreeBSD.org> |
sys: Remove $FreeBSD$: one-line .c pattern
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
|
#
4d846d26 |
| 10-May-2023 |
Warner Losh <imp@FreeBSD.org> |
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of
spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch up to that fact and revert to their recommended match of BSD-2-Clause.
Discussed with: pfg MFC After: 3 days Sponsored by: Netflix
show more ...
|
Revision tags: release/13.2.0, release/12.4.0 |
|
#
48551d32 |
| 01-Sep-2022 |
Ganbold Tsagaankhuu <ganbold@FreeBSD.org> |
Fix problem getting gpio version during attach. Both RK3328 and RK3399 don't have GPIO_VER_ID register. Set gpio version depending on compat string of the parent.
|
#
ec556724 |
| 20-Aug-2022 |
Søren Schmidt <sos@FreeBSD.org> |
Add interrupt handling to rk_gpio driver.
|
#
901df07a |
| 19-Aug-2022 |
Søren Schmidt <sos@FreeBSD.org> |
Code refactoring for existing rk_gpio driver. It supports gpio type checking. Depending on gpio type some register addresses are different.
Reviewed by: manu Differential Revision: https://reviews.f
Code refactoring for existing rk_gpio driver. It supports gpio type checking. Depending on gpio type some register addresses are different.
Reviewed by: manu Differential Revision: https://reviews.freebsd.org/D36262
show more ...
|
Revision tags: release/13.1.0, release/12.3.0 |
|
#
87f642ac |
| 22-Sep-2021 |
Emmanuel Vadot <manu@FreeBSD.org> |
arm64: rockchip: rk_gpio: Improve mode switching
Changing mode on a pin (input/output/pullup/pulldown) is a bit slow. Improve this by caching what we can. We need to check if the pin is in gpio mode
arm64: rockchip: rk_gpio: Improve mode switching
Changing mode on a pin (input/output/pullup/pulldown) is a bit slow. Improve this by caching what we can. We need to check if the pin is in gpio mode, do that the first time that we have a request for this pin and cache the result. We can't do that at attach as we are a child of rk_pinctrl and it didn't finished its attach then. Cache also the flags specific to the pinctrl (pullup or pulldown) if the pin is in input mode. Cache the registers that deals with input/output mode and output value. Also remove some register reads when we change the direction of a pin or when we change the output value since the bit changed in the registers only affect output pins.
show more ...
|
#
b2c1681a |
| 09-May-2022 |
John Baldwin <jhb@FreeBSD.org> |
arm64 rockchip: Remove unused devclass arguments to DRIVER_MODULE.
|
#
bc1bb805 |
| 16-May-2021 |
Emmanuel Vadot <manu@FreeBSD.org> |
arm64: rockchip: gpio: Give friendlier name to gpio
By default name the gpio P<bank><bankpin> This make it easier to find the gpio when reading schematics or DTS.
Sponsored by: Diablotin Systems Di
arm64: rockchip: gpio: Give friendlier name to gpio
By default name the gpio P<bank><bankpin> This make it easier to find the gpio when reading schematics or DTS.
Sponsored by: Diablotin Systems Differential Revision: https://reviews.freebsd.org/D30287
show more ...
|
Revision tags: release/13.0.0, release/12.2.0, release/11.4.0 |
|
#
3ee778c1 |
| 16-Jan-2020 |
Emmanuel Vadot <manu@FreeBSD.org> |
arm64: rockchip: Add new interface for rk_pinctrl
The gpio controller in rockchips SoC in a child of the pinctrl driver and cannot control pullups and pulldowns. Use the new fdt_pinctrl interface fo
arm64: rockchip: Add new interface for rk_pinctrl
The gpio controller in rockchips SoC in a child of the pinctrl driver and cannot control pullups and pulldowns. Use the new fdt_pinctrl interface for accessing pin capabilities and setting them. We can now report that every pins is capable of being IN or OUT function and PULLUP PULLDOWN. If the pin isn't in gpio mode no changes will be allowed.
Reviewed by: ganbold (previous version) MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D22849
show more ...
|
#
bc188bd4 |
| 17-Dec-2019 |
Emmanuel Vadot <manu@FreeBSD.org> |
arm64: rockchip: rk_gpio: Fix pin number
The maxpin counter starts at 0, fix one by one error. This is still not totally correct for some banks in some SoC that have fewer pins but this will be deal
arm64: rockchip: rk_gpio: Fix pin number
The maxpin counter starts at 0, fix one by one error. This is still not totally correct for some banks in some SoC that have fewer pins but this will be dealt with in another commit.
MFC after: 3 days
show more ...
|
#
e213223c |
| 03-Dec-2019 |
Emmanuel Vadot <manu@FreeBSD.org> |
Remove "all rights reserved" from copyright for the file I own. Some of the files have both me and Jared McNeill and he gave me permission to remove it from his files too.
|
Revision tags: release/12.1.0 |
|
#
8b3bc70a |
| 08-Oct-2019 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r352764 through r353315.
|
#
2a5509bf |
| 29-Sep-2019 |
Emmanuel Vadot <manu@FreeBSD.org> |
arm64: rockchip: Fix map_gpio
The map_gpio function wasn't correct, the first element is the pin and not the phandle.
|
#
c5c3ba6b |
| 03-Sep-2019 |
Dimitry Andric <dim@FreeBSD.org> |
Merge ^/head r351317 through r351731.
|
#
f69c06c3 |
| 27-Aug-2019 |
Michal Meloun <mmel@FreeBSD.org> |
Add support for RK3288 into existing RockChip drivers. This patch ensures only minimal level of compatibility necessary to boot on RK3288 based boards. GPIO and pinctrl interaction, missing in curren
Add support for RK3288 into existing RockChip drivers. This patch ensures only minimal level of compatibility necessary to boot on RK3288 based boards. GPIO and pinctrl interaction, missing in current implementation, will be improved by own patch in the near future.
MFC after: 2 weeks MFC with: r351452
show more ...
|
Revision tags: release/11.3.0, release/12.0.0, release/11.2.0 |
|
#
5f35d609 |
| 20-Jun-2018 |
Emmanuel Vadot <manu@FreeBSD.org> |
rk_gpio: Read the correct register for gpio read
Reported by: jmcneill
|
#
590a3c96 |
| 27-Apr-2018 |
Emmanuel Vadot <manu@FreeBSD.org> |
arm64: rockchip: rk_gpio fix rk_gpio_pin_config32
Pointy Hat to: me
|
#
cbf65cf2 |
| 26-Apr-2018 |
Emmanuel Vadot <manu@FreeBSD.org> |
arm64: rockchip: Add gpio controller driver
Add a driver that match on 'rockchip,gpio-bank', this compatible string is found on almost all RockChip SoC so this driver is compatible with almost all o
arm64: rockchip: Add gpio controller driver
Add a driver that match on 'rockchip,gpio-bank', this compatible string is found on almost all RockChip SoC so this driver is compatible with almost all of the RockChip SoCs.
The only features missing for this driver are : - Interrupts support - Debouncing
show more ...
|