Searched full:pwm (Results 1 – 25 of 510) sorted by relevance
12345678910>>...21
1 Specifying PWM information for devices4 1) PWM user nodes7 PWM users should specify a list of PWM devices that they want to use8 with a property containing a 'pwm-list':10 pwm-list ::= <single-pwm> [pwm-list]11 single-pwm ::= <pwm-phandle> <pwm-specifier>12 pwm-phandle : phandle to PWM controller node13 pwm-specifier : array of #pwm-cells specifying the given PWM16 PWM properties should be named "pwms". The exact meaning of each pwms18 An optional property "pwm-names" may contain a list of strings to label[all …]
5 - "nvidia,tegra20-pwm"6 - "nvidia,tegra30-pwm"8 - #pwm-cells: On Tegra the number of cells used to specify a PWM is 2. The9 first cell specifies the per-chip index of the PWM to use and the second14 pwm: pwm@7000a000 {15 compatible = "nvidia,tegra20-pwm";17 #pwm-cells = <2>;
3 * header file for pwm driver.13 /* struct pwm_ops: Operations for the PWM uclass */16 * set_config() - Set the PWM configuration18 * @dev: PWM device to update19 * @channel: PWM channel to update20 * @period_ns: PWM period in nanoseconds21 * @duty_ns: PWM duty period in nanoseconds28 * set_enable() - Enable or disable the PWM30 * @dev: PWM device to update31 * @channel: PWM channel to update[all …]
6 * Basic support for the pwm module on imx6.11 #include <pwm.h>14 #include "pwm-imx-util.h"18 struct pwm_regs *pwm = (struct pwm_regs *)pwm_id_to_reg(pwm_id); in pwm_init() local20 if (!pwm) in pwm_init()23 writel(0, &pwm->ir); in pwm_init()29 struct pwm_regs *pwm = (struct pwm_regs *)pwm_id_to_reg(pwm_id); in pwm_config() local33 if (!pwm) in pwm_config()43 writel(cr, &pwm->cr); in pwm_config()45 writel(duty_cycles, &pwm->sar); in pwm_config()[all …]
2 bool "Enable support for pulse-width modulation devices (PWM)"7 is often used to control a voltage level. The more time the PWM8 spends in the 'high' state, the higher the voltage. The PWM's13 bool "Enable support for the Exynos PWM"16 This PWM is found on Samsung Exynos 5250 and other Samsung SoCs. It22 bool "Enable support for the Rockchip PWM"25 This PWM is found on RK3288 and other Rockchip SoCs. It supports a31 bool "Enable support for the sandbox PWM"33 This is a sandbox PWM used for testing. It provides 3 channels and35 useful. The PWM can be enabled but is not connected to any outputs[all …]
10 #include <pwm.h>18 * struct sandbox_pwm_chan - a sandbox PWM channel20 * @period_ns: Period of the PWM in nanoseconds21 * @duty_ns: Current duty cycle of the PWM in nanoseconds22 * @enable: true if the PWM is enabled23 * @polarity: true if the PWM polarity is active high103 { .compatible = "sandbox,pwm" },
3 * PWM BACKLIGHT driver for Board based on EXYNOS.11 #include <pwm.h>16 #include <asm/arch/pwm.h>19 static struct pwm_backlight_data *pwm; variable23 int brightness = pwm->brightness; in exynos_pwm_backlight_update_status()24 int max = pwm->max_brightness; in exynos_pwm_backlight_update_status()27 pwm_config(pwm->pwm_id, 0, pwm->period); in exynos_pwm_backlight_update_status()28 pwm_disable(pwm->pwm_id); in exynos_pwm_backlight_update_status()30 pwm_config(pwm->pwm_id, in exynos_pwm_backlight_update_status()31 brightness * pwm->period / max, pwm->period); in exynos_pwm_backlight_update_status()[all …]
2 * Nuvoton NPCM7xx PWM Module23 /* Each PWM module holds 4 PWM channels. */27 * Number of registers in one pwm module. Don't change this without increasing34 * cycles. For example, if NPCM7XX_PWM_MAX_DUTY=1,000,000 and a PWM has a duty35 * value of 100,000 the duty cycle for that PWM is 10%.42 * struct NPCM7xxPWM - The state of a single PWM channel.43 * @module: The PWM module that contains this channel.45 * @running: Whether this PWM channel is generating output.46 * @inverted: Whether this PWM channel is inverted.47 * @index: The index of this PWM channel.[all …]
10 #include <pwm.h>12 #include <asm/arch/pwm.h>17 const struct s5p_timer *pwm = in pwm_enable() local21 tcon = readl(&pwm->tcon); in pwm_enable()24 writel(tcon, &pwm->tcon); in pwm_enable()31 const struct s5p_timer *pwm = in pwm_disable() local35 tcon = readl(&pwm->tcon); in pwm_disable()38 writel(tcon, &pwm->tcon); in pwm_disable()60 const struct s5p_timer *pwm = in pwm_config() local83 /* Check to see if we are changing the clock rate of the PWM */ in pwm_config()[all …]
5 * Based on kernel drivers/regulator/pwm-regulator.c13 #include <pwm.h>19 /* pwm id corresponding to the PWM driver */21 /* the period of one PWM cycle */24 * the polarity of one PWM29 struct udevice *pwm; member44 return pwm_set_enable(priv->pwm, priv->pwm_id, enable); in pwm_regulator_enable()72 ret = pwm_set_invert(priv->pwm, priv->pwm_id, priv->polarity); in pwm_regulator_set_voltage()74 dev_err(dev, "Failed to init PWM\n"); in pwm_regulator_set_voltage()78 ret = pwm_set_config(priv->pwm, priv->pwm_id, in pwm_regulator_set_voltage()[all …]
4 # Enable pwm and setup pwm duty15 PWM_CLASS_PATH="/sys/class/pwm/pwmchip0"22 #Enable pwm for sledN26 echo "Open pwm of sled$1"28 PWM_PATH="${PWM_CLASS_PATH}/pwm${PWM_NUM}"33 echo "set pwm period to $PWM_PERIOD ns"35 echo "Error: set pwm period fail"40 echo "Error: set pwm enable fail"45 echo "Error: set pwm duty_cycle fail"49 echo "Error: ${PWM_PATH} not exist, export pwm${PWM_NUM} fail"[all …]
9 "Pwm": 2, number25 "Pwm": 2, number41 "Pwm": 2, number57 "Pwm": 2, number73 "Pwm": 2, number89 "Pwm": 2, number105 "Pwm": 2, number121 "Pwm": 2, number198 "Pwm": 2, number214 "Pwm": 2, number[all …]
2 * QTests for Nuvoton NPCM7xx PWM Modules.58 /* MFT (PWM fan) related */106 typedef struct PWM { struct111 } PWM; argument115 const PWM *pwm; member129 static const PWM pwm_list[] = {201 /* Returns the index of the PWM module. */211 /* Returns the index of the PWM entry. */212 static int pwm_index(const PWM *pwm) in pwm_index() argument214 ptrdiff_t diff = pwm - pwm_list; in pwm_index()[all …]
4 * This application provides functions to get/set fan speed / PWM dutycycle.48 …printf( "\t--set-pwm-dutycycle: Set Fan's dutycycle. dutycycle_percentage value should be … in ShowUsage()49 …printf( "\t--set-pwm-dutycycle-value: Set Fan's dutycycle. dutycycle_value should be between 0 t… in ShowUsage()51 printf( "\t--get-pwm-dutycycle: Get Fan's dutycycle\n"); in ShowUsage()87 else if( strcmp( argv[ i ], "--set-pwm-dutycycle" ) == 0 ) in process_arguments()98 else if( strcmp( argv[ i ], "--set-pwm-dutycycle-value" ) == 0 ) in process_arguments()109 else if( strcmp( argv[i], "--get-pwm-dutycycle" ) == 0) in process_arguments()113 printf("need PWM Number to process request\n"); in process_arguments()188 Verbose ("Inside Set PWM Dutycycle \n"); in main()192 printf ( "Set PWM Dutycycle Failed \n"); in main()[all …]
23 struct udevice *dev, *pwm, *gpio, *reg; in dm_test_panel() local30 ut_assertok(uclass_first_device_err(UCLASS_PWM, &pwm)); in dm_test_panel()33 ut_assertok(sandbox_pwm_get_config(pwm, 0, &period_ns, &duty_ns, in dm_test_panel()39 ut_assertok(sandbox_pwm_get_config(pwm, 0, &period_ns, &duty_ns, in dm_test_panel()49 ut_assertok(sandbox_pwm_get_config(pwm, 0, &period_ns, &duty_ns, in dm_test_panel()54 ut_assertok(sandbox_pwm_get_config(pwm, 0, &period_ns, &duty_ns, in dm_test_panel()59 ut_assertok(sandbox_pwm_get_config(pwm, 0, &period_ns, &duty_ns, in dm_test_panel()65 ut_assertok(sandbox_pwm_get_config(pwm, 0, &period_ns, &duty_ns, in dm_test_panel()71 ut_assertok(sandbox_pwm_get_config(pwm, 0, &period_ns, &duty_ns, in dm_test_panel()
2 * Nuvoton NPCM7xx PWM Module64 /* Offset of each PWM channel's prescaler in the PPR register. */66 /* Offset of each PWM channel's clock selector in the CSR register. */68 /* Offset of each PWM channel's control variable in the PCR register. */161 npcm7xx_pwm_update_freq(&s->pwm[i]); in npcm7xx_pwm_write_ppr()175 npcm7xx_pwm_update_freq(&s->pwm[i]); in npcm7xx_pwm_write_csr()190 p = &s->pwm[i]; in npcm7xx_pwm_write_pcr()195 * We only run a PWM channel with toggle mode. Single-shot mode does not in npcm7xx_pwm_write_pcr()200 /* Re-run this PWM channel if inverted changed. */ in npcm7xx_pwm_write_pcr()206 /* Run this PWM channel. */ in npcm7xx_pwm_write_pcr()[all …]
12 #include <pwm.h>17 * Private information for the PWM backlight25 * @pwm: PWM to use to change the backlight brightness26 * @channel: PWM channel to use39 struct udevice *pwm; member58 ret = pwm_set_config(priv->pwm, priv->channel, priv->period_ns, in set_pwm()80 log_debug("Cannot enable regulator for PWM '%s'\n", in enable_sequence()107 ret = pwm_set_enable(priv->pwm, priv->channel, true); in pwm_backlight_enable()189 ret = dev_read_phandle_with_args(dev, "pwms", "#pwm-cells", 0, 0, in pwm_backlight_ofdata_to_platdata()192 log_debug("Cannot get PWM phandle: ret=%d\n", ret); in pwm_backlight_ofdata_to_platdata()[all …]
7 "Pwm": 0, number22 "Pwm": 1, number37 "Pwm": 2, number52 "Pwm": 3, number67 "Pwm": 4, number82 "Pwm": 5, number97 "Pwm": 6, number130 "Pwm 0",131 "Pwm 1",132 "Pwm 2",[all …]
137 * PWM: In this mode, the regulator is always in PWM mode operation140 * skipping mode and PWM mode depending on load conditions.145 * PWM OFF 0x1148 * PWM PWM 0x5149 * PWM APS 0x6152 * PWM PFM 0xd
24 # The index of pwm* file in sysfs for each fan104 echo "Error: Invalid target PWM value - ${pwm_val}. The valid range is [0-100]"108 # Get pwm sysfs file of the fan110 fan_pwm=pwm${pwm_list[$id]}111 # Scale PWM to 255, adding 50 for rounding.116 echo "Error: Set Fan PWM Duty Cycle failed!"133 fan_pwm=pwm${pwm_list[$id]}135 # Get fan speed and pwm from hwmon for front tach143 # Get fan speed and pwm from hwmon for rear tach154 echo "Error: Get Fan PWM Dut[all...]
25 - nvidia,pwm : pwm to use to set display contrast (see tegra20-pwm.txt)30 * delay between backlight_vdd and pwm-rise31 * delay between pwm-rise and backlight_en-rise79 nvidia,pwm = <&pwm 2 0>;
23 # The index of pwm* file in sysfs for each fan104 echo "Error: Invalid target PWM value - ${pwm_val}. The valid range is [0-100]"108 # Get pwm sysfs file of the fan109 fan_pwm=pwm${pwm_list[$id]}110 # Scale PWM to 255, adding 50 for rounding.115 echo "Error: Set Fan PWM Duty Cycle failed!"130 fan_pwm=pwm${pwm_list[$id]}132 # Get fan speed and pwm from hwmon143 echo "Error: Get Fan PWM Duty Cycle failed!"147 # Scale PWM t[all...]
145 pwm {146 compatible = "st,stm32-pwm";166 pwm {167 compatible = "st,stm32-pwm";187 pwm {188 compatible = "st,stm32-pwm";208 pwm {209 compatible = "st,stm32-pwm";261 pwm {262 compatible = "st,stm32-pwm";[all …]
157 // Unconditionally replace the computed PWM with the in outputProc()158 // failsafe PWM if STRICT_FAILSAFE_PWM is defined. in outputProc()161 // Ensure PWM is never lower than the failsafe PWM. in outputProc()162 // The computed PWM is still allowed to rise higher than in outputProc()163 // failsafe PWM if STRICT_FAILSAFE_PWM is NOT defined. in outputProc()177 << " mode, output pwm: " << percent << "\n"; in outputProc()188 << " mode, output pwm: " << percent << "\n"; in outputProc()205 << " fans, tuning mode, bypassing failsafe, output pwm: " in outputProc()222 // to store a record of the PWM commanded, in outputProc()238 << " offline fans output pwm: " << percent << "\n"; in ~FanController()[all …]