The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/device-tree/Bindings/pwm/pwm-sifive.txt

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 SiFive PWM controller
    2 
    3 Unlike most other PWM controllers, the SiFive PWM controller currently only
    4 supports one period for all channels in the PWM. All PWMs need to run at
    5 the same period. The period also has significant restrictions on the values
    6 it can achieve, which the driver rounds to the nearest achievable period.
    7 PWM RTL that corresponds to the IP block version numbers can be found
    8 here:
    9 
   10 https://github.com/sifive/sifive-blocks/tree/master/src/main/scala/devices/pwm
   11 
   12 Required properties:
   13 - compatible: Should be "sifive,<chip>-pwm" and "sifive,pwm<version>".
   14   Supported compatible strings are: "sifive,fu540-c000-pwm" for the SiFive
   15   PWM v0 as integrated onto the SiFive FU540 chip, and "sifive,pwm0" for the
   16   SiFive PWM v0 IP block with no chip integration tweaks.
   17   Please refer to sifive-blocks-ip-versioning.txt for details.
   18 - reg: physical base address and length of the controller's registers
   19 - clocks: Should contain a clock identifier for the PWM's parent clock.
   20 - #pwm-cells: Should be 3. See pwm.yaml in this directory
   21   for a description of the cell format.
   22 - interrupts: one interrupt per PWM channel
   23 
   24 Examples:
   25 
   26 pwm:  pwm@10020000 {
   27         compatible = "sifive,fu540-c000-pwm", "sifive,pwm0";
   28         reg = <0x0 0x10020000 0x0 0x1000>;
   29         clocks = <&tlclk>;
   30         interrupt-parent = <&plic>;
   31         interrupts = <42 43 44 45>;
   32         #pwm-cells = <3>;
   33 };

Cache object: 4cb5edf31227d9133523471401b6097b


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.