Skip to contentSkip to conversation

Add DRM FIMD DT support for Exynos4 DT Machines

PATCH Superseded Vikas Sajjan 2 participants 11 messages Feb 1, 2013 – Feb 5, 2013

Subsystems (4)

v3 of 11 Superseded Latest is v11 →

lore
Share & tools
lore
#0 lore raw

v3 cover Add DRM FIMD DT support for Exynos4 DT Machines

This patch series adds support for DRM FIMD DT for Exynos4 DT Machines, specifically for Exynos4412 SoC.

changes since v2:
- added alias to 'fimd@11c00000' node
(reported by: Rahul Sharma <[email protected]>)
- removed 'lcd0_data' node as there was already a similar node lcd_data24 (reported by: Jingoo Han <[email protected]>
- replaced spaces with tabs in display-timing node

changes since v1:
- added new patch to add FIMD DT binding Documentation
- removed patch enabling SAMSUNG_DEV_BACKLIGHT and SAMSUNG_DEV_PMW for mach-exynos4 DT
- added 'status' property to fimd DT node

Is based on branch "for-next"
http://git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung.git

Sachin Kamat (1):
ARM: dts: Adds lcd pinctrl node entries for SAMSUNG EXYNOS4412 SoC

Vikas Sajjan (4):
ARM: dts: Add FIMD node to exynos4
ARM: dts: Add FIMD node and display timing node to

    exynos4412-origen.dts

ARM: dts: adds FIMD AUXDATA node entry for exynos4 DT
ARM: exynos: dts: Add FIMD DT binding Documentation

 .../devicetree/bindings/drm/exynos/fimd.txt        |   37 ++++++++++++++++++++
 arch/arm/boot/dts/exynos4.dtsi                     |    7 ++++
 arch/arm/boot/dts/exynos4412-origen.dts            |   22 ++++++++++++
 arch/arm/boot/dts/exynos4x12-pinctrl.dtsi          |   14 ++++++++
 arch/arm/mach-exynos/mach-exynos4-dt.c             |    4 +++
 5 files changed, 84 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/drm/exynos/fimd.txt
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH v3 1/5 ARM: dts: Add FIMD node to exynos4

This adds common FIMD device node for all Exynos4 SoCs.

---
 arch/arm/boot/dts/exynos4.dtsi |    7 +++++++
 1 file changed, 7 insertions(+)
arch/arm/boot/dts/exynos4.dtsi +7 -0
index e1347fc..57744d6 100644
@@ -289,4 +289,11 @@
 			interrupts = <0 34 0>;
 		};
 	};
+
+	fimd: fimd@11c00000 {
+		compatible = "samsung,exynos4-fimd";
+		interrupt-parent = <&combiner>;
+		reg = <0x11c00000 0x20000>;
+		interrupts = <11 1>, <11 0>, <11 2>;
+	};
 };
Signature · 1 line
1.7.9.5
#2 lore raw

Re: [PATCH v3 1/5] ARM: dts: Add FIMD node to exynos4

Hi,

any more comments for the below patch.

Quoted 30 lines · Vikas Sajjan

This adds common FIMD device node for all Exynos4 SoCs.

---
 arch/arm/boot/dts/exynos4.dtsi |    7 +++++++
 1 file changed, 7 insertions(+)
arch/arm/boot/dts/exynos4.dtsi +7 -1
index e1347fc..57744d6 100644
@@ -289,4 +289,11 @@
                        interrupts = <0 34 0>;
                };
        };
+
+       fimd: fimd@11c00000 {
+               compatible = "samsung,exynos4-fimd";
+               interrupt-parent = <&combiner>;
+               reg = <0x11c00000 0x20000>;
+               interrupts = <11 1>, <11 0>, <11 2>;
+       };
 };
--

1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw

PATCH v3 2/5 ARM: dts: Adds lcd pinctrl node entries for SAMSUNG EXYNOS4412 SoC

In reply to Vikas Sajjan

From: Sachin Kamat <[email protected]>

This patch adds the lcd panel related picntrl nodes for Exynos4412 SoC

---
 arch/arm/boot/dts/exynos4x12-pinctrl.dtsi |   14 ++++++++++++++
 1 file changed, 14 insertions(+)
arch/arm/boot/dts/exynos4x12-pinctrl.dtsi +14 -0
index 8e6115a..332fc33 100644
@@ -354,6 +354,20 @@
 			samsung,pin-drv = <0>;
 		};
 
+		lcd_sync: lcd-sync {
+			samsung,pins = "gpf0-0", "gpf0-1";
+			samsung,pin-function = <2>;
+			samsung,pin-pud = <0>;
+			samsung,pin-drv = <0>;
+		};
+
+		lcd_en: lcd-en {
+			samsung,pins = "gpf0-3";
+			samsung,pin-function = <2>;
+			samsung,pin-pud = <0>;
+			samsung,pin-drv = <0>;
+		};
+
 		lcd_clk: lcd-clk {
 			samsung,pins = "gpf0-0", "gpf0-1", "gpf0-2", "gpf0-3";
 			samsung,pin-function = <2>;
Signature · 1 line
1.7.9.5
#4 lore raw

Re: [PATCH v3 2/5] ARM: dts: Adds lcd pinctrl node entries for SAMSUNG EXYNOS4412 SoC

any more comments for the below patch?

Quoted 42 lines · Vikas Sajjan

From: Sachin Kamat <[email protected]>

This patch adds the lcd panel related picntrl nodes for Exynos4412 SoC

---
 arch/arm/boot/dts/exynos4x12-pinctrl.dtsi |   14 ++++++++++++++
 1 file changed, 14 insertions(+)
arch/arm/boot/dts/exynos4x12-pinctrl.dtsi +14 -1
index 8e6115a..332fc33 100644
@@ -354,6 +354,20 @@
                        samsung,pin-drv = <0>;
                };
 
+               lcd_sync: lcd-sync {
+                       samsung,pins = "gpf0-0", "gpf0-1";
+                       samsung,pin-function = <2>;
+                       samsung,pin-pud = <0>;
+                       samsung,pin-drv = <0>;
+               };
+
+               lcd_en: lcd-en {
+                       samsung,pins = "gpf0-3";
+                       samsung,pin-function = <2>;
+                       samsung,pin-pud = <0>;
+                       samsung,pin-drv = <0>;
+               };
+
                lcd_clk: lcd-clk {
                        samsung,pins = "gpf0-0", "gpf0-1", "gpf0-2", "gpf0-3";
                        samsung,pin-function = <2>;
--

1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#5 lore raw

PATCH v3 3/5 ARM: dts: Add FIMD node and display timing node to exynos4412-origen.dts

In reply to Vikas Sajjan

Adds FIMD DT support to Origen quad board

---
 arch/arm/boot/dts/exynos4412-origen.dts |   22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
arch/arm/boot/dts/exynos4412-origen.dts +22 -0
index 4eba374..0bb183b 100644
@@ -44,6 +44,28 @@
 		status = "okay";
 	};
 
+       fimd@11c00000 {
+		samsung,power-domain = <&pd_lcd0>;
+		pinctrl-0 = <&lcd_sync &lcd_clk &lcd_en &lcd_data24 &pwm1_out>;
+		pinctrl-names = "default";
+		status = "okay";
+	};
+
+	display-timings {
+		native-mode = <&timing0>;
+		timing0: timing@0 {
+			clock-frequency = <50000>;
+			hactive = <1024>;
+			vactive = <600>;
+			hfront-porch = <64>;
+			hback-porch = <16>;
+			hsync-len = <48>;
+			vback-porch = <64>;
+			vfront-porch = <16>;
+			vsync-len = <3>;
+		};
+	};
+
 	serial@13800000 {
 		status = "okay";
 	};
Signature · 1 line
1.7.9.5
#6 lore raw

Re: [PATCH v3 3/5] ARM: dts: Add FIMD node and display timing node to exynos4412-origen.dts

any more comments for the below patch.

Quoted 47 lines · Vikas Sajjan

Adds FIMD DT support to Origen quad board

---
 arch/arm/boot/dts/exynos4412-origen.dts |   22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
arch/arm/boot/dts/exynos4412-origen.dts +22 -1
index 4eba374..0bb183b 100644
@@ -44,6 +44,28 @@
                status = "okay";
        };
 
+       fimd@11c00000 {
+               samsung,power-domain = <&pd_lcd0>;
+               pinctrl-0 = <&lcd_sync &lcd_clk &lcd_en &lcd_data24 &pwm1_out>;
+               pinctrl-names = "default";
+               status = "okay";
+       };
+
+       display-timings {
+               native-mode = <&timing0>;
+               timing0: timing@0 {
+                       clock-frequency = <50000>;
+                       hactive = <1024>;
+                       vactive = <600>;
+                       hfront-porch = <64>;
+                       hback-porch = <16>;
+                       hsync-len = <48>;
+                       vback-porch = <64>;
+                       vfront-porch = <16>;
+                       vsync-len = <3>;
+               };
+       };
+
        serial@13800000 {
                status = "okay";
        };
--

1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#7 lore raw

PATCH v3 4/5 ARM: dts: adds FIMD AUXDATA node entry for exynos4 DT

In reply to Vikas Sajjan

This patch adds the FIMD AUXDATA node

---
 arch/arm/mach-exynos/mach-exynos4-dt.c |    4 ++++
 1 file changed, 4 insertions(+)
arch/arm/mach-exynos/mach-exynos4-dt.c +4 -0
index 2a2c96a..9536657 100644
@@ -13,6 +13,7 @@
 
 #include <linux/of_platform.h>
 #include <linux/serial_core.h>
+#include <linux/fb.h>
 
 #include <asm/mach/arch.h>
 #include <asm/hardware/gic.h>
@@ -80,6 +81,9 @@ static const struct of_dev_auxdata exynos4_auxdata_lookup[] __initconst = {
 	OF_DEV_AUXDATA("arm,pl330", EXYNOS4_PA_MDMA1, "dma-pl330.2", NULL),
 	OF_DEV_AUXDATA("samsung,exynos4210-tmu", EXYNOS4_PA_TMU,
 				"exynos-tmu", NULL),
+	OF_DEV_AUXDATA("samsung,exynos4-fimd", EXYNOS4_PA_FIMD0,
+			"exynos4-fb.0", NULL),
+
 	{},
 };
 
Signature · 1 line
1.7.9.5
#8 lore raw

Re: [PATCH v3 4/5] ARM: dts: adds FIMD AUXDATA node entry for exynos4 DT

Hi,

any more comments for the below patch.

Quoted 36 lines · Vikas Sajjan

This patch adds the FIMD AUXDATA node

---
 arch/arm/mach-exynos/mach-exynos4-dt.c |    4 ++++
 1 file changed, 4 insertions(+)
arch/arm/mach-exynos/mach-exynos4-dt.c +4 -1
index 2a2c96a..9536657 100644
@@ -13,6 +13,7 @@
 
 #include <linux/of_platform.h>
 #include <linux/serial_core.h>
+#include <linux/fb.h>
 
 #include <asm/mach/arch.h>
 #include <asm/hardware/gic.h>
@@ -80,6 +81,9 @@ static const struct of_dev_auxdata exynos4_auxdata_lookup[] __initconst = {
        OF_DEV_AUXDATA("arm,pl330", EXYNOS4_PA_MDMA1, "dma-pl330.2", NULL),
        OF_DEV_AUXDATA("samsung,exynos4210-tmu", EXYNOS4_PA_TMU,
                                "exynos-tmu", NULL),
+       OF_DEV_AUXDATA("samsung,exynos4-fimd", EXYNOS4_PA_FIMD0,
+                       "exynos4-fb.0", NULL),
+
        {},
 };
 
--

1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#9 lore raw

PATCH v3 5/5 ARM: exynos: dts: Add FIMD DT binding Documentation

In reply to Vikas Sajjan

Adds FIMD DT binding documentation both SoC and Board, with an example

---
 .../devicetree/bindings/drm/exynos/fimd.txt        |   37 ++++++++++++++++++++
 1 file changed, 37 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/drm/exynos/fimd.txt
Documentation/devicetree/bindings/drm/exynos/fimd.txt new file +37 -0
new file mode 100644
index 0000000..bec9d07
@@ -0,0 +1,37 @@
+Device-Tree bindings for fimd driver
+
+FIMD stands for Fully Interactive Mobile Display, is the Display Controller for
+the Exynos series of SoCs which transfers the image data from a video buffer
+located in the system memory to an external LCD interface.
+
+Required properties:
+- compatible := value should be "samsung,exynos5-fimd" or "samsung,exynos4-fimd"
+- reg := physical base address of the fimd and length of memory mapped region
+- interrupt-parent := reference to the interrupt combiner node with phandle
+- interrupts := interrupt number from the combiner to the cpu
+- pinctrl := property defining the pinctrl configurations with a phandle
+- pinctrl-names := name of the pinctrl
+
+Optional Properties:
+- samsung,power-domain := power domain property defined with a phandle
+- status := property defining the status of the node
+
+Example:
+
+SoC specific DT Entry:
+
+	fimd@11c00000 {
+		compatible = "samsung,exynos4-fimd";
+		interrupt-parent = <&combiner>;
+		reg = <0x11c00000 0x20000>;
+		interrupts = <11 1>, <11 0>, <11 2>;
+	};
+
+Board specific DT Entry:
+
+	fimd@11c00000 {
+		samsung,power-domain = <&pd_lcd0>;
+		pinctrl-0 = <&lcd_sync &lcd_clk &lcd_en &lcd0_data &pwm1_out>;
+		pinctrl-names = "default";
+		status = "okay";
+	};
Signature · 1 line
1.7.9.5
#10 lore raw

Re: [PATCH v3 5/5] ARM: exynos: dts: Add FIMD DT binding Documentation

Hi,

any more comments for the below patch.

Quoted 58 lines · Vikas Sajjan

Adds FIMD DT binding documentation both SoC and Board, with an example

---
 .../devicetree/bindings/drm/exynos/fimd.txt        |   37 ++++++++++++++++++++
 1 file changed, 37 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/drm/exynos/fimd.txt
Documentation/devicetree/bindings/drm/exynos/fimd.txt new file +37 -1
new file mode 100644
index 0000000..bec9d07
@@ -0,0 +1,37 @@
+Device-Tree bindings for fimd driver
+
+FIMD stands for Fully Interactive Mobile Display, is the Display Controller for
+the Exynos series of SoCs which transfers the image data from a video buffer
+located in the system memory to an external LCD interface.
+
+Required properties:
+- compatible := value should be "samsung,exynos5-fimd" or "samsung,exynos4-fimd"
+- reg := physical base address of the fimd and length of memory mapped region
+- interrupt-parent := reference to the interrupt combiner node with phandle
+- interrupts := interrupt number from the combiner to the cpu
+- pinctrl := property defining the pinctrl configurations with a phandle
+- pinctrl-names := name of the pinctrl
+
+Optional Properties:
+- samsung,power-domain := power domain property defined with a phandle
+- status := property defining the status of the node
+
+Example:
+
+SoC specific DT Entry:
+
+       fimd@11c00000 {
+               compatible = "samsung,exynos4-fimd";
+               interrupt-parent = <&combiner>;
+               reg = <0x11c00000 0x20000>;
+               interrupts = <11 1>, <11 0>, <11 2>;
+       };
+
+Board specific DT Entry:
+
+       fimd@11c00000 {
+               samsung,power-domain = <&pd_lcd0>;
+               pinctrl-0 = <&lcd_sync &lcd_clk &lcd_en &lcd0_data &pwm1_out>;
+               pinctrl-names = "default";
+               status = "okay";
+       };
--

1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html