/linux/Documentation/devicetree/bindings/mfd/ |
H A 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 …]
|
H A D | adi,adp5585.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Laurent Pinchart <laurent.pinchart@ideasonboard.com> 14 matrix decoder, programmable logic, reset generator, and PWM generator. 19 - items: 20 - enum: 21 - adi,adp5585-00 # Default 22 - adi,adp5585-01 # 11 GPIOs 23 - adi,adp5585-02 # No pull-up resistors by default on special pins [all …]
|
/linux/drivers/pwm/ |
H A D | pwm-bcm-kona.c | 1 // SPDX-License-Identifier: GPL-2.0-only 13 #include <linux/pwm.h> 18 * The Kona PWM has some unusual characteristics. Here are the main points. 24 * a subsequent rising edge of the trigger bit. 26 * 3) If the smooth bit and trigger bit are both low, the output is a constant 29 * 4) If the smooth bit is set on the rising edge of the trigger bit, output 34 * 5) When the external clock that feeds the PWM is disabled, output is pegged 69 * Clear trigger bit but set smooth bit to maintain old output. 74 unsigned int value = readl(kp->base + PWM_CONTROL_OFFSET); in kona_pwmc_prepare_for_settings() 78 writel(value, kp->base + PWM_CONTROL_OFFSET); in kona_pwmc_prepare_for_settings() [all …]
|
H A D | pwm-atmel-tcb.c | 1 // SPDX-License-Identifier: GPL-2.0-only 21 #include <linux/pwm.h> 36 unsigned div; /* PWM clock divider */ 37 unsigned duty; /* PWM duty expressed in clk cycles */ 38 unsigned period; /* PWM period expressed in clk cycles */ 69 struct pwm_device *pwm) in atmel_tcb_pwm_request() argument 72 struct atmel_tcb_pwm_device *tcbpwm = &tcbpwmc->pwms[pwm->hwpwm]; in atmel_tcb_pwm_request() 76 ret = clk_prepare_enable(tcbpwmc->clk); in atmel_tcb_pwm_request() 80 tcbpwm->duty = 0; in atmel_tcb_pwm_request() 81 tcbpwm->period = 0; in atmel_tcb_pwm_request() [all …]
|
/linux/arch/arm/boot/dts/st/ |
H A D | stm32f746.dtsi | 2 * Copyright 2015 - Maxime Coquelin <mcoquelin.stm32@gmail.com> 4 * This file is dual-licensed: you can use it either under the terms 43 #include "../armv7-m.dtsi" 44 #include <dt-bindings/clock/stm32fx-clock.h> 45 #include <dt-bindings/mfd/stm32f7-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 …]
|
H A D | stm32f429.dtsi | 2 * Copyright 2015 - Maxime Coquelin <mcoquelin.stm32@gmail.com> 4 * This file is dual-licensed: you can use it either under the terms 22 * MA 02110-1301 USA 48 #include "../armv7-m.dtsi" 49 #include <dt-bindings/clock/stm32fx-clock.h> 50 #include <dt-bindings/mfd/stm32f4-rcc.h> 53 #address-cells = <1>; 54 #size-cells = <1>; 57 clk_hse: clk-hse { 58 #clock-cells = <0>; [all …]
|
H A D | stm32h743.dtsi | 2 * Copyright 2017 - Alexandre Torgue <alexandre.torgue@st.com> 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/arch/arm/boot/dts/microchip/ |
H A D | at91-kizbox.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * at91-kizbox.dts - Device Tree file for Overkiz Kizbox board 5 * Copyright (C) 2012-2014 Boris BREZILLON <b.brezillon@overkiz.com> 6 * 2014-2015 Gaël PORTAY <g.portay@overkiz.com> 8 /dts-v1/; 10 #include <dt-bindings/pwm/pwm.h> 18 stdout-path = &dbgu; 27 clock-frequency = <18432000>; 31 gpio-keys { 32 compatible = "gpio-keys"; [all …]
|
H A D | at91-kizboxmini-common.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 3 * at91-kizboxmini.dts - Device Tree file for Overkiz Kizbox mini board 5 * Copyright (C) 2014-2018 Overkiz SAS 16 stdout-path = &dbgu; 25 clock-frequency = <12000000>; 29 clock-frequency = <32768>; 38 compatible = "gpio-keys"; 40 key-prog { 44 wakeup-source; 47 key-reset { [all …]
|
H A D | at91sam9m10g45ek.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * at91sam9m10g45ek.dts - Device Tree file for AT91SAM9M10G45-EK board 8 /dts-v1/; 10 #include <dt-bindings/pwm/pwm.h> 13 model = "Atmel AT91SAM9M10G45-EK"; 18 stdout-path = "serial0:115200n8"; 27 clock-frequency = <32768>; 31 clock-frequency = <12000000>; 43 compatible = "atmel,tcb-timer"; 48 compatible = "atmel,tcb-timer"; [all …]
|
H A D | at91-kizbox3_common.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 3 * at91-kizbox3.dts - Device Tree Include file for Overkiz Kizbox 3 12 /dts-v1/; 14 #include "sama5d2-pinfunc.h" 15 #include <dt-bindings/gpio/gpio.h> 16 #include <dt-bindings/mfd/atmel-flexcom.h> 17 #include <dt-bindings/pinctrl/at91.h> 18 #include <dt-bindings/pwm/pwm.h> 36 stdout-path = "serial1:115200n8"; 41 clock-frequency = <32768>; [all …]
|
/linux/arch/arm/boot/dts/samsung/ |
H A D | exynos54xx-odroidxu-leds.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 11 #include <dt-bindings/gpio/gpio.h> 12 #include <dt-bindings/leds/common.h> 15 led-controller-1 { 16 compatible = "pwm-leds"; 18 led-1 { 22 pwms = <&pwm 1 2000000 0>; 23 pwm-names = "pwm1"; 28 max-brightness = <127>; 29 linux,default-trigger = "mmc0"; [all …]
|
H A D | exynos5422-odroidxu4.dts | 1 // SPDX-License-Identifier: GPL-2.0 7 * Copyright (c) 2013-2015 Samsung Electronics Co., Ltd. 11 /dts-v1/; 12 #include <dt-bindings/leds/common.h> 13 #include <dt-bindings/sound/samsung-i2s.h> 14 #include "exynos5422-odroidxu3-common.dtsi" 18 compatible = "hardkernel,odroid-xu4", "samsung,exynos5800", \ 21 led-controller { 22 compatible = "pwm-leds"; 24 led-1 { [all …]
|
/linux/Documentation/iio/ |
H A D | ad7606.rst | 1 .. SPDX-License-Identifier: GPL-2.0-only 24 ---------------- 30 ------------------ 33 .. code-block:: 35 +-------------+ +-------------+ 36 | BUSY |-------->| TRIGGER | 37 | CS |<--------| CS | 41 | SDI |<--------| SDO | 42 | DOUTA |-------->| SDI | 43 | SCLK |<--------| SCLK | [all …]
|
/linux/arch/arm/boot/dts/marvell/ |
H A D | armada-388-helios4.dts | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 10 /dts-v1/; 11 #include "armada-388.dtsi" 12 #include "armada-38x-solidrun-microsom.dtsi" 25 /* So that mvebu u-boot can update the MAC addresses */ 30 stdout-path = "serial0:115200n8"; 33 reg_12v: regulator-12v { 34 compatible = "regulator-fixed"; 35 regulator-name = "power_brick_12V"; 36 regulator-min-microvolt = <12000000>; [all …]
|
/linux/arch/arm64/boot/dts/rockchip/ |
H A D | rk3528-radxa-e20c.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 8 /dts-v1/; 10 #include <dt-bindings/input/input.h> 11 #include <dt-bindings/leds/common.h> 12 #include <dt-bindings/pwm/pwm.h> 28 stdout-path = "serial0:1500000n8"; 31 adc-keys { 32 compatible = "adc-keys"; 33 io-channels = <&saradc 0>; 34 io-channel-names = "buttons"; [all …]
|
/linux/arch/arm/boot/dts/rockchip/ |
H A D | rv1109-relfor-saib.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 7 /dts-v1/; 9 #include <dt-bindings/leds/common.h> 10 #include <dt-bindings/input/input.h> 16 gpio-keys { 17 compatible = "gpio-keys"; 23 linux,input-type = <1>; 27 ir_receiver: ir-receiver { 28 compatible = "gpio-ir-receiver"; 30 pinctrl-names = "default"; [all …]
|
/linux/Documentation/leds/ |
H A D | leds-qcom-lpg.rst | 1 .. SPDX-License-Identifier: GPL-2.0 8 ----------- 11 number of PWM channels, a programmable pattern lookup table and a RGB LED 15 individual LEDs, grouped together as RGB LEDs or otherwise be accessed as PWM 16 channels. The output of each PWM channel is routed to other hardware 19 The each PWM channel can operate with a period between 27us and 384 seconds and 27 The pattern for a channel can be programmed using the "pattern" trigger, using 31 -------------------------------- 35 The pattern is a series of brightness and hold-time pairs, with the hold-time 39 transitions expected by the leds-trigger-pattern format, each entry in the [all …]
|
/linux/Documentation/devicetree/bindings/pinctrl/ |
H A D | starfive,jh7110-aon-pinctrl.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/pinctrl/starfive,jh7110-aon-pinctrl.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 Bindings for the JH7110 RISC-V SoC from StarFive Technology Ltd. 14 schmitt trigger etc. 15 Some peripherals such as PWM have their I/O go through the 4 "GPIOs". 18 - Hal Feng <hal.feng@starfivetech.com> 22 const: starfive,jh7110-aon-pinctrl 33 interrupt-controller: true [all …]
|
/linux/include/soc/at91/ |
H A D | atmel_tcb.h | 17 * Many 32-bit Atmel SOCs include one or more TC blocks, each of which holds 18 * three general-purpose 16-bit timers. These timers share one register bank. 23 * clocks or clock gates, and per-timer TIOA and TIOB signals used for PWM 37 * struct atmel_tcb_config - SoC data for a Timer/Counter Block 50 * struct atmel_tc - information about a Timer/Counter Block 80 /* platform-specific ATMEL_TC_TIMER_CLOCKx divisors (0 means 32KiHz) */ 85 * Two registers have block-wide controls. These are: configuring the three 119 * when it's not "external") is silicon-specific. AT91 platforms use one 120 * set of definitions; AVR32 platforms use a different set. Don't hard-wire 126 * generation mode (including PWM) or "capture" mode (to time events). In [all …]
|
/linux/arch/arm/boot/dts/broadcom/ |
H A D | bcm-ns.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 3 * Copyright 2013-2014 Hauke Mehrtens <hauke@hauke-m.de> 6 #include <dt-bindings/clock/bcm-nsp.h> 7 #include <dt-bindings/gpio/gpio.h> 8 #include <dt-bindings/input/input.h> 9 #include <dt-bindings/interrupt-controller/irq.h> 10 #include <dt-bindings/interrupt-controller/arm-gic.h> 13 interrupt-parent = <&gic>; 14 #address-cells = <1>; 15 #size-cells = <1>; [all …]
|
/linux/Documentation/driver-api/gpio/ |
H A D | drivers-on-gpio.rst | 6 the right in-kernel and userspace APIs/ABIs for the job, and that these 10 - leds-gpio: drivers/leds/leds-gpio.c will handle LEDs connected to GPIO 13 - ledtrig-gpio: drivers/leds/trigger/ledtrig-gpio.c will provide a LED trigger, 15 (and that LED may in turn use the leds-gpio as per above). 17 - gpio-keys: drivers/input/keyboard/gpio_keys.c is used when your GPIO line 20 - gpio-keys-polled: drivers/input/keyboard/gpio_keys_polled.c is used when your 24 - gpio_mouse: drivers/input/mouse/gpio_mouse.c is used to provide a mouse with 29 - gpio-beeper: drivers/input/misc/gpio-beeper.c is used to provide a beep from 31 off/on, for an actual PWM waveform, see pwm-gpio below.) 33 - pwm-gpio: drivers/pwm/pwm-gpio.c is used to toggle a GPIO with a high [all …]
|
/linux/Documentation/hwmon/ |
H A D | dme1737.rst | 18 Addresses scanned: none, address read from Super-I/O config space 34 Addresses scanned: none, address read from Super-I/O config space 43 ----------------- 47 and PWM output control functions. Using this parameter 52 Include non-standard LPC addresses 0x162e and 0x164e 55 - VIA EPIA SN18000 59 ----------- 63 and SCH5127 Super-I/O chips. These chips feature monitoring of 3 temp sensors 64 temp[1-3] (2 remote diodes and 1 internal), 8 voltages in[0-7] (7 external and 65 1 internal) and up to 6 fan speeds fan[1-6]. Additionally, the chips implement [all …]
|
/linux/arch/arm/boot/dts/synaptics/ |
H A D | berlin2cd-google-chromecast.dts | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 8 /dts-v1/; 11 #include <dt-bindings/gpio/gpio.h> 19 stdout-path = "serial0:115200n8"; 26 * We're using "linux,usable-memory" instead of "reg" here 34 linux,usable-memory = <0x00000000 0x20000000>; /* 512 MB */ 37 led-controller { 38 compatible = "pwm-leds"; 39 pinctrl-0 = <&ledpwm_pmux>; 40 pinctrl-names = "default"; [all …]
|
/linux/include/uapi/linux/ |
H A D | comedi.h | 1 /* SPDX-License-Identifier: LGPL-2.0+ WITH Linux-syscall-note */ 6 * COMEDI - Linux Control and Measurement Device Interface 7 * Copyright (C) 1998-2001 David A. Schleef <ds@schleef.org> 32 * NOTE: 'comedi_config --init-data' is deprecated 40 /* length of nth chunk of firmware data -*/ 78 /* counters -- these are arbitrary values */ 120 /* try to use a real-time interrupt while performing command */ 123 /* wake up on end-of-scan events */ 154 /* trigger sources */ 159 #define TRIG_NONE 0x00000001 /* never trigger */ [all …]
|