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

TOMOYO Linux Cross Reference
Linux/Documentation/devicetree/bindings/pwm/pwm-samsung.yaml

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-samsung.yaml (Architecture ppc) and /Documentation/devicetree/bindings/pwm/pwm-samsung.yaml (Architecture mips)


  1 # SPDX-License-Identifier: GPL-2.0                  1 # SPDX-License-Identifier: GPL-2.0
  2 %YAML 1.2                                           2 %YAML 1.2
  3 ---                                                 3 ---
  4 $id: http://devicetree.org/schemas/pwm/pwm-sam      4 $id: http://devicetree.org/schemas/pwm/pwm-samsung.yaml#
  5 $schema: http://devicetree.org/meta-schemas/co      5 $schema: http://devicetree.org/meta-schemas/core.yaml#
  6                                                     6 
  7 title: Samsung SoC PWM timers                       7 title: Samsung SoC PWM timers
  8                                                     8 
  9 maintainers:                                        9 maintainers:
 10   - Thierry Reding <thierry.reding@gmail.com>       10   - Thierry Reding <thierry.reding@gmail.com>
 11   - Krzysztof Kozlowski <krzk@kernel.org>           11   - Krzysztof Kozlowski <krzk@kernel.org>
 12                                                    12 
 13 description: |+                                    13 description: |+
 14   Samsung SoCs contain PWM timer blocks which      14   Samsung SoCs contain PWM timer blocks which can be used for system clock source
 15   and clock event timers, as well as to drive      15   and clock event timers, as well as to drive SoC outputs with PWM signal. Each
 16   PWM timer block provides 5 PWM channels (not     16   PWM timer block provides 5 PWM channels (not all of them can drive physical
 17   outputs - see SoC and board manual).             17   outputs - see SoC and board manual).
 18                                                    18 
 19   Be aware that the clocksource driver support     19   Be aware that the clocksource driver supports only uniprocessor systems.
 20                                                    20 
 21 properties:                                        21 properties:
 22   compatible:                                      22   compatible:
 23     oneOf:                                         23     oneOf:
 24       - enum:                                      24       - enum:
 25           - samsung,s3c2410-pwm             #      25           - samsung,s3c2410-pwm             # 16-bit, S3C24xx
 26           - samsung,s3c6400-pwm             #      26           - samsung,s3c6400-pwm             # 32-bit, S3C64xx
 27           - samsung,s5p6440-pwm             #      27           - samsung,s5p6440-pwm             # 32-bit, S5P64x0
 28           - samsung,s5pc100-pwm             #      28           - samsung,s5pc100-pwm             # 32-bit, S5PC100, S5PV210, Exynos4210 rev0 SoCs
 29           - samsung,exynos4210-pwm          #      29           - samsung,exynos4210-pwm          # 32-bit, Exynos
 30       - items:                                     30       - items:
 31           - enum:                                  31           - enum:
 32               - samsung,exynos5433-pwm             32               - samsung,exynos5433-pwm
 33               - samsung,exynos7-pwm                33               - samsung,exynos7-pwm
 34               - samsung,exynosautov9-pwm           34               - samsung,exynosautov9-pwm
 35               - samsung,exynosautov920-pwm         35               - samsung,exynosautov920-pwm
 36               - tesla,fsd-pwm                      36               - tesla,fsd-pwm
 37           - const: samsung,exynos4210-pwm          37           - const: samsung,exynos4210-pwm
 38                                                    38 
 39   reg:                                             39   reg:
 40     maxItems: 1                                    40     maxItems: 1
 41                                                    41 
 42   clocks:                                          42   clocks:
 43     minItems: 1                                    43     minItems: 1
 44     maxItems: 3                                    44     maxItems: 3
 45                                                    45 
 46   clock-names:                                     46   clock-names:
 47     description: |                                 47     description: |
 48       Should contain all following required cl     48       Should contain all following required clock names:
 49       - "timers" - PWM base clock used to gene     49       - "timers" - PWM base clock used to generate PWM signals,
 50       and any subset of following optional clo     50       and any subset of following optional clock names:
 51       - "pwm-tclk0" - first external PWM clock     51       - "pwm-tclk0" - first external PWM clock source,
 52       - "pwm-tclk1" - second external PWM cloc     52       - "pwm-tclk1" - second external PWM clock source.
 53       Note that not all IP variants allow usin     53       Note that not all IP variants allow using all external clock sources.
 54       Refer to SoC documentation to learn whic     54       Refer to SoC documentation to learn which clock source configurations
 55       are available.                               55       are available.
 56     oneOf:                                         56     oneOf:
 57       - items:                                     57       - items:
 58           - const: timers                          58           - const: timers
 59       - items:                                     59       - items:
 60           - const: timers                          60           - const: timers
 61           - const: pwm-tclk0                       61           - const: pwm-tclk0
 62       - items:                                     62       - items:
 63           - const: timers                          63           - const: timers
 64           - const: pwm-tclk1                       64           - const: pwm-tclk1
 65       - items:                                     65       - items:
 66           - const: timers                          66           - const: timers
 67           - const: pwm-tclk0                       67           - const: pwm-tclk0
 68           - const: pwm-tclk1                       68           - const: pwm-tclk1
 69                                                    69 
 70   interrupts:                                      70   interrupts:
 71     description:                                   71     description:
 72       One interrupt per timer, starting at tim     72       One interrupt per timer, starting at timer 0. Necessary only for SoCs which
 73       use PWM clocksource.                         73       use PWM clocksource.
 74     minItems: 1                                    74     minItems: 1
 75     maxItems: 5                                    75     maxItems: 5
 76                                                    76 
 77   "#pwm-cells":                                    77   "#pwm-cells":
 78     description:                                   78     description:
 79       The only third cell flag supported by th     79       The only third cell flag supported by this binding
 80       is PWM_POLARITY_INVERTED.                    80       is PWM_POLARITY_INVERTED.
 81     const: 3                                       81     const: 3
 82                                                    82 
 83   samsung,pwm-outputs:                             83   samsung,pwm-outputs:
 84     description:                                   84     description:
 85       A list of PWM channels used as PWM outpu     85       A list of PWM channels used as PWM outputs on particular platform.
 86       It is an array of up to 5 elements being     86       It is an array of up to 5 elements being indices of PWM channels
 87       (from 0 to 4), the order does not matter     87       (from 0 to 4), the order does not matter.
 88     $ref: /schemas/types.yaml#/definitions/uin     88     $ref: /schemas/types.yaml#/definitions/uint32-array
 89     uniqueItems: true                              89     uniqueItems: true
 90     items:                                         90     items:
 91       minimum: 0                                   91       minimum: 0
 92       maximum: 4                                   92       maximum: 4
 93                                                    93 
 94 required:                                          94 required:
 95   - clocks                                         95   - clocks
 96   - clock-names                                    96   - clock-names
 97   - compatible                                     97   - compatible
 98   - reg                                            98   - reg
 99                                                    99 
100 additionalProperties: false                       100 additionalProperties: false
101                                                   101 
102 allOf:                                            102 allOf:
103   - $ref: pwm.yaml#                               103   - $ref: pwm.yaml#
104                                                   104 
105   - if:                                           105   - if:
106       properties:                                 106       properties:
107         compatible:                               107         compatible:
108           contains:                               108           contains:
109             enum:                                 109             enum:
110               - samsung,s3c2410-pwm               110               - samsung,s3c2410-pwm
111               - samsung,s3c6400-pwm               111               - samsung,s3c6400-pwm
112               - samsung,s5p6440-pwm               112               - samsung,s5p6440-pwm
113               - samsung,s5pc100-pwm               113               - samsung,s5pc100-pwm
114     then:                                         114     then:
115       required:                                   115       required:
116         - interrupts                              116         - interrupts
117                                                   117 
118 examples:                                         118 examples:
119   - |                                             119   - |
120     pwm@7f006000 {                                120     pwm@7f006000 {
121         compatible = "samsung,s3c6400-pwm";       121         compatible = "samsung,s3c6400-pwm";
122         reg = <0x7f006000 0x1000>;                122         reg = <0x7f006000 0x1000>;
123         interrupt-parent = <&vic0>;               123         interrupt-parent = <&vic0>;
124         interrupts = <23>, <24>, <25>, <27>, <    124         interrupts = <23>, <24>, <25>, <27>, <28>;
125         clocks = <&clock 67>;                     125         clocks = <&clock 67>;
126         clock-names = "timers";                   126         clock-names = "timers";
127         samsung,pwm-outputs = <0>, <1>;           127         samsung,pwm-outputs = <0>, <1>;
128         #pwm-cells = <3>;                         128         #pwm-cells = <3>;
129     };                                            129     };
                                                      

~ [ 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