/freebsd/sys/contrib/device-tree/Bindings/regulator/ |
H A D | pwm-regulator.txt | 7 predefined voltage <=> duty-cycle values must be 10 Intermediary duty-cycle values which would normally 13 the user if the assumptions made in continuous-voltage 18 regulator-{min,max}-microvolt properties to calculate 19 appropriate duty-cycle values. This allows for a much 21 voltage-table mode above. This solution does make an 22 assumption that a %50 duty-cycle value will cause the 27 -------------------- 28 - compatible: Should be "pwm-regulator" 30 - pwms: PWM specification (See: ../pwm/pwm.txt) [all …]
|
H A D | pwm-regulator.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/regulator/pwm-regulator.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Brian Norris <briannorris@chromium.org> 11 - Lee Jones <lee@kernel.org> 12 - Alexandre Courbot <acourbot@nvidia.com> 19 duty-cycle values must be provided via DT. Limitations are that the 21 Intermediary duty-cycle values which would normally allow finer grained 23 is given to the user if the assumptions made in continuous-voltage mode do [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/input/ |
H A D | pwm-vibrator.yaml | 1 # 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). 18 driven at fixed duty cycle. If available this is can be used to increase 23 const: pwm-vibrator 25 pwm-names: [all …]
|
H A D | pwm-vibrator.txt | 4 strength increases based on the duty cycle of the enable PWM channel 5 (100% duty cycle meaning strongest vibration, 0% meaning no vibration). 8 driven at fixed duty cycle. If available this is can be used to increase 12 - compatible: should contain "pwm-vibrator" 13 - pwm-names: Should contain "enable" and optionally "direction" 14 - pwms: Should contain a PWM handle for each entry in pwm-names 17 - vcc-supply: Phandle for the regulator supplying power 18 - direction-duty-cycle-ns: Duty cycle of the direction PWM channel in 26 pinctrl-single,pins = < 32 pinctrl-single,pins = < [all …]
|
/freebsd/share/man/man9/ |
H A D | pwmbus.9 | 41 .Fn PWMBUS_CHANNEL_CONFIG "device_t bus" "u_int channel" "u_int period" "u_int duty" 47 .Fn PWMBUS_CHANNEL_GET_CONFIG "device_t bus" "u_int channel" "u_int *period" "u_int *duty" 55 The PWMBUS (Pulse-Width Modulation) interface allows a device driver to 63 argument is the duration in nanoseconds of one complete on-off cycle, and the 64 .Va duty 65 argument is the duration in nanoseconds of the on portion of that cycle. 71 In such cases, changing the period or duty cycle of any one channel may affect 76 .Bl -tag -width indent 77 .It Fn PWMBUS_CHANNEL_CONFIG "device_t bus" "u_int channel" "u_int period" "u_int duty" 78 Configure the period and duty (in nanoseconds) in the PWM controller on the bus [all …]
|
/freebsd/usr.sbin/pwm/ |
H A D | pwm.8 | 38 .Op Fl d Ar duty 62 .Bl -tag -width "-f device" 75 .It Fl d Ar duty 76 Configure the duty cycle (in nanoseconds or percentage) of the PWM channel. 77 Duty is the portion of the 88 .Bl -bullet 91 .Bd -literal 92 pwm -f /dev/pwm/pwmc0.1 -C 95 Configure a 50000 ns period and a 25000 ns duty cycle 97 .Bd -literal [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/leds/backlight/ |
H A D | pwm-backlight.txt | 1 pwm-backlight bindings 4 - compatible: "pwm-backlight" 5 - pwms: OF device-tree PWM specification (see PWM binding[0]) 6 - power-supply: regulator for supply voltage 9 - pwm-names: a list of names for the PWM devices specified in the 11 - enable-gpios: contains a single GPIO specifier for the GPIO which enables 13 - post-pwm-on-delay-ms: Delay in ms between setting an initial (non-zero) PWM 15 - pwm-off-delay-ms: Delay in ms between disabling the backlight using GPIO 17 - brightness-levels: Array of distinct brightness levels. Typically these 19 0 will do. The actual brightness level (PWM duty cycle) [all …]
|
H A D | pwm-backlight.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 4 $id: http://devicetree.org/schemas/leds/backlight/pwm-backlight.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: pwm-backligh [all...] |
/freebsd/sys/dev/pwm/ |
H A D | pwmbus_if.m | 1 #- 2 # SPDX-License-Identifier: BSD-2-Clause 51 # Config the period (Total number of cycle in ns) and 52 # the duty (active number of cycle in ns) 58 u_int duty; 62 # Get the period (Total number of cycle in ns) and 63 # the duty (active number of cycle in ns) 69 u_int *duty;
|
H A D | pwm_backlight.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 71 uint64_t duty; member 78 { "pwm-backlight", 1 }, 86 if (!ofw_bus_search_compatible(dev, compat_data)->ocd_data) in pwm_backlight_probe() 103 rv = pwm_get_by_ofw_propidx(dev, node, "pwms", 0, &sc->channel); in pwm_backlight_attach() 109 if (regulator_get_by_ofw_property(dev, 0, "power-supply", in pwm_backlight_attach() 110 &sc->power_supply) != 0) { in pwm_backlight_attach() 111 device_printf(dev, "No power-supply property\n"); in pwm_backlight_attach() 115 if (OF_hasprop(node, "brightness-levels")) { in pwm_backlight_attach() [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/hwmon/ |
H A D | adt7475.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Jean Delvare <jdelvare@suse.com> 23 https://www.onsemi.com/pub/Collateral/ADT7473-D.PDF 24 https://www.onsemi.com/pub/Collateral/ADT7475-D.PDF 25 https://www.onsemi.com/pub/Collateral/ADT7476-D.PDF 26 https://www.onsemi.com/pub/Collateral/ADT7490-D.PDF 34 - adi,adt7473 35 - adi,adt7475 [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/leds/irled/ |
H A D | spi-ir-led.txt | 8 - compatible: should be "ir-spi-led". 11 - duty-cycle: 8 bit value that represents the percentage of one period 13 - led-active-low: boolean value that specifies whether the output is 15 - power-supply: specifies the power source. It can either be a regulator 16 or a gpio which enables a regulator, i.e. a regulator-fixed as 18 Documentation/devicetree/bindings/regulator/fixed-regulator.yaml 23 compatible = "ir-spi-led"; 25 spi-max-frequency = <5000000>; 26 power-supply = <&vdd_led>; 27 led-active-low; [all …]
|
H A D | ir-spi-led.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/leds/irled/ir-spi-led.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Sean Young <sean@mess.org> 17 - $ref: /schemas/spi/spi-peripheral-props.yaml# 21 const: ir-spi-led 26 duty-cycle: 32 led-active-low: 37 power-supply: true [all …]
|
/freebsd/share/man/man4/ |
H A D | pwmc.4 | 35 .Bd -ragged -offset indent 43 .Bd -literal -offset indent 49 driver provides device-control access to a channel of PWM hardware. 59 duty cycle of any one channel may affect other channels within the 84 .Bl -tag -width indent 99 .Bd -literal 102 u_int duty; 107 .Bl -tag -width period 109 The duration, in nanoseconds, of one complete on-off cycle. 110 .It Va duty [all …]
|
/freebsd/sys/contrib/device-tree/src/arm64/allwinner/ |
H A D | sun50i-a64-pinephone-1.1.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 4 /dts-v1/; 6 #include "sun50i-a64-pinephone.dtsi" 10 compatible = "pine64,pinephone-1.1", "pine64,pinephone", "allwinner,sun50i-a64"; 14 power-supply = <®_ldo_io0>; 17 * 1.0, and the lowest PWM duty cycle that doesn't lead to backlight 18 * being off is around 20%. Duty cycle for the lowest brightness level 22 brightness-levels = < 28 num-interpolated-steps = <50>; 29 default-brightness-level = <400>; [all …]
|
H A D | sun50i-a64-pinephone-1.2.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 4 /dts-v1/; 6 #include "sun50i-a64-pinephone.dtsi" 10 compatible = "pine64,pinephone-1.2", "pine64,pinephone", "allwinner,sun50i-a64"; 12 wifi_pwrseq: wifi-pwrseq { 13 compatible = "mmc-pwrseq-simple"; 14 reset-gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */ 19 power-supply = <®_ldo_io0>; 22 * and the lowest PWM duty cycle that doesn't lead to backlight being off 23 * is around 10%. Duty cycle for the lowest brightness level also varries [all …]
|
/freebsd/sys/dev/videomode/ |
H A D | vesagtf.c | 3 /*- 43 * This has required the use of 64-bit integers in a few places, but 89 * Copyright (c) 1994, 1995, 1996 - Video Electronics Standards 120 * surrounding the addressable video); on most non-overscan type 170 /* C' and M' are part of the Blanking Duty Cycle computation */ 172 * #define C_PRIME (((C - J) * K/256.0) + J) 180 #define C_PRIME256(p) (((p->C - p->J) * p->K) + (p->J * 256)) 181 #define M_PRIME256(p) (p->K * p->M) 186 * print_value() - print the result of the named computation; this is 195 printf("%2d: %-27s: %u\n", n, name, val); in print_value() [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/pwm/ |
H A D | microchip,corepwm.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 4 --- 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 - Conor Dooley <conor.dooley@microchip.com> 16 https://www.microsemi.com/existing-parts/parts/152118 19 - $ref: pwm.yaml# 24 - const: microchip,corepwm-rtl-v4 32 "#pwm-cells": 37 microchip,sync-update-mask: 45 control the duty cycle for channel x have a second "shadow"/buffer reg synthesised. [all …]
|
H A D | clk-pwm.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/pwm/clk-pwm.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Nikita Travkin <nikita@trvn.ru> 15 It's often possible to control duty-cycle of such clocks which makes them 19 - $ref: pwm.yaml# 23 const: clk-pwm 29 "#pwm-cells": 35 - compatible [all …]
|
/freebsd/sys/dev/acpica/ |
H A D | acpi_throttle.c | 1 /*- 2 * Copyright (c) 2003-2005 Nate Lawson (SDG) 50 * clock cycle. It does not change voltage and so is less efficient than 90 static int thr_rid; /* Driver-wide resource id. */ 134 if (device_find_child(parent, "acpi_throttle", -1)) in acpi_throttle_identify() 137 /* Check for a valid duty width and parent CPU type. */ in acpi_throttle_identify() 146 * Add a child if there's a non-NULL P_BLK and correct length, or in acpi_throttle_identify() 154 if ((obj->Processor.PblkAddress && obj->Processor.PblkLength >= 4) || in acpi_throttle_identify() 172 * the chipset modulating the STPCLK# pin based on the duty cycle. in acpi_throttle_probe() 176 if (device_find_child(device_get_parent(dev), "p4tcc", -1) && in acpi_throttle_probe() [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/pinctrl/ |
H A D | pinctrl-mt6797.txt | 6 - compatible: Value should be one of the following. 7 "mediatek,mt6797-pinctrl", compatible with mt6797 pinctrl. 8 - reg: Should contain address and size for gpio, iocfgl, iocfgb, 10 - reg-names: An array of strings describing the "reg" entries. Must 12 - gpio-controller: Marks the device node as a gpio controller. 13 - #gpio-cells: Should be two. The first cell is the gpio pin number 17 - interrupt-controller: Marks the device node as an interrupt controller. 18 - #interrupt-cells: Should be two. 19 - interrupts : The interrupt outputs from the controller. 21 Please refer to pinctrl-bindings.txt in this directory for details of the [all …]
|
H A D | mediatek,mt6797-pinctrl.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/pinctrl/mediatek,mt6797-pinctrl.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Sean Wang <sean.wang@kernel.org> 17 const: mediatek,mt6797-pinctrl 23 reg-names: 25 - const: gpio 26 - const: iocfgl 27 - const: iocfgb [all …]
|
H A D | pinctrl-mt8183.txt | 6 - compatible: value should be one of the following. 7 "mediatek,mt8183-pinctrl", compatible with mt8183 pinctrl. 8 - gpio-controller : Marks the device node as a gpio controller. 9 - #gpio-cells: number of cells in GPIO specifier. Since the generic GPIO 12 - gpio-ranges : gpio valid number range. 13 - reg: physical address base for gpio base registers. There are 10 GPIO 17 - reg-names: gpio base register names. There are 10 gpio base register 20 - interrupt-controller: Marks the device node as an interrupt controller 21 - #interrupt-cells: Should be two. 22 - interrupts : The interrupt outputs to sysirq. [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/clock/ |
H A D | nvidia,tegra124-dfll.txt | 4 Documentation/devicetree/bindings/clock/clock-bindings.txt 7 the fast CPU cluster. It consists of a free-running voltage controlled 10 communicating with an off-chip PMIC either via an I2C bus or via PWM signals. 13 - compatible : should be one of: 14 - "nvidia,tegra124-dfll": for Tegra124 15 - "nvidia,tegra210-dfll": for Tegra210 16 - reg : Defines the following set of registers, in the order listed: 17 - registers for the DFLL control logic. 18 - registers for the I2C output logic. 19 - registers for the integrated I2C master controller. [all …]
|
/freebsd/sys/dev/bhnd/nvram/ |
H A D | bhnd_nvram_value_fmts.c | 1 /*- 2 * Copyright (c) 2015-2016 Landon Fuller <landonf@FreeBSD.org> 116 .name = "bcm-macaddr", 124 .name = "bcm-macaddr-string", 132 * Broadcom NVRAM LED duty-cycle format. 135 .name = "bcm-leddc", 146 * - Positive values will be string-encoded without a prefix. 147 * - Negative values will be string-encoded with a leading '-' sign. 150 .name = "bcm-decimal", 161 * unsigned and positive signed integer values as an 0x-prefixed hexadecimal [all …]
|