/linux-6.14.4/Documentation/devicetree/bindings/mfd/ |
D | st,stm32-lptimer.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/mfd/st,stm32-lptimer.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: STMicroelectronics STM32 Low-Power Timers 10 The STM32 Low-Power Timer (LPTIM) is a 16-bit timer that provides several 12 - PWM output (with programmable prescaler, configurable polarity) 13 - Trigger source for STM32 ADC/DAC (LPTIM_OUT) 14 - Several counter modes: 15 - quadrature encoder to detect angular position and direction of rotary [all …]
|
D | st,stm32-timers.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/mfd/st,stm32-timers.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: STMicroelectronics STM32 Timers 10 This hardware block provides 3 types of timer along with PWM functionality: 11 - advanced-control timers consist of a 16-bit auto-reload counter driven 14 - general-purpose timers consist of a 16-bit or 32-bit auto-reload counter 16 - basic timers consist of a 16-bit auto-reload counter driven by a 20 - Fabrice Gasnier <[email protected]> [all …]
|
/linux-6.14.4/drivers/counter/ |
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 3 # Counter devices 8 select COUNTER 14 Interval Timer (PIT). The Intel 825x family of chips was first 21 menuconfig COUNTER config 22 tristate "Counter support" 24 This enables counter device support through the Generic Counter 26 one or more of the counter device drivers below. 28 if COUNTER 31 tristate "ACCES 104-QUAD-8 driver" [all …]
|
D | stm32-lptimer-cnt.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * STM32 Low-Power Timer Encoder and Counter driver 9 * Inspired by 104-quad-8 and stm32-timer-trigger drivers. 14 #include <linux/counter.h> 15 #include <linux/mfd/stm32-lptimer.h> 37 ret = regmap_read(priv->regmap, STM32_LPTIM_CR, &val); in stm32_lptim_is_enabled() 51 ret = regmap_write(priv->regmap, STM32_LPTIM_CR, val); in stm32_lptim_set_enable_state() 56 clk_disable(priv->clk); in stm32_lptim_set_enable_state() 57 priv->enabled = false; in stm32_lptim_set_enable_state() 61 ret = clk_enable(priv->clk); in stm32_lptim_set_enable_state() [all …]
|
D | stm32-timer-cnt.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * STM32 Timer Encoder and Counter driver 10 #include <linux/counter.h> 12 #include <linux/mfd/stm32-timers.h> 59 static int stm32_count_read(struct counter_device *counter, in stm32_count_read() argument 62 struct stm32_timer_cnt *const priv = counter_priv(counter); in stm32_count_read() 65 regmap_read(priv->regmap, TIM_CNT, &cnt); in stm32_count_read() 71 static int stm32_count_write(struct counter_device *counter, in stm32_count_write() argument 74 struct stm32_timer_cnt *const priv = counter_priv(counter); in stm32_count_write() 77 regmap_read(priv->regmap, TIM_ARR, &ceiling); in stm32_count_write() [all …]
|
D | Makefile | 1 # SPDX-License-Identifier: GPL-2.0-only 3 # Makefile for Counter devices 6 obj-$(CONFIG_COUNTER) += counter.o 7 counter-y := counter-core.o counter-sysfs.o counter-chrdev.o 9 obj-$(CONFIG_I8254) += i8254.o 10 obj-$(CONFIG_104_QUAD_8) += 104-quad-8.o 11 obj-$(CONFIG_INTERRUPT_CNT) += interrupt-cnt.o 12 obj-$(CONFIG_RZ_MTU3_CNT) += rz-mtu3-cnt.o 13 obj-$(CONFIG_STM32_TIMER_CNT) += stm32-timer-cnt.o 14 obj-$(CONFIG_STM32_LPTIMER_CNT) += stm32-lptimer-cnt.o [all …]
|
/linux-6.14.4/arch/arm/boot/dts/st/ |
D | stm32mp131.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) 3 * Copyright (C) STMicroelectronics 2021 - All Rights Reserved 6 #include <dt-bindings/interrupt-controller/arm-gic.h> 7 #include <dt-bindings/clock/stm32mp13-clks.h> 8 #include <dt-bindings/reset/stm32mp13-resets.h> 11 #address-cells = <1>; 12 #size-cells = <1>; 15 #address-cells = <1>; 16 #size-cells = <0>; 19 compatible = "arm,cortex-a7"; [all …]
|
D | stm32mp151.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) 3 * Copyright (C) STMicroelectronics 2017 - All Rights Reserved 6 #include <dt-bindings/interrupt-controller/arm-gic.h> 7 #include <dt-bindings/clock/stm32mp1-clks.h> 8 #include <dt-bindings/reset/stm32mp1-resets.h> 11 #address-cells = <1>; 12 #size-cells = <1>; 15 #address-cells = <1>; 16 #size-cells = <0>; 19 compatible = "arm,cortex-a7"; [all …]
|
D | stm32h743.dtsi | 2 * Copyright 2017 - Alexandre Torgue <[email protected]> 4 * This file is dual-licensed: you can use it either under the terms 43 #include "../armv7-m.dtsi" 44 #include <dt-bindings/clock/stm32h7-clks.h> 45 #include <dt-bindings/mfd/stm32h7-rcc.h> 46 #include <dt-bindings/interrupt-controller/irq.h> 49 #address-cells = <1>; 50 #size-cells = <1>; 53 clk_hse: clk-hse { 54 #clock-cells = <0>; [all …]
|
/linux-6.14.4/drivers/clocksource/ |
D | timer-stm32.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Author: Maxime Coquelin <mcoquelin.stm32@gmail.com> 6 * Inspired by time-efm32.c from Uwe Kleine-Koenig 23 #include "timer-of.h" 54 * stm32_timer_of_bits_set - set accessor helper 58 * Accessor helper to set the number of bits in the timer-of private 64 struct stm32_timer_private *pd = to->private_data; in stm32_timer_of_bits_set() 66 pd->bits = bits; in stm32_timer_of_bits_set() 70 * stm32_timer_of_bits_get - get accessor helper 73 * Accessor helper to get the number of bits in the timer-of private [all …]
|
D | timer-stm32-lp.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) STMicroelectronics 2019 - All Rights Reserved 11 #include <linux/mfd/stm32-lptimer.h> 40 regmap_write(priv->reg, STM32_LPTIM_CR, 0); in stm32_clkevent_lp_shutdown() 41 regmap_write(priv->reg, STM32_LPTIM_IER, 0); in stm32_clkevent_lp_shutdown() 43 regmap_write(priv->reg, STM32_LPTIM_ICR, STM32_LPTIM_ARRMCF); in stm32_clkevent_lp_shutdown() 55 regmap_write(priv->reg, STM32_LPTIM_CR, 0); in stm32_clkevent_lp_set_timer() 57 regmap_write(priv->reg, STM32_LPTIM_IER, STM32_LPTIM_ARRMIE); in stm32_clkevent_lp_set_timer() 59 regmap_write(priv->reg, STM32_LPTIM_CR, STM32_LPTIM_ENABLE); in stm32_clkevent_lp_set_timer() 60 /* set next event counter */ in stm32_clkevent_lp_set_timer() [all …]
|
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 36 bool "BCM2835 timer driver" if COMPILE_TEST 39 Enables the support for the BCM2835 timer driver. 42 bool "BCM mobile timer driver" if COMPILE_TEST 45 Enables the support for the BCM Kona mobile timer driver. 48 bool "Texas Instruments DaVinci timer driver" if COMPILE_TEST 50 Enables the support for the TI DaVinci timer driver. 53 bool "Digicolor timer driver" if COMPILE_TEST 57 Enables the support for the digicolor timer driver. 60 bool "OMAP dual-mode timer driver" if ARCH_K3 || COMPILE_TEST [all …]
|
/linux-6.14.4/drivers/pwm/ |
D | pwm-stm32-lp.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * STM32 Low-Power Timer PWM driver 9 * Inspired by Gerald Baeza's pwm-stm32 driver 13 #include <linux/mfd/stm32-lptimer.h> 30 /* STM32 Low-Power Timer is preceded by a configurable power-of-2 prescaler */ 46 if (!state->enabled) { in stm32_pwm_lp_apply() 48 /* Disable LP timer */ in stm32_pwm_lp_apply() 49 ret = regmap_write(priv->regmap, STM32_LPTIM_CR, 0); in stm32_pwm_lp_apply() 52 /* disable clock to PWM counter */ in stm32_pwm_lp_apply() 53 clk_disable(priv->clk); in stm32_pwm_lp_apply() [all …]
|
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 3 bool "Pulse-Width Modulation (PWM) Support" 5 Generic Pulse-Width Modulation (PWM) support. 7 In Pulse-Width Modulation, a variation of the width of pulses 48 will be called pwm-ab8500. 67 will be called pwm-apple. 77 will be called pwm-atmel. 85 (Atmel High-end LCD Controller). This PWM output is mainly used 89 will be called pwm-atmel-hlcdc. 96 Generic PWM framework driver for Atmel Timer Counter Block. [all …]
|
D | pwm-stm32.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * Inspired by timer-stm32.c from Maxime Coquelin 8 * pwm-atmel.c from Bo Shen 12 #include <linux/mfd/stm32-timers.h> 49 regmap_read(dev->regmap, TIM_CCER, &ccer); in active_channels() 68 unsigned int ch = pwm->hwpwm; in stm32_pwm_round_waveform_tohw() 73 if (wf->period_length_ns == 0) { in stm32_pwm_round_waveform_tohw() 81 ret = clk_enable(priv->clk); in stm32_pwm_round_waveform_tohw() 85 wfhw->ccer = TIM_CCER_CCxE(ch + 1); in stm32_pwm_round_waveform_tohw() 86 if (priv->have_complementary_output) in stm32_pwm_round_waveform_tohw() [all …]
|
/linux-6.14.4/include/linux/mfd/ |
D | stm32-lptimer.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * STM32 Low-Power Timer parent driver. 6 * Inspired by Benjamin Gaignard's stm32-timers driver 22 #define STM32_LPTIM_CNT 0x1C /* Counter Reg */ 24 /* STM32_LPTIM_ISR - bit fields */ 29 /* STM32_LPTIM_ICR - bit fields */ 33 /* STM32_LPTIM_IER - bit flieds */ 36 /* STM32_LPTIM_CR - bit fields */ 41 /* STM32_LPTIM_CFGR - bit fields */ 57 * struct stm32_lptimer - STM32 Low-Power Timer data assigned by parent device [all …]
|
D | stm32-timers.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 12 #include <linux/dma-mapping.h> 24 #define TIM_CNT 0x24 /* Counter */ 26 #define TIM_ARR 0x2c /* Auto-Reload Register */ 27 #define TIM_CCRx(x) (0x34 + 4 * ((x) - 1)) /* Capt/Comp Register x (x ∈ {1, .. 4}) */ 32 #define TIM_BDTR 0x44 /* Break and Dead-Time Reg */ 37 #define TIM_CR1_CEN BIT(0) /* Counter Enable */ 38 #define TIM_CR1_DIR BIT(4) /* Counter Direction */ 39 #define TIM_CR1_ARPE BIT(7) /* Auto-reload Preload Ena */ 45 #define TIM_DIER_CCxIE(x) BIT(1 + ((x) - 1)) /* CCx Interrupt Enable (x ∈ {1, .. 4}) */ [all …]
|
/linux-6.14.4/drivers/iio/trigger/ |
D | stm32-timer-trigger.c | 1 // SPDX-License-Identifier: GPL-2.0 11 #include <linux/iio/timer/stm32-timer-trigger.h> 13 #include <linux/mfd/stm32-timers.h> 22 /* List the triggers created by each timer */ 41 { }, /* timer 18 */ 42 { }, /* timer 19 */ 46 /* List the triggers accepted by each timer */ 53 { }, /* timer 6 */ 54 { }, /* timer 7 */ 57 { }, /* timer 10 */ [all …]
|
/linux-6.14.4/drivers/watchdog/ |
D | stm32_iwdg.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Driver for STM32 Independent Watchdog 32 #define IWDG_EWCR 0x14 /* Early Wake-up Register */ 35 #define KR_KEY_RELOAD 0xAAAA /* reload counter enable */ 50 #define SR_RVU BIT(1) /* Watchdog counter reload value update */ 52 #define EWCR_EWIT GENMASK(11, 0) /* Watchdog counter window value */ 103 dev_dbg(wdd->parent, "%s\n", __func__); in stm32_iwdg_start() 105 if (!wdd->pretimeout) in stm32_iwdg_start() 106 wdd->pretimeout = 3 * wdd->timeout / 4; in stm32_iwdg_start() 108 tout = clamp_t(unsigned int, wdd->timeout, in stm32_iwdg_start() [all …]
|
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 8 bool "Watchdog Timer Support" 16 on-line as fast as possible after a lock-up. There's both a watchdog 21 <file:Documentation/watchdog/watchdog-api.rst> in the kernel source. 34 tristate "WatchDog Timer Driver Core" 36 Say Y here if you want to use the new watchdog timer driver core. 37 This driver provides a framework for all watchdog timer drivers 45 to stop the timer if the process managing it closes the file 51 bool "Update boot-enabled watchdog until userspace takes over" 77 bool "Enable watchdog hrtimer-based pretimeouts" [all …]
|
/linux-6.14.4/drivers/mfd/ |
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 57 tristate "Active-semi ACT8945A" 62 Support for the ACT8945A PMIC from Active-semi. This device 63 features three step-down DC/DC converters and four low-dropout 79 sun4i-gpadc-iio and the hwmon driver iio_hwmon. 82 called sun4i-gpadc. 113 tablets etc. It has 4 DC/DC step-down regulators, 3 DC/DC step-down 144 over at91-usart-serial driver and usart-spi-driver. Only one function 160 tristate "Atmel HLCDC (High-end LCD Controller)" 197 tristate "X-Powers AC100" [all …]
|
/linux-6.14.4/drivers/rtc/ |
D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 44 This clock should be battery-backed, so that it reads the correct 45 time when the system boots from a power-off state. Otherwise, your 141 once-per-second update interrupts, used for synchronization. 159 will be called rtc-test. 173 will be called rtc-88pm860x. 183 will be called rtc-88pm80x. 193 will be called rtc-88pm886. 197 tristate "Abracon AB-RTCMC-32.768kHz-B5ZE-S3" 200 AB-RTCMC-32.768kHz-B5ZE-S3 I2C RTC chip. [all …]
|
/linux-6.14.4/ |
D | MAINTAINERS | 5 --------------------------------------------------- 21 W: *Web-page* with status/info 23 B: URI for where to file *bugs*. A web-page with detailed bug 28 patches to the given subsystem. This is either an in-tree file, 29 or a URI. See Documentation/maintainer/maintainer-entry-profile.rst 46 N: [^a-z]tegra all files whose path contains tegra 64 ---------------- 83 3WARE SAS/SATA-RAID SCSI DRIVERS (3W-XXXX, 3W-9XXX, 3W-SAS) 85 L: linux-[email protected] 88 F: drivers/scsi/3w-* [all …]
|
/linux-6.14.4/drivers/clk/stm32/ |
D | clk-stm32mp1.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) STMicroelectronics 2018 - All Rights Reserved 9 #include <linux/clk-provider.h> 17 #include <linux/reset-controller.h> 21 #include <dt-bindings/clock/stm32mp1-clks.h> 23 #include "reset-stm32.h" 171 "ck_hse", "pll4_r", "clk-hse-div2" 384 /* STM32 Composite clock */ 397 struct gate_cfg *gate_cfg = cfg->cfg; in _clk_hw_register_gate() 400 cfg->name, in _clk_hw_register_gate() [all …]
|
/linux-6.14.4/Documentation/ABI/testing/ |
D | sysfs-bus-iio | 3 Contact: linux-[email protected] 11 Contact: linux-[email protected] 17 periodic timer, GPIO or high resolution timer). 25 Contact: linux-[email protected] 31 Contact: linux-[email protected] 38 Contact: linux-[email protected] 44 The contents of the label are free-form, but there are some 51 * "proximity-wifi" 52 * "proximity-lte" 53 * "proximity-wifi-lte" [all …]
|