ssd1307fb.txt 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. * Solomon SSD1307 Framebuffer Driver
  2. Required properties:
  3. - compatible: Should be "solomon,<chip>fb-<bus>". The only supported bus for
  4. now is i2c, and the supported chips are ssd1305, ssd1306, ssd1307 and
  5. ssd1309.
  6. - reg: Should contain address of the controller on the I2C bus. Most likely
  7. 0x3c or 0x3d
  8. - pwm: Should contain the pwm to use according to the OF device tree PWM
  9. specification [0]. Only required for the ssd1307.
  10. - solomon,height: Height in pixel of the screen driven by the controller
  11. - solomon,width: Width in pixel of the screen driven by the controller
  12. - solomon,page-offset: Offset of pages (band of 8 pixels) that the screen is
  13. mapped to.
  14. Optional properties:
  15. - reset-gpios: The GPIO used to reset the OLED display, if available. See
  16. Documentation/devicetree/bindings/gpio/gpio.txt for details.
  17. - vbat-supply: The supply for VBAT
  18. - solomon,segment-no-remap: Display needs normal (non-inverted) data column
  19. to segment mapping
  20. - solomon,com-seq: Display uses sequential COM pin configuration
  21. - solomon,com-lrremap: Display uses left-right COM pin remap
  22. - solomon,com-invdir: Display uses inverted COM pin scan direction
  23. - solomon,com-offset: Number of the COM pin wired to the first display line
  24. - solomon,prechargep1: Length of deselect period (phase 1) in clock cycles.
  25. - solomon,prechargep2: Length of precharge period (phase 2) in clock cycles.
  26. This needs to be the higher, the higher the capacitance
  27. of the OLED's pixels is
  28. [0]: Documentation/devicetree/bindings/pwm/pwm.txt
  29. Examples:
  30. ssd1307: oled@3c {
  31. compatible = "solomon,ssd1307fb-i2c";
  32. reg = <0x3c>;
  33. pwms = <&pwm 4 3000>;
  34. reset-gpios = <&gpio2 7>;
  35. reset-active-low;
  36. };
  37. ssd1306: oled@3c {
  38. compatible = "solomon,ssd1306fb-i2c";
  39. reg = <0x3c>;
  40. pwms = <&pwm 4 3000>;
  41. reset-gpios = <&gpio2 7>;
  42. reset-active-low;
  43. solomon,com-lrremap;
  44. solomon,com-invdir;
  45. solomon,com-offset = <32>;
  46. };