| Amlogic Meson PWM Controller |
| ============================ |
| |
| Required properties: |
| - compatible: Shall contain "amlogic,meson8b-pwm" |
| or "amlogic,meson-gxbb-pwm" |
| or "amlogic,meson-gxbb-ao-pwm" |
| or "amlogic,meson-axg-ee-pwm" |
| or "amlogic,meson-axg-ao-pwm" |
| or "amlogic,meson-g12a-ee-pwm" |
| or "amlogic,meson-g12a-ao-pwm" |
| or "amlogic,meson-a1-pwm" |
| or "amlogic,meson-v2-pwm" |
| - #pwm-cells: Should be 3. See pwm.txt in this directory for a description of |
| the cells format. |
| |
| Optional properties: |
| - clocks: Could contain one or two parents clocks phandle for each of the two |
| PWM channels. |
| - clock-names: Could contain at least the "clkin0" and/or "clkin1" names. |
| |
| Example: |
| for m8b,gxbb: |
| |
| pwm_ab: pwm@8550 { |
| compatible = "amlogic,meson-gxbb-pwm"; |
| reg = <0x0 0x08550 0x0 0x10>; |
| #pwm-cells = <3>; |
| clocks = <&xtal>, <&xtal>; |
| clock-names = "clkin0", "clkin1"; |
| status = "disabled"; |
| } |
| |
| for axg: |
| |
| pwm_ab: pwm@8550 { |
| compatible = "amlogic,meson-gxbb-pwm"; |
| reg = <0x0 0x08550 0x0 0x10>; |
| #pwm-cells = <3>; |
| status = "disabled"; |
| clocks = <&xtal>, <&xtal>,<&xtal>,<&xtal>; |
| clock-names = "clkin0", "clkin1","clkin2","clkin3"; |
| } |
| |
| for g12a: |
| |
| pwm_ab: pwm@1b000 { |
| compatible = "amlogic,meson-g12a-ee-pwm"; |
| reg = <0x0 0x1b000 0x0 0x20>; |
| #pwm-cells = <3>; |
| clocks = <&xtal>, |
| <&xtal>, |
| <&xtal>, |
| <&xtal>; |
| clock-names = "clkin0", |
| "clkin1", |
| "clkin2", |
| "clkin3"; |
| /* default xtal 24m clkin0-clkin2 and |
| * clkin1-clkin3 should be set the same |
| */ |
| status = "disabled"; |
| }; |