summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-09-22[R-6.3.8] uwb: update qm35 driverandroid-u-qpr1-beta-2.2_r0.7android-u-qpr1-beta-2.1_r0.8android-14.0.0_r0.81android-14.0.0_r0.80android-14.0.0_r0.45android-14.0.0_r0.38android-gs-shusky-5.15-u-qpr1-beta2android-gs-shusky-5.15-android14-qpr1-betaandroid-gs-shusky-5.15-android14-qpr1android-gs-akita-5.15-android14-d2Clement Calmels
Features: * Add power management operations to stop HSSPI on suspend and start HSSPI on resume * Set SS_IRQ as a wake-up interrupt Bug: 299103117 Change-Id: I869388cf4b4d53b0365e7c180bafe512b9983ad1 Signed-off-by: Clement Calmels <clement.calmels@qorvo.com> Signed-off-by: Habib Bel Haj Ali <habib.belhajali@qorvo.com>
2023-08-27Merge android14-gs-pixel-5.15-udc-d1 into android14-gs-pixel-5.15-udc-qpr1android-u-qpr1-beta-2_r0.8PixelBot AutoMerger
SBMerger: 558810260 Change-Id: I0472881ac5f6047d4e365fe007d36658b26e402e Signed-off-by: SecurityBot <android-nexus-securitybot@system.gserviceaccount.com>
2023-08-22always reset uwb chip during power upandroid-14.0.0_r0.18android-gs-shusky-udc-d1android-gs-shusky--udc-d1Victor Liu
Bug: 291293043 Change-Id: Iad805a4fcf9b07234ecae8302241a6f5e1025046 Signed-off-by: Victor Liu <victorliu@google.com> Merged-in: Iad805a4fcf9b07234ecae8302241a6f5e1025046
2023-08-17always reset uwb chip during power upVictor Liu
Bug: 291293043 Change-Id: Iad805a4fcf9b07234ecae8302241a6f5e1025046 Signed-off-by: Victor Liu <victorliu@google.com>
2023-08-06Merge android14-gs-pixel-5.15-udc-d1 into android14-gs-pixel-5.15-udc-qpr1PixelBot AutoMerger
SBMerger: 526756187 Change-Id: Ib1528229bd0fe7ba9adedaf1017724b73915995e Signed-off-by: SecurityBot <android-nexus-securitybot@system.gserviceaccount.com>
2023-08-01Fix hsspi retention sleep race conditionandroid-14.0.0_r0.8main-16k-gs-shusky-5.15android-gs-shusky-5.15-android14-d1Jean-Christophe Pince
When the QM goes to retention sleep and the host wants to send a HSSPI message, there is a wait condition that will lead the host to wait SS_READY_TIMEOUT_MS before actually sending the message. This leads to extra timeouts on the host side. Bug: 291788159 Change-Id: Iad9f01a1758d5b5661f170ce456fbc73ae9a235c Signed-off-by: Jean-Christophe Pince <jean.christophe.pince@qorvo.com>
2023-07-28qm35: remove coredump printsHasan Awais
Bug: 293177115 Test: local build pass Change-Id: I6e09b88d18d7347d291889e3eac9901a952a0d8e Signed-off-by: Hasan Awais <hasanawais@google.com>
2023-06-11Merge android14-gs-pixel-5.15-udc-d1 into android14-gs-pixel-5.15-udc-qpr1PixelBot AutoMerger
SBMerger: 526756187 Change-Id: Id78d07e3203fde67e4b0719772de6e8458b8314d Signed-off-by: SecurityBot <android-nexus-securitybot@system.gserviceaccount.com>
2023-06-07[R-6.3.1] uwb: update qm35 driver to release R-6.3.1Mihai Pop
Bug: 277857334 Change-Id: Ibcdc84eeb1eaf559888362a8913cfa37ec4d2158 Signed-off-by: Mihai Pop <mihai.pop@qorvo.com> Signed-off-by: Neil DI FOLCO <neil.difolco@qorvo.com> (cherry picked from commit 2d77bbd328300eda6d774edc3e470825a6aec434)
2023-05-05[R-6.3.0] uwb: update qm35 driver to release R-6.3.0Neil DI FOLCO
Bug: 280829357 Change-Id: Id7f710c2f3bc02ca52686a514793ed7a39d4d520 Signed-off-by: Mihai Pop <mihai.pop@qorvo.com> Signed-off-by: Neil DI FOLCO <neil.difolco@qorvo.com>
2023-04-28qm35: enable regulators at init when no UWB HALNeil DI FOLCO
The UWB HAL is removed from factory builds. So when inserting the Kernel module, we must force the regulators on. Bug: 279841211 Change-Id: I4b59c10ab49c58662087dc9cc10357e444d97ab1 Signed-off-by: Neil DI FOLCO <neil.difolco@qorvo.com>
2023-04-19Revert "qm35: enable flash_on_probe"Rex Lin
This reverts commit af0b24b93b4a044eb957aeefeab636abbda5bc62. Reason for revert: to improve device boot time Change-Id: I43abcdd6760f69cf4fe41c19c91f56f03857af96
2023-04-11qm35: enable flash_on_probeRex Lin
Since UWB_HAL is removed from factory target. So use driver to trigger the fw flash Bug: 270782475 Test: local verified pass Change-Id: Ibfdff7ede71bc53aa61c4ad48f47d7df0d6207db Signed-off-by: Rex Lin <rexcylin@google.com>
2023-04-05qm35: add support for dual QM FW images signed with PROD and TEST keysNeil DI FOLCO
The driver will try to flash the QM FW image signed with PROD keys first. On failure, it falls back to the QM FW image signed with TEST keys. QM FW image signed with PROD keys: qm35_b0_oem_prod.bin QM FW image signed with TEST keys: qm35_b0_oem.bin Bug: 274517844 Change-Id: I6a99faea28b54386805c791e48eabb4d46b4e8f6 Signed-off-by: Neil DI FOLCO <neil.difolco@qorvo.com>
2023-04-05[R-6.2.1] uwb: update qm35 driver to release R-6.2.1Neil DI FOLCO
Bug: 273393327 Change-Id: I4b2f97b880fe857ff5d1c0ee71ef4972f4d41199 Signed-off-by: Neil DI FOLCO <neil.difolco@qorvo.com>
2023-03-31qm35: call hsspi_start on probeJean-Christophe Pince
The UWB HAL is removed from factory builds. So when probing the module, we must: - force the regulators on - start HSSPI Bug: 270782475 Change-Id: I3c267e978b60a51e9e415a3083a9313e08675f35 Signed-off-by: Jean-Christophe Pince <jean.christophe.pince@qorvo.com>
2023-03-31qm35: add flashing statsJean-Christophe Pince
Bug: 266449259 Change-Id: Id324f703657dc5ed0746c19edab0437112f91c38 Signed-off-by: Jean-Christophe Pince <jean.christophe.pince@qorvo.com>
2023-03-03qm35: disable workaround to add delay between CS and first clock tickNeil DI FOLCO
A better solution is to take avantage of the cs-clock-delay device tree parameter from the SPI driver. It allows to have much shorter delay e.g. when set to 10us, we measure 20us delay. Thus it will improve the power measurements during ranging. Bug: 271472223 Change-Id: I259c3de4308707ecf4fb84c1e5150d4cfe95100e Signed-off-by: Neil DI FOLCO <neil.difolco@qorvo.com>
2023-03-02qm35: low power mode fixesJean-Christophe Pince
Bug: 259566283 Change-Id: Ic38949b6b0da5193b6d58beeb103cd4d9167989a Signed-off-by: Jean-Christophe Pince <jean.christophe.pince@qorvo.com>
2023-02-23qm35: split out the firmware debugfs interfaceWill McVicker
The firmware debugfs interface uses the API kernel_read_file_from_path() which isn't allowed in GKI. So this patch splits out the firmware debug source file from the main qm35 module by adding CONFIG_QM35_SPI_DEBUG_FW. Bug: 270572059 Change-Id: Ic98112ce2499658a24562870f8e78f28366e5d94 Signed-off-by: Will McVicker <willmcvicker@google.com>
2023-02-10qm35: do not release wakeup during SPI transferNeil DI FOLCO
Bug: 268591347 Change-Id: I2b0575cec98995de2ed7a1470096206bb2697b97 Signed-off-by: Neil DI FOLCO <neil.difolco@qorvo.com>
2023-02-07[R-6.0.3] qm35: fix kernel driverPhilippe Skowronski
Fixes: * fix race condition between the enabling/disabling of the regulators and the HSSPI start/stop by enabling regulators then start HSSPI, stop HSSPI then disable regulators * add support of vdd4 * assert reset line when regulators are off * add robustness for floating MISO Bug: 254111407 Bug: 266966191 Change-Id: Id285988542ffa9b57f3e8c1b165fc6b2e0635e55 Signed-off-by: Philippe Skowronski <philippe.skowronski@qorvo.com>
2023-01-19uwb: remove obsolete codeNeil DI FOLCO
Bug: 265987189 Change-Id: Id09577a7d61024acc300cbe716f21407d529f890 Signed-off-by: Neil DI FOLCO <neil.difolco@qorvo.com>
2023-01-19[R-6.0] uwb: update qm35 driver to release R-6.0Neil DI FOLCO
Bug: 264621577 Bug: 264945820 Change-Id: I4558ab2fa4199c385a2097cce9bc9956fba8f690 Signed-off-by: Philippe Skowronski <philippe.skowronski@qorvo.com> Signed-off-by: Neil DI FOLCO <neil.difolco@qorvo.com>
2023-01-18uwb: fix coding styleNeil DI FOLCO
In order to comply with Google's coding style rules, we have run Clang-Format code formatter. We have provided the .clang-format configuration file specifying the style configuration. Command to run Clang-Format: find . -name '*.[ch]' -print0 | xargs -0 clang-format-9 -style=file -i Bug: 265987189 Change-Id: I42bef04ec5de5c087014e7a4aba330a44483ea57 Signed-off-by: Neil DI FOLCO <neil.difolco@qorvo.com>
2023-01-18uwb: remove dw3000 specific codeNeil DI FOLCO
Bug: 265987189 Change-Id: I323897b3d151b6acfcc4428e7775e7e052d602ee Signed-off-by: Neil DI FOLCO <neil.difolco@qorvo.com>
2022-12-20kleaf: add support for kleafWill McVicker
This adds the necessary bazel files to compile this module using kleaf. Bug: 257343887 Change-Id: Ib0f0dda4789aeab64510785972474508a296df48 Signed-off-by: Will McVicker <willmcvicker@google.com>
2022-12-19Revert "Revert "[R-5.2.2] uwb: update qm35 driver to release R5.2.2""Philippe Skowronski
This reverts commit 2f7d8b7fd5a922910a921a33c7c7c1a3d7483504. Change-Id: Idf3069bcb124b1f5efcaae4f011114ec2fb46ede Signed-off-by: Philippe Skowronski <philippe.skowronski@qorvo.com>
2022-12-19uwb: fix wrong qmrom len when MISO is kept highJean-Christophe Pince
Fixes: * kernel panic on device boot w/ ab/9409902 Bug: 262784131 Change-Id: Ia9f2b2e8459b4dc91619412a71592844f57b6540 Signed-off-by: Jean-Christophe Pince <jean.christophe.pince@qorvo.com>
2022-12-19Revert "Revert "Revert "Revert "[R-5.2] uwb: update qm35 driver to release ↵Philippe Skowronski
R5.2"""" This reverts commit 3ceb668276c37acebff5eef90c80afb46ef8f75e. Change-Id: Ie19178d6e5abb162372eaee54d80c82ddd9c5a19 Signed-off-by: Philippe Skowronski <philippe.skowronski@qorvo.com>
2022-12-16Merge android13-gs-pixel-5.15 into android14-gs-pixel-5.15Robin Peng
Bug: 260174400 Change-Id: I1a99c677e341f74dbe3624a2a5fcf3ed9294027c Signed-off-by: Robin Peng <robinpeng@google.com>
2022-12-16Revert "Revert "Revert "[R-5.2] uwb: update qm35 driver to release R5.2"""Andrew Chant
This reverts commit 1518c1cda0b86dc3a946c40a51c466000550f842. Reason for revert: Kernel panics on boot with this patch. Bug: 262784131 Change-Id: I48953de98ed18a9de5c9aab98082a48879d2d0a5
2022-12-16Revert "[R-5.2.2] uwb: update qm35 driver to release R5.2.2"Andrew Chant
This reverts commit ddd8bb16843f05c54ee7736a02527ede95aaad60. Reason for revert: getting back to prior state before mem error Bug: 262719612 Change-Id: Ibae11e7dc6467978e1e276e8e569008846d7d750
2022-12-15[R-5.2.2] uwb: update qm35 driver to release R5.2.2Philippe Skowronski
Fixes: * UCI fails to init after adding the regulator config - pixel recovery Bug: 256549274 Change-Id: Ib2bd9edee83f26b7699b3b2fc6541a083e9d1e22 Signed-off-by: Philippe Skowronski <philippe.skowronski@qorvo.com>
2022-12-15Revert "Revert "[R-5.2] uwb: update qm35 driver to release R5.2""Robin Peng
This reverts commit 495a1eadface6ee91cb6fdd1cc644ef14682f7f0. Reason for revert: Symptom not exist after re-plug A0 chip. Change-Id: Id31de79fc4a25499d79e4ce60bc1e442f1ed2c69
2022-12-15Revert "[R-5.2] uwb: update qm35 driver to release R5.2"Robin Peng
This reverts commit d900fbab259e458be76aa401473496574b121991. Reason for revert: Continuously KP Change-Id: I5d76b9276cef4a01b337c01b5c8b688470049bc6
2022-12-14[R-5.2] uwb: update qm35 driver to release R5.2Neil DI FOLCO
Add C0 support Change-Id: Ic1f43522c04df3877695a48cedfb1a22a1b2eacc Signed-off-by: Neil DI FOLCO <neil.difolco@qorvo.com>
2022-12-07Merge android13-gs-pixel-5.15 into android14-gs-pixel-5.15Robin Peng
Bug: 260174400 Change-Id: I29230156003b650010e2f70a16388b21c4b9a1b8 Signed-off-by: Robin Peng <robinpeng@google.com>
2022-12-02uwb: update uwb driver to qorvo 5.1 releaseJeremy Rocher
Qorvo git references * uci-kernel-module @592af0c * libqmrom @1bfaf2e Features * New coredump force command Fixes * Set SPI CLK at 3MHz during flashing on QM357xx-B0 only * Check ss_ready at the end of probe to avoid false state * Increase the ss_ready timeout and retries to allow recovery * Register /dev/uci last to avoid crash if hsspi not ready Bug: 260930840 Test: build pass Change-Id: I78acfd15102b95728d3c5f3989ddbf62880f82f7 Signed-off-by: Jeremy Rocher <jeremy.rocher@qorvo.com>
2022-10-22Merge android13-gs-pixel-5.15 into android14-gs-pixel-5.15Robin Peng
Bug: 236259002 Signed-off-by: Robin Peng <robinpeng@google.com> Change-Id: Id15761fc3671c9a4d6f45bbaf278e420a5bea29b
2022-10-14update to qorvo qm35 5.0 releaseVictor Liu
uci-kernel-module @7ef436 libqmrom @f08a03 Bug: 235729422 Signed-off-by: Victor Liu <victorliu@google.com> Change-Id: If8bd96356b331cb21f0e7bb1b139539cf4d96a12
2022-10-03uwb: update uwb driver to qorvo 4.0 releaseVictor Liu
uci-kernel-module @ba73dfe libqmrom @06cff7d Bug: 230547256 Signed-off-by: Victor Liu <victorliu@google.com> Change-Id: I6b0faa03dee6de44926210d3e8ed8f36b6c3165c
2022-08-23uwb: support qm35 with 3.5 releaseVictor Liu
Bug: 241038568 Test: verified with local build Change-Id: I866fef437ae30a966d442d869ba3eacb64370ca1
2022-08-09Merge partner/android13-gs-pixel-5.10-tm-qpr1 into ↵Will McVicker
partner/android13-gs-pixel-5.15 * partner/android13-gs-pixel-5.10-tm-qpr1: mac: propagate and filter -ETIME error mac: implement Provisioned STS dw3000: Fix end_dtu computation Qorvo UWB Stack Release 06/21/2022 for QPR1 Change-Id: Ia4b41c8dbe537a2024055dbb5ac7764b8b80930d Signed-off-by: Will McVicker <willmcvicker@google.com>
2022-08-08mac: propagate and filter -ETIME errorClément Viel
Filter llhw to avoid triggering useless DeviceStateError Bug: 241137690 Change-Id: Ic476f1cc9da39eb1afc71edd0188a3ad0abc5259 Signed-off-by: Clément Viel <clement.viel@qorvo.com>
2022-08-05mac: implement Provisioned STSJeremy Rocher
Bug: 231581242 Signed-off-by: Jeremy Rocher <jeremy.rocher@qorvo.com> Change-Id: I69b6108faeeca796e8cf3db5ec06dd26d4b99a84
2022-07-13dw3000: Fix end_dtu computationOthman BOUADJENAK
Avoid negative time values in power_stats when handling a timeout event Bug: 199768480 Change-Id: I47743fffb80f863437e2c19b6e63f48b4df592d4
2022-07-12Qorvo UWB Stack Release 06/21/2022 for QPR1Jeremy Rocher
Features: * Fira & vendor RSSI over UCI * UCI RANGE_DATA_NTF_CONFIG support for proximity near/far * UCI power stats query * CCC/Fira interleaving Note: * Added __nocfi on llhw_set_hrp_uwb_params() to WA unexepected panic due CFI check Bug: 236612098 Change-Id: I98f2d147dff79e304f59aed3e85793c3512cc593
2022-05-25Revert "kleaf: add missing dw3000-core-tests.ko"Will McVicker
This reverts commit efe885350dc02f758f62606b836a3fb5aaf4c7c5. This was previously enabled by CONFIG_KUNIT, but that was disabled in android13-5.15 in commit fbfc5c68b69c ("ANDROID: GKI: Disable CONFIG_KUNIT"). Signed-off-by: Will McVicker <willmcvicker@google.com> Change-Id: I2a60e9413617f10a34a5cb7727458e5bb3b4b3d1
2022-05-25Revert "dw3000: Fix spi_driver remove function"Will McVicker
This reverts commit fcc98f9f1d073577ad4024f69c0ad87347a37c5f. This is from android-gs-raviole-mainline and isn't compatible with the 5.15 kernel. Signed-off-by: Will McVicker <willmcvicker@google.com> Change-Id: Ife9fa54b9b2260cc60ab1c1e0194253735bbfbbe