Home
last modified time | relevance | path

Searched full:hwmon (Results 1 – 25 of 739) sorted by relevance

12345678910>>...30

/linux-6.12.1/Documentation/ABI/stable/
Dsysfs-driver-mlxreg-io1 What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/asic_health
10 What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/cpld1_version
11 What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/cpld2_version
20 What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/fan_dir
30 What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/cpld3_version
39 What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/jtag_enable
48 What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/select_iio
59 What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/psu1_on
60 /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/psu2_on
61 /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/pwr_cycle
[all …]
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/
Dhwmon.c4 #include <linux/hwmon.h>
10 #include "hwmon.h"
18 /* All temperatures retrieved in units of 0.125C. hwmon framework expect
86 struct mlx5_hwmon *hwmon = dev_get_drvdata(dev); in mlx5_hwmon_read() local
93 err = mlx5_hwmon_query_mtmp(hwmon->mdev, hwmon->temp_channel_desc[channel].sensor_index, in mlx5_hwmon_read()
116 struct mlx5_hwmon *hwmon = dev_get_drvdata(dev); in mlx5_hwmon_write() local
121 return mlx5_hwmon_reset_max_temp(hwmon->mdev, in mlx5_hwmon_write()
122 hwmon->temp_channel_desc[channel].sensor_index); in mlx5_hwmon_write()
147 struct mlx5_hwmon *hwmon = dev_get_drvdata(dev); in mlx5_hwmon_read_string() local
152 *str = (const char *)hwmon->temp_channel_desc[channel].sensor_name; in mlx5_hwmon_read_string()
[all …]
/linux-6.12.1/drivers/gpu/drm/xe/
Dxe_hwmon.c6 #include <linux/hwmon-sysfs.h>
7 #include <linux/hwmon.h>
43 * SF_* - scale factors for particular quantities according to hwmon spec.
62 * struct xe_hwmon - xe hwmon data structure
65 /** @hwmon_dev: hwmon device for xe */
81 static struct xe_reg xe_hwmon_get_reg(struct xe_hwmon *hwmon, enum xe_hwmon_reg hwmon_reg, in xe_hwmon_get_reg() argument
84 struct xe_device *xe = hwmon->xe; in xe_hwmon_get_reg()
132 drm_warn(&xe->drm, "Unknown xe hwmon reg id: %d\n", hwmon_reg); in xe_hwmon_get_reg()
147 static void xe_hwmon_power_max_read(struct xe_hwmon *hwmon, int channel, long *value) in xe_hwmon_power_max_read() argument
150 struct xe_device *xe = hwmon->xe; in xe_hwmon_power_max_read()
[all …]
/linux-6.12.1/Documentation/ABI/testing/
Dsysfs-class-hwmon1 What: /sys/class/hwmon/hwmonX/name
12 What: /sys/class/hwmon/hwmonX/label
20 What: /sys/class/hwmon/hwmonX/update_interval
30 What: /sys/class/hwmon/hwmonX/inY_min
38 What: /sys/class/hwmon/hwmonX/inY_lcrit
50 What: /sys/class/hwmon/hwmonX/inY_max
58 What: /sys/class/hwmon/hwmonX/inY_crit
70 What: /sys/class/hwmon/hwmonX/inY_input
92 What: /sys/class/hwmon/hwmonX/inY_average
100 What: /sys/class/hwmon/hwmonX/inY_lowest
[all …]
Dsysfs-driver-intel-xe-hwmon1 What: /sys/bus/pci/drivers/xe/.../hwmon/hwmon<i>/power1_max
15 What: /sys/bus/pci/drivers/xe/.../hwmon/hwmon<i>/power1_rated_max
24 What: /sys/bus/pci/drivers/xe/.../hwmon/hwmon<i>/energy1_input
32 What: /sys/bus/pci/drivers/xe/.../hwmon/hwmon<i>/power1_max_interval
41 What: /sys/bus/pci/drivers/xe/.../hwmon/hwmon<i>/power2_max
55 What: /sys/bus/pci/drivers/xe/.../hwmon/hwmon<i>/power2_rated_max
63 What: /sys/bus/pci/drivers/xe/.../hwmon/hwmon<i>/power2_crit
76 What: /sys/bus/pci/drivers/xe/.../hwmon/hwmon<i>/curr2_crit
87 What: /sys/bus/pci/drivers/xe/.../hwmon/hwmon<i>/energy2_input
95 What: /sys/bus/pci/drivers/xe/.../hwmon/hwmon<i>/power2_max_interval
[all …]
Dsysfs-driver-intel-i915-hwmon1 What: /sys/bus/pci/drivers/i915/.../hwmon/hwmon<i>/in0_input
9 What: /sys/bus/pci/drivers/i915/.../hwmon/hwmon<i>/power1_max
23 What: /sys/bus/pci/drivers/i915/.../hwmon/hwmon<i>/power1_rated_max
31 What: /sys/bus/pci/drivers/i915/.../hwmon/hwmon<i>/power1_max_interval
40 What: /sys/bus/pci/drivers/i915/.../hwmon/hwmon<i>/power1_crit
53 What: /sys/bus/pci/drivers/i915/.../hwmon/hwmon<i>/curr1_crit
66 What: /sys/bus/pci/drivers/i915/.../hwmon/hwmon<i>/energy1_input
72 For i915 device level hwmon devices (name "i915") this
74 hwmon devices (name "i915_gtN") this reflects energy input
79 What: /sys/bus/pci/drivers/i915/.../hwmon/hwmon<i>/fan1_input
Dsysfs-platform-dfl-fme110 What: /sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/name
114 Description: Read-Only. Read this file to get the name of hwmon device, it
118 'dfl_fme_thermal' thermal hwmon device name
119 'dfl_fme_power' power hwmon device name
122 What: /sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/temp1_input
129 What: /sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/temp1_max
138 What: /sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/temp1_crit
146 What: /sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/temp1_emergency
155 What: /sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/temp1_max_alarm
162 What: /sys/bus/platform/devices/dfl-fme.0/hwmon/hwmonX/temp1_crit_alarm
[all …]
/linux-6.12.1/drivers/gpu/drm/i915/
Di915_hwmon.c6 #include <linux/hwmon.h>
7 #include <linux/hwmon-sysfs.h>
20 * SF_* - scale factors for particular quantities according to hwmon spec.
54 struct i915_hwmon *hwmon; member
79 struct i915_hwmon *hwmon = ddat->hwmon; in hwm_locked_with_pm_intel_uncore_rmw() local
84 mutex_lock(&hwmon->hwmon_lock); in hwm_locked_with_pm_intel_uncore_rmw()
88 mutex_unlock(&hwmon->hwmon_lock); in hwm_locked_with_pm_intel_uncore_rmw()
128 * the hwmon API. Using x86_64 128 bit arithmetic (see mul_u64_u32_shr()),
130 * hwmon->scl_shift_energy of 14 bits we have 57 (63 - 20 + 14) bits before
137 struct i915_hwmon *hwmon = ddat->hwmon; in hwm_energy() local
[all …]
/linux-6.12.1/drivers/hwmon/
Dda9052-hwmon.c3 * HWMON Driver for Dialog DA9052
11 #include <linux/hwmon.h>
12 #include <linux/hwmon-sysfs.h>
66 static inline int input_tsireg_to_mv(struct da9052_hwmon *hwmon, int value) in input_tsireg_to_mv() argument
68 return DIV_ROUND_CLOSEST(value * hwmon->tsiref_mv, 1023); in input_tsireg_to_mv()
87 struct da9052_hwmon *hwmon = dev_get_drvdata(dev); in da9052_vddout_show() local
90 mutex_lock(&hwmon->hwmon_lock); in da9052_vddout_show()
92 ret = da9052_enable_vddout_channel(hwmon->da9052); in da9052_vddout_show()
96 vdd = da9052_reg_read(hwmon->da9052, DA9052_VDD_RES_REG); in da9052_vddout_show()
102 ret = da9052_disable_vddout_channel(hwmon->da9052); in da9052_vddout_show()
[all …]
Dgsc-hwmon.c7 #include <linux/hwmon.h>
8 #include <linux/hwmon-sysfs.h>
57 struct gsc_hwmon_data *hwmon = dev_get_drvdata(dev); in pwm_auto_point_temp_show() local
59 u8 reg = hwmon->pdata->fan_base + (2 * attr->index); in pwm_auto_point_temp_show()
63 ret = regmap_bulk_read(hwmon->regmap, reg, regs, 2); in pwm_auto_point_temp_show()
75 struct gsc_hwmon_data *hwmon = dev_get_drvdata(dev); in pwm_auto_point_temp_store() local
77 u8 reg = hwmon->pdata->fan_base + (2 * attr->index); in pwm_auto_point_temp_store()
90 err = regmap_bulk_write(hwmon->regmap, reg, regs, 2); in pwm_auto_point_temp_store()
149 struct gsc_hwmon_data *hwmon = dev_get_drvdata(dev); in gsc_hwmon_read() local
157 ch = hwmon->in_ch[channel]; in gsc_hwmon_read()
[all …]
Dnsa320-hwmon.c3 * drivers/hwmon/nsa320-hwmon.c
17 #include <linux/hwmon.h>
18 #include <linux/hwmon-sysfs.h>
29 * The Zyxel hwmon MCU is a Holtek HT46R065 that is factory programmed
70 struct nsa320_hwmon *hwmon = dev_get_drvdata(dev); in nsa320_hwmon_update() local
72 mutex_lock(&hwmon->update_lock); in nsa320_hwmon_update()
74 mcu_data = hwmon->mcu_data; in nsa320_hwmon_update()
76 if (time_after(jiffies, hwmon->last_updated + HZ) || mcu_data == 0) { in nsa320_hwmon_update()
77 gpiod_set_value(hwmon->act, 1); in nsa320_hwmon_update()
82 gpiod_set_value(hwmon->clk, 0); in nsa320_hwmon_update()
[all …]
Dda9055-hwmon.c3 * HWMON Driver for Dialog DA9055
12 #include <linux/hwmon.h>
13 #include <linux/hwmon-sysfs.h>
55 static int da9055_adc_manual_read(struct da9055_hwmon *hwmon, in da9055_adc_manual_read() argument
62 struct da9055 *da9055 = hwmon->da9055; in da9055_adc_manual_read()
67 mutex_lock(&hwmon->irq_lock); in da9055_adc_manual_read()
77 if (!wait_for_completion_timeout(&hwmon->done, in da9055_adc_manual_read()
102 mutex_unlock(&hwmon->irq_lock); in da9055_adc_manual_read()
108 struct da9055_hwmon *hwmon = irq_data; in da9055_auxadc_irq() local
110 complete(&hwmon->done); in da9055_auxadc_irq()
[all …]
Dlan966x-hwmon.c5 #include <linux/hwmon.h>
80 struct lan966x_hwmon *hwmon = dev_get_drvdata(dev); in lan966x_hwmon_read_temp() local
84 ret = regmap_read(hwmon->regmap_pvt, PVT_SENSOR_STAT, &data); in lan966x_hwmon_read_temp()
99 struct lan966x_hwmon *hwmon = dev_get_drvdata(dev); in lan966x_hwmon_read_fan() local
103 ret = regmap_read(hwmon->regmap_fan, FAN_CNT, &data); in lan966x_hwmon_read_fan()
118 struct lan966x_hwmon *hwmon = dev_get_drvdata(dev); in lan966x_hwmon_read_pwm() local
122 ret = regmap_read(hwmon->regmap_fan, FAN_CFG, &data); in lan966x_hwmon_read_pwm()
133 struct lan966x_hwmon *hwmon = dev_get_drvdata(dev); in lan966x_hwmon_read_pwm_freq() local
138 ret = regmap_read(hwmon->regmap_fan, FAN_PWM_FREQ, &data); in lan966x_hwmon_read_pwm_freq()
147 tmp = DIV_ROUND_CLOSEST(hwmon->clk_rate, 256); in lan966x_hwmon_read_pwm_freq()
[all …]
Dsparx5-temp.c9 #include <linux/hwmon.h>
29 static void s5_temp_enable(struct s5_hwmon *hwmon) in s5_temp_enable() argument
31 u32 val = readl(hwmon->base + TEMP_CFG); in s5_temp_enable()
32 u32 clk = clk_get_rate(hwmon->clk) / USEC_PER_SEC; in s5_temp_enable()
38 writel(val, hwmon->base + TEMP_CFG); in s5_temp_enable()
44 struct s5_hwmon *hwmon = dev_get_drvdata(dev); in s5_read() local
50 stat = readl_relaxed(hwmon->base + TEMP_STAT); in s5_read()
61 * have millidegrees as specified by the hwmon sysfs in s5_read()
108 struct s5_hwmon *hwmon; in s5_temp_probe() local
110 hwmon = devm_kzalloc(&pdev->dev, sizeof(*hwmon), GFP_KERNEL); in s5_temp_probe()
[all …]
Das370-hwmon.c10 #include <linux/hwmon.h>
32 static void init_pvt(struct as370_hwmon *hwmon) in init_pvt() argument
35 void __iomem *addr = hwmon->base + CTRL; in init_pvt()
51 struct as370_hwmon *hwmon = dev_get_drvdata(dev); in as370_hwmon_read() local
55 val = readl_relaxed(hwmon->base + STS) & BN_MASK; in as370_hwmon_read()
98 struct as370_hwmon *hwmon; in as370_hwmon_probe() local
101 hwmon = devm_kzalloc(dev, sizeof(*hwmon), GFP_KERNEL); in as370_hwmon_probe()
102 if (!hwmon) in as370_hwmon_probe()
105 hwmon->base = devm_platform_ioremap_resource(pdev, 0); in as370_hwmon_probe()
106 if (IS_ERR(hwmon->base)) in as370_hwmon_probe()
[all …]
Dsl28cpld-hwmon.c9 #include <linux/hwmon.h>
37 struct sl28cpld_hwmon *hwmon = dev_get_drvdata(dev); in sl28cpld_hwmon_read() local
43 ret = regmap_read(hwmon->regmap, hwmon->offset + FAN_INPUT, in sl28cpld_hwmon_read()
87 struct sl28cpld_hwmon *hwmon; in sl28cpld_hwmon_probe() local
94 hwmon = devm_kzalloc(&pdev->dev, sizeof(*hwmon), GFP_KERNEL); in sl28cpld_hwmon_probe()
95 if (!hwmon) in sl28cpld_hwmon_probe()
98 hwmon->regmap = dev_get_regmap(pdev->dev.parent, NULL); in sl28cpld_hwmon_probe()
99 if (!hwmon->regmap) in sl28cpld_hwmon_probe()
102 ret = device_property_read_u32(&pdev->dev, "reg", &hwmon->offset); in sl28cpld_hwmon_probe()
107 "sl28cpld_hwmon", hwmon, in sl28cpld_hwmon_probe()
[all …]
Dsmpro-hwmon.c9 #include <linux/hwmon.h>
10 #include <linux/hwmon-sysfs.h>
208 struct smpro_hwmon *hwmon = dev_get_drvdata(dev); in smpro_read_temp() local
214 ret = regmap_read(hwmon->regmap, temperature[channel].reg, &value); in smpro_read_temp()
219 ret = regmap_read(hwmon->regmap, temperature[channel].reg_ext, &value); in smpro_read_temp()
233 struct smpro_hwmon *hwmon = dev_get_drvdata(dev); in smpro_read_in() local
239 ret = regmap_read(hwmon->regmap, voltage[channel].reg, &value); in smpro_read_in()
252 struct smpro_hwmon *hwmon = dev_get_drvdata(dev); in smpro_read_curr() local
258 ret = regmap_read(hwmon->regmap, curr_sensor[channel].reg, &value); in smpro_read_curr()
271 struct smpro_hwmon *hwmon = dev_get_drvdata(dev); in smpro_read_power() local
[all …]
DMakefile6 obj-$(CONFIG_HWMON) += hwmon.o
7 obj-$(CONFIG_HWMON_VID) += hwmon-vid.o
52 obj-$(CONFIG_SENSORS_ARM_SCMI) += scmi-hwmon.o
53 obj-$(CONFIG_SENSORS_ARM_SCPI) += scpi-hwmon.o
54 obj-$(CONFIG_SENSORS_AS370) += as370-hwmon.o
67 obj-$(CONFIG_SENSORS_DA9052_ADC)+= da9052-hwmon.o
68 obj-$(CONFIG_SENSORS_DA9055)+= da9055-hwmon.o
69 obj-$(CONFIG_SENSORS_DELL_SMM) += dell-smm-hwmon.o
89 obj-$(CONFIG_SENSORS_GSC) += gsc-hwmon.o
105 obj-$(CONFIG_SENSORS_INTEL_M10_BMC_HWMON) += intel-m10-bmc-hwmon.o
[all …]
/linux-6.12.1/drivers/thermal/
Dthermal_hwmon.c3 * thermal_hwmon.c - Generic Thermal Management hwmon support.
15 #include <linux/hwmon.h>
22 /* hwmon sys I/F */
23 /* thermal zone devices with the same type share one hwmon device */
41 struct thermal_hwmon_attr temp_input; /* hwmon sys attr */
42 struct thermal_hwmon_attr temp_crit; /* hwmon sys attr */
97 struct thermal_hwmon_device *hwmon; in thermal_hwmon_lookup_by_type() local
101 list_for_each_entry(hwmon, &thermal_hwmon_list, node) { in thermal_hwmon_lookup_by_type()
104 if (!strcmp(hwmon->type, type)) { in thermal_hwmon_lookup_by_type()
106 return hwmon; in thermal_hwmon_lookup_by_type()
[all …]
/linux-6.12.1/drivers/net/ethernet/sfc/siena/
Dmcdi_mon.c9 #include <linux/hwmon.h>
146 struct efx_mcdi_mon *hwmon = efx_mcdi_mon(efx); in efx_mcdi_mon_update() local
151 hwmon->dma_buf.dma_addr); in efx_mcdi_mon_update()
152 MCDI_SET_DWORD(inbuf, READ_SENSORS_EXT_IN_LENGTH, hwmon->dma_buf.len); in efx_mcdi_mon_update()
157 hwmon->last_update = jiffies; in efx_mcdi_mon_update()
165 struct efx_mcdi_mon *hwmon = efx_mcdi_mon(efx); in efx_mcdi_mon_get_entry() local
170 mutex_lock(&hwmon->update_lock); in efx_mcdi_mon_get_entry()
173 if (time_before(jiffies, hwmon->last_update + HZ)) in efx_mcdi_mon_get_entry()
179 *entry = ((efx_dword_t *)hwmon->dma_buf.addr)[index]; in efx_mcdi_mon_get_entry()
181 mutex_unlock(&hwmon->update_lock); in efx_mcdi_mon_get_entry()
[all …]
/linux-6.12.1/drivers/net/ethernet/sfc/
Dmcdi_mon.c9 #include <linux/hwmon.h>
146 struct efx_mcdi_mon *hwmon = efx_mcdi_mon(efx); in efx_mcdi_mon_update() local
151 hwmon->dma_buf.dma_addr); in efx_mcdi_mon_update()
152 MCDI_SET_DWORD(inbuf, READ_SENSORS_EXT_IN_LENGTH, hwmon->dma_buf.len); in efx_mcdi_mon_update()
157 hwmon->last_update = jiffies; in efx_mcdi_mon_update()
165 struct efx_mcdi_mon *hwmon = efx_mcdi_mon(efx); in efx_mcdi_mon_get_entry() local
170 mutex_lock(&hwmon->update_lock); in efx_mcdi_mon_get_entry()
173 if (time_before(jiffies, hwmon->last_update + HZ)) in efx_mcdi_mon_get_entry()
179 *entry = ((efx_dword_t *)hwmon->dma_buf.addr)[index]; in efx_mcdi_mon_get_entry()
181 mutex_unlock(&hwmon->update_lock); in efx_mcdi_mon_get_entry()
[all …]
/linux-6.12.1/Documentation/hwmon/
Dindex.rst10 hwmon-kernel-api
63 dell-smm-hwmon
81 gsc-hwmon
95 intel-m10-bmc-hwmon
202 raspberrypi-hwmon
207 scpi-hwmon
217 smpro-hwmon
225 sy7636a-hwmon
240 twl4030-madc-hwmon
258 xgene-hwmon
/linux-6.12.1/Documentation/devicetree/bindings/hwmon/
Dibm,occ-hwmon.yaml4 $id: http://devicetree.org/schemas/hwmon/ibm,occ-hwmon.yaml#
16 through hwmon.
21 - ibm,p9-occ-hwmon
22 - ibm,p10-occ-hwmon
36 hwmon {
37 compatible = "ibm,p10-occ-hwmon";
/linux-6.12.1/drivers/hwmon/occ/
DMakefile2 occ-hwmon-common-objs := common.o sysfs.o
3 occ-p8-hwmon-objs := p8_i2c.o
4 occ-p9-hwmon-objs := p9_sbe.o
6 obj-$(CONFIG_SENSORS_OCC) += occ-hwmon-common.o
7 obj-$(CONFIG_SENSORS_OCC_P8_I2C) += occ-p8-hwmon.o
8 obj-$(CONFIG_SENSORS_OCC_P9_SBE) += occ-p9-hwmon.o
/linux-6.12.1/arch/arm/boot/dts/aspeed/
Daspeed-bmc-opp-mowgli.dts180 iio-hwmon-12v {
181 compatible = "iio-hwmon";
185 iio-hwmon-5v {
186 compatible = "iio-hwmon";
190 iio-hwmon-3v {
191 compatible = "iio-hwmon";
195 iio-hwmon-vdd {
196 compatible = "iio-hwmon";
200 iio-hwmon-vcs {
201 compatible = "iio-hwmon";
[all …]

12345678910>>...30