/kernel/linux/linux-5.10/Documentation/i2c/ |
D | gpio-fault-injection.rst | 30 "sda" 33 By reading this file, you get the current state of SDA. By writing, you can 35 "echo 0 > sda" you force SDA low and thus, data cannot be transmitted. The bus 39 succeed because SDA is still pinned low until you manually release it again 40 with "echo 1 > sda". A test with an automatic release can be done with the 46 The following fault injectors create situations where SDA will be held low by a 48 there are I2C client devices which detect a stuck SDA on their side and release 50 device deglitching and monitoring the I2C bus. It could also detect a stuck SDA 61 transmitted. Because the device will ACK its presence, this results in SDA 62 being pulled low by the device while SCL is high. So, similar to the "sda" file [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/dce/ |
D | dce_i2c_sw.c | 32 #define SDA true macro 111 write_bit_to_ddc(ddc_handle, SDA, (byte >> shift) & 1); in write_byte_sw() 125 /* The display sends ACK by preventing the SDA from going high in write_byte_sw() 127 * If the SDA goes high after that bit, it's a NACK in write_byte_sw() 132 write_bit_to_ddc(ddc_handle, SDA, true); in write_byte_sw() 143 ack = !read_bit_from_ddc(ddc_handle, SDA); in write_byte_sw() 175 if (read_bit_from_ddc(ddc_handle, SDA)) in read_byte_sw() 192 * SDA low means ACK, SDA high means NACK in read_byte_sw() 195 write_bit_to_ddc(ddc_handle, SDA, !more); in read_byte_sw() 208 write_bit_to_ddc(ddc_handle, SDA, true); in read_byte_sw() [all …]
|
/kernel/linux/linux-5.10/drivers/i2c/busses/ |
D | i2c-acorn.c | 20 #define SDA 0x01 macro 25 * SDA outputs as well (which may be different from the 32 u_int ioc_control = ioc_readb(IOC_CONTROL) & ~(SCL | SDA); in ioc_setscl() 47 u_int ioc_control = ioc_readb(IOC_CONTROL) & ~(SCL | SDA); in ioc_setsda() 51 ones |= SDA; in ioc_setsda() 53 ones &= ~SDA; in ioc_setsda() 67 return (ioc_readb(IOC_CONTROL) & SDA) != 0; in ioc_getsda() 87 force_ones = FORCE_ONES | SCL | SDA; in i2c_ioc_init()
|
D | i2c-gpio.c | 22 struct gpio_desc *sda; member 36 * Toggle SDA by changing the output value of the pin. This is only 44 gpiod_set_value_cansleep(priv->sda, state); in i2c_gpio_setsda_val() 64 return gpiod_get_value_cansleep(priv->sda); in i2c_gpio_getsda() 104 WIRE_ATTRIBUTE(sda); 139 /* ADDR (7 bit) + RD (1 bit) + Client ACK, keep SDA hi (1 bit) */ in fops_incomplete_addr_phase_set() 158 /* 0x00 (8 bit) + Client ACK, keep SDA hi (1 bit) */ in fops_incomplete_write_byte_set() 222 * really started the transfer. Interrupt on falling SDA did only in fops_lose_arbitration_set() 289 debugfs_create_file_unsafe("sda", 0600, priv->debug_dir, priv, &fops_sda); in i2c_gpio_fault_injector_init() 314 of_property_read_bool(np, "i2c-gpio,sda-open-drain"); in of_i2c_gpio_get_props() [all …]
|
D | i2c-versatile.c | 21 #define SDA (1 << 1) macro 33 writel(SDA, i2c->base + (state ? I2C_CONTROLS : I2C_CONTROLC)); in i2c_versatile_setsda() 46 return !!(readl(i2c->base + I2C_CONTROL) & SDA); in i2c_versatile_getsda() 79 writel(SCL | SDA, i2c->base + I2C_CONTROLS); in i2c_versatile_probe()
|
/kernel/linux/linux-5.10/drivers/staging/sm750fb/ |
D | ddk750_swi2c.c | 19 * a point in time where the SCL or SDA may be changed. 29 * the SDA may only be changed in section 2. and section 4. The table 38 * Tx Start SDA | | H | | L | 41 * Tx Stop SDA | | L | | H | 44 * Tx bit H SDA | | H | | | 47 * Tx bit L SDA | | L | | | 107 * value - Bit value to set to the SCL or SDA (0 = low, 1 = high) 141 * This function set/reset the SDA GPIO pin 144 * value - Bit value to set to the SCL or SDA (0 = low, 1 = high) 178 * This function read the data from the SDA GPIO pin [all …]
|
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/i2c/ |
D | i2c-gpio.yaml | 20 sda-gpios: 22 gpio used for the sda signal, this should be flagged as 52 description: sda and scl gpio, alternative for {sda,scl}-gpios 54 i2c-gpio,sda-open-drain: 58 the GPIO line used for SDA into open drain mode, and that something is 70 - sda-gpios
|
D | snps,designware-i2c.yaml | 42 ICPU_CFG:TWI_DELAY registers to setup the SDA hold time. 68 i2c-sda-hold-time-ns: 71 The property should contain the SDA hold time in nanoseconds. This option 82 i2c-sda-falling-time-ns: 85 The property should contain the SDA falling time in nanoseconds. 126 i2c-sda-hold-time-ns = <300>; 127 i2c-sda-falling-time-ns = <300>;
|
D | i2c-s3c2410.txt | 16 - samsung,i2c-sda-delay: Delay (in ns) applied to data line (SDA) edges. 20 - gpios: The order of the gpios should be the following: <SDA, SCL>. 41 samsung,i2c-sda-delay = <100>; 44 gpios = <&gpd1 2 0 /* SDA */
|
D | i2c-at91.txt | 27 - i2c-sda-hold-time-ns: TWD hold time, only available for: 32 - sda-gpios: specify the gpio related to SDA pin 71 i2c-sda-hold-time-ns = <336>; 75 sda-gpios = <&pioA 30 GPIO_ACTIVE_HIGH>;
|
D | i2c-st.txt | 19 - st,i2c-min-sda-pulse-width-us : The minimum valid SDA pulse width that is 40 st,i2c-min-sda-pulse-width-us = <5>;
|
/kernel/linux/linux-5.10/drivers/media/usb/gspca/ |
D | w996Xcf.c | 179 w9968cf_write_sb(sd, 0x0011); /* SDE=1, SDA=0, SCL=1 */ in w9968cf_smbus_start() 180 w9968cf_write_sb(sd, 0x0010); /* SDE=1, SDA=0, SCL=0 */ in w9968cf_smbus_start() 185 w9968cf_write_sb(sd, 0x0010); /* SDE=1, SDA=0, SCL=0 */ in w9968cf_smbus_stop() 186 w9968cf_write_sb(sd, 0x0011); /* SDE=1, SDA=0, SCL=1 */ in w9968cf_smbus_stop() 187 w9968cf_write_sb(sd, 0x0013); /* SDE=1, SDA=1, SCL=1 */ in w9968cf_smbus_stop() 193 int sda; in w9968cf_smbus_write_byte() local 196 sda = (v & 0x80) ? 2 : 0; in w9968cf_smbus_write_byte() 198 /* SDE=1, SDA=sda, SCL=0 */ in w9968cf_smbus_write_byte() 199 w9968cf_write_sb(sd, 0x10 | sda); in w9968cf_smbus_write_byte() 200 /* SDE=1, SDA=sda, SCL=1 */ in w9968cf_smbus_write_byte() [all …]
|
/kernel/linux/linux-5.10/drivers/i2c/algos/ |
D | i2c-algo-bit.c | 117 /* assert: scl, sda are high */ in i2c_start() 185 /* read ack: SDA should be pulled down by slave, or it may in i2c_outb() 188 ack = !getsda(adap); /* ack: sda is pulled low -> success */ in i2c_outb() 194 /* assert: scl is low (sda undef) */ in i2c_outb() 233 int scl, sda, ret; in test_bus() local 242 pr_info("%s: Testing SDA only, SCL is not readable\n", name); in test_bus() 244 sda = getsda(adap); in test_bus() 246 if (!scl || !sda) { in test_bus() 248 "%s: bus seems to be busy (scl=%d, sda=%d)\n", in test_bus() 249 name, scl, sda); in test_bus() [all …]
|
/kernel/linux/linux-5.10/Documentation/admin-guide/device-mapper/ |
D | dm-ebs.rst | 42 Emulate 1 sector = 512 bytes logical block size on /dev/sda starting at 45 ebs /dev/sda 1024 1 47 Emulate 2 sector = 1KiB logical block size on /dev/sda starting at 49 This presumes 2KiB logical blocksize on /dev/sda or less to work: 51 ebs /dev/sda 128 2 4
|
/kernel/linux/linux-5.10/arch/arm/mach-sa1100/ |
D | assabet.c | 118 #define SDA GPIO_GPIO(15) macro 126 GPSR = SDA; in adv7171_start() 128 GPCR = SDA; in adv7171_start() 135 GPSR = SDA; in adv7171_stop() 147 GPSR = SDA; in adv7171_send() 149 GPCR = SDA; in adv7171_send() 156 GPSR = SDA; in adv7171_send() 158 GPDR &= ~SDA; in adv7171_send() 161 if (GPLR & SDA) in adv7171_send() 164 GPCR = SCK | SDA; in adv7171_send() [all …]
|
/kernel/linux/linux-5.10/drivers/hwmon/ |
D | emc1403.c | 38 struct sensor_device_attribute *sda = to_sensor_dev_attr(attr); in temp_show() local 43 retval = regmap_read(data->regmap, sda->index, &val); in temp_show() 52 struct sensor_device_attribute_2 *sda = to_sensor_dev_attr_2(attr); in bit_show() local 57 retval = regmap_read(data->regmap, sda->nr, &val); in bit_show() 60 return sprintf(buf, "%d\n", !!(val & sda->index)); in bit_show() 66 struct sensor_device_attribute *sda = to_sensor_dev_attr(attr); in temp_store() local 73 retval = regmap_write(data->regmap, sda->index, in temp_store() 83 struct sensor_device_attribute_2 *sda = to_sensor_dev_attr_2(attr); in bit_store() local 91 retval = regmap_update_bits(data->regmap, sda->nr, sda->index, in bit_store() 92 val ? sda->index : 0); in bit_store() [all …]
|
/kernel/linux/linux-5.10/arch/arc/boot/dts/ |
D | abilis_tb101_dvk.dts | 37 i2c-sda-hold-time-ns = <432>; 40 i2c-sda-hold-time-ns = <432>; 43 i2c-sda-hold-time-ns = <432>; 46 i2c-sda-hold-time-ns = <432>; 49 i2c-sda-hold-time-ns = <432>;
|
D | abilis_tb100_dvk.dts | 37 i2c-sda-hold-time-ns = <432>; 40 i2c-sda-hold-time-ns = <432>; 43 i2c-sda-hold-time-ns = <432>; 46 i2c-sda-hold-time-ns = <432>; 49 i2c-sda-hold-time-ns = <432>;
|
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/pinctrl/ |
D | marvell,armada-39x-pinctrl.txt | 21 mpp3 3 gpio, i2c0(sda) 34 mpp16 16 gpio, dram(deccerr), spi0(miso), pcie0(clkreq), i2c1(sda) 37 mpp19 19 gpio, sata1(prsnt) [1], ua0(cts), ua1(rxd), i2c2(sda) 46 mpp27 27 gpio, spi0(cs3), i2c1(sda), sd0(d7), dev(cs2), ge(txclkout) 59 mpp40 40 gpio, i2c1(sda), ua0(rts), sd0(d2), dev(ad6), ge(rxd3) 75 mpp53 53 gpio, sata1(prsnt) [1], sata0(prsnt) [1], tdm(rst) [2], audio(bclk) [2], sd0(d7), i2c3(sda) 81 mpp59 59 gpio, pcie0(rstout), i2c1(sda), spi1(cs0), sd0(d2)
|
/kernel/linux/linux-5.10/drivers/mfd/ |
D | intel-lpss-acpi.c | 26 PROPERTY_ENTRY_U32("i2c-sda-hold-time-ns", 230), 53 PROPERTY_ENTRY_U32("i2c-sda-hold-time-ns", 42), 54 PROPERTY_ENTRY_U32("i2c-sda-falling-time-ns", 171), 65 PROPERTY_ENTRY_U32("i2c-sda-hold-time-ns", 207), 66 PROPERTY_ENTRY_U32("i2c-sda-falling-time-ns", 171),
|
/kernel/linux/linux-5.10/arch/arm/boot/dts/ |
D | ste-dbx5x0-pinctrl.dtsi | 132 pins = "GPIO147_C15", "GPIO148_B16"; /* SDA/SCL */ 139 pins = "GPIO147_C15", "GPIO148_B16"; /* SDA/SCL */ 152 pins = "GPIO16_AD3", "GPIO17_AD4"; /* SDA/SCL */ 159 pins = "GPIO16_AD3", "GPIO17_AD4"; /* SDA/SCL */ 172 pins = "GPIO10_AF5", "GPIO11_AG4"; /* SDA/SCL */ 179 pins = "GPIO10_AF5", "GPIO11_AG4"; /* SDA/SCL */ 192 pins = "GPIO229_AG7", "GPIO230_AF7"; /* SDA/SCL */ 199 pins = "GPIO229_AG7", "GPIO230_AF7"; /* SDA/SCL */ 216 pins = "GPIO4_AH6", "GPIO5_AG6"; /* SDA/SCL */ 223 pins = "GPIO4_AH6", "GPIO5_AG6"; /* SDA/SCL */
|
/kernel/linux/linux-5.10/Documentation/block/ |
D | switching-sched.rst | 31 # cat /sys/block/sda/queue/scheduler 33 # echo none >/sys/block/sda/queue/scheduler 34 # cat /sys/block/sda/queue/scheduler
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/ |
D | bit.c | 108 i2c_bitw(struct nvkm_i2c_bus *bus, int sda) in i2c_bitw() argument 110 nvkm_i2c_drive_sda(bus, sda); in i2c_bitw() 125 int sda; in i2c_bitr() local 134 sda = nvkm_i2c_sense_sda(bus); in i2c_bitr() 138 return sda; in i2c_bitr()
|
/kernel/linux/linux-5.10/Documentation/admin-guide/laptops/ |
D | disk-shock-protection.rst | 63 /dev/sda and stop all I/O operations for five seconds:: 65 # echo 5000 > /sys/block/sda/device/unload_heads 69 # cat /sys/block/sda/device/unload_heads 101 instead of /dev/sda), then parking the heads of one drive (drive X) 118 # echo -1 > /sys/block/sda/device/unload_heads 120 will enable the feature for /dev/sda, and giving -2 instead of -1 will
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
D | vega10_processpptables.c | 379 static void get_scl_sda_value(uint8_t line, uint8_t *scl, uint8_t* sda) in get_scl_sda_value() argument 384 *sda = Vega10_I2C_DDC1DATA; in get_scl_sda_value() 388 *sda = Vega10_I2C_DDC2DATA; in get_scl_sda_value() 392 *sda = Vega10_I2C_DDC3DATA; in get_scl_sda_value() 396 *sda = Vega10_I2C_DDC4DATA; in get_scl_sda_value() 400 *sda = Vega10_I2C_DDC5DATA; in get_scl_sda_value() 404 *sda = Vega10_I2C_DDC6DATA; in get_scl_sda_value() 408 *sda = Vega10_I2C_SDA; in get_scl_sda_value() 412 *sda = Vega10_I2C_DDCVGADATA; in get_scl_sda_value() 416 *sda = 0; in get_scl_sda_value() [all …]
|