Lines Matching +full:pwm +full:- +full:0
1 Specifying PWM information for devices
4 1) PWM user nodes
5 -----------------
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
19 each of the PWM devices listed in the "pwms" property. If no "pwm-names"
22 Drivers for devices that use more than a single PWM device can use the
23 "pwm-names" property to map the name of the PWM device requested by the
26 The following example could be used to describe a PWM-based backlight
29 pwm: pwm {
30 #pwm-cells = <2>;
36 pwms = <&pwm 0 5000000>;
37 pwm-names = "backlight";
40 Note that in the example above, specifying the "pwm-names" is redundant
43 pwm-specifier typically encodes the chip-relative PWM number and the PWM
46 Optionally, the pwm-specifier can encode a number of flags (defined in
47 <dt-bindings/pwm/pwm.h>) in a third cell:
48 - PWM_POLARITY_INVERTED: invert the PWM signal polarity
50 Example with optional PWM specifier for inverse polarity
53 pwms = <&pwm 0 5000000 PWM_POLARITY_INVERTED>;
54 pwm-names = "backlight";
57 2) PWM controller nodes
58 -----------------------
60 See pwm.yaml.