zephyr/boards/shields/ssd1306/sh1106_128x64.overlay
TOKITA Hiroshi 2f7e822705 drivers: display: ssd1306: determin sh1106 by dts compatibility
Determine sh1106 from the `compatibility` value instead of
the SSD1306_CONTROLLER_TYPE setting.

Change the settings in `boards/shields/ssd1306/sh1106_128x64.overlay`
to follow this change.
Remove the SSD1306_CONTROLLER_TYPE from its Kconfig.defconfig,
and set the `compatibility` to `sinowealth,sh1106`.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
2023-09-13 14:23:24 -07:00

30 lines
472 B
Plaintext

/*
* Copyright (c) 2019 PHYTEC Messtechnik GmbH
*
* SPDX-License-Identifier: Apache-2.0
*/
/ {
chosen {
zephyr,display = &sh1106_sh1106_128x64;
};
};
&arduino_i2c {
status = "okay";
sh1106_sh1106_128x64: ssd1306@3c {
compatible = "sinowealth,sh1106";
reg = <0x3c>;
width = <128>;
height = <64>;
segment-offset = <2>;
page-offset = <0>;
display-offset = <0>;
multiplex-ratio = <63>;
segment-remap;
com-invdir;
prechargep = <0x22>;
};
};