Home
last modified time | relevance | path

Searched full:sda (Results 1 – 25 of 467) sorted by relevance

12345678910>>...19

/Linux-v6.1/Documentation/i2c/
Dgpio-fault-injection.rst30 "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 …]
/Linux-v6.1/drivers/gpu/drm/amd/display/dc/dce/
Ddce_i2c_sw.c30 #define SDA true macro
109 write_bit_to_ddc(ddc_handle, SDA, (byte >> shift) & 1); in write_byte_sw()
123 /* The display sends ACK by preventing the SDA from going high in write_byte_sw()
125 * If the SDA goes high after that bit, it's a NACK in write_byte_sw()
130 write_bit_to_ddc(ddc_handle, SDA, true); in write_byte_sw()
141 ack = !read_bit_from_ddc(ddc_handle, SDA); in write_byte_sw()
173 if (read_bit_from_ddc(ddc_handle, SDA)) in read_byte_sw()
190 * SDA low means ACK, SDA high means NACK in read_byte_sw()
193 write_bit_to_ddc(ddc_handle, SDA, !more); in read_byte_sw()
206 write_bit_to_ddc(ddc_handle, SDA, true); in read_byte_sw()
[all …]
/Linux-v6.1/drivers/i2c/busses/
Di2c-acorn.c20 #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()
Di2c-gpio.c22 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 …]
Di2c-versatile.c21 #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()
/Linux-v6.1/drivers/staging/sm750fb/
Dddk750_swi2c.c19 * 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 …]
/Linux-v6.1/Documentation/devicetree/bindings/i2c/
Di2c-gpio.yaml20 sda-gpios:
22 gpio used for the sda signal, this should be flagged as
50 description: sda and scl gpio, alternative for {sda,scl}-gpios
52 i2c-gpio,sda-open-drain:
56 the GPIO line used for SDA into open drain mode, and that something is
68 - sda-gpios
Dsnps,designware-i2c.yaml42 ICPU_CFG:TWI_DELAY registers to setup the SDA hold time.
68 i2c-sda-hold-time-ns:
70 The property should contain the SDA hold time in nanoseconds. This option
80 i2c-sda-falling-time-ns:
82 The property should contain the SDA falling time in nanoseconds.
117 i2c-sda-hold-time-ns = <300>;
118 i2c-sda-falling-time-ns = <300>;
Dsamsung,s3c2410-i2c.yaml35 The order of the GPIOs should be the following:: <SDA, SCL>. The GPIO
54 samsung,i2c-sda-delay:
57 Delay (in ns) applied to data line (SDA) edges.
121 samsung,i2c-sda-delay = <100>;
140 samsung,i2c-sda-delay = <100>;
157 samsung,i2c-sda-delay = <100>;
/Linux-v6.1/drivers/media/usb/gspca/
Dw996Xcf.c178 w9968cf_write_sb(sd, 0x0011); /* SDE=1, SDA=0, SCL=1 */ in w9968cf_smbus_start()
179 w9968cf_write_sb(sd, 0x0010); /* SDE=1, SDA=0, SCL=0 */ in w9968cf_smbus_start()
184 w9968cf_write_sb(sd, 0x0010); /* SDE=1, SDA=0, SCL=0 */ in w9968cf_smbus_stop()
185 w9968cf_write_sb(sd, 0x0011); /* SDE=1, SDA=0, SCL=1 */ in w9968cf_smbus_stop()
186 w9968cf_write_sb(sd, 0x0013); /* SDE=1, SDA=1, SCL=1 */ in w9968cf_smbus_stop()
192 int sda; in w9968cf_smbus_write_byte() local
195 sda = (v & 0x80) ? 2 : 0; in w9968cf_smbus_write_byte()
197 /* SDE=1, SDA=sda, SCL=0 */ in w9968cf_smbus_write_byte()
198 w9968cf_write_sb(sd, 0x10 | sda); in w9968cf_smbus_write_byte()
199 /* SDE=1, SDA=sda, SCL=1 */ in w9968cf_smbus_write_byte()
[all …]
/Linux-v6.1/drivers/i2c/algos/
Di2c-algo-bit.c117 /* 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 …]
/Linux-v6.1/drivers/hwmon/
Dmax31760.c46 struct sensor_device_attribute sda; member
414 struct sensor_device_attribute *sda = to_sensor_dev_attr(devattr); in lut_show() local
419 ret = regmap_read(state->regmap, REG_LUT(sda->index), &regval); in lut_show()
430 struct sensor_device_attribute *sda = to_sensor_dev_attr(devattr); in lut_store() local
439 ret = regmap_write(state->regmap, REG_LUT(sda->index), pwm); in lut_store()
490 struct sensor_device_attribute *sda; in max31760_create_lut_nodes() local
495 sda = &lut->sda; in max31760_create_lut_nodes()
500 sda->dev_attr.attr.mode = 0644; in max31760_create_lut_nodes()
501 sda->index = i; in max31760_create_lut_nodes()
502 sda->dev_attr.show = lut_show; in max31760_create_lut_nodes()
[all …]
Demc1403.c38 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 …]
/Linux-v6.1/Documentation/admin-guide/device-mapper/
Ddm-ebs.rst42 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
/Linux-v6.1/arch/arm/mach-sa1100/
Dassabet.c116 #define SDA GPIO_GPIO(15) macro
124 GPSR = SDA; in adv7171_start()
126 GPCR = SDA; in adv7171_start()
133 GPSR = SDA; in adv7171_stop()
145 GPSR = SDA; in adv7171_send()
147 GPCR = SDA; in adv7171_send()
154 GPSR = SDA; in adv7171_send()
156 GPDR &= ~SDA; in adv7171_send()
159 if (GPLR & SDA) in adv7171_send()
162 GPCR = SCK | SDA; in adv7171_send()
[all …]
/Linux-v6.1/arch/riscv/boot/dts/starfive/
Djh7100-beaglev-starlight.dts114 i2c-sda-hold-time-ns = <300>;
115 i2c-sda-falling-time-ns = <500>;
134 i2c-sda-hold-time-ns = <300>;
135 i2c-sda-falling-time-ns = <100>;
144 i2c-sda-hold-time-ns = <300>;
145 i2c-sda-falling-time-ns = <500>;
/Linux-v6.1/arch/arc/boot/dts/
Dabilis_tb100_dvk.dts37 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>;
Dabilis_tb101_dvk.dts37 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>;
/Linux-v6.1/arch/arm/boot/dts/
Dste-dbx5x0-pinctrl.dtsi132 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 = "GPIO8_AD5", "GPIO9_AE4"; /* SDA/SCL */
179 pins = "GPIO8_AD5", "GPIO9_AE4"; /* SDA/SCL */
190 pins = "GPIO10_AF5", "GPIO11_AG4"; /* SDA/SCL */
197 pins = "GPIO10_AF5", "GPIO11_AG4"; /* SDA/SCL */
210 pins = "GPIO229_AG7", "GPIO230_AF7"; /* SDA/SCL */
217 pins = "GPIO229_AG7", "GPIO230_AF7"; /* SDA/SCL */
[all …]
/Linux-v6.1/Documentation/devicetree/bindings/pinctrl/
Dmarvell,armada-39x-pinctrl.txt21 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)
/Linux-v6.1/drivers/gpu/drm/amd/pm/powerplay/hwmgr/
Dvega10_processpptables.c376 static void get_scl_sda_value(uint8_t line, uint8_t *scl, uint8_t* sda) in get_scl_sda_value() argument
381 *sda = Vega10_I2C_DDC1DATA; in get_scl_sda_value()
385 *sda = Vega10_I2C_DDC2DATA; in get_scl_sda_value()
389 *sda = Vega10_I2C_DDC3DATA; in get_scl_sda_value()
393 *sda = Vega10_I2C_DDC4DATA; in get_scl_sda_value()
397 *sda = Vega10_I2C_DDC5DATA; in get_scl_sda_value()
401 *sda = Vega10_I2C_DDC6DATA; in get_scl_sda_value()
405 *sda = Vega10_I2C_SDA; in get_scl_sda_value()
409 *sda = Vega10_I2C_DDCVGADATA; in get_scl_sda_value()
413 *sda = 0; in get_scl_sda_value()
[all …]
/Linux-v6.1/drivers/pinctrl/sunxi/
Dpinctrl-sun20i-d1.c35 SUNXI_FUNCTION(0x4, "i2c2"), /* SDA */
46 SUNXI_FUNCTION(0x4, "i2c0"), /* SDA */
76 SUNXI_FUNCTION(0x4, "i2c1"), /* SDA */
97 SUNXI_FUNCTION(0x4, "i2c3"), /* SDA */
118 SUNXI_FUNCTION(0x4, "i2c2"), /* SDA */
138 SUNXI_FUNCTION(0x4, "i2c0"), /* SDA */
165 SUNXI_FUNCTION(0x3, "i2c2"), /* SDA */
208 SUNXI_FUNCTION(0x5, "i2c3"), /* SDA */
314 SUNXI_FUNCTION(0x5, "i2c0"), /* SDA */
384 SUNXI_FUNCTION(0x3, "i2c2"), /* SDA */
[all …]
/Linux-v6.1/Documentation/admin-guide/laptops/
Ddisk-shock-protection.rst63 /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
/Linux-v6.1/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/
Dbit.c108 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()
/Linux-v6.1/Documentation/block/
Dswitching-sched.rst31 # cat /sys/block/sda/queue/scheduler
33 # echo none >/sys/block/sda/queue/scheduler
34 # cat /sys/block/sda/queue/scheduler

12345678910>>...19