Home
last modified time | relevance | path

Searched +full:spmi +full:- +full:clkdiv (Results 1 – 6 of 6) sorted by relevance

/kernel/linux/linux-6.6/Documentation/devicetree/bindings/clock/
Dqcom,spmi-clkdiv.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/clock/qcom,spmi-clkdiv.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Qualcomm SPMI PMIC clock divider
10 - Bjorn Andersson <andersson@kernel.org>
11 - Stephen Boyd <sboyd@kernel.org>
14 Qualcomm SPMI PMIC clock divider configures the clock frequency of a set of
20 const: qcom,spmi-clkdiv
27 - description: Board XO source
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/clock/
Dqcom,spmi-clkdiv.txt1 Qualcomm Technologies, Inc. SPMI PMIC clock divider (clkdiv)
3 clkdiv configures the clock frequency of a set of outputs on the PMIC.
11 - compatible
14 Definition: must be "qcom,spmi-clkdiv".
16 - reg
18 Value type: <prop-encoded-array>
19 Definition: base address of CLKDIV peripherals.
21 - qcom,num-clkdivs
24 Definition: number of CLKDIV peripherals.
26 - clocks:
[all …]
/kernel/linux/linux-5.10/drivers/clk/qcom/
Dclk-spmi-pmic-div.c1 // SPDX-License-Identifier: GPL-2.0-only
7 #include <linux/clk-provider.h>
24 struct clkdiv { struct
33 static inline struct clkdiv *to_clkdiv(struct clk_hw *hw) in to_clkdiv() argument
35 return container_of(hw, struct clkdiv, hw); in to_clkdiv()
43 return 1 << (div_factor - 1); in div_factor_to_div()
51 static bool is_spmi_pmic_clkdiv_enabled(struct clkdiv *clkdiv) in is_spmi_pmic_clkdiv_enabled() argument
55 regmap_read(clkdiv->regmap, clkdiv->base + REG_EN_CTL, &val); in is_spmi_pmic_clkdiv_enabled()
61 __spmi_pmic_clkdiv_set_enable_state(struct clkdiv *clkdiv, bool enable, in __spmi_pmic_clkdiv_set_enable_state() argument
65 unsigned int ns = clkdiv->cxo_period_ns; in __spmi_pmic_clkdiv_set_enable_state()
[all …]
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
476 tristate "SPMI PMIC clkdiv Support"
477 depends on SPMI || COMPILE_TEST
479 This driver supports the clkdiv functionality on the Qualcomm
480 Technologies, Inc. SPMI PMIC. It configures the frequency of
481 clkdiv outputs of the PMIC. These clocks are typically wired
485 tristate "High-Frequency PLL (HFPLL) Clock Controller"
487 Support for the high-frequency PLLs present on Qualcomm devices.
/kernel/linux/linux-6.6/drivers/clk/qcom/
Dclk-spmi-pmic-div.c1 // SPDX-License-Identifier: GPL-2.0-only
7 #include <linux/clk-provider.h>
24 struct clkdiv { struct
33 static inline struct clkdiv *to_clkdiv(struct clk_hw *hw) in to_clkdiv() argument
35 return container_of(hw, struct clkdiv, hw); in to_clkdiv()
43 return 1 << (div_factor - 1); in div_factor_to_div()
51 static bool is_spmi_pmic_clkdiv_enabled(struct clkdiv *clkdiv) in is_spmi_pmic_clkdiv_enabled() argument
55 regmap_read(clkdiv->regmap, clkdiv->base + REG_EN_CTL, &val); in is_spmi_pmic_clkdiv_enabled()
61 __spmi_pmic_clkdiv_set_enable_state(struct clkdiv *clkdiv, bool enable, in __spmi_pmic_clkdiv_set_enable_state() argument
65 unsigned int ns = clkdiv->cxo_period_ns; in __spmi_pmic_clkdiv_set_enable_state()
[all …]
DKconfig1 # SPDX-License-Identifier: GPL-2.0-only
1057 tristate "SPMI PMIC clkdiv Support"
1058 depends on SPMI || COMPILE_TEST
1060 This driver supports the clkdiv functionality on the Qualcomm
1061 Technologies, Inc. SPMI PMIC. It configures the frequency of
1062 clkdiv outputs of the PMIC. These clocks are typically wired
1066 tristate "High-Frequency PLL (HFPLL) Clock Controller"
1068 Support for the high-frequency PLLs present on Qualcomm devices.