Lines Matching full:scl
23 struct gpio_desc *scl; member
47 * Toggle SCL by changing the output value of the pin. This is used
56 gpiod_set_value_cansleep(priv->scl, state); in i2c_gpio_setscl_val()
70 return gpiod_get_value_cansleep(priv->scl); in i2c_gpio_getscl()
101 WIRE_ATTRIBUTE(scl);
168 int ret, irq = gpiod_to_irq(priv->scl); in i2c_gpio_fi_act_on_scl_irq()
175 ret = gpiod_direction_input(priv->scl); in i2c_gpio_fi_act_on_scl_irq()
190 ret = gpiod_direction_output(priv->scl, 1) ?: ret; in i2c_gpio_fi_act_on_scl_irq()
219 * Interrupt on falling SCL. This ensures that the controller under test in fops_lose_arbitration_set()
248 * Interrupt on falling SCL. This ensures that the controller under test in fops_inject_panic_set()
271 debugfs_create_file_unsafe("scl", 0600, priv->adap.debugfs, priv, &fops_scl); in i2c_gpio_fault_injector_init()
292 device_property_read_bool(dev, "i2c-gpio,scl-open-drain"); in i2c_gpio_get_properties()
294 device_property_read_bool(dev, "i2c-gpio,scl-output-only"); in i2c_gpio_get_properties()
300 device_property_read_bool(dev, "i2c-gpio,scl-has-no-pullup"); in i2c_gpio_get_properties()
371 * If the SCL/SDA lines are marked "open drain" by platform data or in i2c_gpio_probe()
389 priv->scl = i2c_gpio_get_desc(dev, "scl", 1, gflags); in i2c_gpio_probe()
390 if (IS_ERR(priv->scl)) in i2c_gpio_probe()
391 return PTR_ERR(priv->scl); in i2c_gpio_probe()
393 if (gpiod_cansleep(priv->sda) || gpiod_cansleep(priv->scl)) in i2c_gpio_probe()
443 dev_info(dev, "using lines %u (SDA) and %u (SCL%s)\n", in i2c_gpio_probe()
444 desc_to_gpio(priv->sda), desc_to_gpio(priv->scl), in i2c_gpio_probe()