linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] ARM: dts: AM33XX: lcdc support
@ 2013-01-07  5:29 Afzal Mohammed
  2013-01-07  5:30 ` [PATCH 1/5] ARM: dts: AM33XX: Add lcdc node Afzal Mohammed
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Afzal Mohammed @ 2013-01-07  5:29 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,

This series add DT sources for AM335x SoC as well as AM335x based
boards.

As pinmux is an SoC specific detail rather than IP specific one,
addition of pin control has been done in a separate patch from
the one in which display timings are added. Also it may aid in
debugging in case of any issues.

This has been tested on AM335x based boards like AM335x EVM and
AM335x EVM-SK.

This series is based on v3.8-rc2.

This series has a dependency on,
1. Series v16 "of: add display helper" by,
	Steffen Trumtrar <s.trumtrar@pengutronix.de>
2. Series v2 "video: da8xx-fb: runtime timing configuration" by,
	me (Afzal Mohammed <afzal@ti.com>)
3. Series "video: da8xx-fb: DT support" by,
	me (Afzal Mohammed <afzal@ti.com>)

To test on AM335x, in addition to the above, following changes,
1. Patch "da8xx: Allow use by am33xx based devices" by,
	Pantelis Antoniou <panto@antoniou-consulting.com>
3. Series "HWMOD fixes for AM33xx PWM submodules and device tree nodes" by,
	Philip, Avinash <avinashphilip@ti.com>
would be required

A tree with all above for testing is available
 @git://gitorious.org/x0148406-public/linux-kernel.git da8xx-fb-dt


Regards
Afzal

Afzal Mohammed (5):
  ARM: dts: AM33XX: Add lcdc node
  ARM: dts: AM33XX: Add am335x-evm lcdc panel timings
  ARM: dts: AM33XX: Add am335x-evm lcdc pincontrol info
  ARM: dts: AM33XX: Add am335x-evmsk lcdc panel timings
  ARM: dts: AM33XX: Add am335x-evmsk lcdc pincontrol info

 arch/arm/boot/dts/am335x-evm.dts   |   55 +++++++++++++++++++++++++++++++++++-
 arch/arm/boot/dts/am335x-evmsk.dts |   55 +++++++++++++++++++++++++++++++++++-
 arch/arm/boot/dts/am33xx.dtsi      |    8 ++++++
 3 files changed, 116 insertions(+), 2 deletions(-)

-- 
1.7.9.5


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH 1/5] ARM: dts: AM33XX: Add lcdc node
  2013-01-07  5:29 [PATCH 0/5] ARM: dts: AM33XX: lcdc support Afzal Mohammed
@ 2013-01-07  5:30 ` Afzal Mohammed
  2013-01-07  5:30 ` [PATCH 2/5] ARM: dts: AM33XX: Add am335x-evm lcdc panel timings Afzal Mohammed
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Afzal Mohammed @ 2013-01-07  5:30 UTC (permalink / raw)
  To: linux-arm-kernel

Add lcdc node.

Signed-off-by: Afzal Mohammed <afzal@ti.com>
---
 arch/arm/boot/dts/am33xx.dtsi |    8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/arch/arm/boot/dts/am33xx.dtsi b/arch/arm/boot/dts/am33xx.dtsi
index c2f14e8..432d4bb8 100644
--- a/arch/arm/boot/dts/am33xx.dtsi
+++ b/arch/arm/boot/dts/am33xx.dtsi
@@ -385,5 +385,13 @@
 				mac-address = [ 00 00 00 00 00 00 ];
 			};
 		};
+
+		lcdc: lcdc@4830e000 {
+			compatible = "ti,am3352-lcdc", "ti,da830-lcdc";
+			reg = <0x4830e000 0x1000>;
+			interrupts = <36>;
+			status = "disabled";
+			ti,hwmods = "lcdc";
+		};
 	};
 };
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 2/5] ARM: dts: AM33XX: Add am335x-evm lcdc panel timings
  2013-01-07  5:29 [PATCH 0/5] ARM: dts: AM33XX: lcdc support Afzal Mohammed
  2013-01-07  5:30 ` [PATCH 1/5] ARM: dts: AM33XX: Add lcdc node Afzal Mohammed
@ 2013-01-07  5:30 ` Afzal Mohammed
  2013-01-07  5:30 ` [PATCH 3/5] ARM: dts: AM33XX: Add am335x-evm lcdc pincontrol info Afzal Mohammed
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Afzal Mohammed @ 2013-01-07  5:30 UTC (permalink / raw)
  To: linux-arm-kernel

Update lcdc node with panel timings (typical) for AM335X-EVM.

Signed-off-by: Afzal Mohammed <afzal@ti.com>
---
 arch/arm/boot/dts/am335x-evm.dts |   20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/arch/arm/boot/dts/am335x-evm.dts b/arch/arm/boot/dts/am335x-evm.dts
index d649644..a4229aa 100644
--- a/arch/arm/boot/dts/am335x-evm.dts
+++ b/arch/arm/boot/dts/am335x-evm.dts
@@ -244,3 +244,23 @@
 &cpsw_emac1 {
 	phy_id = <&davinci_mdio>, <1>;
 };
+
+&lcdc {
+	status = "okay";
+
+	display-timings {
+		800x480p62 {
+			clock-frequency = <30000000>;
+			hactive = <800>;
+			vactive = <480>;
+			hfront-porch = <39>;
+			hback-porch = <39>;
+			hsync-len = <47>;
+			vback-porch = <29>;
+			vfront-porch = <13>;
+			vsync-len = <2>;
+			hsync-active = <1>;
+			vsync-active = <1>;
+		};
+	};
+};
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 3/5] ARM: dts: AM33XX: Add am335x-evm lcdc pincontrol info
  2013-01-07  5:29 [PATCH 0/5] ARM: dts: AM33XX: lcdc support Afzal Mohammed
  2013-01-07  5:30 ` [PATCH 1/5] ARM: dts: AM33XX: Add lcdc node Afzal Mohammed
  2013-01-07  5:30 ` [PATCH 2/5] ARM: dts: AM33XX: Add am335x-evm lcdc panel timings Afzal Mohammed
@ 2013-01-07  5:30 ` Afzal Mohammed
  2013-01-07  5:30 ` [PATCH 4/5] ARM: dts: AM33XX: Add am335x-evmsk lcdc panel timings Afzal Mohammed
  2013-01-07  5:30 ` [PATCH 5/5] ARM: dts: AM33XX: Add am335x-evmsk lcdc pincontrol info Afzal Mohammed
  4 siblings, 0 replies; 6+ messages in thread
From: Afzal Mohammed @ 2013-01-07  5:30 UTC (permalink / raw)
  To: linux-arm-kernel

Update pin mux information for lcd panel on AM335X-EVM

Signed-off-by: Afzal Mohammed <afzal@ti.com>
---
 arch/arm/boot/dts/am335x-evm.dts |   35 ++++++++++++++++++++++++++++++++++-
 1 file changed, 34 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/am335x-evm.dts b/arch/arm/boot/dts/am335x-evm.dts
index a4229aa..25ebfc2 100644
--- a/arch/arm/boot/dts/am335x-evm.dts
+++ b/arch/arm/boot/dts/am335x-evm.dts
@@ -26,7 +26,7 @@
 
 	am33xx_pinmux: pinmux@44e10800 {
 		pinctrl-names = "default";
-		pinctrl-0 = <&matrix_keypad_s0 &volume_keys_s0>;
+		pinctrl-0 = <&matrix_keypad_s0 &volume_keys_s0 &lcd_pins_s0>;
 
 		matrix_keypad_s0: matrix_keypad_s0 {
 			pinctrl-single,pins = <
@@ -44,6 +44,39 @@
 				0x154 0x27	/* spi0_d0.gpio0_3, INPUT | MODE7 */
 			>;
 		};
+
+		lcd_pins_s0: lcd_pins_s0 {
+			pinctrl-single,pins = <
+				0x20 0x01
+				0x24 0x01
+				0x28 0x01
+				0x2c 0x01
+				0x30 0x01
+				0x34 0x01
+				0x38 0x01
+				0x3c 0x01
+				0xa0 0x08
+				0xa4 0x08
+				0xa8 0x08
+				0xac 0x08
+				0xb0 0x08
+				0xb4 0x08
+				0xb8 0x08
+				0xbc 0x08
+				0xc0 0x08
+				0xc4 0x08
+				0xc8 0x08
+				0xcc 0x08
+				0xd0 0x08
+				0xd4 0x08
+				0xd8 0x08
+				0xdc 0x08
+				0xe0 0x00
+				0xe4 0x00
+				0xe8 0x00
+				0xec 0x00
+			>;
+		};
 	};
 
 	ocp {
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 4/5] ARM: dts: AM33XX: Add am335x-evmsk lcdc panel timings
  2013-01-07  5:29 [PATCH 0/5] ARM: dts: AM33XX: lcdc support Afzal Mohammed
                   ` (2 preceding siblings ...)
  2013-01-07  5:30 ` [PATCH 3/5] ARM: dts: AM33XX: Add am335x-evm lcdc pincontrol info Afzal Mohammed
@ 2013-01-07  5:30 ` Afzal Mohammed
  2013-01-07  5:30 ` [PATCH 5/5] ARM: dts: AM33XX: Add am335x-evmsk lcdc pincontrol info Afzal Mohammed
  4 siblings, 0 replies; 6+ messages in thread
From: Afzal Mohammed @ 2013-01-07  5:30 UTC (permalink / raw)
  To: linux-arm-kernel

Update lcdc node with panel timings (typical) for AM335X-EVMSK.

Signed-off-by: Afzal Mohammed <afzal@ti.com>
---
 arch/arm/boot/dts/am335x-evmsk.dts |   20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/arch/arm/boot/dts/am335x-evmsk.dts b/arch/arm/boot/dts/am335x-evmsk.dts
index f5a6162..a7e017b 100644
--- a/arch/arm/boot/dts/am335x-evmsk.dts
+++ b/arch/arm/boot/dts/am335x-evmsk.dts
@@ -248,3 +248,23 @@
 		};
 	};
 };
+
+&lcdc {
+	status = "okay";
+
+	display-timings {
+		480x272p57 {
+			clock-frequency = <9000000>;
+			hactive = <480>;
+			vactive = <272>;
+			hfront-porch = <8>;
+			hback-porch = <43>;
+			hsync-len = <4>;
+			vback-porch = <12>;
+			vfront-porch = <4>;
+			vsync-len = <10>;
+			hsync-active = <1>;
+			vsync-active = <1>;
+		};
+	};
+};
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 5/5] ARM: dts: AM33XX: Add am335x-evmsk lcdc pincontrol info
  2013-01-07  5:29 [PATCH 0/5] ARM: dts: AM33XX: lcdc support Afzal Mohammed
                   ` (3 preceding siblings ...)
  2013-01-07  5:30 ` [PATCH 4/5] ARM: dts: AM33XX: Add am335x-evmsk lcdc panel timings Afzal Mohammed
@ 2013-01-07  5:30 ` Afzal Mohammed
  4 siblings, 0 replies; 6+ messages in thread
From: Afzal Mohammed @ 2013-01-07  5:30 UTC (permalink / raw)
  To: linux-arm-kernel

Update pin mux information for lcd panel on AM335X-EVMSK.

Signed-off-by: Afzal Mohammed <afzal@ti.com>
---
 arch/arm/boot/dts/am335x-evmsk.dts |   35 ++++++++++++++++++++++++++++++++++-
 1 file changed, 34 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/am335x-evmsk.dts b/arch/arm/boot/dts/am335x-evmsk.dts
index a7e017b..6275a50 100644
--- a/arch/arm/boot/dts/am335x-evmsk.dts
+++ b/arch/arm/boot/dts/am335x-evmsk.dts
@@ -32,7 +32,7 @@
 
 	am33xx_pinmux: pinmux@44e10800 {
 		pinctrl-names = "default";
-		pinctrl-0 = <&user_leds_s0 &gpio_keys_s0>;
+		pinctrl-0 = <&user_leds_s0 &gpio_keys_s0 &lcd_pins_s0>;
 
 		user_leds_s0: user_leds_s0 {
 			pinctrl-single,pins = <
@@ -51,6 +51,39 @@
 				0x9c 0x27	/* gpmc_ben0_cle.gpio2_5, INPUT | MODE7 */
 			>;
 		};
+
+		lcd_pins_s0: lcd_pins_s0 {
+			pinctrl-single,pins = <
+				0x20 0x01
+				0x24 0x01
+				0x28 0x01
+				0x2c 0x01
+				0x30 0x01
+				0x34 0x01
+				0x38 0x01
+				0x3c 0x01
+				0xa0 0x08
+				0xa4 0x08
+				0xa8 0x08
+				0xac 0x08
+				0xb0 0x08
+				0xb4 0x08
+				0xb8 0x08
+				0xbc 0x08
+				0xc0 0x08
+				0xc4 0x08
+				0xc8 0x08
+				0xcc 0x08
+				0xd0 0x08
+				0xd4 0x08
+				0xd8 0x08
+				0xdc 0x08
+				0xe0 0x00
+				0xe4 0x00
+				0xe8 0x00
+				0xec 0x00
+			>;
+		};
 	};
 
 	ocp {
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-01-07  5:30 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-07  5:29 [PATCH 0/5] ARM: dts: AM33XX: lcdc support Afzal Mohammed
2013-01-07  5:30 ` [PATCH 1/5] ARM: dts: AM33XX: Add lcdc node Afzal Mohammed
2013-01-07  5:30 ` [PATCH 2/5] ARM: dts: AM33XX: Add am335x-evm lcdc panel timings Afzal Mohammed
2013-01-07  5:30 ` [PATCH 3/5] ARM: dts: AM33XX: Add am335x-evm lcdc pincontrol info Afzal Mohammed
2013-01-07  5:30 ` [PATCH 4/5] ARM: dts: AM33XX: Add am335x-evmsk lcdc panel timings Afzal Mohammed
2013-01-07  5:30 ` [PATCH 5/5] ARM: dts: AM33XX: Add am335x-evmsk lcdc pincontrol info Afzal Mohammed

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).