Home
last modified time | relevance | path

Searched full:spi_clk (Results 1 – 25 of 57) sorted by relevance

123

/linux-6.12.1/drivers/spi/
Dspi-slave-mt27xx.c69 struct clk *spi_clk; member
442 mdata->spi_clk = devm_clk_get(&pdev->dev, "spi"); in mtk_spi_slave_probe()
443 if (IS_ERR(mdata->spi_clk)) { in mtk_spi_slave_probe()
444 ret = PTR_ERR(mdata->spi_clk); in mtk_spi_slave_probe()
449 ret = clk_prepare_enable(mdata->spi_clk); in mtk_spi_slave_probe()
451 dev_err(&pdev->dev, "failed to enable spi_clk (%d)\n", ret); in mtk_spi_slave_probe()
461 clk_disable_unprepare(mdata->spi_clk); in mtk_spi_slave_probe()
465 clk_disable_unprepare(mdata->spi_clk); in mtk_spi_slave_probe()
494 clk_disable_unprepare(mdata->spi_clk); in mtk_spi_slave_suspend()
506 ret = clk_prepare_enable(mdata->spi_clk); in mtk_spi_slave_resume()
[all …]
Dspi-mt65xx.c140 * @spi_clk: Peripheral clock
162 struct clk *parent_clk, *sel_clk, *spi_clk, *spi_hclk; member
1215 mdata->spi_clk = devm_clk_get(dev, "spi-clk"); in mtk_spi_probe()
1216 if (IS_ERR(mdata->spi_clk)) in mtk_spi_probe()
1217 return dev_err_probe(dev, PTR_ERR(mdata->spi_clk), "failed to get spi-clk\n"); in mtk_spi_probe()
1231 ret = clk_prepare_enable(mdata->spi_clk); in mtk_spi_probe()
1234 return dev_err_probe(dev, ret, "failed to enable spi_clk\n"); in mtk_spi_probe()
1237 mdata->spi_clk_hz = clk_get_rate(mdata->spi_clk); in mtk_spi_probe()
1240 clk_disable(mdata->spi_clk); in mtk_spi_probe()
1243 clk_disable_unprepare(mdata->spi_clk); in mtk_spi_probe()
[all …]
Dspi-clps711x.c28 struct clk *spi_clk; member
55 clk_set_rate(hw->spi_clk, xfer->speed_hz ? : spi->max_speed_hz); in spi_clps711x_transfer_one()
116 hw->spi_clk = devm_clk_get(&pdev->dev, NULL); in spi_clps711x_probe()
117 if (IS_ERR(hw->spi_clk)) { in spi_clps711x_probe()
118 ret = PTR_ERR(hw->spi_clk); in spi_clps711x_probe()
Dspi-mtk-nor.c119 struct clk *spi_clk; member
706 clk_disable_unprepare(sp->spi_clk); in mtk_nor_disable_clk()
716 ret = clk_prepare_enable(sp->spi_clk); in mtk_nor_enable_clk()
722 clk_disable_unprepare(sp->spi_clk); in mtk_nor_enable_clk()
728 clk_disable_unprepare(sp->spi_clk); in mtk_nor_enable_clk()
735 clk_disable_unprepare(sp->spi_clk); in mtk_nor_enable_clk()
816 struct clk *spi_clk, *ctlr_clk, *axi_clk, *axi_s_clk; in mtk_nor_probe() local
823 spi_clk = devm_clk_get(&pdev->dev, "spi"); in mtk_nor_probe()
824 if (IS_ERR(spi_clk)) in mtk_nor_probe()
825 return PTR_ERR(spi_clk); in mtk_nor_probe()
[all …]
Dspi-sunplus-sp7021.c86 struct clk *spi_clk; member
289 clk_rate = clk_get_rate(pspim->spi_clk); in sp7021_spi_setup_clk()
464 pspim->spi_clk = devm_clk_get(dev, NULL); in sp7021_spi_controller_probe()
465 if (IS_ERR(pspim->spi_clk)) in sp7021_spi_controller_probe()
466 return dev_err_probe(dev, PTR_ERR(pspim->spi_clk), "clk get fail\n"); in sp7021_spi_controller_probe()
472 ret = clk_prepare_enable(pspim->spi_clk); in sp7021_spi_controller_probe()
476 ret = devm_add_action_or_reset(dev, sp7021_spi_disable_unprepare, pspim->spi_clk); in sp7021_spi_controller_probe()
530 return clk_prepare_enable(pspim->spi_clk); in sp7021_spi_controller_resume()
Dspi-lantiq-ssc.c169 struct clk *spi_clk; member
270 u32 spi_clk, brt; in hw_setup_speed_hz() local
280 spi_clk = clk_get_rate(spi->fpi_clk) / 2; in hw_setup_speed_hz()
282 if (max_speed_hz > spi_clk) in hw_setup_speed_hz()
285 brt = spi_clk / max_speed_hz - 1; in hw_setup_speed_hz()
290 dev_dbg(spi->dev, "spi_clk %u, max_speed_hz %u, brt %u\n", in hw_setup_speed_hz()
291 spi_clk, max_speed_hz, brt); in hw_setup_speed_hz()
935 spi->spi_clk = devm_clk_get_enabled(dev, "gate"); in lantiq_ssc_probe()
936 if (IS_ERR(spi->spi_clk)) { in lantiq_ssc_probe()
937 err = PTR_ERR(spi->spi_clk); in lantiq_ssc_probe()
Dspi-xlp.c99 u32 spi_clk; /* spi clock frequency */ member
146 fdiv = DIV_ROUND_UP(xspi->spi_clk, spi->max_speed_hz); in xlp_spi_setup()
399 xspi->spi_clk = clk_get_rate(clk); in xlp_spi_probe()
Dspi-at91-usart.c96 u32 spi_clk; member
316 DIV_ROUND_UP(aus->spi_clk, xfer->speed_hz)); in at91_usart_spi_set_xfer_speed()
545 aus->spi_clk = clk_get_rate(clk); in at91_usart_spi_probe()
Dspi-airoha-snfi.c220 struct clk *spi_clk; member
1082 as_ctrl->spi_clk = devm_clk_get_enabled(dev, "spi"); in airoha_snand_probe()
1083 if (IS_ERR(as_ctrl->spi_clk)) in airoha_snand_probe()
1084 return dev_err_probe(dev, PTR_ERR(as_ctrl->spi_clk), in airoha_snand_probe()
Dspi-sun4i.c281 * SPI_CLK = MOD_CLK / (2 ^ (cdr + 1)) in sun4i_spi_transfer_one()
283 * SPI_CLK = MOD_CLK / (2 * (cdr + 1)) in sun4i_spi_transfer_one()
Dspi-altera-dfl.c37 #define SPI_CLK GENMASK_ULL(31, 22) macro
Dspi-imx.c102 unsigned long spi_clk; member
457 unsigned int fin = spi_imx->spi_clk; in mx51_ecspi_clkdiv()
782 reg |= spi_imx_clkdiv_2(spi_imx->spi_clk, spi_imx->spi_bus_clk, &clk) << in mx31_prepare_transfer()
887 reg |= spi_imx_clkdiv_1(spi_imx->spi_clk, spi_imx->spi_bus_clk, max, &clk) in mx21_prepare_transfer()
961 reg |= spi_imx_clkdiv_2(spi_imx->spi_clk, spi_imx->spi_bus_clk, &clk) << in mx1_prepare_transfer()
1832 spi_imx->spi_clk = clk_get_rate(spi_imx->clk_per); in spi_imx_probe()
Dspi-atmel.c260 unsigned long spi_clk; member
887 bus_hz = as->spi_clk; in atmel_spi_set_xfer_speed()
1225 return (as->spi_clk / 1000000 * value) >> 5; in atmel_word_delay_csr()
1528 clk = devm_clk_get(&pdev->dev, "spi_clk"); in atmel_spi_probe()
1628 as->spi_clk = clk_get_rate(clk); in atmel_spi_probe()
/linux-6.12.1/Documentation/devicetree/bindings/pinctrl/
Dlantiq,pinctrl-xway.txt46 exin0, exin1, exin2, jtag, spi_di, spi_do, spi_clk, spi_cs1, spi_cs2,
56 ebu wait, nand ale, nand cs1, nand cle, spi_di, spi_do, spi_clk, spi_cs1,
68 spi_di, spi_do, spi_clk, spi_cs1, spi_cs2, spi_cs3, spi_cs4, spi_cs5,
80 spi_di, spi_do, spi_clk, spi_cs1, spi_cs2, spi_cs3, spi_cs4, spi_cs5,
83 usif spi_do, usif spi_clk, usif spi_cs0, usif spi_cs1, usif spi_cs2,
96 spi_clk, spi_cs1, spi_cs4, spi_cs6, usif uart_rx, usif uart_tx,
97 usif spi_di, usif spi_do, usif spi_clk, usif spi_cs0, stp, clkout2,
/linux-6.12.1/Documentation/devicetree/bindings/spi/
Dadi,axi-spi-engine.yaml42 - const: spi_clk
60 clock-names = "s_axi_aclk", "spi_clk";
Datmel,at91rm9200-spi.yaml35 const: spi_clk
78 clock-names = "spi_clk";
Dspi-img-spfi.txt32 clocks = <&spi_clk>, <&system_clk>;
Dspi-davinci.txt59 SPI_CLK | | | | | | | | | | | | | | | |
/linux-6.12.1/drivers/pinctrl/
Dpinctrl-xway.c189 GRP_MUX("spi_clk", SPI, ase_pins_spi_clk),
222 "spi_clk", "spi_cs1",
347 GRP_MUX("spi_clk", SPI, danube_pins_spi_clk),
380 "spi_clk", "spi_cs1",
555 GRP_MUX("spi_clk", SPI, xrx100_pins_spi_clk),
591 "spi_clk", "spi_cs1",
783 GRP_MUX("spi_clk", SPI, xrx200_pins_spi_clk),
800 GRP_MUX("usif spi_clk", USIF, xrx200_pins_usif_spi_clk),
837 "spi_clk", "spi_cs1",
857 "usif spi_clk", "usif spi_cs0",
[all …]
/linux-6.12.1/arch/arm/boot/dts/microchip/
Dlan966x.dtsi195 clock-names = "spi_clk";
246 clock-names = "spi_clk";
314 clock-names = "spi_clk";
365 clock-names = "spi_clk";
435 clock-names = "spi_clk";
Dsama5d2.dtsi359 clock-names = "spi_clk";
561 clock-names = "spi_clk";
632 clock-names = "spi_clk";
767 clock-names = "spi_clk";
844 clock-names = "spi_clk";
915 clock-names = "spi_clk";
987 clock-names = "spi_clk";
Dsam9x60.dtsi200 clock-names = "spi_clk";
271 clock-names = "spi_clk";
765 clock-names = "spi_clk";
835 clock-names = "spi_clk";
905 clock-names = "spi_clk";
975 clock-names = "spi_clk";
/linux-6.12.1/Documentation/devicetree/bindings/pwm/
Dadi,axi-pwmgen.yaml46 clocks = <&spi_clk>;
/linux-6.12.1/drivers/pinctrl/mediatek/
Dpinctrl-mtk-mt6397.h42 MTK_PIN(PINCTRL_PIN(5, "SPI_CLK"),
46 MTK_FUNCTION(1, "SPI_CLK")
/linux-6.12.1/Documentation/devicetree/bindings/memory-controllers/
Drenesas,rpc-if.yaml116 - description: SPI Multi IO Main clock (SPI_CLK).

123