Skip to content

Commit

Permalink
tests: drivers: build_all: display: Add i2c and spi devices build test
Browse files Browse the repository at this point in the history
Add build tests for following devices.

- sharp,ls0xx
- maxim,max7219
- solomon,ssd1306fb

Signed-off-by: TOKITA Hiroshi <[email protected]>
  • Loading branch information
soburi authored and henrikbrixandersen committed Sep 20, 2024
1 parent 34f3786 commit e9b1cde
Showing 1 changed file with 37 additions and 3 deletions.
40 changes: 37 additions & 3 deletions tests/drivers/build_all/display/app.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
*/
cs-gpios = <&test_gpio 0 0 &test_gpio 0 1 &test_gpio 0 2
&test_gpio 0 3 &test_gpio 0 4 &test_gpio 0 5
&test_gpio 0 6>;
&test_gpio 0 6 &test_gpio 0 7 &test_gpio 0 8>;

test_led_strip_0: lpd8806@0 {
compatible = "greeled,lpd8806";
Expand All @@ -173,6 +173,26 @@
color-mapping = <0 1 2>;
reset-delay = <280>;
};

test_ls0xx: ls0xx@7 {
compatible = "sharp,ls0xx";
spi-max-frequency = <2000000>;
reg = <0x7>;
width = <128>;
height = <128>;
extcomin-gpios = <&test_gpio 0 0>;
extcomin-frequency = <60>;
disp-en-gpios = <&test_gpio 0 0>;
};

test_max7219: max7219@8 {
compatible = "maxim,max7219";
reg = <0x8>;
spi-max-frequency = <1000000>;
num-cascading = <1>;
intensity = <0>;
scan-limit = <7>;
};
};

test_led_strip_matrix {
Expand All @@ -197,8 +217,8 @@
status="okay";
clock-frequency=<100000>;

test_ist3931:ist3931@3f{
reg=<0x3f>;
test_ist3931:ist3931@0 {
reg=<0x0>;
width=<64>;
height=<32>;
compatible = "istech,ist3931";
Expand All @@ -213,6 +233,20 @@
frame-control=<400>;
reverse-com-output;
};

test_ssd1306: ssd1306@1 {
compatible = "solomon,ssd1306fb";
reg = <0x1>;
width = <128>;
height = <64>;
segment-offset = <0>;
page-offset = <0>;
display-offset = <0>;
multiplex-ratio = <63>;
segment-remap;
com-invdir;
prechargep = <0x22>;
};
};
};
};

0 comments on commit e9b1cde

Please sign in to comment.