Repository navigation
Add support for TSC & ETU for LeMans, Monaco, Shikra - #1524
Taniya Das (taniyadas20) wants to merge 49 commits into
Conversation
PR #1524 — validate-patchPR: #1524
Final Summary
|
PR #1524 — checker-log-analyzerPR: #1524
Detailed report: Full report
|
|
qli-2.2 pull-request freeze |
0a366d1 to
c849156
Compare
PR #1524 — validate-patchPR: #1524
Final Summary
|
PR #1524 — checker-log-analyzerPR: #1524
Detailed report: Full report
|
Test resultsWorkflow run: 45618732636 attempt 1 Known failures configured: 54
Test Matrix
Failure summaryKnown failures
Unexpected failures
Result: blocked because unexpected failures were found. |
LAVA Failed Case Triage SummaryPR: #1524 Job 291777 | SoC lemans-evkLAVA job: https://lava-oss.qualcomm.com/scheduler/job/291777 Failed test cases in LAVA job 291777 (SoC: lemans-evk).
Job 291778 | SoC shikra-iqs-evkLAVA job: https://lava-oss.qualcomm.com/scheduler/job/291778 Failed test cases in LAVA job 291778 (SoC: shikra-iqs-evk).
Job 291779 | SoC qcs9100-rideLAVA job: https://lava-oss.qualcomm.com/scheduler/job/291779 Failed test cases in LAVA job 291779 (SoC: qcs9100-ride).
Job 291780 | SoC monaco-evkLAVA job: https://lava-oss.qualcomm.com/scheduler/job/291780 Failed test cases in LAVA job 291780 (SoC: monaco-evk).
Job 291781 | SoC purwa-evkLAVA job: https://lava-oss.qualcomm.com/scheduler/job/291781 Failed test cases in LAVA job 291781 (SoC: purwa-evk).
Job 291782 | SoC qcs615-rideLAVA job: https://lava-oss.qualcomm.com/scheduler/job/291782 Failed test cases in LAVA job 291782 (SoC: qcs615-ride).
Job 291783 | SoC qcs8300-rideLAVA job: https://lava-oss.qualcomm.com/scheduler/job/291783 Failed test cases in LAVA job 291783 (SoC: qcs8300-ride).
Job 291784 | SoC qcs6490-rb3gen2LAVA job: https://lava-oss.qualcomm.com/scheduler/job/291784 Failed test cases in LAVA job 291784 (SoC: qcs6490-rb3gen2).
Job 291785 | SoC hamoa-evkLAVA job: https://lava-oss.qualcomm.com/scheduler/job/291785 Failed test cases in LAVA job 291785 (SoC: hamoa-evk).
|
|
Taniya Das (@taniyadas20) Audio card registration failed on Hamoa please check : |
Test resultsWorkflow run: 45618732636 attempt 2 Known failures configured: 54
Test Matrix
Failure summaryKnown failures
Unexpected failures
Result: blocked because unexpected failures were found. |
…N clock divider" This is to bring the v2 version of the code from upstream with FROMLIST tag. This reverts commit 6bc677d. Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com>
…ock divider" This is to bring the v2 version of the code from upstream with FROMLIST tag. This reverts commit e780494. Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com>
…divider Add device tree bindings for the Qualcomm Peripheral Web's PDM GP_MN clock divider. The hardware generates a fractional output frequency from a fixed input clock (typically TCXO4) using the relation Fout = Fin * (M / N), with duty cycle controlled by a separate D register. The clock output is routed over a gpio controlled pin. Link: https://lore.kernel.org/r/20261124-b4-pdm_clk_gp_mnd_v2-v3-1-98db26a87500@oss.qualcomm.com Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com> (cherry picked from commit 475154a91067c28c29a8b4c5f87741e913af4eb1)
Add clock IDs for the PDM XO4 divider sources on QCS615, QCS8300, SA8775P, SC7280, SM8750, and Shikra. The corresponding GCC drivers use these IDs to register the divider clocks. Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Link: https://lore.kernel.org/r/20261124-b4-pdm_clk_gp_mnd_v2-v3-2-98db26a87500@oss.qualcomm.com Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com> (cherry picked from commit b550422c500a7fd3728cdcd31415bb386fbfcdef)
The PDM (Pulse Density Modulation) hardware block on Qualcomm SoCs contains a GP_MN clock divider that produces a fractional output frequency from a fixed input clock (typically TCXO4): Fout = Fin * (M / N) The hardware encodes the period in the NDIV register as the 1's complement of (N - M), and controls the duty cycle via a separate DUTY register that counts the number of low-phase native clock cycles over the period N. Add a standalone platform driver for this block that uses rational_best_approximation() to find the closest M/N pair within the 9-bit M and 13-bit N hardware limits. Reject ratios which cannot support a valid duty cycle, and program the MDIV, NDIV, and DUTY registers via regmap. Implement determine_rate, set_rate, recalc_rate, get_duty_cycle, and set_duty_cycle operations. The PDM AHB bus clock is gated around every register access. Link: https://lore.kernel.org/r/20261124-b4-pdm_clk_gp_mnd_v2-v3-3-98db26a87500@oss.qualcomm.com Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com> (cherry picked from commit 5a1d7539fef4be78597fcd05d9ae5212119404f9)
…targets Add PDM XO4 divider clocks and make the PDM XO4 branches propagate rate requests to them on QCS615, QCS8300, SA8775P, SC7280, SM8750, and Shikra. This lets GP_MND select the supported PDM source clock rates. Reviewed-by: Abel Vesa <abel.vesa@oss.qualcomm.com> Link: https://lore.kernel.org/r/20261124-b4-pdm_clk_gp_mnd_v2-v3-4-98db26a87500@oss.qualcomm.com Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com> (cherry picked from commit 08fa8dd1507c32f826da96fa9f266aeb0852ae68)
Export the GCC PWM XO512 source clock ID so the Shikra PWM controller can describe and configure its complete clock path. Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Link: https://lore.kernel.org/r/20261116-pwm_clocks_shikra-v1-1-55fc11501821@oss.qualcomm.com Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com> (cherry picked from commit 76661ff67d062652d1cea9bd24d88bfe7afdeed2)
Add the programmable PWM XO512 divider sourced from bi_tcxo and make GCC_PWM0_XO512_CLK its child. This permits PWM consumers to select their PWM core rate through the common clock framework. Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Reviewed-by: Imran Shaik <imran.shaik@oss.qualcomm.com> Reviewed-by: Abel Vesa <abel.vesa@oss.qualcomm.com> Link: https://lore.kernel.org/r/20261116-pwm_clocks_shikra-v1-2-55fc11501821@oss.qualcomm.com Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com> (cherry picked from commit d951e259c12c6ba5cfe81d76dac859d1dfb50c50)
Document the Pulse Width Modulation (PWM) controller on Qualcomm Shikra SoCs. The controller has a shared enable register, ten independently addressed frame blocks, and shared AHB and PWM core clocks. Describe the frame child-node address mapping and the consumer PWM specifier needed to select each hardware frame. Link: https://lore.kernel.org/r/20261116-pwm_qcom_shikra-v1-1-67ee4553adc5@oss.qualcomm.com Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com> (cherry picked from commit d5cc1a7f6dc38a25a6547a55be0f32aa743e9f30)
Add support for the Pulse Width Modulation (PWM) controller on Qualcomm Shikra SoCs. The controller has a shared output-enable register and up to ten frame blocks with independent configuration registers. Model each available frame from its DT child node, and retain the shared AHB and PWM core clocks while an output is active. Link: https://lore.kernel.org/r/20261116-pwm_qcom_shikra-v1-2-67ee4553adc5@oss.qualcomm.com Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com> (cherry picked from commit c69f679d514454a61ebd128765fff1e6353cf8b4)
Add the gp_mn pin mux function to the QCS8300 TLMM function enum. This exposes the GP M/N divider clock output and is used on gpio32. Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Link: https://lore.kernel.org/r/20261118-gp_mn_tlmm_support-v1-1-703f7badd194@oss.qualcomm.com Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com> (cherry picked from commit 860211fec3b7cdd3b522ffd548c8b1dcfc94a885)
Add the gp_mn pin mux function to the SA8775P TLMM function enum. This exposes the GP M/N divider clock output and is used on gpio35. Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Link: https://lore.kernel.org/r/20261118-gp_mn_tlmm_support-v1-3-703f7badd194@oss.qualcomm.com Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com> (cherry picked from commit e60c4c7ff650ee0c0554ab0b6d12f3ecb7b3282a)
Add the gp_mn pin mux function to the SC7280 TLMM function enum. This exposes the GP M/N divider clock output and is used on gpio60. Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Link: https://lore.kernel.org/r/20261118-gp_mn_tlmm_support-v1-5-703f7badd194@oss.qualcomm.com Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com> (cherry picked from commit 0fe085c00519360124389cd034061dea465c7415)
Add the gp_mn pin mux function to the QCS615 TLMM function enum. This exposes the GP M/N divider clock output and is used on gpio29. Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Link: https://lore.kernel.org/r/20261118-gp_mn_tlmm_support-v1-7-703f7badd194@oss.qualcomm.com Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com> (cherry picked from commit 7161198a9dee03f80a9ff04b2af5ef0f5131c45d)
Add the GP M/N clock controller and its pin configuration for SC7280. The controller uses the PDM XO4 and AHB clocks from GCC and routes its output to gpio60. Link: https://lore.kernel.org/r/20261124-b4-pdm_clk_gp_mnd_v2-v3-7-98db26a87500@oss.qualcomm.com Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com> (cherry picked from commit 88187c88e68f1d1f0e8479209d918749bb71e818)
Add the GP M/N clock controller and its pin configuration for SM8750. The controller uses the PDM XO4 and AHB clocks from GCC and routes its output to gpio53. The node is kept disabled by default so boards opt in explicitly before the output pin is muxed. Link: https://lore.kernel.org/r/20261124-b4-pdm_clk_gp_mnd_v2-v3-9-98db26a87500@oss.qualcomm.com Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com> (cherry picked from commit d2235e0ac64b57d438bf3da8454e1e7dc6fc07c9)
Add the GP M/N clock controller and its pin configuration for SA8775P. The controller uses the PDM XO4 and AHB clocks from GCC and routes its output to gpio35. Link: https://lore.kernel.org/r/20261124-b4-pdm_clk_gp_mnd_v2-v3-6-98db26a87500@oss.qualcomm.com Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com> (cherry picked from commit d064b1dafa2b3035e70973502eb3e247c848eb73)
Add the GP M/N clock controller and its pin configuration for QCS8300. The controller uses the PDM XO4 and AHB clocks from GCC and routes its output to gpio32. Link: https://lore.kernel.org/r/20261124-b4-pdm_clk_gp_mnd_v2-v3-5-98db26a87500@oss.qualcomm.com Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com> (cherry picked from commit c84e74af958f4ab4c113f308a83ba2474aab58ce)
Add the GP M/N clock controller and its pin configuration for QCS615. The controller uses the PDM XO4 and AHB clocks from GCC and routes its output to gpio29. Link: https://lore.kernel.org/r/20261124-b4-pdm_clk_gp_mnd_v2-v3-8-98db26a87500@oss.qualcomm.com Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com> (cherry picked from commit 5b195d02feae14eed32aad48f0d2078f8d289bde)
Add the PWM controller node with its AHB and core clocks and the ten PWM frame child nodes to the Shikra SoC DTSI. Assign the shared PWM core clock a rate of 9.6MHz. Link: https://lore.kernel.org/r/20261116-pwm_qcom_shikra-v1-3-67ee4553adc5@oss.qualcomm.com Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com> (cherry picked from commit d34b1210712d44ebc0e0324f6ac100d937d18dfc)
Add the GP M/N clock controller and its pin configuration for Shikra. The controller uses the PDM XO4 and AHB clocks from GCC and routes its output to gpio87. The node is kept disabled by default so boards opt in explicitly before the output pin is muxed. Link: https://lore.kernel.org/r/20261124-b4-pdm_clk_gp_mnd_v2-v3-10-98db26a87500@oss.qualcomm.com Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com> (cherry picked from commit d1f1e0e4b28471278221d09b7211c3d6910a5e22)
Enable the PWM and GP_MND drivers support across Qualcomm platforms. Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com>
…ule" Bring in the v2 version of the TSCSS driver from upstream with FROMLIST tag. This reverts commit 1c082db. Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com> (cherry picked from commit c0e63e232298ab1320c7d78c5c5e28d683c5c161)
Bring in the v2 version of the TSCSS driver from upstream with FROMLIST tag. This reverts commit 3aac875. Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com> (cherry picked from commit 610adf7f445273d9e0aa63bf6c85f49bd012d957)
…d QCS8300 SoCs Add Devicetree bindings for the Timestamp Counter Subsystem (TSCSS) found on Qualcomm SA8775P and QCS8300 SoCs. TSCSS is a time synchronization subsystem composed of two main blocks: Timestamp Counter (TSC) and Event Timestamp Unit (ETU). The TSC block provides a continuously running counter used for timekeeping, while the ETU captures timestamps for external hardware event triggers. Co-developed-by: Taniya Das <taniya.das@oss.qualcomm.com> Signed-off-by: Imran Shaik <imran.shaik@oss.qualcomm.com> Link: https://lore.kernel.org/r/20261108-tscss-v2-1-d5f575010427@oss.qualcomm.com Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com> (cherry picked from commit 556f05d42bff204c43354833b7591c6c323d4200)
…00 SoC Add Devicetree bindings for the Timestamp Counter Subsystem (TSCSS) found on Qualcomm QDU1000 SoC. TSCSS is a time synchronization subsystem composed of two main blocks: Timestamp Counter (TSC) and Event Timestamp Unit (ETU). The TSC block provides a continuously running counter used for timekeeping, while the ETU captures timestamps for external hardware event triggers. Co-developed-by: Taniya Das <taniya.das@oss.qualcomm.com> Signed-off-by: Imran Shaik <imran.shaik@oss.qualcomm.com> Link: https://lore.kernel.org/r/20261108-tscss-v2-2-d5f575010427@oss.qualcomm.com Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com> (cherry picked from commit be752faaf87b99233c9d6ae13d85e54037795a28)
…and Shikra SoCs Add Devicetree bindings for the Timestamp Counter Subsystem (TSCSS) found on Qualcomm Nord and Shikra SoCs. TSCSS is a time synchronization subsystem composed of two main blocks: Timestamp Counter (TSC) and Event Timestamp Unit (ETU). The TSC block provides a continuously running counter used for timekeeping, while the ETU captures timestamps for external hardware event triggers. Nord additionally has a timer register region used to generate a periodic pulse in sync with the TSC counter. Co-developed-by: Taniya Das <taniya.das@oss.qualcomm.com> Signed-off-by: Imran Shaik <imran.shaik@oss.qualcomm.com> Link: https://lore.kernel.org/r/20261108-tscss-v2-3-d5f575010427@oss.qualcomm.com Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com> (cherry picked from commit 0f76e55158f4651be874015358b16c555b033fb1)
Add a PTP Hardware Clock driver for the Qualcomm Timestamp Counter (TSC) hardware found on Qualcomm SA8775P, QDU1000 and Nord SoCs. The TSC is a free running hardware counter used for time synchronization, clocked by an AHB configuration clock and a global counter clock, with the counter resolution varying across SoCs. Co-developed-by: Taniya Das <taniya.das@oss.qualcomm.com> Signed-off-by: Imran Shaik <imran.shaik@oss.qualcomm.com> Link: https://lore.kernel.org/r/20261108-tscss-v2-4-d5f575010427@oss.qualcomm.com Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com> (cherry picked from commit b5192778a6fc3a18a3044861ea2120e572f1c0d9)
Add support for the Event Timestamp Unit (ETU) block of the Qualcomm TSCSS hardware, which captures TSC timestamps for external hardware events and reports them through the PTP extts API. Co-developed-by: Taniya Das <taniya.das@oss.qualcomm.com> Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com> Signed-off-by: Imran Shaik <imran.shaik@oss.qualcomm.com> (cherry picked from commit 4ac59e1d828cd3e9ea551e4091f89a5ec35439a3)
Add Timestamp Counter Subsystem (TSCSS) node support on Qualcomm Lemans SoCs. Signed-off-by: Imran Shaik <imran.shaik@oss.qualcomm.com> Link: https://lore.kernel.org/r/20261108-tscss-v2-6-d5f575010427@oss.qualcomm.com (cherry picked from commit 1682eaf7c62a4e559e9c69a5460a5ac4ea1c6e2d)
Add ETU slice support for TSCSS node on Lemans platform. Signed-off-by: Imran Shaik <imran.shaik@oss.qualcomm.com> (cherry picked from commit e83f3f03f60e7c1968924c98d064d27706886d89)
…resets Add the missing GCC TSCSS clocks and reset IDs that are required for the Timestamp Counter Subsystem (TSCSS) functionality on Qualcomm QCS8300 SoC. Signed-off-by: Imran Shaik <imran.shaik@oss.qualcomm.com> Link: https://lore.kernel.org/r/20260805-qcs8300-tsc-clks-v1-1-e7a5101ed479@oss.qualcomm.com Signed-off-by: Bjorn Andersson <andersson@kernel.org> (cherry picked from commit 239819e)
…sets Add the GCC TSCSS clocks and reset support required for the Timestamp Counter Subsystem (TSCSS) functionality on Qualcomm QCS8300 SoC. Signed-off-by: Imran Shaik <imran.shaik@oss.qualcomm.com> Reviewed-by: Taniya Das <taniya.das@oss.qualcomm.com> Link: https://lore.kernel.org/r/20260805-qcs8300-tsc-clks-v1-2-e7a5101ed479@oss.qualcomm.com Signed-off-by: Bjorn Andersson <andersson@kernel.org> (cherry picked from commit e6739bd)
Add Timestamp Counter Subsystem (TSCSS) node support on Qualcomm Monaco SoCs. Signed-off-by: Imran Shaik <imran.shaik@oss.qualcomm.com> Link: https://lore.kernel.org/r/20261108-tscss-v2-7-d5f575010427@oss.qualcomm.com (cherry picked from commit 1073dd698350dec8ef6c7c08de092a91aedb89ee)
Add ETU slice support for TSCSS node on Monaco platform. Signed-off-by: Imran Shaik <imran.shaik@oss.qualcomm.com> (cherry picked from commit 5c78d691d53214e0ec38b6030a76c4267016a83c)
Add Timestamp Counter Subsystem (TSCSS) node support on Qualcomm Shikra SoCs. Signed-off-by: Imran Shaik <imran.shaik@oss.qualcomm.com> Link: https://lore.kernel.org/r/20261108-tscss-v2-9-d5f575010427@oss.qualcomm.com (cherry picked from commit 12db98eafee2493bf8f8a64476507f70a661c872)
Add ETU slice support for TSCSS node on Shikra platform. Signed-off-by: Imran Shaik <imran.shaik@oss.qualcomm.com> (cherry picked from commit c89e5705a8a20f5d0997d3aacddbd289a248c07f)
Bring in the v2 version of the TSCSS driver from upstream with FROMLIST tag. This reverts commit b630e43. Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com>
Enable PTP_QCOM_TSC as a module to support the Timestamp Counter (TSC) synchronization functionality on Qualcomm Lemans, Monaco and QDU1000 platforms. Signed-off-by: Imran Shaik <imran.shaik@oss.qualcomm.com> Link: https://lore.kernel.org/r/20261108-tscss-v2-5-d5f575010427@oss.qualcomm.com
Revert the older change as bringing changes from FROMLIST. This reverts commit 4d24ff8. Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com>
c849156 to
4933009
Compare
| CONFIG_PTP_QCOM_CLOCK_TSC=m | ||
| CONFIG_PWM_QCOM=y | ||
| CONFIG_QCA808X_PHY=m | ||
| CONFIG_QCOM_CLK_GP_MND=y |
There was a problem hiding this comment.
why static and not module ?
Test resultsWorkflow run: 45806484260 attempt 1 Known failures configured: 54
Test Matrix
Failure summaryKnown failures
Unexpected failures
Result: blocked because unexpected failures were found. |
Bring in the v2 version of the TSCSS driver from upstream with FROMLIST tag.
Revert "PENDING: dt-bindings: ptp: Add support for Qualcomm TSCSS module"
Revert "PENDING: ptp: Add support for Qualcomm TSCSS hardware"
Revert "PENDING: arm64: configs: Enable Qualcomm TSCSS driver support"
Revert "PENDING: arm64: dts: qcom: lemans: Add TSC node in staging dtso"
CRs-Fixed: 4560651
JIRA approved for PENDING commit: https://jira-dc.qualcomm.com/jira/browse/QLIJIRA-128
ETU enablement is based on the vendor board as it requires certain set of HW GPIO changes to be enabled/reworked before the feature can be enabled. Hence marked it status = disabled in DT.