Name Date Size #Lines LOC

..--

msl/H--10573

subprojects/H--3626

test/H--645466

tools/H--8544

.clang-formatH A D01-Feb-20253.7 KiB137135

.gitignoreH A D05-May-202125 32

.lcovrcH A D06-Mar-201980 43

.shellcheckHD13-Apr-20210

70-hwmon.rulesH A D03-Feb-2021182 32

70-iio.rulesH A D03-Feb-2021178 32

LICENSEH A D20-Oct-201511.1 KiB203169

OWNERSH A D22-Jul-20221.6 KiB4944

README.iio.mdH A D08-Dec-2022732 1410

README.mdH A D08-Dec-2022953 2818

average.cppH A D01-Feb-20251.4 KiB5133

average.hppH A D01-Feb-20252.4 KiB7121

env.cppH A D16-Dec-2024799 3311

env.hppH A D21-Aug-20193 KiB12459

fan_pwm.cppH A D16-Aug-20241.3 KiB5541

fan_pwm.hppH A D22-Jul-20221.6 KiB6229

fan_speed.cppH A D20-Nov-20242.4 KiB8366

fan_speed.hppH A D22-Jul-20221.9 KiB6930

gpio_handle.cppH A D01-Feb-20251.5 KiB5746

gpio_handle.hppH A D01-Feb-2025497 229

hwmon.cppH A D04-Sep-2018497 2921

hwmon.hppH A D16-Dec-20242.9 KiB10175

hwmonio.cppH A D10-May-20235.9 KiB226129

hwmonio.hppH A D16-Dec-20244.4 KiB13857

interface.hppH A D16-Dec-20241.9 KiB5447

mainloop.cppH A D01-Feb-202524.9 KiB703505

mainloop.hppH A D01-Feb-20255.1 KiB17175

meson.buildH A D01-Feb-20253.3 KiB137118

meson.optionsH A D01-Feb-20251.1 KiB4440

phosphor-hwmon.confH A D03-Feb-2021257 87

readd.cppH A D16-Dec-20242.5 KiB9157

sensor.cppH A D01-Feb-202512 KiB379279

sensor.hppH A D01-Feb-20257.6 KiB24985

sensorset.cppH A D16-Dec-20241.5 KiB5327

sensorset.hppH A D16-Dec-20242 KiB7329

start_hwmon.sh.inH A D22-Jul-2024977 4232

sysfs.cppH A D16-Dec-20246.5 KiB243165

sysfs.hppH A D01-Feb-20252.3 KiB7621

targets.hppH A D16-Aug-20245 KiB178130

thresholds.hppH A D16-Dec-20246.2 KiB178138

types.hppH A D22-Jul-2022399 1612

util.hppH A D16-Dec-2024619 3521

xyz.openbmc_project.Hwmon@.serviceH A D07-Apr-2022323 119

README.iio.md

1# Phosphor OpenBMC and IIO devices
2
3Phosphor OpenBMC currently does not provide an IIO device to DBUS bridge in the
4same way that hwmon devices are bridged by the phosphor-hwmon-readd application.
5
6Until a daemon can be written, the hwmon-iio bridge driver can be used with the
7phosphor-hwmon-readd application, with the limitation that only a single iio
8channel can be configured per iio-hwmon platform instance. Typically device
9trees are setup with all the iio-channels under a single iio-hwmon platform
10device - doing this will result in undefined behavior from phosphor-hwmon-readd.
11
12If a true IIO bridging daemon becomes available in the future,
13phosphor-hwmon-readd will not support hwmon-iio bridge devices in any capacity.
14

README.md

1# phosphor-hwmon
2
3Exposes generic hwmon entries as DBus objects. More information can be found at
4[Sensor Architecture](https://github.com/openbmc/docs/blob/master/architecture/sensor-architecture.md)
5
6## To Build
7
8To build this package, do the following steps:
9
101. meson setup build
112. ninja -C build
12
13To clean the repository run `rm -rf build`.
14
15## D-Bus bus names
16
17To enable the use of Linux features like cgroups prioritization and udev/systemd
18control, one instance of phosphor-hwmon is intended to be run per hwmon sysfs
19class instance.
20
21This requires an algorithm for selecting a stable, well-known D-Bus busname.
22
23The algorithm is `<PREFIX>-<ID>.Hwmon<N>` where PREFIX is a meson configurable
24prefix (`BUSNAME_PREFIX=xyz.openbmc_project` by default), ID is either a
25`std::hash` of the `/sys/devices` path backing the hwmon class instance or
26provided suffix value from the command line, and N is the implemented
27phosphor-hwmon D-Bus API version.
28