| /openbmc/u-boot/doc/device-tree-bindings/pwm/ |
| H A D | pwm.txt | 1 Specifying PWM information for devices 4 1) PWM user nodes 7 PWM users should specify a list of PWM devices that they want to use 8 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 node 13 pwm-specifier : array of #pwm-cells specifying the given PWM 16 PWM properties should be named "pwms". The exact meaning of each pwms 18 An optional property "pwm-names" may contain a list of strings to label [all …]
|
| H A D | tegra20-pwm.txt | 5 - "nvidia,tegra20-pwm" 6 - "nvidia,tegra30-pwm" 8 - #pwm-cells: On Tegra the number of cells used to specify a PWM is 2. The 9 first cell specifies the per-chip index of the PWM to use and the second 14 pwm: pwm@7000a000 { 15 compatible = "nvidia,tegra20-pwm"; 17 #pwm-cells = <2>;
|
| /openbmc/u-boot/include/ |
| H A D | pwm.h | 3 * header file for pwm driver. 13 /* struct pwm_ops: Operations for the PWM uclass */ 16 * set_config() - Set the PWM configuration 18 * @dev: PWM device to update 19 * @channel: PWM channel to update 20 * @period_ns: PWM period in nanoseconds 21 * @duty_ns: PWM duty period in nanoseconds 28 * set_enable() - Enable or disable the PWM 30 * @dev: PWM device to update 31 * @channel: PWM channel to update [all …]
|
| /openbmc/u-boot/drivers/pwm/ |
| H A D | pwm-imx.c | 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() local 20 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() local 33 if (!pwm) in pwm_config() 43 writel(cr, &pwm->cr); in pwm_config() 45 writel(duty_cycles, &pwm->sar); in pwm_config() [all …]
|
| H A D | Kconfig | 2 bool "Enable support for pulse-width modulation devices (PWM)" 7 is often used to control a voltage level. The more time the PWM 8 spends in the 'high' state, the higher the voltage. The PWM's 13 bool "Enable support for the Exynos PWM" 16 This PWM is found on Samsung Exynos 5250 and other Samsung SoCs. It 22 bool "Enable support for the Rockchip PWM" 25 This PWM is found on RK3288 and other Rockchip SoCs. It supports a 31 bool "Enable support for the sandbox PWM" 33 This is a sandbox PWM used for testing. It provides 3 channels and 35 useful. The PWM can be enabled but is not connected to any outputs [all …]
|
| H A D | sandbox_pwm.c | 10 #include <pwm.h> 18 * struct sandbox_pwm_chan - a sandbox PWM channel 20 * @period_ns: Period of the PWM in nanoseconds 21 * @duty_ns: Current duty cycle of the PWM in nanoseconds 22 * @enable: true if the PWM is enabled 23 * @polarity: true if the PWM polarity is active high 103 { .compatible = "sandbox,pwm" },
|
| /openbmc/u-boot/drivers/video/exynos/ |
| H A D | exynos_pwm_bl.c | 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; variable 23 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 …]
|
| /openbmc/qemu/include/hw/misc/ |
| H A D | npcm7xx_pwm.h | 2 * Nuvoton NPCM7xx PWM Module 23 /* Each PWM module holds 4 PWM channels. */ 27 * Number of registers in one pwm module. Don't change this without increasing 34 * cycles. For example, if NPCM7XX_PWM_MAX_DUTY=1,000,000 and a PWM has a duty 35 * 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 …]
|
| /openbmc/u-boot/arch/arm/cpu/armv7/s5p-common/ |
| H A D | pwm.c | 10 #include <pwm.h> 12 #include <asm/arch/pwm.h> 17 const struct s5p_timer *pwm = in pwm_enable() local 21 tcon = readl(&pwm->tcon); in pwm_enable() 24 writel(tcon, &pwm->tcon); in pwm_enable() 31 const struct s5p_timer *pwm = in pwm_disable() local 35 tcon = readl(&pwm->tcon); in pwm_disable() 38 writel(tcon, &pwm->tcon); in pwm_disable() 60 const struct s5p_timer *pwm = in pwm_config() local 83 /* Check to see if we are changing the clock rate of the PWM */ in pwm_config() [all …]
|
| /openbmc/u-boot/drivers/power/regulator/ |
| H A D | pwm_regulator.c | 5 * Based on kernel drivers/regulator/pwm-regulator.c 13 #include <pwm.h> 19 /* pwm id corresponding to the PWM driver */ 21 /* the period of one PWM cycle */ 24 * the polarity of one PWM 29 struct udevice *pwm; member 44 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 …]
|
| /openbmc/openbmc/meta-facebook/meta-bletchley/recipes-bletchley/motor-ctrl/files/ |
| H A D | motor-init | 4 # Enable pwm and setup pwm duty 15 PWM_CLASS_PATH="/sys/class/pwm/pwmchip0" 22 #Enable pwm for sledN 26 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 …]
|
| /openbmc/entity-manager/configurations/meta/harma/ |
| H A D | harma_fanboard.json | 9 "Pwm": 2, number 25 "Pwm": 2, number 41 "Pwm": 2, number 57 "Pwm": 2, number 73 "Pwm": 2, number 89 "Pwm": 2, number 105 "Pwm": 2, number 121 "Pwm": 2, number 198 "Pwm": 2, number 214 "Pwm": 2, number [all …]
|
| /openbmc/qemu/tests/qtest/ |
| H A D | npcm7xx_pwm-test.c | 2 * QTests for Nuvoton NPCM7xx PWM Modules. 58 /* MFT (PWM fan) related */ 106 typedef struct PWM { struct 111 } PWM; typedef 115 const PWM *pwm; member 129 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() argument 214 ptrdiff_t diff = pwm - pwm_list; in pwm_index() [all …]
|
| /openbmc/openbmc-tools/pwmtachtool/src/ |
| H A D | pwmtachtool.c | 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 …]
|
| /openbmc/u-boot/test/dm/ |
| H A D | panel.c | 23 struct udevice *dev, *pwm, *gpio, *reg; in dm_test_panel() local 30 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()
|
| /openbmc/qemu/hw/misc/ |
| H A D | npcm7xx_pwm.c | 2 * Nuvoton NPCM7xx PWM Module 64 /* 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 …]
|
| /openbmc/u-boot/drivers/video/ |
| H A D | pwm_backlight.c | 12 #include <pwm.h> 17 * Private information for the PWM backlight 25 * @pwm: PWM to use to change the backlight brightness 26 * @channel: PWM channel to use 39 struct udevice *pwm; member 58 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 …]
|
| /openbmc/entity-manager/configurations/hpe/ |
| H A D | dl360g12_baseboard.json | 7 "Pwm": 0, number 22 "Pwm": 1, number 37 "Pwm": 2, number 52 "Pwm": 3, number 67 "Pwm": 4, number 82 "Pwm": 5, number 97 "Pwm": 6, number 130 "Pwm 0", 131 "Pwm 1", 132 "Pwm 2", [all …]
|
| /openbmc/entity-manager/configurations/ibm/ |
| H A D | fp5280g3_fanboard.json | 13 "Pwm": 2, number 42 "Pwm": 2, number 71 "Pwm": 1, number 100 "Pwm": 1, number 129 "Pwm": 0, number 158 "Pwm": 0, number 187 "Pwm": 2, number 216 "Pwm": 2, number 245 "Pwm": 1, number 274 "Pwm": 1, number [all …]
|
| /openbmc/u-boot/include/power/ |
| H A D | mc34vr500_pmic.h | 137 * PWM: In this mode, the regulator is always in PWM mode operation 140 * skipping mode and PWM mode depending on load conditions. 145 * PWM OFF 0x1 148 * PWM PWM 0x5 149 * PWM APS 0x6 152 * PWM PFM 0xd
|
| /openbmc/openbmc/meta-ampere/meta-mitchell/recipes-ampere/platform/ampere-utils/ |
| H A D | ampere_fanctrl.sh | 24 # The index of pwm* file in sysfs for each fan 104 echo "Error: Invalid target PWM value - ${pwm_val}. The valid range is [0-100]" 108 # Get pwm sysfs file of the fan 110 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 tach 143 # Get fan speed and pwm from hwmon for rear tach 154 echo "Error: Get Fan PWM Dut [all...] |
| /openbmc/u-boot/arch/arm/dts/ |
| H A D | stm32mp157c.dtsi | 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 …]
|
| /openbmc/u-boot/doc/device-tree-bindings/video/ |
| H A D | tegra20-dc.txt | 25 - nvidia,pwm : pwm to use to set display contrast (see tegra20-pwm.txt) 30 * delay between backlight_vdd and pwm-rise 31 * delay between pwm-rise and backlight_en-rise 79 nvidia,pwm = <&pwm 2 0>;
|
| /openbmc/openbmc/meta-ampere/meta-jefferson/recipes-ampere/platform/ampere-utils/ |
| H A D | ampere_fanctrl.sh | 23 # The index of pwm* file in sysfs for each fan 104 echo "Error: Invalid target PWM value - ${pwm_val}. The valid range is [0-100]" 108 # Get pwm sysfs file of the fan 109 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 hwmon 143 echo "Error: Get Fan PWM Duty Cycle failed!" 147 # Scale PWM t [all...] |
| /openbmc/phosphor-pid-control/pid/ |
| H A D | fancontroller.cpp | 145 // Unconditionally replace the computed PWM with the in outputProc() 146 // failsafe PWM if STRICT_FAILSAFE_PWM is defined. in outputProc() 149 // Ensure PWM is never lower than the failsafe PWM. in outputProc() 150 // The computed PWM is still allowed to rise higher than in outputProc() 151 // failsafe PWM if STRICT_FAILSAFE_PWM is NOT defined. in outputProc() 165 << " mode, output pwm: " << percent << "\n"; in outputProc() 176 << " mode, output pwm: " << percent << "\n"; in outputProc() 193 << " fans, tuning mode, bypassing failsafe, output pwm: " in outputProc() 210 // to store a record of the PWM commande in outputProc() [all...] |