Lines Matching +full:timing +full:- +full:0
1 // SPDX-License-Identifier: GPL-2.0-only
14 #include <linux/leds-expresswire.h>
18 gpiod_set_value_cansleep(props->ctrl_gpio, 0); in expresswire_power_off()
19 usleep_range(props->timing.poweroff_us, props->timing.poweroff_us * 2); in expresswire_power_off()
25 gpiod_set_value(props->ctrl_gpio, 1); in expresswire_enable()
26 udelay(props->timing.detect_delay_us); in expresswire_enable()
27 gpiod_set_value(props->ctrl_gpio, 0); in expresswire_enable()
28 udelay(props->timing.detect_us); in expresswire_enable()
29 gpiod_set_value(props->ctrl_gpio, 1); in expresswire_enable()
35 gpiod_set_value(props->ctrl_gpio, 1); in expresswire_start()
36 udelay(props->timing.data_start_us); in expresswire_start()
42 gpiod_set_value(props->ctrl_gpio, 0); in expresswire_end()
43 udelay(props->timing.end_of_data_low_us); in expresswire_end()
44 gpiod_set_value(props->ctrl_gpio, 1); in expresswire_end()
45 udelay(props->timing.end_of_data_high_us); in expresswire_end()
52 gpiod_set_value(props->ctrl_gpio, 0); in expresswire_set_bit()
53 udelay(props->timing.short_bitset_us); in expresswire_set_bit()
54 gpiod_set_value(props->ctrl_gpio, 1); in expresswire_set_bit()
55 udelay(props->timing.long_bitset_us); in expresswire_set_bit()
57 gpiod_set_value(props->ctrl_gpio, 0); in expresswire_set_bit()
58 udelay(props->timing.long_bitset_us); in expresswire_set_bit()
59 gpiod_set_value(props->ctrl_gpio, 1); in expresswire_set_bit()
60 udelay(props->timing.short_bitset_us); in expresswire_set_bit()
68 for (int i = 7; i >= 0; i--) in expresswire_write_u8()