Lines Matching full:scl
23 struct gpio_desc *scl; member
48 * Toggle SCL by changing the output value of the pin. This is used
57 gpiod_set_value_cansleep(priv->scl, state); in i2c_gpio_setscl_val()
71 return gpiod_get_value_cansleep(priv->scl); in i2c_gpio_getscl()
103 WIRE_ATTRIBUTE(scl);
170 int ret, irq = gpiod_to_irq(priv->scl); in i2c_gpio_fi_act_on_scl_irq()
177 ret = gpiod_direction_input(priv->scl); in i2c_gpio_fi_act_on_scl_irq()
192 ret = gpiod_direction_output(priv->scl, 1) ?: ret; in i2c_gpio_fi_act_on_scl_irq()
221 * Interrupt on falling SCL. This ensures that the master under test has in fops_lose_arbitration_set()
250 * Interrupt on falling SCL. This ensures that the master under test has in fops_inject_panic_set()
288 debugfs_create_file_unsafe("scl", 0600, priv->debug_dir, priv, &fops_scl); in i2c_gpio_fault_injector_init()
316 of_property_read_bool(np, "i2c-gpio,scl-open-drain"); in of_i2c_gpio_get_props()
318 of_property_read_bool(np, "i2c-gpio,scl-output-only"); in of_i2c_gpio_get_props()
389 * If the SCL/SDA lines are marked "open drain" by platform data or in i2c_gpio_probe()
407 priv->scl = i2c_gpio_get_desc(dev, "scl", 1, gflags); in i2c_gpio_probe()
408 if (IS_ERR(priv->scl)) in i2c_gpio_probe()
409 return PTR_ERR(priv->scl); in i2c_gpio_probe()
411 if (gpiod_cansleep(priv->sda) || gpiod_cansleep(priv->scl)) in i2c_gpio_probe()
460 dev_info(dev, "using lines %u (SDA) and %u (SCL%s)\n", in i2c_gpio_probe()
461 desc_to_gpio(priv->sda), desc_to_gpio(priv->scl), in i2c_gpio_probe()