Commit 89650a1e authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Rob Herring
Browse files

dt-bindings: pwm: Convert PWM bindings to json-schema



Convert generic PWM controller bindings to DT schema format using
json-schema.  The consumer bindings are provided by dt-schema.

Signed-off-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
Acked-by: default avatarStephen Boyd <sboyd@kernel.org>
Acked-by: default avatarPaul Walmsley <paul.walmsley@sifive.com>
Signed-off-by: default avatarRob Herring <robh@kernel.org>
parent d6a62a4b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@ Optional properties:
- #gpio-cells    : Should be two. The first cell is the pin number and
                   the second cell is used to specify flags.
                   See ../../gpio/gpio.txt for more information.
- #pwm-cells : Should be one. See ../../pwm/pwm.txt for description of
- #pwm-cells : Should be one. See ../../pwm/pwm.yaml for description of
               the cell formats.

- clock-names: should be "refclk"
+1 −1
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@ Required properties:
 - pinctrl-0: should contain the pinctrl states described by pinctrl
   default.
 - #pwm-cells: should be set to 3. This PWM chip use the default 3 cells
   bindings defined in pwm.txt in this directory.
   bindings defined in pwm.yaml in this directory.

Example:

+1 −1
Original line number Diff line number Diff line
@@ -7,7 +7,7 @@ Required properties:
    - "atmel,sama5d2-pwm"
    - "microchip,sam9x60-pwm"
  - reg: physical base address and length of the controller's registers
  - #pwm-cells: Should be 3. See pwm.txt in this directory for a
  - #pwm-cells: Should be 3. See pwm.yaml in this directory for a
    description of the cells format.

Example:
+1 −1
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@ Atmel TCB PWM controller

Required properties:
- compatible: should be "atmel,tcb-pwm"
- #pwm-cells: should be 3. See pwm.txt in this directory for a description of
- #pwm-cells: should be 3. See pwm.yaml in this directory for a description of
  the cells format. The only third cell flag supported by this binding is
  PWM_POLARITY_INVERTED.
- tc-block: The Timer Counter block to use as a PWM chip.
+1 −1
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@ Required properties:

- compatible: must be "brcm,bcm7038-pwm"
- reg: physical base address and length for this controller
- #pwm-cells: should be 2. See pwm.txt in this directory for a description
- #pwm-cells: should be 2. See pwm.yaml in this directory for a description
  of the cells format
- clocks: a phandle to the reference clock for this block which is fed through
  its internal variable clock frequency generator
Loading