board: hsdk: Convert defines into dts for display
The ILITEK ILI9340 should have been in the dts and added as #defines in dts_fixup.h. Fix this by adding a display node in the dts. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
0c7a5fdf1c
commit
5d332c974e
2 changed files with 9 additions and 16 deletions
|
@ -46,4 +46,13 @@
|
||||||
&spi2 {
|
&spi2 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
clock-frequency = <33333333>;
|
clock-frequency = <33333333>;
|
||||||
|
|
||||||
|
cs-gpios = <&gpio0 9 0>;
|
||||||
|
ili9340@0 {
|
||||||
|
compatible = "ilitek,ili9340";
|
||||||
|
cmd-data-gpios = <&gpio0 21 0>;
|
||||||
|
reg = <0>;
|
||||||
|
spi-max-frequency = <12000000>;
|
||||||
|
label = "DISPLAY";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -65,20 +65,4 @@
|
||||||
/* For spi_fujistu_fram sample */
|
/* For spi_fujistu_fram sample */
|
||||||
#define DT_SPI_1_NAME DT_SPI_DW_1_NAME
|
#define DT_SPI_1_NAME DT_SPI_DW_1_NAME
|
||||||
|
|
||||||
/*
|
|
||||||
* seeed TFT TOUCH SHIELD configuration
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define DT_INST_0_ILITEK_ILI9340_BUS_NAME DT_SPI_2_NAME
|
|
||||||
#define DT_INST_0_ILITEK_ILI9340_SPI_MAX_FREQUENCY 12000000
|
|
||||||
#define DT_INST_0_ILITEK_ILI9340_BASE_ADDRESS 1
|
|
||||||
|
|
||||||
#define DT_INST_0_ILITEK_ILI9340_CS_GPIOS_CONTROLLER CONFIG_GPIO_DW_0_NAME
|
|
||||||
#define DT_INST_0_ILITEK_ILI9340_CS_GPIOS_PIN 9
|
|
||||||
|
|
||||||
#define DT_INST_0_ILITEK_ILI9340_CMD_DATA_GPIOS_CONTROLLER CONFIG_GPIO_DW_0_NAME
|
|
||||||
#define DT_INST_0_ILITEK_ILI9340_CMD_DATA_GPIOS_PIN 21
|
|
||||||
|
|
||||||
#define DT_INST_0_ILITEK_ILI9340_LABEL "DISPLAY"
|
|
||||||
|
|
||||||
/* End of SoC Level DTS fixup file */
|
/* End of SoC Level DTS fixup file */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue