~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/pwm/pwm.txt

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /Documentation/devicetree/bindings/pwm/pwm.txt (Architecture sparc) and /Documentation/devicetree/bindings/pwm/pwm.txt (Architecture i386)


  1 Specifying PWM information for devices              1 Specifying PWM information for devices
  2 ======================================              2 ======================================
  3                                                     3 
  4 1) PWM user nodes                                   4 1) PWM user nodes
  5 -----------------                                   5 -----------------
  6                                                     6 
  7 PWM users should specify a list of PWM devices      7 PWM users should specify a list of PWM devices that they want to use
  8 with a property containing a 'pwm-list':            8 with a property containing a 'pwm-list':
  9                                                     9 
 10         pwm-list ::= <single-pwm> [pwm-list]       10         pwm-list ::= <single-pwm> [pwm-list]
 11         single-pwm ::= <pwm-phandle> <pwm-spec     11         single-pwm ::= <pwm-phandle> <pwm-specifier>
 12         pwm-phandle : phandle to PWM controlle     12         pwm-phandle : phandle to PWM controller node
 13         pwm-specifier : array of #pwm-cells sp     13         pwm-specifier : array of #pwm-cells specifying the given PWM
 14                         (controller specific)      14                         (controller specific)
 15                                                    15 
 16 PWM properties should be named "pwms". The exa     16 PWM properties should be named "pwms". The exact meaning of each pwms
 17 property must be documented in the device tree     17 property must be documented in the device tree binding for each device.
 18 An optional property "pwm-names" may contain a     18 An optional property "pwm-names" may contain a list of strings to label
 19 each of the PWM devices listed in the "pwms" p     19 each of the PWM devices listed in the "pwms" property. If no "pwm-names"
 20 property is given, the name of the user node w     20 property is given, the name of the user node will be used as fallback.
 21                                                    21 
 22 Drivers for devices that use more than a singl     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 PW     23 "pwm-names" property to map the name of the PWM device requested by the
 24 pwm_get() call to an index into the list given     24 pwm_get() call to an index into the list given by the "pwms" property.
 25                                                    25 
 26 The following example could be used to describ     26 The following example could be used to describe a PWM-based backlight
 27 device:                                            27 device:
 28                                                    28 
 29         pwm: pwm {                                 29         pwm: pwm {
 30                 #pwm-cells = <2>;                  30                 #pwm-cells = <2>;
 31         };                                         31         };
 32                                                    32 
 33         [...]                                      33         [...]
 34                                                    34 
 35         bl: backlight {                            35         bl: backlight {
 36                 pwms = <&pwm 0 5000000>;           36                 pwms = <&pwm 0 5000000>;
 37                 pwm-names = "backlight";           37                 pwm-names = "backlight";
 38         };                                         38         };
 39                                                    39 
 40 Note that in the example above, specifying the     40 Note that in the example above, specifying the "pwm-names" is redundant
 41 because the name "backlight" would be used as      41 because the name "backlight" would be used as fallback anyway.
 42                                                    42 
 43 pwm-specifier typically encodes the chip-relat     43 pwm-specifier typically encodes the chip-relative PWM number and the PWM
 44 period in nanoseconds.                             44 period in nanoseconds.
 45                                                    45 
 46 Optionally, the pwm-specifier can encode a num     46 Optionally, the pwm-specifier can encode a number of flags (defined in
 47 <dt-bindings/pwm/pwm.h>) in a third cell:          47 <dt-bindings/pwm/pwm.h>) in a third cell:
 48 - PWM_POLARITY_INVERTED: invert the PWM signal     48 - PWM_POLARITY_INVERTED: invert the PWM signal polarity
 49                                                    49 
 50 Example with optional PWM specifier for invers     50 Example with optional PWM specifier for inverse polarity
 51                                                    51 
 52         bl: backlight {                            52         bl: backlight {
 53                 pwms = <&pwm 0 5000000 PWM_POL     53                 pwms = <&pwm 0 5000000 PWM_POLARITY_INVERTED>;
 54                 pwm-names = "backlight";           54                 pwm-names = "backlight";
 55         };                                         55         };
 56                                                    56 
 57 2) PWM controller nodes                            57 2) PWM controller nodes
 58 -----------------------                            58 -----------------------
 59                                                    59 
 60 See pwm.yaml.                                      60 See pwm.yaml.
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php