leds-mt6323.txt 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. Device Tree Bindings for LED support on MT6323 PMIC
  2. MT6323 LED controller is subfunction provided by MT6323 PMIC, so the LED
  3. controllers are defined as the subnode of the function node provided by MT6323
  4. PMIC controller that is being defined as one kind of Muti-Function Device (MFD)
  5. using shared bus called PMIC wrapper for each subfunction to access remote
  6. MT6323 PMIC hardware.
  7. For MT6323 MFD bindings see:
  8. Documentation/devicetree/bindings/mfd/mt6397.txt
  9. For MediaTek PMIC wrapper bindings see:
  10. Documentation/devicetree/bindings/soc/mediatek/pwrap.txt
  11. Required properties:
  12. - compatible : Must be "mediatek,mt6323-led"
  13. - address-cells : Must be 1
  14. - size-cells : Must be 0
  15. Each led is represented as a child node of the mediatek,mt6323-led that
  16. describes the initial behavior for each LED physically and currently only four
  17. LED child nodes can be supported.
  18. Required properties for the LED child node:
  19. - reg : LED channel number (0..3)
  20. Optional properties for the LED child node:
  21. - label : See Documentation/devicetree/bindings/leds/common.txt
  22. - linux,default-trigger : See Documentation/devicetree/bindings/leds/common.txt
  23. - default-state: See Documentation/devicetree/bindings/leds/common.txt
  24. Example:
  25. mt6323: pmic {
  26. compatible = "mediatek,mt6323";
  27. ...
  28. mt6323led: leds {
  29. compatible = "mediatek,mt6323-led";
  30. #address-cells = <1>;
  31. #size-cells = <0>;
  32. led@0 {
  33. reg = <0>;
  34. label = "LED0";
  35. linux,default-trigger = "timer";
  36. default-state = "on";
  37. };
  38. led@1 {
  39. reg = <1>;
  40. label = "LED1";
  41. default-state = "off";
  42. };
  43. led@2 {
  44. reg = <2>;
  45. label = "LED2";
  46. default-state = "on";
  47. };
  48. };
  49. };