ssd1307fb.txt 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. - reset-gpios: Should contain the GPIO used to reset the OLED display
  11. - solomon,height: Height in pixel of the screen driven by the controller
  12. - solomon,width: Width in pixel of the screen driven by the controller
  13. - solomon,page-offset: Offset of pages (band of 8 pixels) that the screen is
  14. mapped to.
  15. Optional properties:
  16. - reset-active-low: Is the reset gpio is active on physical low?
  17. - solomon,segment-no-remap: Display needs normal (non-inverted) data column
  18. to segment mapping
  19. - solomon,com-seq: Display uses sequential COM pin configuration
  20. - solomon,com-lrremap: Display uses left-right COM pin remap
  21. - solomon,com-invdir: Display uses inverted COM pin scan direction
  22. - solomon,com-offset: Number of the COM pin wired to the first display line
  23. - solomon,prechargep1: Length of deselect period (phase 1) in clock cycles.
  24. - solomon,prechargep2: Length of precharge period (phase 2) in clock cycles.
  25. This needs to be the higher, the higher the capacitance
  26. of the OLED's pixels is
  27. [0]: Documentation/devicetree/bindings/pwm/pwm.txt
  28. Examples:
  29. ssd1307: oled@3c {
  30. compatible = "solomon,ssd1307fb-i2c";
  31. reg = <0x3c>;
  32. pwms = <&pwm 4 3000>;
  33. reset-gpios = <&gpio2 7>;
  34. reset-active-low;
  35. };
  36. ssd1306: oled@3c {
  37. compatible = "solomon,ssd1306fb-i2c";
  38. reg = <0x3c>;
  39. pwms = <&pwm 4 3000>;
  40. reset-gpios = <&gpio2 7>;
  41. reset-active-low;
  42. solomon,com-lrremap;
  43. solomon,com-invdir;
  44. solomon,com-offset = <32>;
  45. };