Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: clock: Add resets for LPASS audio clock controller for SC7280

Add support for LPASS audio clock gating for RX/TX/SWA core bus clocks
for SC7280. Update reg property min/max items in YAML schema.

Fixes: 4185b27b3bef ("dt-bindings: clock: Add YAML schemas for LPASS clocks on SC7280")
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Taniya Das <quic_tdas@quicinc.com>
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Link: https://lore.kernel.org/r/1662005846-4838-4-git-send-email-quic_c_skakit@quicinc.com

authored by

Taniya Das and committed by
Bjorn Andersson
be9439df 7afdf3af

+21 -3
+16 -3
Documentation/devicetree/bindings/clock/qcom,sc7280-lpasscorecc.yaml
··· 22 22 23 23 clock-names: true 24 24 25 + reg: true 26 + 25 27 compatible: 26 28 enum: 27 29 - qcom,sc7280-lpassaoncc ··· 40 38 '#power-domain-cells': 41 39 const: 1 42 40 43 - reg: 44 - maxItems: 1 41 + '#reset-cells': 42 + const: 1 45 43 46 44 qcom,adsp-pil-mode: 47 45 description: ··· 77 75 items: 78 76 - const: bi_tcxo 79 77 - const: lpass_aon_cc_main_rcg_clk_src 78 + 79 + reg: 80 + items: 81 + - description: lpass core cc register 82 + - description: lpass audio csr register 80 83 - if: 81 84 properties: 82 85 compatible: ··· 103 96 - const: bi_tcxo_ao 104 97 - const: iface 105 98 99 + reg: 100 + maxItems: 1 106 101 - if: 107 102 properties: 108 103 compatible: ··· 123 114 items: 124 115 - const: bi_tcxo 125 116 117 + reg: 118 + maxItems: 1 126 119 examples: 127 120 - | 128 121 #include <dt-bindings/clock/qcom,rpmh.h> ··· 133 122 #include <dt-bindings/clock/qcom,lpasscorecc-sc7280.h> 134 123 lpass_audiocc: clock-controller@3300000 { 135 124 compatible = "qcom,sc7280-lpassaudiocc"; 136 - reg = <0x3300000 0x30000>; 125 + reg = <0x3300000 0x30000>, 126 + <0x32a9000 0x1000>; 137 127 clocks = <&rpmhcc RPMH_CXO_CLK>, 138 128 <&lpass_aon LPASS_AON_CC_MAIN_RCG_CLK_SRC>; 139 129 clock-names = "bi_tcxo", "lpass_aon_cc_main_rcg_clk_src"; 140 130 power-domains = <&lpass_aon LPASS_AON_CC_LPASS_AUDIO_HM_GDSC>; 141 131 #clock-cells = <1>; 142 132 #power-domain-cells = <1>; 133 + #reset-cells = <1>; 143 134 }; 144 135 145 136 - |
+5
include/dt-bindings/clock/qcom,lpassaudiocc-sc7280.h
··· 24 24 #define LPASS_AUDIO_CC_RX_MCLK_CLK 14 25 25 #define LPASS_AUDIO_CC_RX_MCLK_CLK_SRC 15 26 26 27 + /* LPASS AUDIO CC CSR */ 28 + #define LPASS_AUDIO_SWR_RX_CGCR 0 29 + #define LPASS_AUDIO_SWR_TX_CGCR 1 30 + #define LPASS_AUDIO_SWR_WSA_CGCR 2 31 + 27 32 /* LPASS_AON_CC clocks */ 28 33 #define LPASS_AON_CC_PLL 0 29 34 #define LPASS_AON_CC_PLL_OUT_EVEN 1