Repository navigation
Add support for GP_MND and PWM - #1520
Taniya Das (taniyadas20) wants to merge 31 commits into
Conversation
|
Merge Check Failed: No CR Numbers Found Error: No Change Request numbers were found. Please add Change Request numbers to your pull request description in the format CRs-Fixed: 12345 or link GitHub issues that are associated with Change Requests. |
9e7b079 to
d10f66d
Compare
PR #1520 — validate-patchPR: #1520
Final Summary
|
PR #1520 — checker-log-analyzerPR: #1520
Detailed report: Full report
|
|
qli-2.2 pull-request freeze |
Test resultsWorkflow run: 45591842625 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: #1520 Job 291678 | SoC qcs6490-rb3gen2LAVA job: https://lava-oss.qualcomm.com/scheduler/job/291678 Failed test cases in LAVA job 291678 (SoC: qcs6490-rb3gen2).
Job 291679 | SoC qcs9100-rideLAVA job: https://lava-oss.qualcomm.com/scheduler/job/291679 Failed test cases in LAVA job 291679 (SoC: qcs9100-ride).
Job 291680 | SoC hamoa-evkLAVA job: https://lava-oss.qualcomm.com/scheduler/job/291680 Failed test cases in LAVA job 291680 (SoC: hamoa-evk).
Job 291681 | SoC shikra-iqs-evkLAVA job: https://lava-oss.qualcomm.com/scheduler/job/291681 Failed test cases in LAVA job 291681 (SoC: shikra-iqs-evk).
Job 291682 | SoC lemans-evkLAVA job: https://lava-oss.qualcomm.com/scheduler/job/291682 Failed test cases in LAVA job 291682 (SoC: lemans-evk).
Job 291683 | SoC qcs615-rideLAVA job: https://lava-oss.qualcomm.com/scheduler/job/291683 Failed test cases in LAVA job 291683 (SoC: qcs615-ride).
Job 291684 | SoC purwa-evkLAVA job: https://lava-oss.qualcomm.com/scheduler/job/291684 Failed test cases in LAVA job 291684 (SoC: purwa-evk).
Job 291685 | SoC qcs8300-rideLAVA job: https://lava-oss.qualcomm.com/scheduler/job/291685 Failed test cases in LAVA job 291685 (SoC: qcs8300-ride).
Job 291686 | SoC monaco-evkLAVA job: https://lava-oss.qualcomm.com/scheduler/job/291686 Failed test cases in LAVA job 291686 (SoC: monaco-evk).
|
|
Taniya Das (@taniyadas20) Audio card registration failed on Purwa please check : |
Test resultsWorkflow run: 45591842625 attempt 2 Known failures configured: 54
Test Matrix
Failure summaryKnown failures
Unexpected failures
Result: blocked because unexpected failures were found. |
Test resultsWorkflow run: 45591842625 attempt 3 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_mn pin mux function on gpio29 of QCS615. This exposes the GP M/N divider clock output on the dedicated GPIO pin. Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com> Reviewed-by: Abel Vesa <abel.vesa@oss.qualcomm.com> Link: https://lore.kernel.org/r/20261118-gp_mn_tlmm_support-v1-8-703f7badd194@oss.qualcomm.com Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com> (cherry picked from commit 978ed95f92001056bac7808ff14eeabec65baf08)
Add the gp_mn pin mux function to the SM8750 TLMM function enum. This exposes the GP M/N divider clock output and is used on gpio53. Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Link: https://lore.kernel.org/r/20261118-gp_mn_tlmm_support-v1-9-703f7badd194@oss.qualcomm.com Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com> (cherry picked from commit bd789eef19701ab69f4df4bec3df5db385e63bdf)
Add the gp_mn pin mux function on gpio53 of SM8750. This exposes the GP M/N divider clock output on the dedicated GPIO pin. Link: https://lore.kernel.org/r/20261118-gp_mn_tlmm_support-v1-10-703f7badd194@oss.qualcomm.com Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com> (cherry picked from commit 6b10b6b99b9021b41e485d4acc3cf7061cc3ce99)
Add the gp_mn pin mux function to the Kaanapali TLMM function enum. This exposes the GP M/N divider clock output and is used on gpio53. Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Link: https://lore.kernel.org/r/20261118-gp_mn_tlmm_support-v1-11-703f7badd194@oss.qualcomm.com Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com> (cherry picked from commit 94537c38ff1cf0e57580e936e1b767c36dcbbce6)
Add the gp_mn pin mux function on gpio53 of Kaanapali. This exposes the GP M/N divider clock output on the dedicated GPIO pin. Link: https://lore.kernel.org/r/20261118-gp_mn_tlmm_support-v1-12-703f7badd194@oss.qualcomm.com Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com> (cherry picked from commit cc3f60f67b4bb965e5b8cb7669383bd6291611f7)
Add the gp_mn pin mux function to the Glymur TLMM function enum. This exposes the GP M/N divider clock output and is used on gpio53. Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Link: https://lore.kernel.org/r/20261118-gp_mn_tlmm_support-v1-13-703f7badd194@oss.qualcomm.com Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com> (cherry picked from commit 5fd0b3f6738161b36feb452705f7d273f1a5f991)
Add the gp_mn pin mux function on gpio53 of Glymur. This exposes the GP M/N divider clock output on the dedicated GPIO pin. Reviewed-by: Pankaj Patil <pankaj.patil@oss.qualcomm.com> Link: https://lore.kernel.org/r/20261118-gp_mn_tlmm_support-v1-14-703f7badd194@oss.qualcomm.com Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com> (cherry picked from commit b57ad5cd3d9dd4aeecab4aa9537b9eb0a2d09f5c)
Add the gp_mn pin mux function to the Shikra TLMM function enum. This exposes the GP M/N divider clock output and is used on gpio87. Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Link: https://lore.kernel.org/r/20261118-gp_mn_tlmm_support-v1-15-703f7badd194@oss.qualcomm.com Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com> (cherry picked from commit d3702536e054a4b53bde88c866f101480f331fd1)
Add the gp_mn pin mux function on gpio87 of Shikra. This exposes the GP M/N divider clock output on the dedicated GPIO pin. Link: https://lore.kernel.org/r/20261118-gp_mn_tlmm_support-v1-16-703f7badd194@oss.qualcomm.com Signed-off-by: Taniya Das <taniya.das@oss.qualcomm.com> (cherry picked from commit b68d75fbb82e717626b02c6f006cf1d896e592f1)
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>
d10f66d to
d437ccc
Compare
Test resultsWorkflow run: 45806009522 attempt 1 Known failures configured: 54
Test Matrix
Failure summaryKnown failures
Unexpected failures
Result: blocked because unexpected failures were found. |
The below reverts are to bring in the v3 version of the driver.
Revert "FROMLIST: dt-bindings: clock: qcom: Add bindings for PDM GP_MN clock divider"
Revert "FROMLIST: clk: qcom: Add a driver for PDM GP_MN fractional clock divider"
CRs-Fixed: 4560714