pub/scm/utils/i2c-tools/i2c-tools.git  about / heads / tags
I2C and SMBus user-space tools
$ git log --pretty=format:'%h %s (%cs)%d'
a0e5865 i2cdetect: only use "newer" I2C_FUNC_* flags if they exist (2023-02-23)
	(HEAD -> master)
595d526 i2cdetect: display more functionality bits with '-F' (2022-12-05)
051304c i2c-tools: Implement and document option -h (2022-05-24)
b295772 i2c-tools: Use getopt (2022-05-24)
ccf4c4c i2cget: add mode character for SMBus block read to manpage (2022-03-30)
cf3541b py-smbus: Use setuptools instead of distutils (2022-01-19)
c94a3a2 i2cdetect: fix a typo argment -> argument (2022-01-03)
a460931 py-smbus/Module.mk: Install with PREFIX defined (2021-10-04)
eacb6a4 Makefile: Drop KERNELVERSION (2021-08-01)
4016b7f i2cdump: Remove support for SMBus block mode (2021-07-22)
...

$ git cat-file blob HEAD:README
I2C TOOLS FOR LINUX
===================

This package contains an heterogeneous set of I2C tools for the Linux kernel
as well as an I2C library. The tools were originally part of the lm-sensors
project but were finally split into their own package for convenience. The
library is used by some of the tools, but can also be used by third-party
applications. The tools and library compile, run and have been tested on
GNU/Linux.

The latest version of the code can be downloaded from:
  https://i2c.wiki.kernel.org/index.php/I2C_Tools


CONTENTS
--------

The various tools included in this package are grouped by category, each
category has its own sub-directory:

* eeprom
  Perl scripts for decoding different types of EEPROMs (SPD, EDID...) These
  scripts rely on the eeprom kernel drivers ("at24" and "ee1004", "eeprom" on
  older kernels). They are installed by default.

* eeprog
  Tools for writing to EEPROMs. These tools rely on the "i2c-dev" kernel
  driver. They are not installed by default.

* include
  C/C++ header files for I2C and SMBus access over i2c-dev. Installed by
  default.

* lib
  The I2C library, used by eeprog, py-smbus and tools. Installed by
  default.

* py-smbus
  Python wrapper for SMBus access over i2c-dev. Not installed by default.

* stub
  A helper script to use with the i2c-stub kernel driver. Installed by
  default.

* tools
  I2C device detection and register dump tools. These tools rely on the
  "i2c-dev" kernel driver. They are installed by default.


LICENSE
-------

Check the documentation of individual tools for licensing information.
The library is released under the LGPL version 2.1 or later, while most
tools are released under the GPL version 2 or later, but there are a few
exceptions.


INSTALLATION
------------

There's no configure script, so simply run "make" to build the library and
tools, and "make install" to install them. You also can use "make uninstall"
to remove all the files you installed. By default, files are installed in
/usr/local but you can change the location by editing the Makefile file and
setting PREFIX to wherever you want (or setting its value on the make
command line). You may change the C compiler and the compilation flags as
well, and also decide which flavors of the library will be built.

In cases where you need to compile only the static or dynamic variant of
the library, you can use BUILD_STATIC_LIB and BUILD_DYNAMIC_LIB at compile
time:
  $ make BUILD_DYNAMIC_LIB=1 BUILD_STATIC_LIB=0
If you disable both, the compilation will abort with an error message.

If you want to compile the tools against the static version of the library
you can do:
  $ make USE_STATIC_LIB=1

Optionally, you can run "make strip" prior to "make install" if you want
smaller binaries. However, be aware that this will prevent any further
attempt to debug the library and tools.

If you wish to include sub-directories that are not enabled by default, then
just set them via the EXTRA make variable. For example, to build py-smbus,
do:
  $ make EXTRA="py-smbus"


DOCUMENTATION
-------------

The main tools have manual pages, which are installed by "make install".
See these manual pages for command line interface details and tool specific
information.

The other tools come with simple text documentation, which isn't installed.


QUESTIONS AND BUG REPORTS
-------------------------

Please post your questions and bug reports to the linux-i2c mailing list:
  linux-i2c@vger.kernel.org
with Cc to the current maintainer:
  Jean Delvare <jdelvare@suse.de>
For additional information about this list, see:
  http://vger.kernel.org/vger-lists.html#linux-i2c

# heads (aka `branches'):
$ git for-each-ref --sort=-creatordate refs/heads \
	--format='%(HEAD) %(refname:short) %(subject) (%(creatordate:short))'
* master       i2cdetect: only use "newer" I2C_FUNC_* flags if they exist (2023-02-23)
  i2c-tools-3.1 tools: Don't build with -Winline (2020-09-11)

# tags:
$ git for-each-ref --sort=-creatordate refs/tags \
	--format='%(refname:short) %(subject) (%(creatordate:short))'
v4.3         Set version to 4.3 (2021-07-22) tar.gz
v4.2         Set version to 4.2 (2020-09-22) tar.gz
v4.1         Set version to 4.1 (2018-11-30) tar.gz
v4.0         Define an API version, migt be useful later (2017-10-30) tar.gz
v3.1.2       Set version to 3.1.2. (2016-06-23) tar.gz
v3.1.1       Set version to 3.1.1. (2014-02-20) tar.gz
v3.1.0       Set version to 3.1.0. (2011-12-04) tar.gz
v3.0.3       Set version to 3.0.3. (2010-12-12) tar.gz
v3.0.2       Set version to 3.0.2. (2008-11-29) tar.gz
v3.0.1       Set version to 3.0.1. (2008-04-04) tar.gz
...

# associated public inboxes:
# (number on the left is used for dev purposes)
         60 linux-i2c
         20 linux-renesas-soc
         15 lkml
          7 u-boot
          5 linux-mm
          5 stable
          4 linux-scsi
          4 linux-arm-kernel
          4 linux-sh
          3 linux-wireless
          3 qemu-devel
          3 linux-devicetree
          3 netdev
          3 xen-devel
          3 linux-input
          3 linux-btrfs
          3 linux-gpio
          3 linux-ext4
          3 dpdk-dev
          3 linux-ide
          3 linux-watchdog
          3 util-linux
          3 git
          3 linux-man
          3 dri-devel
          3 linux-arch
          3 linux-can
          3 linux-fbdev
          3 openembedded-core
          3 openembedded-devel
          3 poky
          3 lm-sensors
          2 linux-samsung-soc
          2 linux-mtd
          2 linux-riscv
          2 linux-nvme
          2 linux-xfs
          2 bpf
          2 linux-nfs
          2 linux-mediatek
          2 linux-crypto
          2 linux-acpi
          2 netfilter-devel
          2 linux-fsdevel
          2 linux-cifs
          2 linux-arm-msm
          2 linux-amlogic
          2 linux-erofs
          2 linux-nvdimm
          2 linux-iommu
          2 linux-media
          2 linux-mips
          2 fstests
          2 linux-pm
          2 linux-rtc
          2 alsa-devel
          2 kvmarm
          2 driverdev-devel
          2 linux-usb
          2 linux-kselftest
          2 selinux
          2 linux-clk
          2 linux-iio
          2 linux-rdma
          2 linux-security-module
          2 linux-pci
          2 linux-f2fs-devel
          2 linuxppc-dev
          2 kvm
          2 linux-modules
          2 linux-rt-users
          2 linux-bluetooth
          2 linux-serial
          2 linux-trace-devel
          2 backports
          2 linux-doc
          2 linux-mmc
          2 amd-gfx
          2 intel-gfx
          2 linux-api
          2 linux-omap
          2 linux-spi
          2 linux-sparse
          2 linux-tegra
          2 lttng-dev
          2 virtualization
          2 linux-kbuild
          2 containers
          2 linux-rockchip
          2 linux-raid
          2 openbmc
          2 dm-devel
          2 linux-cxl
          2 linux-perf-users
          2 nouveau
          2 linux-s390
          2 kernel-janitors
          2 mptcp
          2 linux-coco
          2 nvdimm
          2 buildroot
          2 iwd
          2 ltp
          2 yocto
          2 yocto-meta-freescale
          2 yocto-toaster
          2 yocto-meta-arm
          2 bitbake-devel
          2 linux-patches
          2 yocto-meta-virtualization
          2 yocto-meta-ti
          2 yocto-meta-arago
          2 outreachy
          2 damon
          2 openrisc
          2 intel-wired-lan
          2 kexec
          2 linux-trace-kernel
          2 intel-xe
          2 linux-um
          2 virtio-comment
          2 qemu-riscv
          2 cluster-devel
          2 grub-devel
          2 kvm-ppc
          2 linux-hexagon
          2 reiserfs-devel
          2 lvm-devel
          2 virtio-fs
          2 ../../../../../fuego
          2 ../../../../../igt-dev
          1 linux-fscrypt
          1 cocci
          1 linux-block
          1 live-patching
          1 linux-efi
          1 linux-integrity
          1 linux-edac
          1 linux-snps-arc
          1 linux-hwmon
          1 kernel-hardening
          1 dmaengine
          1 linux-next
          1 linux-parisc
          1 linux-leds
          1 kernelnewbies
          1 linux-sgx
          1 linux-hyperv
          1 workflows
          1 rcu
          1 selinux-refpolicy
          1 linux-m68k
          1 linux-i3c
          1 linux-spdx
          1 linux-wpan
          1 ksummit-discuss
          1 wireguard
          1 io-uring
          1 linux-kernel-mentees
          1 linux-csky
          1 tpmdd-devel
          1 linux-unionfs
          1 linux-firmware
          1 cip-dev
          1 linux-audit
          1 linux-remoteproc
          1 linux-dash
          1 linux-bcache
          1 mm-commits
          1 linux-pwm
          1 linux-fpga
          1 ceph-devel
          1 xdp-newbies
          1 platform-driver-x86
          1 phone-devel
          1 linux-hardening
          1 dash
          1 keyrings
          1 linux-sctp
          1 target-devel
          1 lustre-devel
          1 soc
          1 ocfs2-devel
          1 rust-for-linux
          1 ath10k
          1 ath11k
          1 linux-phy
          1 sparclinux
          1 linux-staging
          1 linux-sunxi
          1 regressions
          1 ksummit
          1 b43-dev
          1 linux-nfc
          1 linux-bcachefs
          1 ath9k-devel
          1 ntfs3
          1 llvm
          1 fio
          1 ell
          1 ofono
          1 yocto-docs
          1 chrome-platform
          1 ntb
          1 xenomai
          1 asahi
          1 loongarch
          1 imx
          1 ath12k
          1 b4-sent
          1 oe-linux-nfc
          1 oe-kbuild-all
          1 oe-chipsec
          1 batman
          1 virtio-dev
          1 v9fs
          1 ecryptfs
          1 linux-ia64
          1 kbd
          1 autofs
          1 cpufreq
          1 dccp
          1 cgroups
          1 devicetree-spec
          1 devicetree-compiler
          1 initramfs
          1 hail-devel
          1 kvm-ia64
          1 linux-8086
          1 kernel-testers
          1 linux-alpha
          1 linux-btrace
          1 linux-embedded
          1 linux-hams
          1 linux-hotplug
          1 linux-laptop
          1 linux-sound
          1 trinity
          1 linux-metag
          1 linux-x25
          1 linux-nilfs
          1 lvs-devel
          1 netfilter
          1 linux-oxnas
          1 u-boot-amlogic
          1 acpica-devel
          1 perfbook
          1 smatch
          1 ../../../../../wireless-regdb
          1 ../../../../../powertop

git clone https://yhbt.net/lore/pub/scm/utils/i2c-tools/i2c-tools.git