# Using a 2.8 inch TFT display with Himax HX8347-A chip controller

## Wirings

Signals to wire from a ET028002DMU display and [Berta Board D2](/roadrunner#bertad2)

	| Signal     | Berta D2 | ET028002DMU |
	|------------|----------|-------------|
	| SPI0 MOSI  | PA15     | 12          |
	| SPI0 MISO  | PA16     | 35          |
	| SPI0 SCLK  | PA14     | 10          |
	| SPI0 CS0   | PA17     | 15          |
	|            |          |             |
	| Reset      | PA13     | 11          |
	| D/C        | PA12     | J4.31       |
	|            |          |             |
	| 3V3        | 3V3      | 3,5         |
	| GND        | GND      | 2,4,9,      |
	|            |          |             |
    |            | 3V3      | 43, 44      |
	|            | GND      | 45          |
	|-------------------------------------|
	| Retroilluminazione    |             |
	|-------------------------------------|
	|            | 3V3      | 50          |
    |            | GND      | 46,47,48,49 |
	|------------|----------|-------------|


## Kernel menuconfig

Enable the SPI0 interface as exlained here:

* @article='roadrunner_spi'
 
Enable the support for small TFT LCD with ILI9341 LCD Controller

	Device Drivers  --->
      [*] Staging drivers  --->
        <*>   Support for small TFT LCD display modules  --->
			<*>   FB driver for the HX8347D LCD Controller

         
## Device tree

	spi0: spi@f8000000 {
		pinctrl-names = "default";
		pinctrl-0 = <&pinctrl_spi0_default>;
		status = "okay";
		
		device@0 {
			rotate = <270>;
			bgr;
			fps = <30>;
			compatible = "himax,hx8347d";
			spi-max-frequency = <50000000>;   
			reg = <0>;
			regwidth = <8>;
			buswidth = <8>;
			verbose = <3>;
			reset-gpios = <&pioA 13 0>;
			dc-gpios = <&pioA 12 0>;
		};
	};



* [Datasheet ET028002DMU](./ET028002DMU.pdf)
* [atasheet Himax HX8347-G](https://cdn-shop.adafruit.com/datasheets/HX8347-G_DS_T_preliminary_v01_100203.pdf)