mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sam Ravnborg <sam@ravnborg.org>
To: barebox@lists.infradead.org, Ahmad Fatoum <a.fatoum@pengutronix.de>
Cc: Sam Ravnborg <sam@ravnborg.org>
Subject: [WIP PATCH v2 11/11] ARM: at91: Update DTS for skov-arm9cpu
Date: Tue, 28 Jun 2022 22:38:49 +0200	[thread overview]
Message-ID: <20220628203849.2785611-12-sam@ravnborg.org> (raw)
In-Reply-To: <20220628203849.2785611-1-sam@ravnborg.org>

Update the device tree with the following:
- Add backlight node
- Add panel node for the Logic L2 panel
- Add graph node to connect display with the panel
- Drop all obsolete properties for the display node

The updates was done to have proper support for backlight and
to be compatible with the updated bindings for the display node.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
---
 arch/arm/dts/at91-skov-arm9cpu.dts | 107 +++++++++++++----------------
 1 file changed, 49 insertions(+), 58 deletions(-)

diff --git a/arch/arm/dts/at91-skov-arm9cpu.dts b/arch/arm/dts/at91-skov-arm9cpu.dts
index 8e4fddfd3..c8d88050d 100644
--- a/arch/arm/dts/at91-skov-arm9cpu.dts
+++ b/arch/arm/dts/at91-skov-arm9cpu.dts
@@ -202,43 +202,31 @@
 			0x04050056 /* col5 row4 KEY_102ND */
 		>;
 	};
-};
 
-&{/ahb/apb} {
-	pinctrl: pinctrl@fffff200 {
+	panel_reg: panel_reg {
+		compatible = "regulator-fixed";
+		regulator-name = "panel-power-supply";
+		regulator-min-microvolt = <3300000>;
+		regulator-max-microvolt = <3300000>;
+		status = "okay";
 	};
 
-	watchdog@fffffd40 {
+	backlight: backlight {
+		compatible = "pwm-backlight";
+		pwms = <&pwm0 1 100000 1>;
+		brightness-levels = <0 10 20 30 40 50 60 70 80 90 100>;
+		default-brightness-level = <8>;
 		status = "okay";
 	};
-};
-
-&dbgu {
-	status = "okay";
-};
 
-&fb0 {
-	status = "okay";
-	display = <&display0>;
-	display0: display0 {
-		bits-per-pixel = <16>;
-		atmel,lcdcon-backlight;
-		atmel,dmacon = <0x1>;
-		atmel,lcdcon2 = <0x80008002>;
-		atmel,guard-time = <1>;
-		atmel,lcd-wiring-mode = "BRG";
-		pinctrl-names = "default";
-		pinctrl-0 = <
-			&pinctrl_board_fb
-			&pinctrl_disp_type
-			&pinctrl_logic_type
-		>;
 
-		atmel,power-control-gpio = <&pioA 30 GPIO_ACTIVE_HIGH>;
+	panel: panel {
+		compatible = "logictechno,lttd800480070-l2rt", "simple-panel";
+		backlight = <&backlight>;
+		power-supply = <&panel_reg>;
+		status = "okay";
 
 		display-timings {
-			native-mode = <&l2rt>;
-
 			l2rt: l2rt {
 				/* LTTD800480070-L2RT @ 55 */
 				clock-frequency = <30000000>;
@@ -264,39 +252,42 @@
 				vsync-active = <0>;
 				de-active = <1>;
 			};
+		};
 
-			l6whrt: l6whrt {
-				clock-frequency = <33000000>;
-				hactive = <800>;
-				vactive = <480>;
-				hback-porch = <43>;
-				hfront-porch = <154>;
-				vback-porch = <20>;
-				vfront-porch = <47>;
-				hsync-len = <3>;
-				vsync-len = <3>;
-				pixelclk-active = <1>;
-				hsync-active = <0>;
-				vsync-active = <0>;
-				de-active = <1>;
+		port {
+			panel_input: endpoint {
+				remote-endpoint = <&panel_output>;
 			};
+		};
+	};
+};
 
-			seiko: seiko {
-				/* 70WVW2AZ0 @ 55 */
-				clock-frequency = <33000000>;
-				hactive = <800>;
-				vactive = <480>;
-				hback-porch = <0>;
-				hfront-porch = <256>;
-				vback-porch = <45>;
-				vfront-porch = <0>;
-				hsync-len = <0>;
-				vsync-len = <0>;
-				pixelclk-active = <1>;
-				hsync-active = <0>;
-				vsync-active = <0>;
-				de-active = <1>;
-			};
+&{/ahb/apb} {
+	pinctrl: pinctrl@fffff200 {
+	};
+
+	watchdog@fffffd40 {
+		status = "okay";
+	};
+};
+
+&dbgu {
+	status = "okay";
+};
+
+&fb0 {
+	status = "okay";
+
+	pinctrl-0 = <
+		&pinctrl_board_fb
+		&pinctrl_disp_type
+		&pinctrl_logic_type>;
+
+	atmel,lcd-wiring-mode = "BRG";
+
+	port {
+		panel_output: endpoint {
+			remote-endpoint = <&panel_input>;
 		};
 	};
 };
-- 
2.34.1




  parent reply	other threads:[~2022-06-28 20:41 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-28 20:38 [PATCH 0/11] ARM: at91: Add pbl support to skov-arm9cpu Sam Ravnborg
2022-06-28 20:38 ` [PATCH v2 01/11] pwm: atmel: Fix build and update Sam Ravnborg
2022-06-28 20:38 ` [PATCH v2 02/11] ARM: at91: Make sdramc.h useable in multi image builds Sam Ravnborg
2022-06-29  6:50   ` Ahmad Fatoum
2022-06-28 20:38 ` [PATCH v2 03/11] ARM: at91: Add initialize function to sdramc Sam Ravnborg
2022-06-29  6:50   ` Ahmad Fatoum
2022-06-28 20:38 ` [PATCH v2 04/11] ARM: at91: Provide at91_mux_pio_pin for use in lowlevel Sam Ravnborg
2022-06-29  6:50   ` Ahmad Fatoum
2022-06-28 20:38 ` [PATCH v2 05/11] mci: atmel_mci: Add PBL helper to configure highcapacity Sam Ravnborg
2022-06-29  6:50   ` Ahmad Fatoum
2022-06-28 20:38 ` [PATCH v2 06/11] ARM: at91: Add at91sam9 xload_mmc for PBL use Sam Ravnborg
2022-06-29  6:50   ` Ahmad Fatoum
2022-06-28 20:38 ` [PATCH v2 07/11] ARM: at91: Add extra register definitions Sam Ravnborg
2022-06-29  6:49   ` Ahmad Fatoum
2022-06-28 20:38 ` [PATCH v2 08/11] ARM: at91: Add lowlevel helpers for at91sam9263 Sam Ravnborg
2022-06-29  6:50   ` Ahmad Fatoum
2022-06-28 20:38 ` [WIP PATCH v2 09/11] atmel_lcdfb: add support for updated DT bindings Sam Ravnborg
2022-06-28 20:38 ` [PATCH v2 10/11] ARM: at91: Add xload support to skov-arm9cpu Sam Ravnborg
2022-06-28 20:47   ` Sam Ravnborg
2022-06-28 20:38 ` Sam Ravnborg [this message]
2022-06-30 12:19 ` [PATCH 0/11] ARM: at91: Add pbl " Sascha Hauer

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=20220628203849.2785611-12-sam@ravnborg.org \
    --to=sam@ravnborg.org \
    --cc=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /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