Skip to contentSkip to conversation

drm/exynos: support Exynos3250 SoC

PATCH New Inki Dae 3 participants 11 messages Aug 18, 2014

Subsystems (4)
lore
Share & tools
lore

Inki Dae

author
#0 lore raw

cover drm/exynos: support Exynos3250 SoC

This patch series adds of_device_id and relevant device nodes for Exynos3250 SoC support.

Inki Dae (5):
drm/exynos: mipi-dsi: add Exynos3 SoC support drm/exynos: fimd: add Exynos3 SoC support
ARM: dts: add fimd device node to exynos3250.dsti
ARM: dts: add mipi_phy device node to exynos3240.dtsi
ARM: dts: add mipi dsi device node to exynos3250.dtsi

 .../devicetree/bindings/video/exynos_dsim.txt      |    1 +
 .../devicetree/bindings/video/samsung-fimd.txt     |    1 +
 arch/arm/boot/dts/exynos3250.dtsi                  |   33 ++++++++++++++++++++
 drivers/gpu/drm/exynos/exynos_drm_dsi.c            |    8 +++++
 drivers/gpu/drm/exynos/exynos_drm_fimd.c           |   10 ++++++
 5 files changed, 53 insertions(+)
Signature · 6 lines
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
maintainer
#1 lore raw

PATCH 1/5 drm/exynos: mipi-dsi: add Exynos3 SoC support

This patch adds Exynos3250/3472 SoCs support.

---
 .../devicetree/bindings/video/exynos_dsim.txt      |    1 +
 drivers/gpu/drm/exynos/exynos_drm_dsi.c            |    8 ++++++++
 2 files changed, 9 insertions(+)
Documentation/devicetree/bindings/video/exynos_dsim.txt +1 -0
index 31036c6..e74243b 100644
@@ -2,6 +2,7 @@ Exynos MIPI DSI Master
 
 Required properties:
   - compatible: value should be one of the following
+		"samsung,exynos3250-mipi-dsi" /* for Exynos3250/3472 SoCs */
 		"samsung,exynos4210-mipi-dsi" /* for Exynos4 SoCs */
 		"samsung,exynos5410-mipi-dsi" /* for Exynos5410/5420/5440 SoCs */
   - reg: physical base address and length of the registers set for the device
drivers/gpu/drm/exynos/exynos_drm_dsi.c +8 -0
index 9a186c0..a8c0c4f 100644
@@ -304,6 +304,12 @@ struct exynos_dsi {
 #define host_to_dsi(host) container_of(host, struct exynos_dsi, dsi_host)
 #define connector_to_dsi(c) container_of(c, struct exynos_dsi, connector)
 
+static struct exynos_dsi_driver_data exynos3_dsi_driver_data = {
+	.plltmr_reg = 0x50,
+	.has_freqband = 1,
+	.has_clklane_stop = 1,
+};
+
 static struct exynos_dsi_driver_data exynos4_dsi_driver_data = {
 	.plltmr_reg = 0x50,
 	.has_freqband = 1,
@@ -315,6 +321,8 @@ static struct exynos_dsi_driver_data exynos5_dsi_driver_data = {
 };
 
 static struct of_device_id exynos_dsi_of_match[] = {
+	{ .compatible = "samsung,exynos3250-mipi-dsi",
+	  .data = &exynos3_dsi_driver_data },
 	{ .compatible = "samsung,exynos4210-mipi-dsi",
 	  .data = &exynos4_dsi_driver_data },
 	{ .compatible = "samsung,exynos5410-mipi-dsi",
Signature · 1 line
1.7.9.5
Reviewed-by on v1 1/5
#2 lore raw

Re: [PATCH 1/5] drm/exynos: mipi-dsi: add Exynos3 SoC support

Quoted 3 lines · Inki Dae

This patch adds Exynos3250/3472 SoCs support.

--
Regards
Andrzej

Quoted 43 lines
---
 .../devicetree/bindings/video/exynos_dsim.txt      |    1 +
 drivers/gpu/drm/exynos/exynos_drm_dsi.c            |    8 ++++++++
 2 files changed, 9 insertions(+)
Documentation/devicetree/bindings/video/exynos_dsim.txt +1 -0
index 31036c6..e74243b 100644
@@ -2,6 +2,7 @@ Exynos MIPI DSI Master
 
 Required properties:
   - compatible: value should be one of the following
+		"samsung,exynos3250-mipi-dsi" /* for Exynos3250/3472 SoCs */
 		"samsung,exynos4210-mipi-dsi" /* for Exynos4 SoCs */
 		"samsung,exynos5410-mipi-dsi" /* for Exynos5410/5420/5440 SoCs */
   - reg: physical base address and length of the registers set for the device
drivers/gpu/drm/exynos/exynos_drm_dsi.c +8 -0
index 9a186c0..a8c0c4f 100644
@@ -304,6 +304,12 @@ struct exynos_dsi {
 #define host_to_dsi(host) container_of(host, struct exynos_dsi, dsi_host)
 #define connector_to_dsi(c) container_of(c, struct exynos_dsi, connector)
 
+static struct exynos_dsi_driver_data exynos3_dsi_driver_data = {
+	.plltmr_reg = 0x50,
+	.has_freqband = 1,
+	.has_clklane_stop = 1,
+};
+
 static struct exynos_dsi_driver_data exynos4_dsi_driver_data = {
 	.plltmr_reg = 0x50,
 	.has_freqband = 1,
@@ -315,6 +321,8 @@ static struct exynos_dsi_driver_data exynos5_dsi_driver_data = {
 };
 
 static struct of_device_id exynos_dsi_of_match[] = {
+	{ .compatible = "samsung,exynos3250-mipi-dsi",
+	  .data = &exynos3_dsi_driver_data },
 	{ .compatible = "samsung,exynos4210-mipi-dsi",
 	  .data = &exynos4_dsi_driver_data },
 	{ .compatible = "samsung,exynos5410-mipi-dsi",
maintainer
#3 lore raw

PATCH 2/5 drm/exynos: fimd: add Exynos3 SoC support

In reply to Inki Dae
---
 .../devicetree/bindings/video/samsung-fimd.txt     |    1 +
 drivers/gpu/drm/exynos/exynos_drm_fimd.c           |   10 ++++++++++
 2 files changed, 11 insertions(+)
Documentation/devicetree/bindings/video/samsung-fimd.txt +1 -0
index ecc899b..4e6c77c 100644
@@ -9,6 +9,7 @@ Required properties:
 		"samsung,s3c2443-fimd"; /* for S3C24XX SoCs */
 		"samsung,s3c6400-fimd"; /* for S3C64XX SoCs */
 		"samsung,s5pv210-fimd"; /* for S5PV210 SoC */
+		"samsung,exynos3250-fimd"; /* for Exynos3250/3472 SoCs */
 		"samsung,exynos4210-fimd"; /* for Exynos4 SoCs */
 		"samsung,exynos5250-fimd"; /* for Exynos5 SoCs */
 
drivers/gpu/drm/exynos/exynos_drm_fimd.c +10 -0
index 5d09e33..909e647 100644
@@ -104,6 +104,14 @@ static struct fimd_driver_data s3c64xx_fimd_driver_data = {
 	.has_limited_fmt = 1,
 };
 
+static struct fimd_driver_data exynos3_fimd_driver_data = {
+	.timing_base = 0x20000,
+	.lcdblk_offset = 0x210,
+	.lcdblk_bypass_shift = 1,
+	.has_shadowcon = 1,
+	.has_vidoutcon = 1,
+};
+
 static struct fimd_driver_data exynos4_fimd_driver_data = {
 	.timing_base = 0x0,
 	.lcdblk_offset = 0x210,
@@ -168,6 +176,8 @@ struct fimd_context {
 static const struct of_device_id fimd_driver_dt_match[] = {
 	{ .compatible = "samsung,s3c6400-fimd",
 	  .data = &s3c64xx_fimd_driver_data },
+	{ .compatible = "samsung,exynos3250-fimd",
+	  .data = &exynos3_fimd_driver_data },
 	{ .compatible = "samsung,exynos4210-fimd",
 	  .data = &exynos4_fimd_driver_data },
 	{ .compatible = "samsung,exynos5250-fimd",
Signature · 1 line
1.7.9.5
Reviewed-by on v1 2/5
#4 lore raw

Re: [PATCH 2/5] drm/exynos: fimd: add Exynos3 SoC support

Quoted 1 line · Inki Dae

--
Regards
Andrzej

Quoted 45 lines
---
 .../devicetree/bindings/video/samsung-fimd.txt     |    1 +
 drivers/gpu/drm/exynos/exynos_drm_fimd.c           |   10 ++++++++++
 2 files changed, 11 insertions(+)
Documentation/devicetree/bindings/video/samsung-fimd.txt +1 -0
index ecc899b..4e6c77c 100644
@@ -9,6 +9,7 @@ Required properties:
 		"samsung,s3c2443-fimd"; /* for S3C24XX SoCs */
 		"samsung,s3c6400-fimd"; /* for S3C64XX SoCs */
 		"samsung,s5pv210-fimd"; /* for S5PV210 SoC */
+		"samsung,exynos3250-fimd"; /* for Exynos3250/3472 SoCs */
 		"samsung,exynos4210-fimd"; /* for Exynos4 SoCs */
 		"samsung,exynos5250-fimd"; /* for Exynos5 SoCs */
 
drivers/gpu/drm/exynos/exynos_drm_fimd.c +10 -0
index 5d09e33..909e647 100644
@@ -104,6 +104,14 @@ static struct fimd_driver_data s3c64xx_fimd_driver_data = {
 	.has_limited_fmt = 1,
 };
 
+static struct fimd_driver_data exynos3_fimd_driver_data = {
+	.timing_base = 0x20000,
+	.lcdblk_offset = 0x210,
+	.lcdblk_bypass_shift = 1,
+	.has_shadowcon = 1,
+	.has_vidoutcon = 1,
+};
+
 static struct fimd_driver_data exynos4_fimd_driver_data = {
 	.timing_base = 0x0,
 	.lcdblk_offset = 0x210,
@@ -168,6 +176,8 @@ struct fimd_context {
 static const struct of_device_id fimd_driver_dt_match[] = {
 	{ .compatible = "samsung,s3c6400-fimd",
 	  .data = &s3c64xx_fimd_driver_data },
+	{ .compatible = "samsung,exynos3250-fimd",
+	  .data = &exynos3_fimd_driver_data },
 	{ .compatible = "samsung,exynos4210-fimd",
 	  .data = &exynos4_fimd_driver_data },
 	{ .compatible = "samsung,exynos5250-fimd",
maintainer
#5 lore raw

PATCH 3/5 ARM: dts: add fimd device node to exynos3250.dsti

In reply to Inki Dae
---
 arch/arm/boot/dts/exynos3250.dtsi |   12 ++++++++++++
 1 file changed, 12 insertions(+)
arch/arm/boot/dts/exynos3250.dtsi +12 -0
index 1d52de6..0ec2584 100644
@@ -216,6 +216,18 @@
 			interrupts = <0 240 0>;
 		};
 
+		fimd: fimd@11c00000 {
+			compatible = "samsung,exynos3250-fimd";
+			reg = <0x11c00000 0x30000>;
+			interrupt-names = "fifo", "vsync", "lcd_sys";
+			interrupts = <0 84 0>, <0 85 0>, <0 86 0>;
+			clocks = <&cmu CLK_SCLK_FIMD0>, <&cmu CLK_FIMD0>;
+			clock-names = "sclk_fimd", "fimd";
+			samsung,power-domain = <&pd_lcd0>;
+			samsung,sysreg = <&sys_reg>;
+			status = "disabled";
+		};
+
 		mshc_0: mshc@12510000 {
 			compatible = "samsung,exynos5250-dw-mshc";
 			reg = <0x12510000 0x1000>;
Signature · 1 line
1.7.9.5
Reviewed-by on v1 3/5
#6 lore raw

Re: [PATCH 3/5] ARM: dts: add fimd device node to exynos3250.dsti

Quoted 1 line · Inki Dae

--
Regards
Andrzej

Quoted 27 lines
---
 arch/arm/boot/dts/exynos3250.dtsi |   12 ++++++++++++
 1 file changed, 12 insertions(+)
arch/arm/boot/dts/exynos3250.dtsi +12 -0
index 1d52de6..0ec2584 100644
@@ -216,6 +216,18 @@
 			interrupts = <0 240 0>;
 		};
 
+		fimd: fimd@11c00000 {
+			compatible = "samsung,exynos3250-fimd";
+			reg = <0x11c00000 0x30000>;
+			interrupt-names = "fifo", "vsync", "lcd_sys";
+			interrupts = <0 84 0>, <0 85 0>, <0 86 0>;
+			clocks = <&cmu CLK_SCLK_FIMD0>, <&cmu CLK_FIMD0>;
+			clock-names = "sclk_fimd", "fimd";
+			samsung,power-domain = <&pd_lcd0>;
+			samsung,sysreg = <&sys_reg>;
+			status = "disabled";
+		};
+
 		mshc_0: mshc@12510000 {
 			compatible = "samsung,exynos5250-dw-mshc";
 			reg = <0x12510000 0x1000>;
maintainer
#7 lore raw

PATCH 4/5 ARM: dts: add mipi_phy device node to exynos3250.dtsi

In reply to Inki Dae

This patch adds mipi_phy device node to reset, disable and enable DSIM and CSIS PHY.

---
 arch/arm/boot/dts/exynos3250.dtsi |    6 ++++++
 1 file changed, 6 insertions(+)
arch/arm/boot/dts/exynos3250.dtsi +6 -0
index 0ec2584..2bab12f 100644
@@ -132,6 +132,12 @@
 			reg = <0x10020000 0x4000>;
 		};
 
+		mipi_phy: video-phy@10020710 {
+			compatible = "samsung,s5pv210-mipi-video-phy";
+			reg = <0x10020710 8>;
+			#phy-cells = <1>;
+		};
+
 		pd_cam: cam-power-domain@10023C00 {
 			compatible = "samsung,exynos4210-pd";
 			reg = <0x10023C00 0x20>;
Signature · 1 line
1.7.9.5
Reviewed-by on v1 4/5
#8 lore raw

Re: [PATCH 4/5] ARM: dts: add mipi_phy device node to exynos3250.dtsi

Quoted 4 lines · Inki Dae

This patch adds mipi_phy device node to reset, disable and enable DSIM and CSIS PHY.

--
Regards
Andrzej

Quoted 21 lines
---
 arch/arm/boot/dts/exynos3250.dtsi |    6 ++++++
 1 file changed, 6 insertions(+)
arch/arm/boot/dts/exynos3250.dtsi +6 -0
index 0ec2584..2bab12f 100644
@@ -132,6 +132,12 @@
 			reg = <0x10020000 0x4000>;
 		};
 
+		mipi_phy: video-phy@10020710 {
+			compatible = "samsung,s5pv210-mipi-video-phy";
+			reg = <0x10020710 8>;
+			#phy-cells = <1>;
+		};
+
 		pd_cam: cam-power-domain@10023C00 {
 			compatible = "samsung,exynos4210-pd";
 			reg = <0x10023C00 0x20>;
maintainer
#9 lore raw

PATCH 5/5 ARM: dts: add mipi dsi device node to exynos3250.dtsi

In reply to Inki Dae
---
 arch/arm/boot/dts/exynos3250.dtsi |   15 +++++++++++++++
 1 file changed, 15 insertions(+)
arch/arm/boot/dts/exynos3250.dtsi +15 -0
index 2bab12f..480dedf 100644
@@ -234,6 +234,21 @@
 			status = "disabled";
 		};
 
+		dsi_0: dsi@11C80000 {
+			compatible = "samsung,exynos3250-mipi-dsi";
+			reg = <0x11C80000 0x10000>;
+			interrupts = <0 83 0>;
+			samsung,phy-type = <0>;
+			samsung,power-domain = <&pd_lcd0>;
+			phys = <&mipi_phy 1>;
+			phy-names = "dsim";
+			clocks = <&cmu CLK_DSIM0>, <&cmu CLK_SCLK_MIPI0>;
+			clock-names = "bus_clk", "pll_clk";
+			#address-cells = <1>;
+			#size-cells = <0>;
+			status = "disabled";
+		};
+
 		mshc_0: mshc@12510000 {
 			compatible = "samsung,exynos5250-dw-mshc";
 			reg = <0x12510000 0x1000>;
Signature · 1 line
1.7.9.5
Reviewed-by on v1 5/5
#10 lore raw

Re: [PATCH 5/5] ARM: dts: add mipi dsi device node to exynos3250.dtsi

Quoted 1 line · Inki Dae

--
Regards
Andrzej

Quoted 30 lines
---
 arch/arm/boot/dts/exynos3250.dtsi |   15 +++++++++++++++
 1 file changed, 15 insertions(+)
arch/arm/boot/dts/exynos3250.dtsi +15 -0
index 2bab12f..480dedf 100644
@@ -234,6 +234,21 @@
 			status = "disabled";
 		};
 
+		dsi_0: dsi@11C80000 {
+			compatible = "samsung,exynos3250-mipi-dsi";
+			reg = <0x11C80000 0x10000>;
+			interrupts = <0 83 0>;
+			samsung,phy-type = <0>;
+			samsung,power-domain = <&pd_lcd0>;
+			phys = <&mipi_phy 1>;
+			phy-names = "dsim";
+			clocks = <&cmu CLK_DSIM0>, <&cmu CLK_SCLK_MIPI0>;
+			clock-names = "bus_clk", "pll_clk";
+			#address-cells = <1>;
+			#size-cells = <0>;
+			status = "disabled";
+		};
+
 		mshc_0: mshc@12510000 {
 			compatible = "samsung,exynos5250-dw-mshc";
 			reg = <0x12510000 0x1000>;