/linux/drivers/gpu/drm/nouveau/nvkm/subdev/timer/ |
H A D | base.c | 16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 29 struct nvkm_subdev *subdev = &wait->tmr->subdev; in nvkm_timer_wait_test() 30 u64 time = nvkm_timer_read(wait->tmr); in nvkm_timer_wait_test() 32 if (wait->reads == 0) { in nvkm_timer_wait_test() 33 wait->time0 = time; in nvkm_timer_wait_test() 34 wait->time1 = time; in nvkm_timer_wait_test() 37 if (wait->time1 == time) { in nvkm_timer_wait_test() 38 if (wait->reads++ == 16) { in nvkm_timer_wait_test() 40 return -ETIMEDOUT; in nvkm_timer_wait_test() 43 wait->time1 = time; in nvkm_timer_wait_test() [all …]
|
/linux/Documentation/hwmon/ |
H A D | gl518sm.rst | 21 - Frodo Looijaard <frodol@dds.nl>, 22 - Kyösti Mälkki <kmalkki@cc.hut.fi> 23 - Hong-Gunn Chew <hglinux@gunnet.org> 24 - Jean Delvare <jdelvare@suse.de> 27 ----------- 43 Temperatures are measured in degrees Celsius. An alarm goes off while the 45 below the hysteresis limit. The alarm always reflects the current 46 situation. Measurements are guaranteed between -10 degrees and +110 47 degrees, with a accuracy of +/-3 degrees. 49 Rotation speeds are reported in RPM (rotations per minute). An alarm is [all …]
|
H A D | pmbus.rst | 12 Addresses scanned: - 23 Addresses scanned: - 27 https://www.onsemi.com/pub_link/Collateral/ADP4000-D.PDF 29 https://www.onsemi.com/pub_link/Collateral/NCP4200-D.PDF 31 https://www.onsemi.com/pub_link/Collateral/JUNE%202009-%20REV.%200.PDF 37 Addresses scanned: - 55 Addresses scanned: - 73 Addresses scanned: - 83 Addresses scanned: - 88 Author: Guenter Roeck <linux@roeck-us.net> [all …]
|
H A D | pc87360.rst | 12 Datasheets: No longer available 22 ----------------- 27 - 0: None 28 - **1**: Forcibly enable internal voltage and temperature channels, 30 - 2: Forcibly enable all voltage and temperature channels, except in9 31 - 3: Forcibly enable all voltage and temperature channels, including in9 33 Note that this parameter has no effect for the PC87360, PC87363 and PC87364 42 ----------- 56 PC87360 - 2 2 - 0xE1 57 PC87363 - 2 2 - 0xE8 [all …]
|
H A D | adc128d818.rst | 17 ----------- 25 When the HOT Temperature Limit is crossed, this will cause an alarm that will 27 Measurements are guaranteed between -55 and +125 degrees. The temperature 32 An alarm is triggered if the voltage has crossed a programmable minimum 38 If an alarm triggers, it will remain triggered until the hardware register 39 is read at least once. This means that the cause for the alarm may 40 already have disappeared by the time the alarm is read. The driver 41 caches the alarm status for each sensor until it is at least reported 45 reading it more often will do no harm, but will return 'old' values.
|
H A D | lm78.rst | 6 * National Semiconductor LM78 / LM78-J 10 Addresses scanned: I2C 0x28 - 0x2f, ISA 0x290 (8 I/O ports) 20 Addresses scanned: I2C 0x28 - 0x2f, ISA 0x290 (8 I/O ports) 28 - Frodo Looijaard <frodol@dds.nl> 29 - Jean Delvare <jdelvare@suse.de> 32 ----------- 34 This driver implements support for the National Semiconductor LM78, LM78-J 37 There is almost no difference between the three supported chips. Functionally, 38 the LM78 and LM78-J are exactly identical. The LM79 has one more VID line, 45 Temperatures are measured in degrees Celsius. An alarm is triggered once [all …]
|
H A D | ltc4261.rst | 10 Addresses scanned: - 16 Author: Guenter Roeck <linux@roeck-us.net> 20 ----------- 22 The LTC4261/LTC4261-2 negative voltage Hot Swap controllers allow a board 27 ----------- 29 This driver does not probe for LTC4261 devices, since there is no register 37 $ echo ltc4261 0x10 > /sys/bus/i2c/devices/i2c-1/new_device 41 ------------- 54 The chip has two voltage sensors, but only one set of voltage alarm status bits. 57 on all chip variants. To ensure that the alarm condition is reported to the user, [all …]
|
H A D | ltc2945.rst | 10 Addresses scanned: - 14 https://www.analog.com/media/en/technical-documentation/data-sheets/2945fb.pdf 16 Author: Guenter Roeck <linux@roeck-us.net> 20 ----------- 22 The LTC2945 is a rail-to-rail system monitor that measures current, voltage, 27 ----------- 29 This driver does not probe for LTC2945 devices, since there is no register 37 $ echo ltc2945 0x10 > /sys/bus/i2c/devices/i2c-1/new_device 41 ------------- 62 in1_min_alarm Undervoltage alarm [all …]
|
H A D | sysfs-interface.rst | 5 through the sysfs interface. Since lm-sensors 3.0.0, libsensors is 6 completely chip-independent. It assumes that all the kernel drivers 10 This is a major improvement compared to lm-sensors 2. 13 There is no standard that ensures, for example, that the second 22 For this reason, even if we aim at a chip-independent libsensors, it will 37 Up to lm-sensors 3.0.0, libsensors looks for hardware monitoring attributes 38 in the "physical" device directory. Since lm-sensors 3.0.1, attributes found 55 they have a simple name, and no number. 60 alarm (for example, whether a threshold must be met or must be exceeded 61 to cause an alarm) is chip-dependent. [all …]
|
H A D | lm87.rst | 10 Addresses scanned: I2C 0x2c - 0x2e 18 Addresses scanned: I2C 0x2c - 0x2e 24 - Frodo Looijaard <frodol@dds.nl>, 25 - Philip Edelbrock <phil@netroedge.com>, 26 - Mark Studebaker <mdsxyz123@yahoo.com>, 27 - Stephen Rousset <stephen.rousset@rocketlogix.com>, 28 - Dan Eaton <dan.eaton@rocketlogix.com>, 29 - Jean Delvare <jdelvare@suse.de>, 30 - Original 2.6 port Jeff Oliver 33 ----------- [all …]
|
H A D | lineage-pem.rst | 1 Kernel driver lineage-pem 8 Prefix: 'lineage-pem' 10 Addresses scanned: - 16 Author: Guenter Roeck <linux@roeck-us.net> 20 ----------- 27 and status reporting commands are non-standard. For this reason, a standard 32 ----------- 34 This driver does not probe for Lineage CPL devices, since there is no register 41 $ modprobe lineage-pem 42 $ echo lineage-pem 0x40 > /sys/bus/i2c/devices/i2c-1/new_device [all …]
|
H A D | lm80.rst | 10 Addresses scanned: I2C 0x28 - 0x2f 20 Addresses scanned: I2C 0x28 - 0x2f 28 - Frodo Looijaard <frodol@dds.nl>, 29 - Philip Edelbrock <phil@netroedge.com> 32 ----------- 35 It is described as a 'Serial Interface ACPI-Compatible Microprocessor 45 this will cause an alarm that will be reasserted until the temperature 48 is unclear about this). Measurements are guaranteed between -55 and 52 Fan rotation speeds are reported in RPM (rotations per minute). An alarm is 60 An alarm is triggered if the voltage has crossed a programmable minimum [all …]
|
H A D | ltc4260.rst | 10 Addresses scanned: - 16 Author: Guenter Roeck <linux@roeck-us.net> 20 ----------- 27 ----------- 29 This driver does not probe for LTC4260 devices, since there is no register 37 $ echo ltc4260 0x10 > /sys/bus/i2c/devices/i2c-1/new_device 41 ------------- 56 in1_min_alarm Undervoltage alarm 57 in1_max_alarm Overvoltage alarm 60 in2_alarm Power bad alarm [all …]
|
H A D | adm9240.rst | 10 Addresses scanned: I2C 0x2c - 0x2f 20 Addresses scanned: I2C 0x2c - 0x2f 24 http://pdfserv.maxim-ic.com/en/ds/DS1780.pdf 30 Addresses scanned: I2C 0x2c - 0x2f 37 - Frodo Looijaard <frodol@dds.nl>, 38 - Philip Edelbrock <phil@netroedge.com>, 39 - Michiel Rook <michiel@grendelproject.nl>, 40 - Grant Coady <gcoady.lk@gmail.com> with guidance 44 --------- 46 chip MSB 5-bit address. Each chip reports a unique manufacturer [all …]
|
H A D | w83781d.rst | 10 Addresses scanned: I2C 0x28 - 0x2f, ISA 0x290 (8 I/O ports) 12 Datasheet: http://www.winbond-usa.com/products/winbond_products/pdfs/PCIC/w83781d.pdf 18 Addresses scanned: I2C 0x28 - 0x2f, ISA 0x290 (8 I/O ports) 28 Datasheet: http://www.winbond-usa.com/products/winbond_products/pdfs/PCIC/w83783s.pdf 34 Addresses scanned: I2C 0x28 - 0x2f 42 - Frodo Looijaard <frodol@dds.nl>, 43 - Philip Edelbrock <phil@netroedge.com>, 44 - Mark Studebaker <mdsxyz123@yahoo.com> 47 ----------------- 57 The driver used to reset the chip on load, but does no more. Use [all …]
|
/linux/drivers/rtc/ |
H A D | interface.c | 1 // SPDX-License-Identifier: GPL-2.0 27 if (!rtc->offset_secs) in rtc_add_offset() 35 * between expanded range and original range, which is no need to add in rtc_add_offset() 38 if ((rtc->start_secs > rtc->range_min && secs >= rtc->start_secs) || in rtc_add_offset() 39 (rtc->start_secs < rtc->range_min && in rtc_add_offset() 40 secs <= (rtc->start_secs + rtc->range_max - rtc->range_min))) in rtc_add_offset() 43 rtc_time64_to_tm(secs + rtc->offset_secs, tm); in rtc_add_offset() 50 if (!rtc->offset_secs) in rtc_subtract_offset() 57 * device, then no need to subtract the offset when setting time to RTC in rtc_subtract_offset() 61 if (secs >= rtc->range_min && secs <= rtc->range_max) in rtc_subtract_offset() [all …]
|
H A D | rtc-opal.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 9 #define DRVNAME "rtc-opal" 23 tm->tm_year = ((bcd2bin(y_m_d >> 24) * 100) + in opal_to_tm() 24 bcd2bin((y_m_d >> 16) & 0xff)) - 1900; in opal_to_tm() 25 tm->tm_mon = bcd2bin((y_m_d >> 8) & 0xff) - 1; in opal_to_tm() 26 tm->tm_mday = bcd2bin(y_m_d & 0xff); in opal_to_tm() 27 tm->tm_hour = bcd2bin((h_m_s_ms >> 56) & 0xff); in opal_to_tm() 28 tm->tm_min = bcd2bin((h_m_s_ms >> 48) & 0xff); in opal_to_tm() 29 tm->tm_sec = bcd2bin((h_m_s_ms >> 40) & 0xff); in opal_to_tm() 31 tm->tm_wday = -1; in opal_to_tm() [all …]
|
H A D | sysfs.c | 1 // SPDX-License-Identifier: GPL-2.0 13 #include "rtc-core.h" 19 * ideally UTC. However, PCs that also boot to MS-Windows normally use 27 return sysfs_emit(buf, "%s %s\n", dev_driver_string(dev->parent), in name_show() 28 dev_name(dev->parent)); in name_show() 77 return sysfs_emit(buf, "%d\n", to_rtc_device(dev)->max_user_freq); in max_user_freq_show() 93 return -EINVAL; in max_user_freq_store() 95 rtc->max_user_freq = (int)val; in max_user_freq_store() 102 * hctosys_show - indicate if the given RTC set the system time 115 strcmp(dev_name(&to_rtc_device(dev)->dev), in hctosys_show() [all …]
|
H A D | rtc-sh.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * SuperH On-Chip RTC Support 5 * Copyright (C) 2006 - 2009 Paul Mundt 34 #define RTC_BIT_INVERTED 0 /* no chip bugs */ 39 #define DRV_NAME "sh-rtc" 52 #define RSECAR RTC_REG(8) /* ALARM sec */ 53 #define RMINAR RTC_REG(9) /* ALARM min */ 54 #define RHRAR RTC_REG(10) /* ALARM hour */ 55 #define RWKAR RTC_REG(11) /* ALARM week */ 56 #define RDAYAR RTC_REG(12) /* ALARM day */ [all …]
|
H A D | rtc-at91sam9.c | 1 // SPDX-License-Identifier: GPL-2.0+ 7 * Based on rtc-at91rm9200.c by Rick Bronson 30 * - A "Real-time Timer" (RTT) counts up in seconds from a base time. 33 * - One of the "General Purpose Backup Registers" (GPBRs) holds the 35 * epoch (1970-Jan-1 00:00:00 UTC). Some systems also include the 38 * The RTC's value is the RTT counter plus that offset. The RTC's alarm 46 #define AT91_RTT_MR 0x00 /* Real-time Mode Register */ 48 #define AT91_RTT_ALMIEN BIT(16) /* Alarm Interrupt Enable */ 52 #define AT91_RTT_AR 0x04 /* Real-time Alarm Register */ 53 #define AT91_RTT_ALMV (0xffffffff) /* Alarm Value */ [all …]
|
H A D | rtc-lp8788.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * TI LP8788 MFD - rtc driver 58 enum lp8788_alarm_sel alarm; member 100 return LP8788_WDAY_SET << (tm_wday - 1); in _to_lp8788_wday() 112 struct lp8788 *lp = rtc->lp; in lp8788_rtc_read_time() 122 tm->tm_sec = data[LPTIME_SEC]; in lp8788_rtc_read_time() 123 tm->tm_min = data[LPTIME_MIN]; in lp8788_rtc_read_time() 124 tm->tm_hour = data[LPTIME_HOUR]; in lp8788_rtc_read_time() 125 tm->tm_mday = data[LPTIME_MDAY]; in lp8788_rtc_read_time() 126 tm->tm_mon = data[LPTIME_MON] - LP8788_MONTH_OFFSET; in lp8788_rtc_read_time() [all …]
|
H A D | rtc-stm32.c | 1 // SPDX-License-Identifier: GPL-2.0 10 #include <linux/clk-provider.h> 18 #include <linux/pinctrl/pinconf-generic.h> 189 const struct stm32_rtc_registers *regs = &rtc->data->regs; in stm32_rtc_wpr_unlock() 191 writel_relaxed(RTC_WPR_1ST_KEY, rtc->base + regs->wpr); in stm32_rtc_wpr_unlock() 192 writel_relaxed(RTC_WPR_2ND_KEY, rtc->base + regs->wpr); in stm32_rtc_wpr_unlock() 197 const struct stm32_rtc_registers *regs = &rtc->data->regs; in stm32_rtc_wpr_lock() 199 writel_relaxed(RTC_WPR_WRONG_KEY, rtc->base + regs->wpr); in stm32_rtc_wpr_lock() 254 struct stm32_rtc_registers regs = rtc->data->regs; in stm32_rtc_pinmux_action_alarm() 255 unsigned int cr = readl_relaxed(rtc->base + regs.cr); in stm32_rtc_pinmux_action_alarm() [all …]
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/therm/ |
H A D | fantog.c | 16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 31 struct nvkm_alarm alarm; member 41 struct nvkm_therm *therm = fan->base.parent; in nvkm_fantog_update() 42 struct nvkm_device *device = therm->subdev.device; in nvkm_fantog_update() 43 struct nvkm_timer *tmr = device->timer; in nvkm_fantog_update() 44 struct nvkm_gpio *gpio = device->gpio; in nvkm_fantog_update() 48 spin_lock_irqsave(&fan->lock, flags); in nvkm_fantog_update() 50 percent = fan->percent; in nvkm_fantog_update() 51 fan->percent = percent; in nvkm_fantog_update() 57 u64 next_change = (percent * fan->period_us) / 100; in nvkm_fantog_update() [all …]
|
/linux/kernel/time/ |
H A D | alarmtimer.c | 1 // SPDX-License-Identifier: GPL-2.0 6 * but triggers a RTC alarm if the box is suspend. 8 * This interface is influenced by the Android RTC Alarm timer 24 #include <linux/posix-timers.h> 31 #include "posix-timers.h" 37 * struct alarm_base - Alarm timer bases 61 /* rtc timer and device for setting alarm wakeups at suspend */ 67 * alarmtimer_get_rtcdev - Return selected rtcdevice 89 return -EBUSY; in alarmtimer_rtc_add_device() 91 if (!test_bit(RTC_FEATURE_ALARM, rtc->features)) in alarmtimer_rtc_add_device() [all …]
|
/linux/Documentation/devicetree/bindings/rtc/ |
H A D | qcom-pm8xxx-rtc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/rtc/qcom-pm8xxx-rtc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Satya Priya <quic_c_skakit@quicinc.com> 15 - enum: 16 - qcom,pm8058-rtc 17 - qcom,pm8921-rtc 18 - qcom,pm8941-rtc 19 - qcom,pmk8350-rtc [all …]
|