GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
LTC430X(4) FreeBSD Kernel Interfaces Manual LTC430X(4)

ltc430x
driver for LTC4305 and LTC4306 I2C mux chips

To compile this driver into the kernel, place the following line in your kernel configuration file:
device ltc430x

Alternatively, to load the driver as a module at boot time, place the following line in loader.conf(5):

ltc430x_load="YES"

The ltc430x driver supports the LTC4305 and LTC4306 I2C bus multiplexer (mux) chips. It automatically connects an upstream I2C bus to one of several downstream buses as needed when slave devices on the downstream buses initiate I/O. More information on the automatic switching behavior is available in iicmux(4).

On an fdt(4) based system, an ltc430x device node is defined as a child node of its upstream i2c bus. The children of the ltc430x node are additional i2c buses, which will have their own i2c slave devices described in their child nodes.

The ltc430x driver conforms to the standard i2c/i2c-mux-ltc4306.txt bindings document, except that the following optional properties are not currently supported and will be ignored if present:

  • enable-gpios
  • gpio-controller
  • #gpio-cells
  • ltc,downstream-accelerators-enable
  • ltc,upstream-accelerators-enable

In addition, the following additional property is supported:

freebsd,ctlreg2
A value to store into the chip's control register 2 during initialization. Consult the chip datasheet for the meaning of the various bits in the register.

On a device.hints(5) based system, the following hints are required:
hint.ltc430x.<unit>.at
The upstream iicbus(4) the ltc430x instance is attached to.
hint.ltc430x.<unit>.addr
The slave address of the ltc430x instance on the upstream bus.
hint.ltc430x.<unit>.chip_type
The type of chip the driver is controlling. Valid values are “ltc4305” and “ltc4306”.

The following hints are optional:

hint.ltc430x.<unit>.ctlreg2
A value to store into the chip's control register 2 during initialization. Consult the chip datasheet for the meaning of the various bits in the register. This hint is optional; when missing, the driver does not update control register 2.
hint.ltc430x.<unit>.idle_disconnect
Whether to disconnect all downstream busses from the upstream bus when idle. If set to zero, the most recently used downstream bus is left connected to the upstream bus after IO completes. Any non-zero value causes all downstream busses to be disconnected when idle. This hint is optional; when missing, the driver behaves as if it were zero.

When configured via hints, the driver automatically adds an iicbus instance for every downstream bus supported by the chip. There is currently no way to indicate used versus unused downstream channels.

iicbus(4), iicmux(4),

The ltc430x driver first appeared in FreeBSD 13.0.
September 2, 2020 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 4 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.