/freebsd-src/share/man/man4/ |
H A D | gpioiic.4 | 30 .Nd GPIO I2C bit-banging device driver 35 .Bd -ragged -offset indent 45 .Bd -literal -offset indent 51 driver provides an IIC bit-banging interface using two GPIO pins for the 59 They are driven to '0' or switched to input mode (Hi-Z/tri-state), and 67 .Bl -tag -width ".Va hint.gpioiic.%d.atXXX" 77 bit-banging bus. 81 (any other bits - i.e., pins - will be ignored). 86 Indicates which bit in the 92 Indicates which bit in the [all …]
|
H A D | iicbb.4 | 30 .Nd I2C generic bit-banging driver 41 driver provides support to any bit-banging interface for the
|
H A D | iicbus.4 | 41 system provides a uniform, modular and architecture-independent 49 easy way to connect a CPU to peripheral chips in a TV-set. 71 As mentioned before, the IC bus is a Multi-MASTER BUS. 77 .Bl -column "Device drivers" -compact 89 8-bit characters they write to the bus according to the I2C protocol. 92 bidirectional communications, thanks to the multi-master capabilities of the 97 .Bl -column "Interface drivers" -compact 100 .It Sy iicbb Ta "generic bit-banging master-only driver" 101 .It Sy lpbb Ta "parallel port specific bit-banging interface" 133 .Va clock-frequency
|
H A D | lpbb.4 | 30 .Nd parallel port I2C bit-banging interface 40 driver supports the Philips official I2C parallel bit-banging interface. 41 .Bd -literal 43 LS05 pin 14 (Vcc) o ------- 45 +--+--+---------------------+--+--+------------+------+-o 1 | 47 -------- [R][R][R] 3x10K 3x10K [R][R][R] LS05 | | | 48 | | | | | | | | pin 7 o-+------+-o 2 | 49 | 12 o-+--+ | | 3|\\ 4 | | | (Gnd) | GND | 50 | 17 o-+-----|--|----| >o-------------+--|--|--------------+ | | 51 | | | | |/ 8 /|9 | | 10 /|11 +----+-o 3 | [all …]
|
H A D | owc.4 | 29 .Nd Dallas Semiconductor 1-Wire Controller 35 module implements Dallas Semiconductor 1-Wire signaling. 38 driver 1-Wire bus protocol. 41 device implements the Link Layer of the 1-Wire bus protocol stack. 43 Bit banging a pin on a 47 Strong pull-up functionality needed to support parasitic mode is not 50 To enable 1-Wire for FDT systems requires modifying the DTS for your 52 .Bd -literal 56 compatible = "w1-gpio"; 63 The gpios property describes the GPIO pin the 1-Wire bus is connected [all …]
|
H A D | gpio.4 | 34 .Bd -ragged -offset indent 44 .Bd -ragged -offset indent 60 .Bd -ragged -offset indent 69 .Bd -ragged -offset indent 75 .Li RISC-V 77 .Bd -ragged -offset indent 84 available on embedded architectures and can provide bit banging style 90 .Dq General-Purpose Input/Output. 117 .Bl -tag -width ".Va hint.driver.unit.pin_list" 144 Any non-digit character can be used as a separator. [all …]
|
H A D | ppbus.4 | 42 system provides a uniform, modular and architecture-independent 48 .Bl -bullet -offset indent 50 architecture-independent macros or functions to access parallel ports 57 with kernel-in drivers. 61 and non-standard software: 63 .Bl -column "Driver" -compact 67 .It Sy lpbb Ta "Philips official parallel port I2C bit-banging interface" 73 .Bl -column "Driver" -compact 100 .Bl -bullet -offset indent 104 bidirectional 8/4-bits mode, also called NIBBLE mode [all …]
|
/freebsd-src/sys/dev/ppbus/ |
H A D | lpbb.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 33 * I2C Bit-Banging over parallel port 64 dev = device_find_child(parent, "lpbb", -1); in lpbb_identify() 77 device_set_desc(dev, "Parallel I2C bit in lpbb_probe() [all...] |
/freebsd-src/sys/dev/iicbus/ |
H A D | iicbb.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 31 * Generic I2C bit-banging code 42 * (c) 1998 Gerd Knorr <kraxel@cs.tu-berlin.de> 136 device_set_desc(dev, "I2C bit in iicbb_probe() 313 iicbb_sendbit(device_t dev,int bit) iicbb_sendbit() argument [all...] |
H A D | iic_recover_bus.h | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 31 * Helper code to recover a hung i2c bus by bit-banging a recovery sequence. 46 * Drive the bus-recovery logic by manipulating the line states using the 47 * caller-provided functions. This does not block or sleep or acquire any locks
|
H A D | iic_recover_bus.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 32 * Helper code to recover a hung i2c bus by bit-banging a recovery sequence. 35 * The most common cause is a partially-completed transaction such as rebooting 67 pins->setsda(pins->ctx, 1); in iic_recover_bus() 68 pins->setscl(pins->ctx, 1); in iic_recover_bus() 72 * bus is doing clock-stretching and we should wait a while. If that in iic_recover_bus() 75 * cheap eeprom has a max post-write delay of only 10ms), and also long in iic_recover_bus() 79 if (pins->getscl(pins->ctx)) in iic_recover_bus() 93 * bit, after which the slave must not be driving the data line anymore. in iic_recover_bus() [all …]
|
/freebsd-src/sys/contrib/device-tree/Bindings/iio/adc/ |
H A D | avia-hx711.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/iio/adc/avia-hx711.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Andreas Klinger <ak@it-klinger.de> 13 Bit-banging driver using two GPIOs: 14 - sck-gpio gives a clock to the sensor with 24 cycles for data retrieval 17 - dout-gpio is the sensor data the sensor responds to the clock 25 - avia,hx711 27 sck-gpios: [all …]
|
/freebsd-src/sys/contrib/device-tree/Bindings/iio/proximity/ |
H A D | parallax-ping.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/proximity/parallax-ping.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Andreas Klinger <ak@it-klinger.de> 13 Bit-banging driver using one GPIO: 14 - ping-gpios is raised by the driver to start measurement 15 - direction of ping-gpio is then switched into input with an interrupt 19 http://parallax.com/sites/default/files/downloads/28041-LaserPING-2m-Rangefinder-Guide.pdf 20 http://parallax.com/sites/default/files/downloads/28015-PING-Documentation-v1.6.pdf [all …]
|
H A D | devantech-srf04.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/iio/proximity/devantech-srf04.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Andreas Klinger <ak@it-klinger.de> 13 Bit-banging driver using two GPIOs: 14 - trigger-gpio is raised by the driver to start sending out an ultrasonic 16 - echo-gpio is held high by the sensor after sending ultrasonic burst 20 https://www.robot-electronics.co.uk/htm/srf04tech.htm 22 https://www.maxbotix.com/documents/LV-MaxSonar-EZ_Datasheet.pdf [all …]
|
/freebsd-src/sys/dev/ow/ |
H A D | owll_if.m | 1 #- 33 # Dallas Semiconductor 1-Wire bus Link Layer (owll) 36 # 1-Wire protocol specification. 39 # Note: 1-Wire is a registered trademark of Maxim Integrated Products, Inc. 42 # Although the first implementation is done with GPIO bit banging, some 43 # SoCs have a 1-Wire controller with more smarts or hardware offload. 45 # as well as both usb and i2c 1-Wire controllers. 74 # Note: This is the polling / busy-wait interface. An interrupt-based interface 75 # may be different. But an interrupt-based, non-blocking interface can be tricky. 80 # WRITE-ONE (see above for timings) From Figure 4-1 AN-937 [all …]
|
/freebsd-src/sys/dev/gpio/ |
H A D | gpiomdio.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 61 #define MDO sc->miibb_ops.mbo_bits[MII_BIT_MDO] 62 #define MDI sc->miibb_ops.mbo_bits[MII_BIT_MDI] 63 #define MDC sc->miibb_ops.mbo_bits[MII_BIT_MDC] 64 #define MDIRPHY sc->miibb_ops.mbo_bits[MII_BIT_DIR_HOST_PHY] 65 #define MDIRHOST sc->miibb_op [all...] |
H A D | gpiospi.c | 1 /*- 74 device_set_desc(dev, "GPIO SPI bit-banging driver"); in gpio_spi_probe() 83 d = sc->sc_freq / 1000000; in gpio_delay() 97 sc->sc_dev = dev; in gpio_spi_attach() 98 sc->sc_busdev = device_get_parent(dev); in gpio_spi_attach() 104 sc->sc_sclk = value & 0xff; in gpio_spi_attach() 109 sc->sc_mosi = value & 0xff; in gpio_spi_attach() 115 sc->sc_mis in gpio_spi_attach() 268 unsigned int bit; gpio_spi_txrx() local [all...] |
/freebsd-src/sys/dev/ixl/ |
H A D | ixl_pf_i2c.c | 3 Copyright (c) 2013-2018, Intel Corporation 48 I40E_GLGEN_I2CPARAMS(_hw->func_caps.mdio_port_num) 50 /* I2C bit-banging functions */ 67 * ixl_i2c_bus_clear - Clears the I2C bus 76 struct i40e_hw *hw = &pf->hw; in ixl_i2c_bus_clear() 105 * ixl_i2c_stop - Sets I2C stop condition 108 * Sets I2C stop condition (Low -> High on SDA while SCL is High) 113 struct i40e_hw *hw = &pf->hw; in ixl_i2c_stop() 132 * ixl_clock_in_i2c_byte - Clocks in one byte via I2C 142 bool bit = 0; in ixl_clock_in_i2c_byte() local [all …]
|
/freebsd-src/sys/contrib/device-tree/src/arm/st/ |
H A D | ste-ux500-samsung-janice.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Devicetree for the Samsung Galaxy S Advance GT-I9070 also known as Janice. 6 /dts-v1/; 7 #include "ste-db8500.dtsi" 8 #include "ste-ab8500.dtsi" 9 #include "ste-dbx5x0-pinctrl.dtsi" 10 #include <dt-bindings/gpio/gpio.h> 11 #include <dt-bindings/leds/common.h> 12 #include <dt-bindings/input/input.h> 13 #include <dt-bindings/interrupt-controller/irq.h> [all …]
|
/freebsd-src/sys/dev/e1000/ |
H A D | e1000_82575.c | 2 SPDX-License-Identifier: BSD-3-Clause 4 Copyright (c) 2001-2020, Intel Corporation 121 * e1000_sgmii_uses_mdio_82575 - Determine if I2C pins are for external MDIO 134 switch (hw->mac.type) { in e1000_sgmii_uses_mdio_82575() 155 * e1000_init_phy_params_82575 - Initialize PHY function ptrs 160 struct e1000_phy_info *phy = &hw->phy; in e1000_init_phy_params_82575() 166 phy->op in e1000_init_phy_params_82575() 3250 bool bit = 0; e1000_clock_in_i2c_byte() local 3273 bool bit = 0; e1000_clock_out_i2c_byte() local [all...] |
H A D | e1000_defines.h | 2 SPDX-License-Identifier: BSD-3-Clause 4 Copyright (c) 2001-2020, Intel Corporation 93 #define E1000_CTRL_EXT_DRV_LOAD 0x10000000 /* Drv loaded bit for FW */ 94 #define E1000_CTRL_EXT_IAME 0x08000000 /* Int ACK Auto-mask */ 114 /* Receive Descriptor bit definitions */ 122 #define E1000_RXD_STAT_PIF 0x80 /* passed in-exact filter */ 173 #define E1000_MANC_SMBUS_EN 0x00000001 /* SMBus Enabled - RO */ 174 #define E1000_MANC_ASF_EN 0x00000002 /* ASF Enabled - RO */ 262 #define E1000_CTRL_ASDE 0x00000020 /* Auto-speed detect enable */ 264 #define E1000_CTRL_ILOS 0x00000080 /* Invert Loss-Of Signal */ [all …]
|
/freebsd-src/sys/dev/viapm/ |
H A D | viapm.c | 1 /*- 2 * Copyright (c) 2001 Alcove - Nicolas Souchu 75 ((u_char)bus_read_1(viapm->iores, port)) 77 (bus_write_1(viapm->iores, port, (u_char)(val))) 86 #define VIAPM_LOCK(sc) mtx_lock(&(sc)->lock) 87 #define VIAPM_UNLOCK(sc) mtx_unlock(&(sc)->lock) 88 #define VIAPM_LOCK_ASSERT(sc) mtx_assert(&(sc)->lock, MA_OWNED) 198 viapm->type = VIAPM_TYP_586B_3040E; in viapm_586b_probe() 199 viapm->iorid = VIAPM_586B_3040E_BASE; in viapm_586b_probe() 209 viapm->typ in viapm_586b_probe() [all...] |
/freebsd-src/sys/conf/ |
H A D | NOTES | 2 # NOTES -- Lines that can be cut/pasted into kernel and hints configs. 11 # Please use ``make LINT'' to create an old-style LINT file if you want to 12 # do kernel test-builds. 48 # auto-size based on physical memory. 66 # after most other flags. Here we use it to inhibit use of non-optimal 67 # gcc built-in functions (e.g., memcmp). 70 # The following is equivalent to 'config -g KERNELNAME' and creates 71 # 'kernel.debug' compiled with -g debugging as well as a normal 81 makeoptions CONF_CFLAGS=-fn [all...] |
/freebsd-src/contrib/one-true-awk/ |
H A D | FIXES.1e | 44 discovered by todd miller. also use-after-free issue with 48 Various leaks and use-after-free issues plugged/fixed. 52 Memory leak when assigning a string to some of the built-in 57 Historic bug: command-line "name=value" assignment had been 83 As per IEEE Std 1003.1-2008, -F "str" is now consistent with 84 -v FS="str" when str is null. Thanks to Warner Losh. 91 Fix regular expression RS ^-anchorin [all...] |
/freebsd-src/sys/dev/drm2/ |
H A D | drm_edid.c | 3 * Copyright (c) 2007-2008 Intel Corporation 24 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 40 (((edid)->version > (maj)) || \ 41 ((edid)->version == (maj) && (edid)->revision > (min))) 66 /* Monitor forgot to set the first detailed is preferred bit. */ 70 /* Force reduced-blanking timings for detailed modes */ 102 /* Envision Peripherals, Inc. EN-7100e */ 111 /* LG Philips LCD LP154W01-A5 */ 123 /* Samsung SyncMaster 22[5-6]BW */ 156 "Minimum number of valid EDID header bytes (0-8, default 6)"); [all …]
|