ssd1307fb.txt 2.0 KB
Newer Older
1 2 3
* Solomon SSD1307 Framebuffer Driver

Required properties:
4
  - compatible: Should be "solomon,<chip>fb-<bus>". The only supported bus for
5
    now is i2c, and the supported chips are ssd1305, ssd1306 and ssd1307.
6 7 8
  - reg: Should contain address of the controller on the I2C bus. Most likely
         0x3c or 0x3d
  - 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 12 13 14
  - solomon,height: Height in pixel of the screen driven by the controller
  - solomon,width: Width in pixel of the screen driven by the controller
  - solomon,page-offset: Offset of pages (band of 8 pixels) that the screen is
    mapped to.
15 16 17

Optional properties:
  - reset-active-low: Is the reset gpio is active on physical low?
18 19 20 21 22 23 24 25 26 27
  - solomon,segment-no-remap: Display needs normal (non-inverted) data column
                              to segment mapping
  - solomon,com-seq: Display uses sequential COM pin configuration
  - solomon,com-lrremap: Display uses left-right COM pin remap
  - solomon,com-invdir: Display uses inverted COM pin scan direction
  - solomon,com-offset: Number of the COM pin wired to the first display line
  - solomon,prechargep1: Length of deselect period (phase 1) in clock cycles.
  - solomon,prechargep2: Length of precharge period (phase 2) in clock cycles.
                         This needs to be the higher, the higher the capacitance
                         of the OLED's pixels is
28 29 30 31 32 33 34 35 36 37 38

[0]: Documentation/devicetree/bindings/pwm/pwm.txt

Examples:
ssd1307: oled@3c {
        compatible = "solomon,ssd1307fb-i2c";
        reg = <0x3c>;
        pwms = <&pwm 4 3000>;
        reset-gpios = <&gpio2 7>;
        reset-active-low;
};
39 40 41 42 43 44 45 46 47 48 49

ssd1306: oled@3c {
        compatible = "solomon,ssd1306fb-i2c";
        reg = <0x3c>;
        pwms = <&pwm 4 3000>;
        reset-gpios = <&gpio2 7>;
        reset-active-low;
        solomon,com-lrremap;
        solomon,com-invdir;
        solomon,com-offset = <32>;
};