boards: nxp: mr_canhubk3: add ssd1306 display devicetree node

Add devicetree node for the accompanying, ssd1306-based display board
connected to connector P4.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
This commit is contained in:
Henrik Brix Andersen 2024-03-24 12:37:35 +01:00 committed by Anas Nashif
commit dd0923d7ad
3 changed files with 20 additions and 0 deletions

View file

@ -228,6 +228,8 @@ P4.3 PTD14 LPI2C0_SCL
P4.4 PTD13 LPI2C0_SDA P4.4 PTD13 LPI2C0_SDA
========= ===== ============ ========= ===== ============
The accompanying display board can be connected to ``lpi2c0`` via connector ``P4``.
ADC ADC
=== ===

View file

@ -27,6 +27,7 @@
zephyr,shell-uart = &lpuart2; zephyr,shell-uart = &lpuart2;
zephyr,flash-controller = &mx25l6433f; zephyr,flash-controller = &mx25l6433f;
zephyr,canbus = &flexcan0; zephyr,canbus = &flexcan0;
zephyr,display = &ssd1306;
}; };
aliases { aliases {
@ -406,6 +407,22 @@
pinctrl-0 = <&lpi2c0_default>; pinctrl-0 = <&lpi2c0_default>;
pinctrl-names = "default"; pinctrl-names = "default";
clock-frequency = <I2C_BITRATE_STANDARD>; clock-frequency = <I2C_BITRATE_STANDARD>;
status = "okay";
ssd1306: ssd1306@3c {
compatible = "solomon,ssd1306fb";
reg = <0x3c>;
width = <128>;
height = <32>;
segment-offset = <0>;
page-offset = <0>;
display-offset = <0>;
multiplex-ratio = <31>;
segment-remap;
com-invdir;
com-sequential;
prechargep = <0x22>;
};
}; };
&lpi2c1 { &lpi2c1 {

View file

@ -20,4 +20,5 @@ supported:
- netif:eth - netif:eth
- pwm - pwm
- dma - dma
- display
vendor: nxp vendor: nxp