Lines Matching +full:pwm +full:- +full:0
2 .\" SPDX-License-Identifier: BSD-2-Clause
4 .\" Copyright (c) 2017 Poul-Henning Kamp <phk@FreeBSD.org>
32 .Nd bcm283x_pwm - driver for Raspberry Pi 2/3 PWM
39 driver provides access to the PWM engine on GPIO12 of Raspberry Pi 2 and 3 hardware.
41 The PWM hardware is controlled via the
44 .Bd -literal
45 dev.pwm.0.mode: 1
46 dev.pwm.0.mode2: 1
47 dev.pwm.0.freq: 125000000
48 dev.pwm.0.ratio: 2500
49 dev.pwm.0.ratio2: 2500
50 dev.pwm.0.period: 10000
51 dev.pwm.0.period2: 10000
52 dev.pwm.0.pwm_freq: 12500
53 dev.pwm.0.pwm_freq2: 12500
55 .Bl -tag -width ".Va dev.pwm"
56 .It Va dev.pwm.0.mode , dev.pwm.0.mode2
58 Three modes exist, 0=off, 1=PWM, 2=N/M.
59 The N/M mode is a first order delta-sigma mode, which makes a quite
62 .It Va dev.pwm.0.freq
63 The input frequency to the PWM hardware in Hz.
66 .It Va dev.pwm.0.period , dev.pwm.0.period2
68 In PWM mode, the output frequencies will be
70 .Va dev.pwm.0.freq
72 .Va dev.pwm.period
74 .Va dev.pwm.0.freq2
76 .Va dev.pwm.0.period2
79 .It Va dev.pwm.0.ratio , dev.pwm.0.ratio2
80 The "on" period in cycles for PWM channels 1 and 2.
81 In PWM mode, to get a 25% dutycycle, set this to 25% of
82 .Va dev.pwm.0.period
84 .Va dev.pwm.0.period2 ,
87 .It Va dev.pwm.0.pwm_freq , dev.pwm.0.pwm_freq2
88 The calculated PWM output frequencies in PWM mode, for channels 1 and 2.
104 .An -nosplit
108 .An Poul-Henning Kamp Aq Mt phk@FreeBSD.org .