Home
last modified time | relevance | path

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

12

/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()
458 clk_disable_unprepare(mdata->spi_clk); in mtk_spi_slave_probe()
492 clk_disable_unprepare(mdata->spi_clk); in mtk_spi_slave_suspend()
504 ret = clk_prepare_enable(mdata->spi_clk); in mtk_spi_slave_resume()
506 dev_err(dev, "failed to enable spi_clk (%d)\n", ret); in mtk_spi_slave_resume()
[all …]
H A 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 …]
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-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-airoha-snfi.c213 struct clk *spi_clk; member
1071 as_ctrl->spi_clk = devm_clk_get_enabled(dev, "spi"); in airoha_snand_probe()
1072 if (IS_ERR(as_ctrl->spi_clk)) in airoha_snand_probe()
1073 return dev_err_probe(dev, PTR_ERR(as_ctrl->spi_clk), in airoha_snand_probe()
H A Dspi-imx.c107 unsigned long spi_clk; member
473 unsigned int fin = spi_imx->spi_clk; in mx51_ecspi_clkdiv()
842 reg |= spi_imx_clkdiv_2(spi_imx->spi_clk, spi_imx->spi_bus_clk, &clk) << in mx31_prepare_transfer()
947 reg |= spi_imx_clkdiv_1(spi_imx->spi_clk, spi_imx->spi_bus_clk, max, &clk) in mx21_prepare_transfer()
1021 reg |= spi_imx_clkdiv_2(spi_imx->spi_clk, spi_imx->spi_bus_clk, &clk) << in mx1_prepare_transfer()
1907 spi_imx->spi_clk = clk_get_rate(spi_imx->clk_per); in spi_imx_probe()
H A Dspi-altera-dfl.c37 #define SPI_CLK GENMASK_ULL(31, 22) macro
H A Dspi-axi-spi-engine.c674 spi_engine->ref_clk = devm_clk_get_enabled(&pdev->dev, "spi_clk"); in spi_engine_probe()
725 return dev_err_probe(&pdev->dev, -EINVAL, "spi_clk rate is 0"); in spi_engine_probe()
/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,
H A Dairoha,en7581-pinctrl.yaml289 enum: [uart1_txd, uart1_rxd, i2c_scl, i2c_sda, spi_cs0, spi_clk,
/linux/Documentation/devicetree/bindings/spi/
H A Dadi,axi-spi-engine.yaml42 - const: spi_clk
60 clock-names = "s_axi_aclk", "spi_clk";
H A Datmel,at91rm9200-spi.yaml35 const: spi_clk
78 clock-names = "spi_clk";
H A Dspi-img-spfi.txt32 clocks = <&spi_clk>, <&system_clk>;
H A Dspi-davinci.txt59 SPI_CLK | | | | | | | | | | | | | | | |
/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 …]
/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 Dsam9x60.dtsi201 clock-names = "spi_clk";
272 clock-names = "spi_clk";
772 clock-names = "spi_clk";
843 clock-names = "spi_clk";
914 clock-names = "spi_clk";
985 clock-names = "spi_clk";
H A Dat91sam9261.dtsi265 clock-names = "spi_clk";
278 clock-names = "spi_clk";
H A Dat91sam9n12.dtsi693 clock-names = "spi_clk";
709 clock-names = "spi_clk";
H A Dat91sam9260.dtsi690 clock-names = "spi_clk";
703 clock-names = "spi_clk";
H A Dat91sam9263.dtsi700 clock-names = "spi_clk";
713 clock-names = "spi_clk";
/linux/drivers/pinctrl/mediatek/
H A Dpinctrl-mtk-mt6397.h42 MTK_PIN(PINCTRL_PIN(5, "SPI_CLK"),
46 MTK_FUNCTION(1, "SPI_CLK")
/linux/Documentation/devicetree/bindings/memory-controllers/
H A Drenesas,rpc-if.yaml116 - description: SPI Multi IO Main clock (SPI_CLK).
/linux/drivers/pinctrl/bcm/
H A Dpinctrl-ns.c38 { 0, "spi_clk", (void *)(FLAG_BCM4708 | FLAG_BCM4709 | FLAG_BCM53012) },
/linux/drivers/pinctrl/intel/
H A Dpinctrl-denverton.c169 PINCTRL_PIN(129, "SPI_CLK"),

12