Add DRM FIMD DT support for Exynos4 DT Machines
v2 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 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 | 26 ++++++++++++++ arch/arm/mach-exynos/mach-exynos4-dt.c | 4 +++ 5 files changed, 96 insertions(+) create mode 100644 Documentation/devicetree/bindings/drm/exynos/fimd.txt
Signature · 1 line
1.7.9.5
PATCH v2 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
@@ -289,4 +289,11 @@ interrupts = <0 34 0>; }; }; + + 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
PATCH v2 2/5 ARM: dts: Adds lcd pinctrl node entries for SAMSUNG EXYNOS4412 SoC
In reply to Vikas SajjanFrom: Sachin Kamat <[email protected]>
This patch adds the lcd panel related picntrl nodes for Exynos4412 SoC
--- arch/arm/boot/dts/exynos4x12-pinctrl.dtsi | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+)
arch/arm/boot/dts/exynos4x12-pinctrl.dtsi +26 -0
@@ -354,6 +354,32 @@ 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>; + }; + + lcd0_data: lcd0-data { + samsung,pins = "gpf0-4", "gpf0-5", "gpf0-6", "gpf0-7", + "gpf1-0", "gpf1-1", "gpf1-2", "gpf1-3", + "gpf1-4", "gpf1-5", "gpf1-6", "gpf1-7", + "gpf2-0", "gpf2-1", "gpf2-2", "gpf2-3", + "gpf2-4", "gpf2-5", "gpf2-6", "gpf2-7", + "gpf3-0", "gpf3-1", "gpf3-2", "gpf3-3"; + 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
PATCH v2 3/5 ARM: dts: Add FIMD node and display timing node to exynos4412-origen.dts
In reply to Vikas SajjanAdds 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
@@ -44,6 +44,28 @@ status = "okay"; }; + fimd@11c00000 { + samsung,power-domain = <&pd_lcd0>; + pinctrl-0 = <&lcd_sync &lcd_clk &lcd_en &lcd0_data &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
Re: [PATCH v2 3/5] ARM: dts: Add FIMD node and display timing node to exynos4412-origen.dts
On Wednesday, January 30, 2013 8:59 PM, Vikas Sajjan wrote
Quoted 13 lines
Adds FIMD DT support to Origen quad board
Signed-off-by Vikas Sajjan <[email protected]>--- arch/arm/boot/dts/exynos4412-origen.dts | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+)arch/arm/boot/dts/exynos4412-origen.dts +0
-0
arch/arm/boot/dts/exynos4412-origen.dts line 49
Quoted 6 lines
arch/arm/boot/dts/exynos4412-origen.dts +3
-0@@ -44,6 +44,28 @@ status = "okay"; }; + fimd@11c00000 { + samsung,power-domain = <&pd_lcd0>; + pinctrl-0 = <&lcd_sync &lcd_clk &lcd_en &lcd0_data &pwm1_out>;
lcd0_data is the same with lcd_data24.
How about using lcd_data24 instead of lcd0_data?
arch/arm/boot/dts/exynos4412-origen.dts line 56
Quoted 7 lines
arch/arm/boot/dts/exynos4412-origen.dts +7
-0+ pinctrl-names = "default"; + status = "okay"; + }; + + display-timings { + native-mode = <&timing0>; + timing0: timing@0 {
Please replace spaces with tabs.
arch/arm/boot/dts/exynos4412-origen.dts line 67
Quoted 11 lines
arch/arm/boot/dts/exynos4412-origen.dts +11
-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>; + }; + };
Please replace spaces with tabs.
Quoted 11 lines
arch/arm/boot/dts/exynos4412-origen.dts +1
-1+ 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
PATCH v2 4/5 ARM: dts: adds FIMD AUXDATA node entry for exynos4 DT
In reply to Vikas SajjanThis 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
@@ -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
PATCH v2 5/5 ARM: exynos: dts: Add FIMD DT binding Documentation
In reply to Vikas SajjanAdds 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
@@ -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