0027-dt-bindings-pwm-add-Mediatek-display-PWM-bindings.patch 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. From 908a87b47af8303c9aa8fb6aa183ca9f8b544d78 Mon Sep 17 00:00:00 2001
  2. From: YH Huang <[email protected]>
  3. Date: Mon, 11 May 2015 17:26:21 +0800
  4. Subject: [PATCH 27/76] dt-bindings: pwm: add Mediatek display PWM bindings
  5. Document the device-tree binding of Mediatek display PWM.
  6. Signed-off-by: YH Huang <[email protected]>
  7. ---
  8. .../devicetree/bindings/pwm/pwm-disp-mediatek.txt | 25 ++++++++++++++++++++
  9. 1 file changed, 25 insertions(+)
  10. create mode 100644 Documentation/devicetree/bindings/pwm/pwm-disp-mediatek.txt
  11. --- /dev/null
  12. +++ b/Documentation/devicetree/bindings/pwm/pwm-disp-mediatek.txt
  13. @@ -0,0 +1,25 @@
  14. +Mediatek display PWM controller
  15. +
  16. +Required properties:
  17. + - compatible: should be "mediatek,<name>-disp-pwm"
  18. + - "mediatek,mt8173-disp-pwm": found on mt8173 SoC
  19. + - "mediatek,mt6595-disp-pwm": found on mt6595 SoC
  20. + - reg: physical base address and length of the controller's registers
  21. + - #pwm-cells: must be 2. See pwm.txt in this directory
  22. + for a description of the cell format
  23. + - clocks: phandle and clock specifier of the PWM reference clock
  24. + - clock-names: must contain the following
  25. + - "main": clock used to generate PWM signals
  26. + - "mm": sync signals from the modules of mmsys
  27. +
  28. +Example:
  29. + pwm0: pwm@1401e000 {
  30. + compatible = "mediatek,mt8173-disp-pwm",
  31. + "mediatek,mt6595-disp-pwm";
  32. + reg = <0 0x1401e000 0 0x1000>;
  33. + #pwm-cells = <2>;
  34. + clocks = <&mmsys MM_DISP_PWM026M>,
  35. + <&mmsys MM_DISP_PWM0MM>;
  36. + clock-names = "main",
  37. + "mm";
  38. + };