/linux/Documentation/devicetree/bindings/timer/ |
H A D | xlnx,xps-timer.yaml | 1 # SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/timer/xlnx,xps-timer.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Xilinx LogiCORE IP AXI Timer 10 - Sean Anderson <sean.anderson@seco.com> 15 const: xlnx,xps-timer-1.00.a 20 clock-names: 29 '#pwm-cells': true 31 xlnx,count-width: [all …]
|
H A D | cdns,ttc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/timer/cdns,ttc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Cadence TTC - Triple Timer Counter 10 - Michal Simek <michal.simek@amd.com> 22 A list of 3 interrupts; one per timer channel. 27 power-domains: 30 timer-width: 33 Bit width of the timer, necessary if not 16. [all …]
|
H A D | nxp,tpm-timer.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/timer/nxp,tpm-timer.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: NXP Low Power Timer/Pulse Width Modulation Module (TPM) 10 - Dong Aisheng <aisheng.dong@nxp.com> 13 The Timer/PWM Module (TPM) supports input capture, output compare, 18 the counter bus for the others, provided bit width is the same. 23 - const: fsl,imx7ulp-tpm 24 - items: [all …]
|
/linux/drivers/pwm/ |
H A D | pwm-xilinx.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * - When changing both duty cycle and period, we may end up with one cycle 13 * - Cannot produce 100% duty cycle by configuring the TLRs. This might be 16 * - Only produces "normal" output. 17 * - Always produces low output if disabled. 20 #include <clocksource/timer-xilinx.h> 22 #include <linux/clk-provider.h> 37 WARN_ON(cycles < 2 || cycles - 2 > priv->max); in xilinx_timer_tlr_cycles() 40 return cycles - 2; in xilinx_timer_tlr_cycles() 41 return priv->max - cycles + 2; in xilinx_timer_tlr_cycles() [all …]
|
H A D | pwm-dwc-core.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2018-2020 Intel Corporation 22 #include "pwm-dwc.h" 48 * Calculate width of low and high period in terms of input clock in __dwc_pwm_configure_timer() 52 tmp = DIV_ROUND_CLOSEST_ULL(state->duty_cycle, dwc->clk_ns); in __dwc_pwm_configure_timer() 54 return -ERANGE; in __dwc_pwm_configure_timer() 55 low = tmp - 1; in __dwc_pwm_configure_timer() 57 tmp = DIV_ROUND_CLOSEST_ULL(state->period - state->duty_cycle, in __dwc_pwm_configure_timer() 58 dwc->clk_ns); in __dwc_pwm_configure_timer() 60 return -ERANGE; in __dwc_pwm_configure_timer() [all …]
|
/linux/drivers/clocksource/ |
H A D | timer-sp804.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * linux/drivers/clocksource/timer-sp.c 5 * Copyright (C) 1999 - 2003 ARM Limited 24 #include "timer-sp.h" 26 /* Hisilicon 64-bit timer(a variant of ARM SP804) */ 46 .width = 32, 57 .width = 64, 102 return ~readl_relaxed(sched_clkevt->value); in sp804_read() 115 return -EINVAL; in sp804_clocksource_and_sched_clock_init() 119 writel(0, clkevt->ctrl); in sp804_clocksource_and_sched_clock_init() [all …]
|
H A D | timer-stm32.c | 1 // SPDX-License-Identifier: GPL-2.0-only 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 80 struct stm32_timer_private *pd = to->private_data; in stm32_timer_of_bits_get() [all …]
|
/linux/arch/riscv/boot/dts/canaan/ |
H A D | k210.dtsi | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright (C) 2019-20 Sean Anderson <seanga2@gmail.com> 6 #include <dt-bindings/clock/k210-clk.h> 7 #include <dt-bindings/pinctrl/k210-fpioa.h> 8 #include <dt-bindings/reset/k210-rst.h> 12 * Although the K210 is a 64-bit CPU, the address bus is only 32-bits 15 #address-cells = <1>; 16 #size-cells = <1>; 17 compatible = "canaan,kendryte-k210"; 21 * Since this is a non-ratified draft specification, the kernel does not [all …]
|
/linux/arch/m68k/include/asm/ |
H A D | MC68328.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 /* include/asm-m68knommu/MC68328.h: '328 control registers 8 * Based on include/asm-m68knommu/MC68332.h 26 * 0xFFFFF0xx -- System Control 36 #define SCR_WDTH8 0x01 /* 8-Bit Width Select */ 39 #define SCR_BETEN 0x10 /* Bus-Error Time-Out Enable */ 42 #define SCR_BETO 0x80 /* Bus-Error TimeOut */ 52 * 0xFFFFF1xx -- Chip-Select logic 58 * 0xFFFFF2xx -- Phase Locked Loop (PLL) & Power Control 76 #define GRPBASE_GBA_MASK 0xfff0 /* Group Base Address (bits 31-20) */ [all …]
|
H A D | MC68EZ328.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 /* include/asm-m68knommu/MC68EZ328.h: 'EZ328 control registers 8 * Based on include/asm-m68knommu/MC68332.h 27 * 0xFFFFF0xx -- System Control 37 #define SCR_WDTH8 0x01 /* 8-Bit Width Select */ 40 #define SCR_BETEN 0x10 /* Bus-Error Time-Out Enable */ 43 #define SCR_BETO 0x80 /* Bus-Error TimeOut */ 53 * 0xFFFFF1xx -- Chip-Select logic 84 #define CSA_EN 0x0001 /* Chip-Select Enable */ 85 #define CSA_SIZ_MASK 0x000e /* Chip-Select Size */ [all …]
|
H A D | MC68VZ328.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 /* include/asm-m68knommu/MC68VZ328.h: 'VZ328 control registers 5 * Copyright (c) 2000-2001 Lineo Inc. <www.lineo.com> 6 * Copyright (c) 2000-2001 Lineo Canada Corp. <www.lineo.ca> 9 * Based on include/asm-m68knommu/MC68332.h 29 * 0xFFFFF0xx -- System Control 39 #define SCR_WDTH8 0x01 /* 8-Bit Width Select */ 42 #define SCR_BETEN 0x10 /* Bus-Error Time-Out Enable */ 45 #define SCR_BETO 0x80 /* Bus-Error TimeOut */ 55 * 0xFFFFF1xx -- Chip-Select logic [all …]
|
/linux/arch/arm/boot/dts/microchip/ |
H A D | at91-sam9_l9260.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * at91-sam9_l9260.dts - Device Tree file for Olimex SAM9-L9260 board 7 /dts-v1/; 11 model = "Olimex sam9-l9260"; 12 compatible = "olimex,sam9-l9260", "atmel,at91sam9260", "atmel,at91sam9"; 15 stdout-path = "serial0:115200n8"; 24 clock-frequency = <32768>; 28 clock-frequency = <18432000>; 34 tcb0: timer@fffa0000 { 35 timer@0 { [all …]
|
H A D | at91sam9260ek.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 8 /dts-v1/; 10 #include <dt-bindings/input/input.h> 17 stdout-path = &dbgu; 26 clock-frequency = <32768>; 30 clock-frequency = <18432000>; 36 tcb0: timer@fffa0000 { 37 timer@0 { 38 compatible = "atmel,tcb-timer"; 42 timer@2 { [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>; 41 tcb0: timer@fff7c000 { 42 timer@0 { [all …]
|
H A D | sama5d3xcm.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * sama5d3xcm.dtsi - Device Tree Include file for SAMA5D3x CPU Module 14 stdout-path = "serial0:115200n8"; 23 clock-frequency = <32768>; 27 clock-frequency = <12000000>; 34 cs-gpios = <&pioD 13 0>, <0>, <0>, <0>; 37 tcb0: timer@f0010000 { 38 timer@0 { 39 compatible = "atmel,tcb-timer"; 43 timer@1 { [all …]
|
H A D | pm9g45.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * pm9g45.dts - Device Tree file for Ronetix pm9g45 board 5 * Copyright (C) 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> 7 /dts-v1/; 24 clock-frequency = <32768>; 28 clock-frequency = <12000000>; 40 pinctrl_nand_rb: nand-rb-0 { 47 pinctrl_board_mmc: mmc0-board { 54 tcb0: timer@fff7c000 { 55 timer@0 { [all …]
|
H A D | at91-qil_a9260.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * at91-qil_a9260.dts - Device Tree file for Calao QIL A9260 board 5 * Copyright (C) 2011-2013 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> 7 /dts-v1/; 11 compatible = "calao,qil-a9260", "atmel,at91sam9260", "atmel,at91sam9"; 23 clock-frequency = <32768>; 27 clock-frequency = <12000000>; 33 tcb0: timer@fffa0000 { 34 timer@0 { 35 compatible = "atmel,tcb-timer"; [all …]
|
H A D | at91-cosino.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * at91-cosino.dtsi - Device Tree file for Cosino core module 5 * Copyright (C) 2013 - Rodolfo Giometti <giometti@linux.it> 29 clock-frequency = <32768>; 33 clock-frequency = <12000000>; 39 atmel,adc-ts-wires = <4>; 40 atmel,adc-ts-pressure-threshold = <10000>; 49 pinctrl-0 = <&pinctrl_ebi_addr_nand 51 pinctrl-names = "default"; 54 nand-controller { [all …]
|
H A D | animeo_ip.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * animeo_ip.dts - Device Tree file for Somfy Animeo IP Boards 5 * Copyright (C) 2011-2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> 8 /dts-v1/; 13 compatible = "somfy,animeo-ip", "atmel,at91sam9260", "atmel,at91sam9"; 26 stdout-path = &usart2; 35 clock-frequency = <32768>; 39 clock-frequency = <18432000>; 45 tcb0: timer@fffa0000 { 46 timer@0 { [all …]
|
/linux/Documentation/devicetree/bindings/mmc/ |
H A D | snps,dwcmshc-sdhci.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 4 $id: http://devicetree.org/schemas/mmc/snps,dwcmshc-sdhci.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Ulf Hansson <ulf.hansson@linaro.org> 11 - Jisheng Zhang <Jisheng.Zhang@synaptics.com> 16 - items: 17 - enum: 18 - rockchip,rk3528-dwcmshc 19 - rockchip,rk3562-dwcmshc [all …]
|
/linux/tools/testing/selftests/kvm/arm64/ |
H A D | arch_timer_edge_cases.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * arch_timer_edge_cases.c - Tests the aarch64 timer IRQ functionality. 5 * The test validates some edge cases related to the arch-timer: 6 * - timers above the max TVAL value. 7 * - timers in the past 8 * - moving counters ahead and behind pending timers. 9 * - reprograming timers. 10 * - timers fired multiple times. 11 * - masking/unmasking using the timer control mask. 25 /* Depends on counter width. */ [all …]
|
/linux/arch/arm64/boot/dts/altera/ |
H A D | socfpga_stratix10.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 6 /dts-v1/; 7 #include <dt-bindings/reset/altr,rst-mgr-s10.h> 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/clock/stratix10-clock.h> 12 compatible = "altr,socfpga-stratix10"; 13 #address-cells = <2>; 14 #size-cells = <2>; 16 reserved-memory { 17 #address-cells = <2>; [all …]
|
/linux/arch/arm64/boot/dts/intel/ |
H A D | socfpga_agilex.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 6 /dts-v1/; 7 #include <dt-bindings/reset/altr,rst-mgr-s10.h> 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/interrupt-controller/arm-gic.h> 10 #include <dt-bindings/clock/agilex-clock.h> 13 compatible = "intel,socfpga-agilex"; 14 #address-cells = <2>; 15 #size-cells = <2>; 17 reserved-memory { [all …]
|
H A D | keembay-soc.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 8 #include <dt-bindings/interrupt-controller/arm-gic.h> 11 interrupt-parent = <&gic>; 12 #address-cells = <2>; 13 #size-cells = <2>; 16 #address-cells = <1>; 17 #size-cells = <0>; 20 compatible = "arm,cortex-a53"; 23 enable-method = "psci"; 27 compatible = "arm,cortex-a53"; [all …]
|
/linux/drivers/media/i2c/cx25840/ |
H A D | cx25840-ir.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 13 #include <media/drv-intf/cx25840.h> 14 #include <media/rc-core.h> 16 #include "cx25840-core.h" 117 return state ? state->ir_state : NULL; in to_ir_state() 135 d--; in count_to_clock_divider() 193 * FIFO register pulse width count computations 199 * the pulse width counter as read from the FIFO. The two lsb's are in clock_divider_to_resolution() 212 * The 2 lsb's of the pulse width timer count are not readable, hence in pulse_width_count_to_ns() 231 * The 2 lsb's of the pulse width timer count are not accessible, hence [all …]
|