Home
last modified time | relevance | path

Searched refs:i2c_clk (Results 1 – 14 of 14) sorted by relevance

/linux-6.1.9/drivers/mfd/
Dintel_quark_i2c_gpio.c39 struct clk *i2c_clk; member
164 struct clk *i2c_clk; in intel_quark_register_i2c_clk() local
166 i2c_clk = clk_register_fixed_rate(dev, in intel_quark_register_i2c_clk()
169 if (IS_ERR(i2c_clk)) in intel_quark_register_i2c_clk()
170 return PTR_ERR(i2c_clk); in intel_quark_register_i2c_clk()
172 quark_mfd->i2c_clk = i2c_clk; in intel_quark_register_i2c_clk()
173 quark_mfd->i2c_clk_lookup = clkdev_create(i2c_clk, NULL, in intel_quark_register_i2c_clk()
177 clk_unregister(quark_mfd->i2c_clk); in intel_quark_register_i2c_clk()
193 clk_unregister(quark_mfd->i2c_clk); in intel_quark_unregister_i2c_clk()
/linux-6.1.9/drivers/i2c/busses/
Di2c-microchip-corei2c.c108 struct clk *i2c_clk; member
187 u32 clk_rate = clk_get_rate(idev->i2c_clk); in mchp_corei2c_init()
385 idev->i2c_clk = devm_clk_get(&pdev->dev, NULL); in mchp_corei2c_probe()
386 if (IS_ERR(idev->i2c_clk)) in mchp_corei2c_probe()
387 return dev_err_probe(&pdev->dev, PTR_ERR(idev->i2c_clk), in mchp_corei2c_probe()
416 ret = clk_prepare_enable(idev->i2c_clk); in mchp_corei2c_probe()
423 clk_disable_unprepare(idev->i2c_clk); in mchp_corei2c_probe()
440 clk_disable_unprepare(idev->i2c_clk); in mchp_corei2c_probe()
453 clk_disable_unprepare(idev->i2c_clk); in mchp_corei2c_remove()
Di2c-altera.c82 struct clk *i2c_clk; member
139 u32 divisor = clk_get_rate(idev->i2c_clk) / idev->bus_clk_rate; in altr_i2c_init()
140 u32 clk_mhz = clk_get_rate(idev->i2c_clk) / 1000000; in altr_i2c_init()
400 idev->i2c_clk = devm_clk_get(&pdev->dev, NULL); in altr_i2c_probe()
401 if (IS_ERR(idev->i2c_clk)) { in altr_i2c_probe()
403 return PTR_ERR(idev->i2c_clk); in altr_i2c_probe()
439 ret = clk_prepare_enable(idev->i2c_clk); in altr_i2c_probe()
460 clk_disable_unprepare(idev->i2c_clk); in altr_i2c_probe()
472 clk_disable_unprepare(idev->i2c_clk); in altr_i2c_remove()
Di2c-axxia.c145 struct clk *i2c_clk; member
178 u32 divisor = clk_get_rate(idev->i2c_clk) / idev->bus_clk_rate; in axxia_i2c_init()
179 u32 clk_mhz = clk_get_rate(idev->i2c_clk) / 1000000; in axxia_i2c_init()
752 idev->i2c_clk = devm_clk_get(&pdev->dev, "i2c"); in axxia_i2c_probe()
753 if (IS_ERR(idev->i2c_clk)) { in axxia_i2c_probe()
755 return PTR_ERR(idev->i2c_clk); in axxia_i2c_probe()
766 ret = clk_prepare_enable(idev->i2c_clk); in axxia_i2c_probe()
803 clk_disable_unprepare(idev->i2c_clk); in axxia_i2c_probe()
811 clk_disable_unprepare(idev->i2c_clk); in axxia_i2c_remove()
Di2c-cadence.c205 unsigned int i2c_clk; member
779 msg_timeout = msecs_to_jiffies((1000 * msg->len * BITS_PER_BYTE) / id->i2c_clk); in cdns_i2c_process_msg()
1078 unsigned long fscl = id->i2c_clk; in cdns_i2c_setclk()
1126 unsigned long fscl = id->i2c_clk; in cdns_i2c_clk_notifier_cb()
1316 &id->i2c_clk); in cdns_i2c_probe()
1317 if (ret || (id->i2c_clk > I2C_MAX_FAST_MODE_FREQ)) in cdns_i2c_probe()
1318 id->i2c_clk = I2C_MAX_STANDARD_MODE_FREQ; in cdns_i2c_probe()
1329 dev_err(&pdev->dev, "invalid SCL clock: %u Hz\n", id->i2c_clk); in cdns_i2c_probe()
1347 id->i2c_clk / 1000, (unsigned long)r_mem->start, id->irq); in cdns_i2c_probe()
Di2c-jz4780.c256 int i2c_clk = i2c->speed; in jz4780_i2c_set_speed() local
266 cnt_period = dev_clk_khz / i2c_clk; in jz4780_i2c_set_speed()
268 if (i2c_clk <= 100) in jz4780_i2c_set_speed()
282 if (i2c_clk <= 100) { in jz4780_i2c_set_speed()
320 if (i2c_clk <= 100) { /* standard mode */ in jz4780_i2c_set_speed()
Di2c-nomadik.c351 u32 i2c_clk, div; in setup_i2c_controller() local
361 i2c_clk = clk_get_rate(dev->clk); in setup_i2c_controller()
375 ns = DIV_ROUND_UP_ULL(1000000000ULL, i2c_clk); in setup_i2c_controller()
409 brcr2 = (i2c_clk/(dev->clk_freq * div)) & 0xffff; in setup_i2c_controller()
423 brcr2 = i2c_clk / (I2C_MAX_STANDARD_MODE_FREQ * 2) & 0xffff; in setup_i2c_controller()
Di2c-npcm7xx.c2288 struct clk *i2c_clk; in npcm_i2c_probe_bus() local
2306 i2c_clk = devm_clk_get(&pdev->dev, NULL); in npcm_i2c_probe_bus()
2307 if (IS_ERR(i2c_clk)) in npcm_i2c_probe_bus()
2308 return PTR_ERR(i2c_clk); in npcm_i2c_probe_bus()
2309 bus->apb_clk = clk_get_rate(i2c_clk); in npcm_i2c_probe_bus()
/linux-6.1.9/drivers/staging/nvec/
Dnvec.c726 clk_prepare_enable(nvec->i2c_clk); in tegra_init_i2c_slave()
736 clk_set_rate(nvec->i2c_clk, 8 * 80000); in tegra_init_i2c_slave()
752 clk_disable_unprepare(nvec->i2c_clk); in nvec_disable_i2c_slave()
767 struct clk *i2c_clk; in tegra_nvec_probe() local
801 i2c_clk = devm_clk_get(dev, "div-clk"); in tegra_nvec_probe()
802 if (IS_ERR(i2c_clk)) { in tegra_nvec_probe()
814 nvec->i2c_clk = i2c_clk; in tegra_nvec_probe()
Dnvec.h139 struct clk *i2c_clk; member
/linux-6.1.9/drivers/clk/tegra/
Dclk-dfll.c272 struct clk *i2c_clk; member
407 ret = clk_enable(td->i2c_clk); in tegra_dfll_runtime_resume()
432 clk_disable(td->i2c_clk); in tegra_dfll_runtime_suspend()
1438 td->i2c_clk = devm_clk_get(td->dev, "i2c"); in dfll_init_clks()
1439 if (IS_ERR(td->i2c_clk)) { in dfll_init_clks()
1441 return PTR_ERR(td->i2c_clk); in dfll_init_clks()
1443 td->i2c_clk_rate = clk_get_rate(td->i2c_clk); in dfll_init_clks()
1483 ret = clk_prepare(td->i2c_clk); in dfll_init()
2098 clk_unprepare(td->i2c_clk); in tegra_dfll_unregister()
/linux-6.1.9/Documentation/devicetree/bindings/i2c/
Dsocionext,uniphier-fi2c.yaml50 clocks = <&i2c_clk>;
Dsocionext,uniphier-i2c.yaml50 clocks = <&i2c_clk>;
/linux-6.1.9/drivers/ptp/
Dptp_ocp.c313 struct clk_hw *i2c_clk; member
1595 bp->i2c_clk = clk; in ptp_ocp_register_i2c()
3701 if (bp->i2c_clk) in ptp_ocp_detach()
3702 clk_hw_unregister_fixed_rate(bp->i2c_clk); in ptp_ocp_detach()