aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/qcom_tlmm
Commit message (Collapse)AuthorAgeFilesLines
* qcom_tlmm: remove annoying debuggingAdrian Chadd2026-05-181-1/+0
| | | | | | Yes this printf is for local debugging and not required at all on anything. Pointed out by: andrew@
* qcom_tlmm: add i2c pull up strength config optionAdrian Chadd2026-04-273-0/+7
| | | | | | | | | The X1E and others have a separate configuration bit to increase the pull-up drive strength for i2c busses. Add the plumbing; it doesn't do anything just yet. Differential Revision: https://reviews.freebsd.org/D56351
* qcom_tlmm: extend the IPQ4018 pinmux function mask to 4 bitsAdrian Chadd2026-04-271-1/+1
| | | | | | It's 4 bits, not 3. Oops. Differential Revision: https://reviews.freebsd.org/D56350
* qcom_tlmm: prepare for supporting multiple TLMM platformsAdrian Chadd2026-04-275-168/+334
| | | | | | | | * Create a set of callbacks implementing the hardware specific GPIO bus operations * Migrate the IPQ4018 TLMM setup code into qcom_tlmm_ip4018.c Differential Revision: https://reviews.freebsd.org/D56349
* gpio: remove gpiobus_attach_busAhmad Khalifa2025-08-131-1/+2
| | | | | | | | | | | | Since gpiobus_attach_bus can attach the gpiobus child along with its children in the same bus pass, the parent controller's reference to gpiobus might not be set by the time the children need it. Instead, drivers should use gpiobus_add_bus and explicitly call bus_attach_children. Reviewed by: mmel, imp (older version) Approved by: imp (mentor) Differential Revision: https://reviews.freebsd.org/D51578
* sys: Automated cleanup of cdefs and other formattingWarner Losh2023-11-275-5/+0
| | | | | | | | | | | | | | | | 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
* sys: Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-165-10/+0
| | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
* sys: Remove $FreeBSD$: two-line .h patternWarner Losh2023-08-165-10/+0
| | | | Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
* spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDWarner Losh2023-05-1210-10/+10
| | | | | | | | | 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
* qcom_tlmm: use return code instead of always returning true.Adrian Chadd2022-09-131-3/+3
| | | | | | | | This was failing due to unused/ignored return values; so just use them. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D36534
* qcom_*: Remove unused devclass arguments to DRIVER_MODULE.John Baldwin2022-05-101-4/+2
|
* qcom_tlmm: add initial gpio/pinmux controller (TLMM)Adrian Chadd2021-12-2310-0/+2285
The qualcomm TLMM (top level mode manager) is their gpio/pinmux hardware controller. Although the pinmux is generic enough to use for the IPQ/APQ series chips, I'm directly calling the IPQ4018 routines to expedite bring-up. Notably, I'm not yet implementing the interrupt support - it's not required at this stage of bring-up. Differential Revision: https://reviews.freebsd.org/D33554