Home
last modified time | relevance | path

Searched +full:direction +full:- +full:duty +full:- +full:cycle +full:- +full:ns (Results 1 – 8 of 8) sorted by relevance

/linux/Documentation/devicetree/bindings/input/
H A Dpwm-vibrator.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
4 $id: http://devicetree.org/schemas/input/pwm-vibrator.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Sebastian Reichel <sre@kernel.org>
14 strength increases based on the duty cycle of the enable PWM channel
15 (100% duty cycle meaning strongest vibration, 0% meaning no vibration).
17 The binding supports an optional direction PWM channel, that can be
18 driven at fixed duty cycle. If available this is can be used to increase
23 const: pwm-vibrator
[all …]
/linux/arch/arm/boot/dts/ti/omap/
H A Dmotorola-mapphone-handset.dtsi1 // SPDX-License-Identifier: GPL-2.0-only
2 /dts-v1/;
4 #include "motorola-mapphone-common.dtsi"
8 fsusb1_phy: usb-phy@1 {
9 compatible = "motorola,mapphone-mdm6600";
10 pinctrl-0 = <&usb_mdm6600_pins>;
11 pinctrl-1 = <&usb_mdm6600_sleep_pins>;
12 pinctrl-names = "default", "sleep";
13 enable-gpios = <&gpio3 31 GPIO_ACTIVE_LOW>; /* gpio_95 */
14 power-gpios = <&gpio2 22 GPIO_ACTIVE_HIGH>; /* gpio_54 */
[all …]
/linux/drivers/input/misc/
H A Dpwm-vibra.c1 // SPDX-License-Identifier: GPL-2.0-or-later
11 * Copyright (C) 2010, Lars-Peter Clausen <lars@metafoo.de>
40 struct device *pdev = vibrator->input->dev.parent; in pwm_vibrator_start()
44 if (!vibrator->vcc_on) { in pwm_vibrator_start()
45 err = regulator_enable(vibrator->vcc); in pwm_vibrator_start()
50 vibrator->vcc_on = true; in pwm_vibrator_start()
53 gpiod_set_value_cansleep(vibrator->enable_gpio, 1); in pwm_vibrator_start()
55 pwm_get_state(vibrator->pwm, &state); in pwm_vibrator_start()
56 pwm_set_relative_duty_cycle(&state, vibrator->level, 0xffff); in pwm_vibrator_start()
59 err = pwm_apply_might_sleep(vibrator->pwm, &state); in pwm_vibrator_start()
[all …]
/linux/include/uapi/linux/
H A Dcomedi.h1 /* 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 */
160 #define TRIG_NOW 0x00000002 /* trigger now + N ns */
162 #define TRIG_TIME 0x00000008 /* trigger at time N ns */
[all …]
/linux/drivers/net/dsa/microchip/
H A Dksz_ptp.c1 // SPDX-License-Identifier: GPL-2.0
24 /* Sub-nanoseconds-adj,max * sub-nanoseconds / 40ns * 1ns
25 * = (2^30-1) * (2 ^ 32) / 40 ns * 1 ns = 6249999
30 #define KSZ_PTP_INC_NS 40ULL /* HW clock is incremented every 40 ns (by 40) */
75 /* Clear reset and set GPIO direction */ in ksz_ptp_tou_reset()
85 return -EINVAL; in ksz_ptp_tou_pulse_verify()
89 return -ERANGE; in ksz_ptp_tou_pulse_verify()
100 if ((ts->tv_sec & 0xffffffff) != ts->tv_sec) in ksz_ptp_tou_target_time_set()
101 return -EINVAL; in ksz_ptp_tou_target_time_set()
103 ret = ksz_write32(dev, REG_TRIG_TARGET_NANOSEC, ts->tv_nsec); in ksz_ptp_tou_target_time_set()
[all …]
/linux/drivers/net/phy/
H A Dmicrel.c1 // SPDX-License-Identifier: GPL-2.0+
9 * Copyright (c) 2010-2013 Micrel, Inc.
131 * The value is calculated as following: (1/1000000)/((2^-32)/4)
137 * The value is calculated as following: (1/1000000)/((2^-32)/8)
566 const struct kszphy_type *type = phydev->drv->driver_data; in kszphy_config_intr()
570 if (type && type->interrupt_level_mask) in kszphy_config_intr()
571 mask = type->interrupt_level_mask; in kszphy_config_intr()
583 if (phydev->interrupts == PHY_INTERRUPT_ENABLED) { in kszphy_config_intr()
646 return -EINVAL; in kszphy_setup_led()
666 * unique (non-broadcast) address on a shared bus.
[all …]
/linux/drivers/net/ethernet/intel/ice/
H A Dice_ptp.c1 // SPDX-License-Identifier: GPL-2.0
19 { TIME_SYNC, { 4, -1 }, { 0, 0 }},
20 { ONE_PPS, { -1, 5 }, { 0, 11 }},
29 { TIME_SYNC, { 4, -1 }, { 11, 0 }},
30 { ONE_PPS, { -1, 5 }, { 0, 9 }},
39 { ONE_PPS, { -1, 5 }, { 0, 1 }},
51 { SDP0, { -1, 0 }, { 0, 1 }},
52 { SDP1, { 1, -
289 u64 ns; ice_ptp_extend_32b_ts() local
1055 u64 ns = timespec64_to_ns(ts); ice_ptp_write_init() local
[all...]
/linux/drivers/ata/
H A Dlibata-core.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * libata-core.c - helper library for ATA
5 * Copyright 2003-2004 Red Hat, Inc. All rights reserved.
6 * Copyright 2003-2004 Jeff Garzik
9 * as Documentation/driver-api/libata.rst
12 * http://www.sata-io.org/
16 * http://www.t10.org (SCSI MMC - for ATAPI MMC)
17 * http://www.sata-io.org (SATA)
19 * http://www.qic.org (QIC157 - Tape and DSC)
20 * http://www.ce-ata.org (CE-ATA: not supported)
[all …]