Home
last modified time | relevance | path

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

123

/openbmc/linux/drivers/spi/
H A 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 …]
H A 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()
H A Dspi-mt65xx.c139 * @spi_clk: Peripheral clock
161 struct clk *parent_clk, *sel_clk, *spi_clk, *spi_hclk; member
1207 mdata->spi_clk = devm_clk_get(dev, "spi-clk"); in mtk_spi_probe()
1208 if (IS_ERR(mdata->spi_clk)) in mtk_spi_probe()
1209 return dev_err_probe(dev, PTR_ERR(mdata->spi_clk), "failed to get spi-clk\n"); in mtk_spi_probe()
1223 ret = clk_prepare_enable(mdata->spi_clk); in mtk_spi_probe()
1226 return dev_err_probe(dev, ret, "failed to enable spi_clk\n"); in mtk_spi_probe()
1229 mdata->spi_clk_hz = clk_get_rate(mdata->spi_clk); in mtk_spi_probe()
1232 clk_disable(mdata->spi_clk); in mtk_spi_probe()
1235 clk_disable_unprepare(mdata->spi_clk); in mtk_spi_probe()
[all …]
H A 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 …]
H A 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(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()
[all …]
H A 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()
H A 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()
H A Dspi-axi-spi-engine.c179 unsigned int spi_clk = clk_get_rate(spi_engine->ref_clk); in spi_engine_gen_sleep() local
191 t = DIV_ROUND_UP(delay * spi_clk, (clk_div + 1) * 2); in spi_engine_gen_sleep()
525 spi_engine->ref_clk = devm_clk_get_enabled(&pdev->dev, "spi_clk"); in spi_engine_probe()
H A Dspi-at91-usart.c96 u32 spi_clk; member
330 DIV_ROUND_UP(aus->spi_clk, xfer->speed_hz)); in at91_usart_spi_set_xfer_speed()
559 aus->spi_clk = clk_get_rate(clk); in at91_usart_spi_probe()
H A Dspi-sun4i.c280 * SPI_CLK = MOD_CLK / (2 ^ (cdr + 1)) in sun4i_spi_transfer_one()
282 * SPI_CLK = MOD_CLK / (2 * (cdr + 1)) in sun4i_spi_transfer_one()
/openbmc/linux/Documentation/devicetree/bindings/pinctrl/
H A 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,
/openbmc/u-boot/drivers/spi/
H A Dbcm63xx_spi.c94 SPI_CLK, enumerator
145 setbits_8(priv->base + regs[SPI_CLK], SPI_CLK_BSWAP_MASK); in bcm63xx_spi_set_mode()
147 clrbits_8(priv->base + regs[SPI_CLK], SPI_CLK_BSWAP_MASK); in bcm63xx_spi_set_mode()
171 clrsetbits_8(priv->base + regs[SPI_CLK], in bcm63xx_spi_set_speed()
310 [SPI_CLK] = SPI_6348_CLK,
324 [SPI_CLK] = SPI_6358_CLK,
/openbmc/linux/Documentation/devicetree/bindings/spi/
H A Dadi,axi-spi-engine.txt8 - clock-names : List of input clock names - "s_axi_aclk", "spi_clk"
25 clock-names = "s_axi_aclk", "spi_clk";
H A Datmel,at91rm9200-spi.yaml36 const: spi_clk
79 clock-names = "spi_clk";
H A Dspi-img-spfi.txt32 clocks = <&spi_clk>, <&system_clk>;
H A Dspi-davinci.txt59 SPI_CLK | | | | | | | | | | | | | | | |
/openbmc/linux/drivers/pinctrl/
H A 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 …]
/openbmc/linux/arch/arm/boot/dts/microchip/
H A 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";
H A 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";
H A Dsam9x60.dtsi201 clock-names = "spi_clk";
270 clock-names = "spi_clk";
758 clock-names = "spi_clk";
827 clock-names = "spi_clk";
896 clock-names = "spi_clk";
965 clock-names = "spi_clk";
/openbmc/linux/Documentation/devicetree/bindings/mfd/
H A Datmel-flexcom.txt55 clock-names = "spi_clk";
/openbmc/u-boot/arch/arc/dts/
H A Daxs10x_mb.dtsi71 clock-names = "spi_clk";
H A Dhsdk.dts96 clock-names = "spi_clk";
/openbmc/linux/drivers/pinctrl/mediatek/
H A Dpinctrl-mtk-mt6397.h42 MTK_PIN(PINCTRL_PIN(5, "SPI_CLK"),
46 MTK_FUNCTION(1, "SPI_CLK")
/openbmc/linux/Documentation/devicetree/bindings/memory-controllers/
H A Drenesas,rpc-if.yaml111 - description: SPI Multi IO Main clock (SPI_CLK).

123