Add DRM FIMD DT support for Exynos4 DT Machines
v5 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 v4:
- moved the fimd binding documentation to Documentation/devicetree/bindings/video/ as suggested by Sylwester Nawrocki <[email protected]>
- added more fimd compatiblity strings in fimd documentation as discussed at https://patchwork.kernel.org/patch/2144861/ with Sylwester Nawrocki <[email protected]> and Tomasz Figa <[email protected]>
- modified compatible string for exynos4 fimd as "exynos4210-fimd" exynos5 fimd as "exynos5250-fimd" to stick to the rule that compatible value should be named after first specific SoC model in which this particular IP version was included as discussed at
https://patchwork.kernel.org/patch/2144861/
- documented more about the interrupt combiner and their order as suggested by Sylwester Nawrocki <[email protected]>
changes since v3:
- rebased on
http://git.kernel.org/?p=linux/kernel/git/kgene/linux-samsung.git;a=shortlog;h=refs/heads/for-next-next
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-next"
http://git.kernel.org/?p=linux/kernel/git/kgene/linux-samsung.git;a=shortlog;h=refs/heads/for-next-next
Sachin Kamat (1):
ARM: dts: Add lcd pinctrl node entries for 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: add FIMD AUXDATA node entry for exynos4 DT
ARM: exynos: dts: Add FIMD DT binding Documentation
.../devicetree/bindings/video/exynos-fimd.txt | 46 ++++++++++++++++++++ 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 | 2 + 5 files changed, 91 insertions(+) create mode 100644 Documentation/devicetree/bindings/video/exynos-fimd.txt
Signature · 1 line
1.7.9.5
PATCH v5 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
@@ -297,4 +297,11 @@ interrupts = <0 34 0>; }; }; + + fimd: fimd@11c00000 { + compatible = "samsung,exynos4210-fimd"; + interrupt-parent = <&combiner>; + reg = <0x11c00000 0x20000>; + interrupts = <11 1>, <11 0>, <11 2>; + }; };
Signature · 1 line
1.7.9.5
PATCH v5 2/5 ARM: dts: Add lcd pinctrl node entries for 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 | 14 ++++++++++++++ 1 file changed, 14 insertions(+)
arch/arm/boot/dts/exynos4x12-pinctrl.dtsi +14 -0
@@ -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
PATCH v5 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
@@ -70,6 +70,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
PATCH v5 4/5 ARM: dts: add FIMD AUXDATA node entry for exynos4 DT
In reply to Vikas SajjanAdds the FIMD AUXDATA node
--- arch/arm/mach-exynos/mach-exynos4-dt.c | 2 ++ 1 file changed, 2 insertions(+)
arch/arm/mach-exynos/mach-exynos4-dt.c +2 -0
@@ -84,6 +84,8 @@ static const struct of_dev_auxdata exynos4_auxdata_lookup[] __initconst = {OF_DEV_AUXDATA ("samsung,exynos4210-tmu" ,EXYNOS4_PA_TMU ,"exynos-tmu" ,NULL ),OF_DEV_AUXDATA ("samsung,mfc-v5" ,0x13400000 ,"s5p-mfc" ,NULL ), +OF_DEV_AUXDATA ("samsung,exynos4210-fimd" ,EXYNOS4_PA_FIMD0 , + "exynos4-fb.0", NULL), {}, };
Signature · 1 line
1.7.9.5
PATCH v5 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/video/exynos-fimd.txt | 46 ++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/video/exynos-fimd.txt
Documentation/devicetree/bindings/video/exynos-fimd.txt new file +46 -0
@@ -0,0 +1,46 @@ +Device-Tree bindings for Exynos SoC display controller (FIMD) + +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 can be one these below + "samsung,s3c2443-fimd"; /* for S3C24XX SoCs */ + "samsung,s3c6400-fimd"; /* for S3C64XX SoCs */ + "samsung,s5p6440-fimd"; /* for S5P64X0 SoCs */ + "samsung,s5pc100-fimd"; /* for S5PC100 SoC */ + "samsung,s5pv210-fimd"; /* for S5PV210 SoC */ + "samsung,exynos4210-fimd"; /* for Exynos4 SoCs */ + "samsung,exynos5250-fimd"; /* for Exynos5 SoCs */ +- 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 + we have 3 interrupts and the Interrupt combiner order is + FIFO Level, VSYNC and LCD_SYSTEM. Make sure to mention order + as VSYNC, FIFO Level and LCD_SYSTEM as show in the example below. +- 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 + +Example: + +SoC specific DT Entry: + + fimd@11c00000 { + compatible = "samsung,exynos4210-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
Re: [PATCH v5 5/5] ARM: exynos: dts: Add FIMD DT binding Documentation
Hi Vikas,
Quoted 14 lines · Vikas Sajjan
Adds FIMD DT binding documentation both SoC and Board, with an example
Signed-off-by Vikas Sajjan <[email protected]>--- .../devicetree/bindings/video/exynos-fimd.txt | 46 ++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/video/exynos-fimd.txtDocumentation/devicetree/bindings/video/exynos-fimd.txt new file +0
-0
Documentation/devicetree/bindings/video/exynos-fimd.txt line 4
Quoted 4 lines
Documentation/devicetree/bindings/video/exynos-fimd.txt new file +4
-0@@ -0,0 +1,46 @@ +Device-Tree bindings for Exynos SoC display controller (FIMD) + +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
I think this should be Samsung series of SoCs intead of Exynos series. As such the file name could be samsung-fimd.txt.
Documentation/devicetree/bindings/video/exynos-fimd.txt line 8
Quoted 4 lines
Documentation/devicetree/bindings/video/exynos-fimd.txt new file +4
-0+located in the system memory to an external LCD interface. + +Required properties: +- compatible := value can be one these below
"value should be one of the following:"
Documentation/devicetree/bindings/video/exynos-fimd.txt line 15
Quoted 7 lines
Documentation/devicetree/bindings/video/exynos-fimd.txt new file +7
-0+ "samsung,s3c2443-fimd"; /* for S3C24XX SoCs */ + "samsung,s3c6400-fimd"; /* for S3C64XX SoCs */ + "samsung,s5p6440-fimd"; /* for S5P64X0 SoCs */ + "samsung,s5pc100-fimd"; /* for S5PC100 SoC */ + "samsung,s5pv210-fimd"; /* for S5PV210 SoC */ + "samsung,exynos4210-fimd"; /* for Exynos4 SoCs */ + "samsung,exynos5250-fimd"; /* for Exynos5 SoCs */
blank line here would make it more readable?
Documentation/devicetree/bindings/video/exynos-fimd.txt line 21
Quoted 6 lines
Documentation/devicetree/bindings/video/exynos-fimd.txt new file +6
-0+- 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 + we have 3 interrupts and the Interrupt combiner order is + FIFO Level, VSYNC and LCD_SYSTEM. Make sure to mention order + as VSYNC, FIFO Level and LCD_SYSTEM as show in the example below.
Please rephrase the above as there seems to be difference in order in the above 2 lines itself. :)
Signature · 2 lines
With warm regards, Sachin
Re: [PATCH v5 5/5] ARM: exynos: dts: Add FIMD DT binding Documentation
Hi Sachin,
Quoted 11 lines · Sachin Kamat
Hi Vikas,
Quoted 8 lines · Vikas Sajjan
Adds FIMD DT binding documentation both SoC and Board, with an example
Signed-off-by Vikas Sajjan <[email protected]>--- .../devicetree/bindings/video/exynos-fimd.txt | 46 ++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Documentation/devicetree/bindings/video/exynos-fimd.txt
Quoted 13 lines
Documentation/devicetree/bindings/video/exynos-fimd.txt line 4
Quoted 10 lines
Documentation/devicetree/bindings/video/exynos-fimd.txt new file +4
-0@@ -0,0 +1,46 @@ +Device-Tree bindings for Exynos SoC display controller (FIMD) + +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 bufferI think this should be Samsung series of SoCs intead of Exynos series. As such the file name could be samsung-fimd.txt.
Right.
Quoted 7 lines
Documentation/devicetree/bindings/video/exynos-fimd.txt line 8
Quoted 5 lines
Documentation/devicetree/bindings/video/exynos-fimd.txt new file +4
-0+located in the system memory to an external LCD interface. + +Required properties: +- compatible := value can be one these below"value should be one of the following:"
Ok.
Quoted 19 lines
Documentation/devicetree/bindings/video/exynos-fimd.txt line 15
Quoted 9 lines
Documentation/devicetree/bindings/video/exynos-fimd.txt new file +7
-0+ "samsung,s3c2443-fimd"; /* for S3C24XX SoCs */ + "samsung,s3c6400-fimd"; /* for S3C64XX SoCs */ + "samsung,s5p6440-fimd"; /* for S5P64X0 SoCs */ + "samsung,s5pc100-fimd"; /* for S5PC100 SoC */ + "samsung,s5pv210-fimd"; /* for S5PV210 SoC */ + "samsung,exynos4210-fimd"; /* for Exynos4 SoCs */ + "samsung,exynos5250-fimd"; /* for Exynos5 SoCs */blank line here would make it more readable?
Documentation/devicetree/bindings/video/exynos-fimd.txt line 21
Quoted 6 lines
Documentation/devicetree/bindings/video/exynos-fimd.txt new file +6
-0+- 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 + we have 3 interrupts and the Interrupt combiner order is + FIFO Level, VSYNC and LCD_SYSTEM. Make sure to mention order + as VSYNC, FIFO Level and LCD_SYSTEM as show in the example below.
Quoted 2 lines
Please rephrase the above as there seems to be difference in order in the above 2 lines itself. :)
what it means is the Interrupt combiner order is : FIFO Level, VSYNC
and LCD_SYSTEM
but since we use only the VSYNC interrupt and in the driver while getting IRQ number we pass 0 as index,
hence the documentation says
Make sure to mention order as VSYNC, FIFO Level and LCD_SYSTEM, as show in the example below
interrupts = <11 1>, <11 0>, <11 2>;
Quoted 5 lines
--
With warm regards,
Sachin
Signature · 2 lines
Thanks and Regards Vikas Sajjan