Skip to content

Commit

Permalink
tests: build_all: input: add an entry for xpt2046
Browse files Browse the repository at this point in the history
Build the xpt2046 driver with the input build_all. Fix a typo while at
it.

Signed-off-by: Fabio Baltieri <[email protected]>
  • Loading branch information
fabiobaltieri committed Jun 27, 2023
1 parent 9065c2d commit 3681268
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion tests/drivers/build_all/input/app.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
test_gpio: gpio@0 {
compatible = "vnd,gpio";
gpio-controller;
reg = <00 0x1000>;
reg = <0x0 0x1000>;
#gpio-cells = <0x2>;
status = "okay";
};
Expand Down Expand Up @@ -58,5 +58,30 @@
int-gpios = <&test_gpio 0 0>;
};
};

spi@2 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "vnd,spi";
reg = <0x2 0x1000>;
status = "okay";
clock-frequency = <2000000>;

/* one entry for every devices */
cs-gpios = <&test_gpio 0 0>;

xpt2046@0 {
compatible = "xptek,xpt2046";
spi-max-frequency = <0>;
reg = <0x0>;
int-gpios = <&test_gpio 0 0>;
touchscreen-size-x = <10>;
touchscreen-size-y = <10>;
min-x = <0>;
min-y = <0>;
max-x = <1>;
max-y = <1>;
};
};
};
};

0 comments on commit 3681268

Please sign in to comment.