Home
last modified time | relevance | path

Searched refs:hwmon (Results 1 – 101 of 101) sorted by relevance

/linux-4.4.14/drivers/hwmon/
Djz4740-hwmon.c36 struct device *hwmon; member
51 struct jz4740_hwmon *hwmon = data; in jz4740_hwmon_irq() local
53 complete(&hwmon->read_completion); in jz4740_hwmon_irq()
60 struct jz4740_hwmon *hwmon = dev_get_drvdata(dev); in jz4740_hwmon_read_adcin() local
61 struct completion *completion = &hwmon->read_completion; in jz4740_hwmon_read_adcin()
66 mutex_lock(&hwmon->lock); in jz4740_hwmon_read_adcin()
70 enable_irq(hwmon->irq); in jz4740_hwmon_read_adcin()
71 hwmon->cell->enable(to_platform_device(dev)); in jz4740_hwmon_read_adcin()
76 val = readw(hwmon->base) & 0xfff; in jz4740_hwmon_read_adcin()
83 hwmon->cell->disable(to_platform_device(dev)); in jz4740_hwmon_read_adcin()
[all …]
Dda9055-hwmon.c60 static int da9055_adc_manual_read(struct da9055_hwmon *hwmon, in da9055_adc_manual_read() argument
67 struct da9055 *da9055 = hwmon->da9055; in da9055_adc_manual_read()
72 mutex_lock(&hwmon->irq_lock); in da9055_adc_manual_read()
82 if (!wait_for_completion_timeout(&hwmon->done, in da9055_adc_manual_read()
107 mutex_unlock(&hwmon->irq_lock); in da9055_adc_manual_read()
113 struct da9055_hwmon *hwmon = irq_data; in da9055_auxadc_irq() local
115 complete(&hwmon->done); in da9055_auxadc_irq()
146 struct da9055_hwmon *hwmon = dev_get_drvdata(dev); in da9055_read_auto_ch() local
150 mutex_lock(&hwmon->hwmon_lock); in da9055_read_auto_ch()
152 ret = da9055_enable_auto_mode(hwmon->da9055, channel); in da9055_read_auto_ch()
[all …]
Dda9052-hwmon.c78 struct da9052_hwmon *hwmon = dev_get_drvdata(dev); in da9052_read_vddout() local
81 mutex_lock(&hwmon->hwmon_lock); in da9052_read_vddout()
83 ret = da9052_enable_vddout_channel(hwmon->da9052); in da9052_read_vddout()
87 vdd = da9052_reg_read(hwmon->da9052, DA9052_VDD_RES_REG); in da9052_read_vddout()
93 ret = da9052_disable_vddout_channel(hwmon->da9052); in da9052_read_vddout()
97 mutex_unlock(&hwmon->hwmon_lock); in da9052_read_vddout()
101 da9052_disable_vddout_channel(hwmon->da9052); in da9052_read_vddout()
103 mutex_unlock(&hwmon->hwmon_lock); in da9052_read_vddout()
110 struct da9052_hwmon *hwmon = dev_get_drvdata(dev); in da9052_read_ich() local
113 ret = da9052_reg_read(hwmon->da9052, DA9052_ICHG_AV_REG); in da9052_read_ich()
[all …]
Ds3c-hwmon.c71 struct s3c_hwmon *hwmon, int channel) in s3c_hwmon_read_ch() argument
75 ret = mutex_lock_interruptible(&hwmon->lock); in s3c_hwmon_read_ch()
81 ret = s3c_adc_read(hwmon->client, channel); in s3c_hwmon_read_ch()
82 mutex_unlock(&hwmon->lock); in s3c_hwmon_read_ch()
167 struct s3c_hwmon *hwmon = platform_get_drvdata(to_platform_device(dev)); in s3c_hwmon_ch_show() local
174 ret = s3c_hwmon_read_ch(dev, hwmon, sen_attr->index); in s3c_hwmon_ch_show()
278 struct s3c_hwmon *hwmon; in s3c_hwmon_probe() local
287 hwmon = devm_kzalloc(&dev->dev, sizeof(struct s3c_hwmon), GFP_KERNEL); in s3c_hwmon_probe()
288 if (hwmon == NULL) in s3c_hwmon_probe()
291 platform_set_drvdata(dev, hwmon); in s3c_hwmon_probe()
[all …]
DMakefile5 obj-$(CONFIG_HWMON) += hwmon.o
6 obj-$(CONFIG_HWMON_VID) += hwmon-vid.o
47 obj-$(CONFIG_SENSORS_ARM_SCPI) += scpi-hwmon.o
51 obj-$(CONFIG_SENSORS_DA9052_ADC)+= da9052-hwmon.o
52 obj-$(CONFIG_SENSORS_DA9055)+= da9055-hwmon.o
53 obj-$(CONFIG_SENSORS_DELL_SMM) += dell-smm-hwmon.o
83 obj-$(CONFIG_SENSORS_JZ4740) += jz4740-hwmon.o
133 obj-$(CONFIG_SENSORS_S3C) += s3c-hwmon.o
152 obj-$(CONFIG_SENSORS_TWL4030_MADC)+= twl4030-madc-hwmon.o
161 obj-$(CONFIG_SENSORS_WM831X) += wm831x-hwmon.o
[all …]
Dtwl4030-madc-hwmon.c98 struct device *hwmon; in twl4030_madc_hwmon_probe() local
100 hwmon = devm_hwmon_device_register_with_groups(&pdev->dev, in twl4030_madc_hwmon_probe()
103 return PTR_ERR_OR_ZERO(hwmon); in twl4030_madc_hwmon_probe()
Dpwm-fan.c218 struct device *hwmon; in pwm_fan_probe() local
253 hwmon = devm_hwmon_device_register_with_groups(&pdev->dev, "pwmfan", in pwm_fan_probe()
255 if (IS_ERR(hwmon)) { in pwm_fan_probe()
258 return PTR_ERR(hwmon); in pwm_fan_probe()
DKconfig20 <file:Documentation/hwmon/userspace-tools> for details.
23 will be called hwmon.
65 Documentation/hwmon/abituguru
79 revision see Documentation/hwmon/abituguru3
384 tristate "Dell laptop SMM BIOS hwmon driver"
387 This hwmon driver adds support for reporting temperature of different
402 will be called da9052-hwmon.
412 will be called da9055-hwmon.
594 map allows IIO devices to provide basic hwmon functionality
614 are supported. Check Documentation/hwmon/coretemp for details.
[all …]
/linux-4.4.14/drivers/thermal/
Dthermal_hwmon.c64 struct thermal_hwmon_device *hwmon = dev_get_drvdata(dev); in name_show() local
65 return sprintf(buf, "%s\n", hwmon->type); in name_show()
112 struct thermal_hwmon_device *hwmon; in thermal_hwmon_lookup_by_type() local
115 list_for_each_entry(hwmon, &thermal_hwmon_list, node) in thermal_hwmon_lookup_by_type()
116 if (!strcmp(hwmon->type, tz->type)) { in thermal_hwmon_lookup_by_type()
118 return hwmon; in thermal_hwmon_lookup_by_type()
127 thermal_hwmon_lookup_temp(const struct thermal_hwmon_device *hwmon, in thermal_hwmon_lookup_temp() argument
133 list_for_each_entry(temp, &hwmon->tz_list, hwmon_node) in thermal_hwmon_lookup_temp()
151 struct thermal_hwmon_device *hwmon; in thermal_add_hwmon_sysfs() local
156 hwmon = thermal_hwmon_lookup_by_type(tz); in thermal_add_hwmon_sysfs()
[all …]
DKconfig20 prompt "Expose thermal sensors as hwmon device"
26 as a hwmon. The sensor will then have the common
27 hwmon sysfs interface.
30 have hwmon sysfs interface too.
/linux-4.4.14/drivers/net/ethernet/sfc/
Dmcdi_mon.c149 struct efx_mcdi_mon *hwmon = efx_mcdi_mon(efx); in efx_mcdi_mon_update() local
154 hwmon->dma_buf.dma_addr); in efx_mcdi_mon_update()
155 MCDI_SET_DWORD(inbuf, READ_SENSORS_EXT_IN_LENGTH, hwmon->dma_buf.len); in efx_mcdi_mon_update()
160 hwmon->last_update = jiffies; in efx_mcdi_mon_update()
168 struct efx_mcdi_mon *hwmon = efx_mcdi_mon(efx); in efx_mcdi_mon_get_entry() local
173 mutex_lock(&hwmon->update_lock); in efx_mcdi_mon_get_entry()
176 if (time_before(jiffies, hwmon->last_update + HZ)) in efx_mcdi_mon_get_entry()
182 *entry = ((efx_dword_t *)hwmon->dma_buf.addr)[index]; in efx_mcdi_mon_get_entry()
184 mutex_unlock(&hwmon->update_lock); in efx_mcdi_mon_get_entry()
288 struct efx_mcdi_mon *hwmon = efx_mcdi_mon(efx); in efx_mcdi_mon_add_attr() local
[all …]
DKconfig25 bool "Solarflare SFC9000/SFC9100-family hwmon support"
Dmcdi.h115 struct efx_mcdi_mon hwmon; member
130 return &efx->mcdi->hwmon; in efx_mcdi_mon()
/linux-4.4.14/drivers/gpu/drm/nouveau/
Dnouveau_hwmon.c565 struct nouveau_hwmon *hwmon; in nouveau_hwmon_init() local
569 hwmon = drm->hwmon = kzalloc(sizeof(*hwmon), GFP_KERNEL); in nouveau_hwmon_init()
570 if (!hwmon) in nouveau_hwmon_init()
572 hwmon->dev = dev; in nouveau_hwmon_init()
616 hwmon->hwmon = hwmon_dev; in nouveau_hwmon_init()
623 hwmon->hwmon = NULL; in nouveau_hwmon_init()
634 struct nouveau_hwmon *hwmon = nouveau_hwmon(dev); in nouveau_hwmon_fini() local
636 if (hwmon->hwmon) { in nouveau_hwmon_fini()
637 sysfs_remove_group(&hwmon->hwmon->kobj, &hwmon_default_attrgroup); in nouveau_hwmon_fini()
638 sysfs_remove_group(&hwmon->hwmon->kobj, &hwmon_temp_attrgroup); in nouveau_hwmon_fini()
[all …]
Dnouveau_hwmon.h30 struct device *hwmon; member
36 return nouveau_drm(dev)->hwmon; in nouveau_hwmon()
Dnouveau_drm.h166 struct nouveau_hwmon *hwmon; member
/linux-4.4.14/Documentation/hwmon/
Dhwmon-kernel-api.txt12 This document does not describe what a hardware monitoring (hwmon) Driver or
15 then please read the following file: Documentation/hwmon/sysfs-interface.
17 For additional guidelines on how to write and improve hwmon drivers, please
18 also read Documentation/hwmon/submitting-patches.
22 Each hardware monitoring driver must #include <linux/hwmon.h> and, in most
23 cases, <linux/hwmon-sysfs.h>. linux/hwmon.h declares the following
49 it has additional parameters. The name parameter is a pointer to the hwmon
53 to the newly allocated hwmon device. The pointer can be retrieved by the driver
54 using dev_get_drvdata() on the hwmon device pointer. The groups parameter is
56 hwmon_device_register_with_groups creates the hwmon device with name attribute
[all …]
Dsch563617 their own custom hwmon solution based upon the SCH5636.
20 hwmon solution. The sch5636 driver runs a sanity check on loading to ensure
22 hwmon solution.
29 The Fujitsu Theseus hwmon solution also contains an integrated watchdog.
Dsubmitting-patches5 drivers for the hwmon subsystem. Following these suggestions will greatly
36 * Make sure the documentation in Documentation/hwmon/<driver_name> is up to
58 * Document the driver in Documentation/hwmon/<driver_name>.
86 discouraged as it is known to cause trouble with other (non-hwmon) I2C
100 with the hwmon subsystem.
108 Standard attributes are specified in Documentation/hwmon/sysfs-interface.
Dabituguru311 it to behave as a hwmon IC. There are many different revisions of the
35 succeed. If the uGuru can't be read the actual hwmon
36 driver will not load and thus no hwmon device will get
Dibmpowernv16 for sensor devices during the __init phase and registers them with the 'hwmon'.
17 'hwmon' populates the 'sysfs' tree having attribute files, each for a given
Dabituguru14 it to behave as a hwmon IC. There are many different revisions of the
48 succeed. If the uGuru can't be read the actual hwmon
49 driver will not load and thus no hwmon device will get
Dab850017 See also Documentation/hwmon/abx500. This is the ST-Ericsson AB8500 specific
Dwm83501 Kernel driver wm8350-hwmon
Dtmp10325 Documentation/hwmon/sysfs-interface under Temperatures).
Dpwm-fan17 the hwmon's sysfs interface.
Dadm127537 Documentation/hwmon/pmbus for details on PMBus client drivers.
56 Documentation/hwmon/pmbus for details.
Dtmp10226 Documentation/hwmon/sysfs-interface under Temperatures).
Dscpi-hwmon1 Kernel driver scpi-hwmon
Dwm831x1 Kernel driver wm831x-hwmon
Dabx50018 this is kernel hwmon driver for ABx500.
Dg76210 bindings are described in Documentation/hwmon/sysfs-interface.
20 documented in Documentation/devicetree/bindings/hwmon/g762.txt or
Ducd920031 Documentation/hwmon/pmbus for details on PMBus client drivers.
46 Documentation/hwmon/pmbus for details.
Ducd900047 Documentation/hwmon/pmbus for details on PMBus client drivers.
62 Documentation/hwmon/pmbus for details.
Dvexpress34 in Documentation/devicetree/bindings/hwmon/vexpress.txt.
Dlm7046 Jean Delvare <jdelvare@suse.de> for mentoring the hwmon-side driver
Dmax2075121 Please see Documentation/hwmon/pmbus for details on PMBus client drivers.
Dtps4042220 Please see Documentation/hwmon/pmbus for details on PMBus client drivers.
Dzl610067 Documentation/hwmon/pmbus and Documentation.hwmon/pmbus-core for details
Dads101576 Documentation/devicetree/bindings/hwmon/ads1015.txt
Dmax1606420 Please see Documentation/hwmon/pmbus for details on PMBus client drivers.
Dtmp40142 Documentation/hwmon/sysfs-interface under Temperatures).
Dmax868820 Documentation/hwmon/pmbus for details on PMBus client drivers.
Dina2xx60 Documentation/hwmon/sysfs-interface. Internally the interval is the sum of
Dacpi_power_meter21 of Documentation/hwmon/sysfs-interface.
Dlm2506644 Documentation/hwmon/pmbus for details on PMBus client drivers.
Dsysfs-interface35 /sys/class/hwmon/hwmon*.
39 in the hwmon "class" device directory are also supported. Complex drivers
63 When setting values of hwmon sysfs attributes, the string representation of
714 hwmon sysfs attributes always contain numbers, so the first thing to do is to
Dcoretemp25 directory inside hwmon.
Dw83627hf82 # Select the hwmon logical device
Dmax3444044 Documentation/hwmon/pmbus for details on PMBus client drivers.
Dw83791d94 *_beep files as described in .../Documentation/hwmon/sysfs-interface.
Dw83627ehf99 name - this is a standard hwmon device entry, it contains the name of
Dpmbus-core65 drivers/hwmon/pmbus/pmbus.h. In addition to the internal API, pmbus.h defines
/linux-4.4.14/drivers/input/touchscreen/
Dsun4i-ts.c249 struct device *hwmon; in sun4i_ts_probe() local
364 hwmon = devm_hwmon_device_register_with_groups(ts->dev, "sun4i_ts", in sun4i_ts_probe()
366 if (IS_ERR(hwmon)) in sun4i_ts_probe()
367 return PTR_ERR(hwmon); in sun4i_ts_probe()
Dads7846.c104 struct device *hwmon; member
530 ts->hwmon = hwmon_device_register_with_groups(&spi->dev, spi->modalias, in ads784x_hwmon_register()
533 return PTR_ERR_OR_ZERO(ts->hwmon); in ads784x_hwmon_register()
539 if (ts->hwmon) in ads784x_hwmon_unregister()
540 hwmon_device_unregister(ts->hwmon); in ads784x_hwmon_unregister()
DKconfig41 on your board, you will also get hwmon interfaces for the voltage
/linux-4.4.14/Documentation/thermal/
Dsysfs-api.txt160 .no_hwmon: a boolean to indicate if the thermal to hwmon sysfs interface
161 is required. when no_hwmon == false, a hwmon sysfs interface
163 In case the thermal_zone_params is NULL, the hwmon interface
174 Hwmon sysfs I/F extension is also available under /sys/class/hwmon
175 if hwmon is compiled in or built as a module.
216 the generic thermal driver also creates a hwmon sysfs I/F for each _type_
217 of thermal zone device. E.g. the generic thermal driver registers one hwmon
218 class device and build the associated hwmon sysfs I/F for all the registered
221 /sys/class/hwmon/hwmon[0-*]:
226 Please read Documentation/hwmon/sysfs-interface for additional information.
[all …]
/linux-4.4.14/arch/arm/boot/dts/
Dzynq-zc702.dts170 hwmon@52 {
174 hwmon@53 {
178 hwmon@54 {
Dimx23.dtsi573 compatible = "iio-hwmon";
Dimx28.dtsi1249 compatible = "iio-hwmon";
/linux-4.4.14/Documentation/devicetree/bindings/hwmon/
Dvexpress.txt1 Versatile Express hwmon sensors
Dntc_thermistor.txt1 NTC Thermistor hwmon sensors
Dg762.txt24 in Documentation/hwmon/g762. A detailed datasheet for the device is available
/linux-4.4.14/drivers/staging/iio/Documentation/
Doverview.txt8 The aim is to fill the gap between the somewhat similar hwmon and
21 hwmon with simple polled access to device channels via sysfs.
/linux-4.4.14/net/dsa/
DKconfig26 via the hwmon sysfs interface and exposes the onboard sensors.
/linux-4.4.14/Documentation/spi/
Dspi-lm70llp20 LM70 driver (drivers/hwmon/lm70.c).
54 the bound "hwmon/lm70" protocol driver through its sysfs hook, using a
/linux-4.4.14/arch/powerpc/boot/dts/fsl/
Dge_imp3a.dts134 hwmon@48 {
139 hwmon@4c {
Dmvme2500.dts36 hwmon@4c {
Dt104xd4rdb.dtsi124 hwmon@4c {
/linux-4.4.14/
DMAINTAINERS233 L: linux-hwmon@vger.kernel.org
235 F: drivers/hwmon/abituguru.c
239 L: linux-hwmon@vger.kernel.org
241 F: drivers/hwmon/abituguru3.c
376 L: linux-hwmon@vger.kernel.org
378 F: Documentation/hwmon/adm1025
379 F: drivers/hwmon/adm1025.c
383 L: linux-hwmon@vger.kernel.org
385 F: drivers/hwmon/adm1029.c
428 L: linux-hwmon@vger.kernel.org
[all …]
DCREDITS1558 D: hwmon subsystem core
1559 D: hwmon subsystem maintainer
3733 D: Author of PCA9532 LED and Fintek f75375s hwmon driver
/linux-4.4.14/drivers/platform/x86/
Deeepc-laptop.c1099 ATTRIBUTE_GROUPS(hwmon);
1104 struct device *hwmon; in eeepc_hwmon_init() local
1106 hwmon = devm_hwmon_device_register_with_groups(dev, "eeepc", NULL, in eeepc_hwmon_init()
1108 if (IS_ERR(hwmon)) { in eeepc_hwmon_init()
1110 return PTR_ERR(hwmon); in eeepc_hwmon_init()
Dasus-wmi.c1413 struct device *hwmon; in asus_wmi_hwmon_init() local
1415 hwmon = hwmon_device_register_with_groups(&asus->platform_device->dev, in asus_wmi_hwmon_init()
1418 if (IS_ERR(hwmon)) { in asus_wmi_hwmon_init()
1420 return PTR_ERR(hwmon); in asus_wmi_hwmon_init()
DKconfig312 It adds support for rfkill, Bluetooth, WLAN, LCD brightness, hwmon
/linux-4.4.14/drivers/mfd/
Dwm8350-core.c431 &(wm8350->hwmon.pdev)); in wm8350_device_init()
459 platform_device_unregister(wm8350->hwmon.pdev); in wm8350_device_exit()
DKconfig415 This driver is necessary for jz4740-battery and jz4740-hwmon driver.
/linux-4.4.14/Documentation/devicetree/bindings/mfd/
Dda9055.txt11 da9055-hwmon : : ADC
/linux-4.4.14/arch/powerpc/boot/dts/
Duc101.dts93 hwmon@2c {
Da4m072.dts94 hwmon@2e {
Dgef_sbc610.dts195 hwmon@48 {
200 hwmon@4c {
Dgef_ppc9a.dts197 hwmon@48 {
202 hwmon@4c {
Dmpc5121ads.dts91 hwmon@4a {
Dgef_sbc310.dts210 hwmon@48 {
215 hwmon@4c {
Dmucmc52.dts93 hwmon@2c {
Dsequoia.dts290 hwmon@48 {
/linux-4.4.14/Documentation/laptops/
Dthinkpad-acpi.txt123 looking for a hwmon device with the name attribute of "thinkpad", or
841 sysfs device attributes: (hwmon "thinkpad") temp*_input
906 thinkpad-acpi thermal sensors are reported through the hwmon
907 subsystem, and follow all of the hwmon guidelines at
908 Documentation/hwmon.
1136 sysfs device attributes: (hwmon "thinkpad") fan1_input, pwm1,
1138 sysfs hwmon driver attributes: fan_watchdog
1206 commands, or the hwmon fan control sysfs interface.
1248 The sysfs interface follows the hwmon subsystem guidelines for the most
1259 hwmon device attribute pwm1_enable:
[all …]
/linux-4.4.14/Documentation/devicetree/bindings/iio/
Diio-bindings.txt86 compatible = "iio-hwmon";
/linux-4.4.14/drivers/
DMakefile110 obj-$(CONFIG_HWMON) += hwmon/
DKconfig75 source "drivers/hwmon/Kconfig"
/linux-4.4.14/drivers/net/ethernet/qlogic/
DKconfig76 This data is available via the hwmon sysfs interface.
/linux-4.4.14/Documentation/devicetree/bindings/arm/samsung/
Dexynos-adc.txt89 /* NTC thermistor is a hwmon device */
/linux-4.4.14/include/linux/mfd/wm8350/
Dcore.h617 struct wm8350_hwmon hwmon; member
/linux-4.4.14/drivers/net/ethernet/intel/
DKconfig118 This data is available via the hwmon sysfs interface and exposes
210 our cards, via a hwmon sysfs interface.
/linux-4.4.14/Documentation/gpio/
Ddrivers-on-gpio.txt67 - gpio-fan: drivers/hwmon/gpio-fan.c is used to control a fan for cooling the
/linux-4.4.14/arch/arm/plat-samsung/
DKconfig75 for drivers such as the touchscreen and hwmon to use to share
/linux-4.4.14/Documentation/networking/dsa/
Ddsa.txt297 - HWMON: drivers/hwmon/*
355 regular HWMON devices in /sys/class/hwmon/.
519 See Documentation/hwmon/sysfs-interface for details.
/linux-4.4.14/Documentation/i2c/
Dinstantiating-devices182 See lm90_driver and lm90_detect() in drivers/hwmon/lm90.c
/linux-4.4.14/drivers/iio/adc/
DKconfig180 of SoCs for drivers such as the touchscreen and hwmon to use to share
/linux-4.4.14/Documentation/
D00-INDEX216 hwmon/
/linux-4.4.14/drivers/char/
DKconfig483 hwmon/pc87360 driver. Tested with PC-87366
/linux-4.4.14/arch/x86/
DKconfig1097 This option enables legacy /proc/i8k userspace interface in hwmon
1098 dell-smm-hwmon driver. Character file /proc/i8k reports bios version,