Name Date Size #Lines LOC

..Today-

msl/H08-Dec-2022-10573

subprojects/H29-Mar-2024-3626

test/H30-Nov-2023-648466

tools/H06-May-2021-9550

.clang-formatH A D21-Oct-20233.6 KiB136134

.gitignoreH A D06-May-202125 32

.lcovrcH A D07-Mar-202180 43

.shellcheckH A D14-Apr-20210

70-hwmon.rulesH A D06-May-2021182 32

70-iio.rulesH A D06-May-2021178 32

LICENSEH A D07-Mar-202111.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 D11-May-20231.5 KiB5234

average.hppH A D11-May-20232.5 KiB7222

env.cppH A D07-Mar-2021855 3511

env.hppH A D07-Mar-20213 KiB12459

fan_pwm.cppH A D15-Feb-20241.4 KiB5541

fan_pwm.hppH A D25-Jul-20221.6 KiB6229

fan_speed.cppH A D15-Feb-20242.6 KiB9071

fan_speed.hppH A D25-Jul-20221.9 KiB6930

gpio_handle.cppH A D11-May-20231.5 KiB5746

gpio_handle.hppH A D11-May-2023496 229

hwmon.cppH A D07-Mar-2021497 2921

hwmon.hppH A D07-Mar-20213 KiB10375

hwmonio.cppH A D11-May-20235.9 KiB226129

hwmonio.hppH A D07-Mar-20214.4 KiB14057

interface.hppH A D01-Dec-20232 KiB5647

mainloop.cppH A D15-Feb-202425.2 KiB705506

mainloop.hppH A D01-Dec-20235.1 KiB17175

meson.buildH A D15-Feb-20243.2 KiB131113

meson.optionsH A D16-Aug-2023966 3532

phosphor-hwmon.confH A D06-May-2021257 87

readd.cppH A D11-May-20232.5 KiB9357

sensor.cppH A D15-Feb-202412.3 KiB381281

sensor.hppH A D01-Dec-20237.8 KiB25187

sensorset.cppH A D07-Mar-20211.6 KiB5527

sensorset.hppH A D07-Mar-20212 KiB7529

start_hwmon.sh.inH A D11-Aug-2023962 4232

sysfs.cppH A D15-Feb-20246.5 KiB245165

sysfs.hppH A D06-May-20212.4 KiB7922

targets.hppH A D15-Feb-20245.1 KiB178130

thresholds.hppH A D25-Jul-20226.2 KiB180138

types.hppH A D25-Jul-2022399 1612

util.hppH A D07-Mar-2021674 3621

xyz.openbmc_project.Hwmon@.serviceH A D11-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