/openbmc/phosphor-hwmon/ |
H A D | README.iio.md | 1 # Phosphor OpenBMC and IIO devices 3 Phosphor OpenBMC currently does not provide an IIO device to DBUS bridge in the 4 same way that hwmon devices are bridged by the phosphor-hwmon-readd application. 6 Until a daemon can be written, the hwmon-iio bridge driver can be used with the 7 phosphor-hwmon-readd application, with the limitation that only a single iio 8 channel can be configured per iio-hwmon platform instance. Typically device 9 trees are setup with all the iio-channels under a single iio-hwmon platform 10 device - doing this will result in undefined behavior from phosphor-hwmon-readd. 12 If a true IIO bridging daemon becomes available in the future, 13 phosphor-hwmon-readd will not support hwmon-iio bridge devices in any capacity.
|
H A D | sysfs.cpp | 8 * http://www.apache.org/licenses/LICENSE-2.0 41 // with iio-hwmon nodes with a single sensor. Typically in findPhandleMatch() 42 // device trees are defined with all the iio sensors in a in findPhandleMatch() 43 // single iio-hwmon node so it would be nice to add support in findPhandleMatch() 47 // with multiple iio-hwmon nodes - one for each sensor. in findPhandleMatch() 50 ioChannelsPath /= "io-channels"; in findPhandleMatch() 87 // Follow the hwmon instance (/sys/class/hwmon/hwmon<N>) in findCalloutPath() 101 // See if the device is backed by the iio-hwmon driver. in findCalloutPath() 108 // Not backed by iio-hwmon. The device pointed to in findCalloutPath() 113 // Find the DT path to the iio-hwmon platform device. in findCalloutPath() [all …]
|
H A D | meson.build | 2 'phosphor-hwmon', 9 license: 'Apache-2.0', 15 conf.set_quoted('BUSNAME_PREFIX', get_option('busname-prefix')) 16 conf.set_quoted('SENSOR_ROOT', get_option('sensor-root')) 17 conf.set10('NEGATIVE_ERRNO_ON_FAIL', get_option('negative-errno-on-fail')) 18 conf.set10('UPDATE_FUNCTIONAL_ON_FAIL', get_option('update-functional-on-fail')) 42 dependency('phosphor-dbus-interfaces'), 43 dependency('phosphor-logging'), 52 'hwmon', 59 'hwmon.cpp', [all …]
|
/openbmc/linux/arch/arm/boot/dts/aspeed/ |
H A D | aspeed-bmc-opp-mowgli.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 2 /dts-v1/; 3 #include "aspeed-g5.dtsi" 4 #include <dt-bindings/gpio/aspeed-gpio.h> 5 #include <dt-bindings/leds/leds-pca955x.h> 9 compatible = "ibm,mowgli-bmc", "aspeed,ast2500"; 13 stdout-path = &uart5; 21 reserved-memory { 22 #address-cells = <1>; 23 #size-cells = <1>; [all …]
|
H A D | aspeed-bmc-arm-stardragon4800-rep2.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 2 /dts-v1/; 4 #include "aspeed-g5.dtsi" 5 #include <dt-bindings/gpio/aspeed-gpio.h> 9 compatible = "hxt,stardragon4800-rep2-bmc", "aspeed,ast2500"; 12 stdout-path = &uart5; 20 iio-hwmon { 21 compatible = "iio-hwmon"; 22 io-channels = <&adc 0>, <&adc 1>, <&adc 2>, <&adc 3>, 26 iio-hwmon-battery { [all …]
|
H A D | aspeed-bmc-opp-lanyang.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 3 /dts-v1/; 5 #include "aspeed-g5.dtsi" 6 #include <dt-bindings/gpio/aspeed-gpio.h> 10 compatible = "inventec,lanyang-bmc", "aspeed,ast2500"; 13 stdout-path = &uart5; 21 reserved-memory { 22 #address-cells = <1>; 23 #size-cells = <1>; 27 no-map; [all …]
|
H A D | aspeed-bmc-supermicro-x11spi.dts | 1 // SPDX-License-Identifier: GPL-2.0 4 /dts-v1/; 6 #include "aspeed-g5.dtsi" 10 compatible = "supermicro,x11spi-bmc", "aspeed,ast2500"; 13 stdout-path = &uart5; 21 reserved-memory { 22 #address-cells = <1>; 23 #size-cells = <1>; 27 no-map; 32 iio-hwmon { [all …]
|
H A D | aspeed-bmc-intel-s2600wf.dts | 1 // SPDX-License-Identifier: GPL-2.0 3 /dts-v1/; 5 #include "aspeed-g5.dtsi" 9 compatible = "intel,s2600wf-bmc", "aspeed,ast2500"; 12 stdout-path = &uart5; 20 reserved-memory { 21 #address-cells = <1>; 22 #size-cells = <1>; 26 no-map; 31 iio-hwmon { [all …]
|
H A D | aspeed-bmc-inspur-on5263m5.dts | 1 // SPDX-License-Identifier: GPL-2.0 3 /dts-v1/; 5 #include "aspeed-g5.dtsi" 6 #include <dt-bindings/gpio/aspeed-gpio.h> 10 compatible = "inspur,on5263m5-bmc", "aspeed,ast2500"; 13 stdout-path = &uart5; 21 reserved-memory { 22 #address-cells = <1>; 23 #size-cells = <1>; 27 no-map; [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/hwmon/ |
H A D | iio-hwmon.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/hwmon/iio-hwmon.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: ADC-attached Hardware Sensor 10 - Jonathan Cameron <jic23@kernel.org> 18 const: iio-hwmon 20 io-channels: 27 - compatible 28 - io-channels [all …]
|
/openbmc/openbmc-test-automation/openpower/ |
H A D | test_bmc_devicetree.robot | 77 gpio-fsi/name 86 gpio-fsi/compatible 90 [Documentation] Verify if the BMC GPIO-FSI name property is populated. 95 gpio-fsi/name 99 [Documentation] Verify if the BMC GPIO-FSI compatible property is populated. 104 gpio-fsi/compatible 108 [Documentation] Verify if the BMC GPIO-keys name property is 114 gpio-keys/name 118 [Documentation] Verify if the BMC GPIO-keys compatible property is 124 gpio-keys/compatible [all …]
|
/openbmc/linux/drivers/hwmon/ |
H A D | iio_hwmon.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 /* Hwmon client for industrial I/O devices 15 #include <linux/hwmon.h> 16 #include <linux/hwmon-sysfs.h> 17 #include <linux/iio/consumer.h> 18 #include <linux/iio/types.h> 21 * struct iio_hwmon_state - device instance state 22 * @channels: filled with array of channels from iio 37 * Assumes that IIO and hwmon operate in the same base units. 49 struct iio_channel *chan = &state->channels[sattr->index]; in iio_hwmon_read_val() [all …]
|
/openbmc/linux/arch/arm64/boot/dts/xilinx/ |
H A D | zynqmp-zcu106-revA.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * (C) Copyright 2016 - 2022, Xilinx, Inc. 6 * (C) Copyright 2022 - 2023, Advanced Micro Devices, Inc. 11 /dts-v1/; 14 #include "zynqmp-clk-ccf.dtsi" 15 #include <dt-bindings/input/input.h> 16 #include <dt-bindings/gpio/gpio.h> 17 #include <dt-bindings/pinctrl/pinctrl-zynqmp.h> 18 #include <dt-bindings/phy/phy.h> 22 compatible = "xlnx,zynqmp-zcu106-revA", "xlnx,zynqmp-zcu106", "xlnx,zynqmp"; [all …]
|
H A D | zynqmp-zcu102-revA.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * (C) Copyright 2015 - 2022, Xilinx, Inc. 6 * (C) Copyright 2022 - 2023, Advanced Micro Devices, Inc. 11 /dts-v1/; 14 #include "zynqmp-clk-ccf.dtsi" 15 #include <dt-bindings/input/input.h> 16 #include <dt-bindings/gpio/gpio.h> 17 #include <dt-bindings/pinctrl/pinctrl-zynqmp.h> 18 #include <dt-bindings/phy/phy.h> 22 compatible = "xlnx,zynqmp-zcu102-revA", "xlnx,zynqmp-zcu102", "xlnx,zynqmp"; [all …]
|
H A D | zynqmp-zcu111-revA.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * (C) Copyright 2017 - 2022, Xilinx, Inc. 6 * (C) Copyright 2022 - 2023, Advanced Micro Devices, Inc. 11 /dts-v1/; 14 #include "zynqmp-clk-ccf.dtsi" 15 #include <dt-bindings/input/input.h> 16 #include <dt-bindings/gpio/gpio.h> 17 #include <dt-bindings/pinctrl/pinctrl-zynqmp.h> 18 #include <dt-bindings/phy/phy.h> 22 compatible = "xlnx,zynqmp-zcu111-revA", "xlnx,zynqmp-zcu111", "xlnx,zynqmp"; [all …]
|
/openbmc/dbus-sensors/ |
H A D | README.md | 1 # dbus-sensors 3 dbus-sensors is a collection of sensor applications that provide the 5 from hwmon, d-bus, or direct driver access to provide readings. Some advance 6 non-sensor features such as fan presence, pwm control, and automatic cpu 11 - runtime re-configurable from d-bus (entity-manager or the like) 13 - isolated: each sensor type is isolated into its own daemon, so a bug in one 17 - async single-threaded: uses sdbusplus/asio bindings 19 - multiple data inputs: hwmon, d-bus, direct driver access 23 A typical dbus-sensors object support the following dbus interfaces: 38 [here](https://github.com/openbmc/phosphor-dbus-interfaces/tree/master/yaml/xyz/openbmc_project/Sen… [all …]
|
/openbmc/openbmc/meta-ingrasys/meta-zaius/recipes-phosphor/sensors/ |
H A D | phosphor-hwmon_%.bbappend | 4 ZAIUS_CHIPS += " bus@1e78a000/i2c@300/pca9541a@70/i2c-arb/hotswap@54" 5 ZAIUS_CHIPS += " pwm-tacho-controller@1e786000" 6 ZAIUS_CHIPS += " bus@1e78a000/i2c@300/power-brick@30" 7 ZAIUS_CHIPS += " bus@1e78a000/i2c@300/power-brick@6a" 21 ZAIUS_ITEMS += "iio-hwmon.conf iio-hwmon-battery.conf" 28 00--00--00--06/sbefifo1-dev0/occ-hwmon.1 \ 29 00--00--00--0a/fsi1/slave@01--00/01--01--00--06/sbefifo2-dev0/occ-hwmon.2 \ 31 ZAIUS_OCCSFMT = "devices/platform/gpio-fsi/fsi0/slave@00--00/{0}.conf" 34 ENVS = "obmc/hwmon/{0}"
|
/openbmc/openbmc/meta-quanta/meta-q71l/recipes-phosphor/sensors/ |
H A D | phosphor-hwmon_%.bbappend | 1 inherit obmc-phosphor-utils 3 FILESEXTRAPATHS:prepend:quanta-q71l := "${THISDIR}/${PN}:" 7 Q71L_PWM = "pwm-tacho-controller@1e786000" 16 Q71L_ITEMS += "iio-hwmon.conf" 17 Q71L_ITEMS += "iio-hwmon-battery.conf" 20 Q71L_PSUBASE = "ahb/apb@1e780000/bus@1e78a000/i2c@300/i2c-switch@70/i2c@{0}.conf" 23 ENVS = "obmc/hwmon/{0}" 24 SYSTEMD_ENVIRONMENT_FILE:${PN}:append:quanta-q71l := " ${@compose_list(d, 'ENVS', 'Q71L_ITEMS')}" 26 EXTRA_OEMESON:append:quanta-q71l = " -Dnegative-errno-on-fail=true"
|
/openbmc/linux/Documentation/driver-api/iio/ |
H A D | intro.rst | 7 The main purpose of the Industrial I/O subsystem (IIO) is to provide support 9 analog-to-digital conversion (ADC) or digital-to-analog conversion (DAC) 10 or both. The aim is to fill the gap between the somewhat similar hwmon and 11 :doc:`input <../input>` subsystems. Hwmon is directed at low sample rate 15 In some cases there is considerable overlap between these and IIO.
|
/openbmc/openbmc/meta-yadro/meta-nicole/recipes-phosphor/sensors/ |
H A D | phosphor-hwmon_%.bbappend | 3 EXTRA_OEMESON:append = " -Dnegative-errno-on-fail=true" 5 ITEMS = "iio-hwmon-battery.conf" 8 00--00--00--06/sbefifo1-dev0/occ-hwmon.1 \ 9 00--00--00--0a/fsi-master/fsi1/slave@01--00/01--01--00--06/sbefifo2-dev0/occ-hwmon.2 \ 12 OCCSFMT = "devices/platform/gpio-fsi/fsi-master/fsi0/slave@00--00/{0}.conf" 15 ENVS = "obmc/hwmon/{0}"
|
/openbmc/openbmc/meta-ibm/meta-romulus/recipes-phosphor/sensors/ |
H A D | phosphor-hwmon_%.bbappend | 3 EXTRA_OEMESON:append:romulus = " -Dnegative-errno-on-fail=true" 7 pwm-tacho-controller@1e786000 \ 13 ITEMS += "iio-hwmon-battery.conf" 16 00--00--00--06/sbefifo1-dev0/occ-hwmon.1 \ 17 00--00--00--0a/fsi1/slave@01--00/01--01--00--06/sbefifo2-dev0/occ-hwmon.2 \ 20 OCCSFMT = "devices/platform/gpio-fsi/fsi0/slave@00--00/{0}.conf" 23 ENVS = "obmc/hwmon/{0}"
|
/openbmc/linux/drivers/power/supply/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 20 prompt "Expose power supply sensors as hwmon device" 21 depends on HWMON=y || HWMON=POWER_SUPPLY 26 exposed as a hwmon device. 29 have hwmon sysfs interface too. 39 tristate "Generic battery support using IIO" 40 depends on IIO 43 which uses IIO framework to read adc. 104 tristate "Active-semi ACT8945A charger driver" 108 Active-semi ActivePath ACT8945A charger. [all …]
|
/openbmc/docs/designs/ |
H A D | voltage-regulator-configuration.md | 8 Created: 2019-07-13 13 voltage, over-current limit, and pgood thresholds. The configuration is often 17 new application is needed to configure regulators. It should be data-driven to 18 support a variety of regulator types and to avoid hard-coded logic. 24 Hardware engineers must specify many low-level configuration values for a 25 regulator. Some simple examples include output voltage, over-current limit, and 33 non-volatile memory on the regulator. This provides the hardware/power-on 39 - New information found during hardware testing. For example, downstream 41 - Hardware workarounds. Problems in the regulator hardware or related hardware 47 - Improve manufacturing yields. Sometimes regulator configuration values must be [all …]
|
/openbmc/openbmc/meta-quanta/meta-gbs/recipes-phosphor/sensors/ |
H A D | phosphor-hwmon_%.bbappend | 7 i2c@85000/i2c-switch@71/i2c@0/max31725@54 \ 8 i2c@85000/i2c-switch@71/i2c@1/max31725@55 \ 9 i2c@85000/i2c-switch@71/i2c@2/max31725@5d \ 11 i2c@89000/i2c-switch@71/i2c@0/vrm@60 \ 12 i2c@89000/i2c-switch@71/i2c@1/vrm@61 \ 13 i2c@89000/i2c-switch@71/i2c@2/vrm@63 \ 14 i2c@89000/i2c-switch@71/i2c@3/vrm@45 \ 22 GBS_ITEMS:append:gbs = " iio-hwmon-battery.conf" 24 ENVS = "obmc/hwmon/{0}" 28 FITEMS = "pwm-fan-controller@103000.conf" [all …]
|
/openbmc/linux/ |
H A D | MAINTAINERS | 5 ---------- [all...] |