History log of /openbmc/openbmc-tools/i2c/ (Results 1 – 1 of 1)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
2302fa4121-Mar-2024 Jian Zhang <zhangjian.3032@bytedance.com>

i2c: add tree.py to parse i2c bus info to tree

The i2c topo is so complex if there are many i2c buses and muxes,
it's hard to understand the i2c bus info from the output of
"i2cdetect -l". This patc

i2c: add tree.py to parse i2c bus info to tree

The i2c topo is so complex if there are many i2c buses and muxes,
it's hard to understand the i2c bus info from the output of
"i2cdetect -l". This patch adds a python script to parse the i2c bus
info to a tree, which is easy to understand.

ps: maybe add a tree view to the i2ctools, but it's not easy to me.

Example:
```
ssh user@<ip> "i2cdetect -l" | python tree.py
root
├── i2c-4
│ ├── i2c-16
│ │ ├── i2c-129
│ │ ├── i2c-130
│ │ ├── i2c-131
│ │ └── i2c-132
│ ├── i2c-17
│ │ ├── i2c-113
│ │ ├── i2c-114
│ │ ├── i2c-115
│ │ ├── i2c-116
│ │ ├── i2c-117
│ │ ├── i2c-118
│ │ ├── i2c-119
│ │ └── i2c-120
│ ├── i2c-18
│ │ ├── i2c-105
│ │ ├── i2c-106
│ │ ├── i2c-107
│ │ ├── i2c-108
....
```

Change-Id: Ia434b093c7ccff80ea52ad7416bcda609890cecd
Signed-off-by: Jian Zhang <zhangjian.3032@bytedance.com>

show more ...


/openbmc/openbmc-tools/.linter-ignore
/openbmc/openbmc-tools/.shellcheck-ignore
/openbmc/openbmc-tools/LICENSE
/openbmc/openbmc-tools/OWNERS
/openbmc/openbmc-tools/README.md
/openbmc/openbmc-tools/adcapp/LICENSE
/openbmc/openbmc-tools/adcapp/Makefile.am
/openbmc/openbmc-tools/adcapp/README
/openbmc/openbmc-tools/adcapp/configure.ac
/openbmc/openbmc-tools/adcapp/src/EINTR_wrappers.c
/openbmc/openbmc-tools/adcapp/src/EINTR_wrappers.h
/openbmc/openbmc-tools/adcapp/src/Makefile.am
/openbmc/openbmc-tools/adcapp/src/adc.h
/openbmc/openbmc-tools/adcapp/src/adcapp.c
/openbmc/openbmc-tools/adcapp/src/adcifc.c
/openbmc/openbmc-tools/adcapp/src/adcifc.h
/openbmc/openbmc-tools/altitude/altitude
/openbmc/openbmc-tools/autojson/autojson.py
/openbmc/openbmc-tools/bbdbg/bbdbg
/openbmc/openbmc-tools/bi2cp/README.md
/openbmc/openbmc-tools/bi2cp/bi2cp
/openbmc/openbmc-tools/bi2cp/requirements.txt
/openbmc/openbmc-tools/cla-signers/README.md
/openbmc/openbmc-tools/cla-signers/update-cla.sh
/openbmc/openbmc-tools/dbus-pcap/README.md
/openbmc/openbmc-tools/dbus-pcap/dbus-pcap
/openbmc/openbmc-tools/dbus-pcap/requirements.txt
/openbmc/openbmc-tools/dbus-vis/.clang-format
/openbmc/openbmc-tools/dbus-vis/.gitignore
/openbmc/openbmc-tools/dbus-vis/README.md
/openbmc/openbmc-tools/dbus-vis/boost_handler_timeline_vis.js
/openbmc/openbmc-tools/dbus-vis/dbus_pcap_loader.js
/openbmc/openbmc-tools/dbus-vis/dbus_timeline_vis.js
/openbmc/openbmc-tools/dbus-vis/dbus_vis.css
/openbmc/openbmc-tools/dbus-vis/index.html
/openbmc/openbmc-tools/dbus-vis/info_panel.js
/openbmc/openbmc-tools/dbus-vis/initialization.js
/openbmc/openbmc-tools/dbus-vis/ipmi_capture.js
/openbmc/openbmc-tools/dbus-vis/ipmi_parse.js
/openbmc/openbmc-tools/dbus-vis/ipmi_timeline_vis.js
/openbmc/openbmc-tools/dbus-vis/linecount.py
/openbmc/openbmc-tools/dbus-vis/main.js
/openbmc/openbmc-tools/dbus-vis/package.json
/openbmc/openbmc-tools/dbus-vis/renderer.js
/openbmc/openbmc-tools/dbus-vis/scrnshot.png
/openbmc/openbmc-tools/dbus-vis/timeline_view.js
/openbmc/openbmc-tools/dbusView/dbusView.py
/openbmc/openbmc-tools/dbus_sensor_tester/dbus_sensor_tester.bb
/openbmc/openbmc-tools/dbus_sensor_tester/main.cpp
/openbmc/openbmc-tools/dbus_sensor_tester/meson.build
/openbmc/openbmc-tools/dbus_sensor_tester/subprojects/boost.wrap
/openbmc/openbmc-tools/dbus_sensor_tester/subprojects/cli11.wrap
/openbmc/openbmc-tools/dbus_sensor_tester/subprojects/sdbusplus.wrap
/openbmc/openbmc-tools/ddconvnotrunc/ddconvnotrunc
/openbmc/openbmc-tools/expectedJsonChecker/LICENSE
/openbmc/openbmc-tools/expectedJsonChecker/README.md
/openbmc/openbmc-tools/format-yaml/LICENSE
/openbmc/openbmc-tools/format-yaml/format-yaml.py
requirements.txt
tree.py
/openbmc/openbmc-tools/ipkdbg/Makefile
/openbmc/openbmc-tools/ipkdbg/README.md
/openbmc/openbmc-tools/ipkdbg/build-opkg
/openbmc/openbmc-tools/ipkdbg/ipkdbg.in
/openbmc/openbmc-tools/netboot/README.md
/openbmc/openbmc-tools/netboot/netboot
/openbmc/openbmc-tools/openbmc-autobump/openbmc-autobump.py
/openbmc/openbmc-tools/openbmctool/README.md
/openbmc/openbmc-tools/openbmctool/build-scripts/Makefile
/openbmc/openbmc-tools/openbmctool/build-scripts/control
/openbmc/openbmc-tools/openbmctool/build-scripts/openbmctool-rhel7.spec
/openbmc/openbmc-tools/openbmctool/build-scripts/openbmctool-rhel8.spec
/openbmc/openbmc-tools/openbmctool/openbmctool.py
/openbmc/openbmc-tools/openbmctool/policyTable.json
/openbmc/openbmc-tools/overlay/overlay
/openbmc/openbmc-tools/pldm/pdrdump.sh
/openbmc/openbmc-tools/prepare-emmc-qemu/prepare-emmc-qemu
/openbmc/openbmc-tools/pretty-journal/pretty-journal.py
/openbmc/openbmc-tools/pwmtachtool/LICENSE
/openbmc/openbmc-tools/pwmtachtool/Makefile.am
/openbmc/openbmc-tools/pwmtachtool/README
/openbmc/openbmc-tools/pwmtachtool/configure.ac
/openbmc/openbmc-tools/pwmtachtool/src/EINTR_wrappers.c
/openbmc/openbmc-tools/pwmtachtool/src/EINTR_wrappers.h
/openbmc/openbmc-tools/pwmtachtool/src/Makefile.am
/openbmc/openbmc-tools/pwmtachtool/src/libpwmtach.h
/openbmc/openbmc-tools/pwmtachtool/src/pwmtach.c
/openbmc/openbmc-tools/pwmtachtool/src/pwmtach_ioctl.h
/openbmc/openbmc-tools/pwmtachtool/src/pwmtachtool.c
/openbmc/openbmc-tools/reboot-ping-pong/requirements.txt
/openbmc/openbmc-tools/reboot-ping-pong/rpp
/openbmc/openbmc-tools/reboot/petitboot.exp
/openbmc/openbmc-tools/reboot/reboot.sh
/openbmc/openbmc-tools/rootfs_size/results.txt
/openbmc/openbmc-tools/rootfs_size/rootfs_size.py
/openbmc/openbmc-tools/sensor_yaml_config/LICENSE
/openbmc/openbmc-tools/sensor_yaml_config/README.md
/openbmc/openbmc-tools/sensor_yaml_config/sensor_map.yaml
/openbmc/openbmc-tools/sensor_yaml_config/sensor_yaml_config.py
/openbmc/openbmc-tools/tof-voters/.gitignore
/openbmc/openbmc-tools/tof-voters/README.md
/openbmc/openbmc-tools/tof-voters/libvoters/__init__.py
/openbmc/openbmc-tools/tof-voters/libvoters/acceptable.py
/openbmc/openbmc-tools/tof-voters/libvoters/entry_point.py
/openbmc/openbmc-tools/tof-voters/libvoters/subcmd/__init__.py
/openbmc/openbmc-tools/tof-voters/libvoters/subcmd/analyze-commits.py
/openbmc/openbmc-tools/tof-voters/libvoters/subcmd/analyze-reviews.py
/openbmc/openbmc-tools/tof-voters/libvoters/subcmd/dump-gerrit.py
/openbmc/openbmc-tools/tof-voters/libvoters/subcmd/report.py
/openbmc/openbmc-tools/tof-voters/libvoters/time.py
/openbmc/openbmc-tools/tof-voters/voters
/openbmc/openbmc-tools/tracing/README.md
/openbmc/openbmc-tools/tracing/trace
/openbmc/openbmc-tools/witherspoon-debug/README.md
/openbmc/openbmc-tools/witherspoon-debug/debug
/openbmc/openbmc-tools/witherspoon-debug/libncurses.so.5.9
/openbmc/openbmc-tools/witherspoon-debug/libncursesw.so.5.9