ssd1307fb.txt 1.1 KB

12345678910111213141516171819202122232425262728
  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 ssd1306 and ssd1307.
  5. - reg: Should contain address of the controller on the I2C bus. Most likely
  6. 0x3c or 0x3d
  7. - pwm: Should contain the pwm to use according to the OF device tree PWM
  8. specification [0]. Only required for the ssd1307.
  9. - reset-gpios: Should contain the GPIO used to reset the OLED display
  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-active-low: Is the reset gpio is active on physical low?
  16. [0]: Documentation/devicetree/bindings/pwm/pwm.txt
  17. Examples:
  18. ssd1307: oled@3c {
  19. compatible = "solomon,ssd1307fb-i2c";
  20. reg = <0x3c>;
  21. pwms = <&pwm 4 3000>;
  22. reset-gpios = <&gpio2 7>;
  23. reset-active-low;
  24. };