^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) BCM2835 PWM controller (Raspberry Pi controller)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) Required properties:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) - compatible: should be "brcm,bcm2835-pwm"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) - reg: physical base address and length of the controller's registers
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) - clocks: This clock defines the base clock frequency of the PWM hardware
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) system, the period and the duty_cycle of the PWM signal is a multiple of
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) the base period.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) - #pwm-cells: Should be 3. See pwm.yaml in this directory for a description of
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) the cells format.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) Examples:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) pwm@2020c000 {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) compatible = "brcm,bcm2835-pwm";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) reg = <0x2020c000 0x28>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) clocks = <&clk_pwm>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) #pwm-cells = <3>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) clocks {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) ....
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) clk_pwm: pwm {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) compatible = "fixed-clock";
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) reg = <3>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) #clock-cells = <0>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) clock-frequency = <9200000>;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) ....
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) };