[PATCH 0/5] ARM: dts: AM33XX: lcdc support

STALE4965d

Revision v1 of 2 in this series.

6 messages, 1 author, 2013-01-07 · open the first message on its own page

[PATCH 0/5] ARM: dts: AM33XX: lcdc support

From: Afzal Mohammed <hidden>
Date: 2013-01-07 05:17:39

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 [off-list ref]
2. Series v2 "video: da8xx-fb: runtime timing configuration" by,
	me (Afzal Mohammed [off-list ref])
3. Series "video: da8xx-fb: DT support" by,
	me (Afzal Mohammed [off-list ref])

To test on AM335x, in addition to the above, following changes,
1. Patch "da8xx: Allow use by am33xx based devices" by,
	Pantelis Antoniou [off-list ref]
3. Series "HWMOD fixes for AM33xx PWM submodules and device tree nodes" by,
	Philip, Avinash [off-list ref]
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

[PATCH 1/5] ARM: dts: AM33XX: Add lcdc node

From: Afzal Mohammed <hidden>
Date: 2013-01-07 05:17:42

Add lcdc node.

Signed-off-by: Afzal Mohammed <redacted>
---
 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

[PATCH 2/5] ARM: dts: AM33XX: Add am335x-evm lcdc panel timings

From: Afzal Mohammed <hidden>
Date: 2013-01-07 05:17:54

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

Signed-off-by: Afzal Mohammed <redacted>
---
 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

[PATCH 3/5] ARM: dts: AM33XX: Add am335x-evm lcdc pincontrol info

From: Afzal Mohammed <hidden>
Date: 2013-01-07 05:18:04

Update pin mux information for lcd panel on AM335X-EVM

Signed-off-by: Afzal Mohammed <redacted>
---
 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

[PATCH 4/5] ARM: dts: AM33XX: Add am335x-evmsk lcdc panel timings

From: Afzal Mohammed <hidden>
Date: 2013-01-07 05:18:07

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

Signed-off-by: Afzal Mohammed <redacted>
---
 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

[PATCH 5/5] ARM: dts: AM33XX: Add am335x-evmsk lcdc pincontrol info

From: Afzal Mohammed <hidden>
Date: 2013-01-07 05:18:24

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

Signed-off-by: Afzal Mohammed <redacted>
---
 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help