public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Eugen.Hristev at microchip.com <Eugen.Hristev@microchip.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] ARM: dts: at91: sama5d27_wlsom1: add hlcdc node
Date: Mon, 26 Aug 2019 11:45:06 +0000	[thread overview]
Message-ID: <1566819578-31400-1-git-send-email-eugen.hristev@microchip.com> (raw)

From: Eugen Hristev <eugen.hristev@microchip.com>

Add node for hlcld for u-boot logo display at boot.
This is compatible with the Precision Design Associates (PDA) TM5000 screen.
Timings are compatible with simple panel from Linux, panel name is
pda_91_00156_a0

Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
---

This patch depends on previous sent patches on at91-sama5d27_wlsom1_ek board.

 arch/arm/dts/at91-sama5d27_wlsom1_ek-u-boot.dtsi |  4 ++
 arch/arm/dts/at91-sama5d27_wlsom1_ek.dts         | 60 ++++++++++++++++++++++++
 configs/sama5d27_wlsom1_ek_mmc_defconfig         |  8 ++++
 3 files changed, 72 insertions(+)

diff --git a/arch/arm/dts/at91-sama5d27_wlsom1_ek-u-boot.dtsi b/arch/arm/dts/at91-sama5d27_wlsom1_ek-u-boot.dtsi
index dae1fba..8c84dd0 100644
--- a/arch/arm/dts/at91-sama5d27_wlsom1_ek-u-boot.dtsi
+++ b/arch/arm/dts/at91-sama5d27_wlsom1_ek-u-boot.dtsi
@@ -13,6 +13,10 @@
 	};
 };
 
+&hlcdc {
+	u-boot,dm-pre-reloc;
+};
+
 &qspi1 {
 	u-boot,dm-pre-reloc;
 };
diff --git a/arch/arm/dts/at91-sama5d27_wlsom1_ek.dts b/arch/arm/dts/at91-sama5d27_wlsom1_ek.dts
index 32d3404..ab23f5c 100644
--- a/arch/arm/dts/at91-sama5d27_wlsom1_ek.dts
+++ b/arch/arm/dts/at91-sama5d27_wlsom1_ek.dts
@@ -38,6 +38,31 @@
 		};
 
 		apb {
+			hlcdc: hlcdc at f0000000 {
+				atmel,vl-bpix = <4>;
+				atmel,output-mode = <24>;
+				atmel,guard-time = <1>;
+				pinctrl-names = "default";
+				pinctrl-0 = <&pinctrl_lcd_base &pinctrl_lcd_pwm &pinctrl_lcd_rgb666>;
+				status = "okay";
+
+				display-timings {
+					800x480 {
+						clock-frequency = <33300000>;
+						xres = <800>;
+						yres = <480>;
+						hactive = <800>;
+						vactive = <480>;
+						hsync-len = <64>;
+						hfront-porch = <1>;
+						hback-porch = <64>;
+						vfront-porch = <1>;
+						vback-porch = <22>;
+						vsync-len = <23>;
+					};
+				};
+			};
+
 			qspi1: spi at f0024000 {
 				status = "okay";
 			};
@@ -54,6 +79,41 @@
 
 			pioA: gpio at fc038000 {
 				pinctrl {
+					pinctrl_lcd_base: pinctrl_lcd_base {
+						pinmux = <PIN_PC30__LCDVSYNC>,
+							 <PIN_PC31__LCDHSYNC>,
+							 <PIN_PD1__LCDDEN>,
+							 <PIN_PD0__LCDPCK>;
+						bias-disable;
+					};
+
+					pinctrl_lcd_pwm: pinctrl_lcd_pwm {
+						pinmux = <PIN_PC28__LCDPWM>;
+						bias-disable;
+					};
+
+					pinctrl_lcd_rgb666: pinctrl_lcd_rgb666 {
+						pinmux = <PIN_PC10__LCDDAT2>,
+							 <PIN_PC11__LCDDAT3>,
+							 <PIN_PC12__LCDDAT4>,
+							 <PIN_PC13__LCDDAT5>,
+							 <PIN_PC14__LCDDAT6>,
+							 <PIN_PC15__LCDDAT7>,
+							 <PIN_PC16__LCDDAT10>,
+							 <PIN_PC17__LCDDAT11>,
+							 <PIN_PC18__LCDDAT12>,
+							 <PIN_PC19__LCDDAT13>,
+							 <PIN_PC20__LCDDAT14>,
+							 <PIN_PC21__LCDDAT15>,
+							 <PIN_PC22__LCDDAT18>,
+							 <PIN_PC23__LCDDAT19>,
+							 <PIN_PC24__LCDDAT20>,
+							 <PIN_PC25__LCDDAT21>,
+							 <PIN_PC26__LCDDAT22>,
+							 <PIN_PC27__LCDDAT23>;
+						bias-disable;
+					};
+
 					pinctrl_sdmmc0_cmd_dat_default: sdmmc0_cmd_dat_default {
 						pinmux = <PIN_PA1__SDMMC0_CMD>,
 							 <PIN_PA2__SDMMC0_DAT0>,
diff --git a/configs/sama5d27_wlsom1_ek_mmc_defconfig b/configs/sama5d27_wlsom1_ek_mmc_defconfig
index d7329a2..5584c9c 100644
--- a/configs/sama5d27_wlsom1_ek_mmc_defconfig
+++ b/configs/sama5d27_wlsom1_ek_mmc_defconfig
@@ -85,6 +85,14 @@ CONFIG_DM_SPI=y
 CONFIG_TIMER=y
 CONFIG_SPL_TIMER=y
 CONFIG_ATMEL_PIT_TIMER=y
+CONFIG_USB=y
+CONFIG_DM_USB=y
+CONFIG_USB_EHCI_HCD=y
+CONFIG_USB_STORAGE=y
+CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_ATMEL_USBA=y
+CONFIG_DM_VIDEO=y
+CONFIG_ATMEL_HLCD=y
 CONFIG_W1=y
 CONFIG_W1_GPIO=y
 CONFIG_W1_EEPROM=y
-- 
2.7.4

             reply	other threads:[~2019-08-26 11:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-26 11:45 Eugen.Hristev at microchip.com [this message]
2019-09-11  7:09 ` [U-Boot] [PATCH] ARM: dts: at91: sama5d27_wlsom1: add hlcdc node Eugen.Hristev at microchip.com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1566819578-31400-1-git-send-email-eugen.hristev@microchip.com \
    --to=eugen.hristev@microchip.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox