All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v7 0/3] drm: Add Support for Passive RGB to VGA bridges
@ 2016-10-10  9:05 Maxime Ripard
  2016-10-10  9:05 ` [PATCH v7 1/3] ARM: sun5i: a13-olinuxino: Enable VGA bridge Maxime Ripard
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Maxime Ripard @ 2016-10-10  9:05 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,

This serie is about adding support for the RGB to VGA bridge found in
the A13-Olinuxino and the CHIP VGA adapter.

Both these boards rely on an entirely passive bridge made out of
resitor ladders that do not require any initialisation. The only thing
needed is to get the timings from the screen if available (and if not,
fall back on XGA standards), set up the display pipeline to output on
the RGB bus with the proper timings, and you're done.

This serie also fixes a bunch of bugs uncovered when trying to
increase the resolution, and hence the pixel clock, of our
pipeline. It also fixes a few bugs in the DRM driver itself that went
unnoticed before.

Let me know what you think,
Maxime

Changes from v6:
  - Reworked the patches to match the compatible and driver name merged

Changes from v5:
  - Renamed to simple-vga-dac

Changes from v4:
  - Removed unused functions

Changes from v3:
  - Depends on OF in Kconfig
  - Fixed typos in the driver comments
  - Removed the mention of a "passive" bridge in the bindings doc
  - Made the strcuture const
  - Removed the nops and best_encoders implementations
  - Removed the call to drm_bridge_enable in the sun4i driver

Changes from v2:
  - Changed the compatible as suggested
  - Rebased on top 4.8

Changes from v1:
  - Switch to using a vga-connector
  - Use drm_encoder bridge pointer instead of doing our own
  - Report the connector status as unknown instead of connected by
    default, and as connected only if we can retrieve the EDID.
  - Switch to of_i2c_get_adapter by node, and put the reference when done
  - Rebased on linux-next

Maxime Ripard (5):
  drm/sun4i: rgb: Remove the bridge enable/disable functions
  drm/bridge: Add RGB to VGA bridge support
  ARM: sun5i: a13-olinuxino: Enable VGA bridge
  ARM: multi_v7: enable VGA bridge
  ARM: sunxi: Enable VGA bridge

 .../bindings/display/bridge/rgb-to-vga-bridge.txt  |  48 +++++
 arch/arm/boot/dts/sun5i-a13-olinuxino.dts          |  54 +++++
 arch/arm/configs/multi_v7_defconfig                |   1 +
 arch/arm/configs/sunxi_defconfig                   |   1 +
 drivers/gpu/drm/bridge/Kconfig                     |   7 +
 drivers/gpu/drm/bridge/Makefile                    |   1 +
 drivers/gpu/drm/bridge/rgb-to-vga.c                | 229 +++++++++++++++++++++
 drivers/gpu/drm/sun4i/sun4i_rgb.c                  |   6 -
 8 files changed, 341 insertions(+), 6 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/display/bridge/rgb-to-vga-bridge.txt
 create mode 100644 drivers/gpu/drm/bridge/rgb-to-vga.c

--
2.9.3

Maxime Ripard (3):
  ARM: sun5i: a13-olinuxino: Enable VGA bridge
  ARM: multi_v7: enable VGA bridge
  ARM: sunxi: Enable VGA bridge

 arch/arm/boot/dts/sun5i-a13-olinuxino.dts | 54 ++++++++++++++++++++++++-
 arch/arm/configs/multi_v7_defconfig       |  1 +-
 arch/arm/configs/sunxi_defconfig          |  1 +-
 3 files changed, 56 insertions(+), 0 deletions(-)

-- 
git-series 0.8.10

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH v7 1/3] ARM: sun5i: a13-olinuxino: Enable VGA bridge
  2016-10-10  9:05 [PATCH v7 0/3] drm: Add Support for Passive RGB to VGA bridges Maxime Ripard
@ 2016-10-10  9:05 ` Maxime Ripard
  2016-10-10  9:05 ` [PATCH v7 2/3] ARM: multi_v7: enable " Maxime Ripard
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 7+ messages in thread
From: Maxime Ripard @ 2016-10-10  9:05 UTC (permalink / raw)
  To: linux-arm-kernel

Now that we have support for the VGA bridges using our DRM driver, enable
the display engine for the Olimex A13-Olinuxino.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Chen-Yu Tsai <wens@csie.org>
---
 arch/arm/boot/dts/sun5i-a13-olinuxino.dts | 54 ++++++++++++++++++++++++-
 1 file changed, 54 insertions(+), 0 deletions(-)

diff --git a/arch/arm/boot/dts/sun5i-a13-olinuxino.dts b/arch/arm/boot/dts/sun5i-a13-olinuxino.dts
index b3c234c65ea1..bb7210e0e4a9 100644
--- a/arch/arm/boot/dts/sun5i-a13-olinuxino.dts
+++ b/arch/arm/boot/dts/sun5i-a13-olinuxino.dts
@@ -72,6 +72,47 @@
 			default-state = "on";
 		};
 	};
+
+	bridge {
+		compatible = "dumb-vga-dac";
+		#address-cells = <1>;
+		#size-cells = <0>;
+
+		ports {
+			#address-cells = <1>;
+			#size-cells = <0>;
+
+			port at 0 {
+				reg = <0>;
+
+				vga_bridge_in: endpoint {
+					remote-endpoint = <&tcon0_out_vga>;
+				};
+			};
+
+			port at 1 {
+				reg = <1>;
+
+				vga_bridge_out: endpoint {
+					remote-endpoint = <&vga_con_in>;
+				};
+			};
+		};
+	};
+
+	vga {
+		compatible = "vga-connector";
+
+		port {
+			vga_con_in: endpoint {
+				remote-endpoint = <&vga_bridge_out>;
+			};
+		};
+	};
+};
+
+&be0 {
+	status = "okay";
 };
 
 &ehci0 {
@@ -211,6 +252,19 @@
 	status = "okay";
 };
 
+&tcon0 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&lcd_rgb666_pins>;
+	status = "okay";
+};
+
+&tcon0_out {
+	tcon0_out_vga: endpoint at 0 {
+		reg = <0>;
+		remote-endpoint = <&vga_bridge_in>;
+	};
+};
+
 &uart1 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&uart1_pins_b>;
-- 
git-series 0.8.10

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH v7 2/3] ARM: multi_v7: enable VGA bridge
  2016-10-10  9:05 [PATCH v7 0/3] drm: Add Support for Passive RGB to VGA bridges Maxime Ripard
  2016-10-10  9:05 ` [PATCH v7 1/3] ARM: sun5i: a13-olinuxino: Enable VGA bridge Maxime Ripard
@ 2016-10-10  9:05 ` Maxime Ripard
  2016-10-11 10:05   ` Chen-Yu Tsai
  2016-10-10  9:05 ` [PATCH v7 3/3] ARM: sunxi: Enable " Maxime Ripard
  2016-10-11 10:26 ` [PATCH v7 0/3] drm: Add Support for Passive RGB to VGA bridges Maxime Ripard
  3 siblings, 1 reply; 7+ messages in thread
From: Maxime Ripard @ 2016-10-10  9:05 UTC (permalink / raw)
  To: linux-arm-kernel

Enable the RGB to VGA bridge driver in the defconfig

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
---
 arch/arm/configs/multi_v7_defconfig | 1 +
 1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/arch/arm/configs/multi_v7_defconfig b/arch/arm/configs/multi_v7_defconfig
index 2c8665cd9dc5..aae732bd6681 100644
--- a/arch/arm/configs/multi_v7_defconfig
+++ b/arch/arm/configs/multi_v7_defconfig
@@ -567,6 +567,7 @@ CONFIG_DRM=y
 CONFIG_DRM_I2C_ADV7511=m
 # CONFIG_DRM_I2C_CH7006 is not set
 # CONFIG_DRM_I2C_SIL164 is not set
+CONFIG_DRM_DUMB_VGA_DAC=m
 CONFIG_DRM_NXP_PTN3460=m
 CONFIG_DRM_PARADE_PS8622=m
 CONFIG_DRM_NOUVEAU=m
-- 
git-series 0.8.10

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH v7 3/3] ARM: sunxi: Enable VGA bridge
  2016-10-10  9:05 [PATCH v7 0/3] drm: Add Support for Passive RGB to VGA bridges Maxime Ripard
  2016-10-10  9:05 ` [PATCH v7 1/3] ARM: sun5i: a13-olinuxino: Enable VGA bridge Maxime Ripard
  2016-10-10  9:05 ` [PATCH v7 2/3] ARM: multi_v7: enable " Maxime Ripard
@ 2016-10-10  9:05 ` Maxime Ripard
  2016-10-11 10:05   ` Chen-Yu Tsai
  2016-10-11 10:26 ` [PATCH v7 0/3] drm: Add Support for Passive RGB to VGA bridges Maxime Ripard
  3 siblings, 1 reply; 7+ messages in thread
From: Maxime Ripard @ 2016-10-10  9:05 UTC (permalink / raw)
  To: linux-arm-kernel

Enable the VGA bridge used on the A13-Olinuxino in the sunxi defconfig

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
---
 arch/arm/configs/sunxi_defconfig | 1 +
 1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/arch/arm/configs/sunxi_defconfig b/arch/arm/configs/sunxi_defconfig
index 714da336ec86..dfeee5c51b40 100644
--- a/arch/arm/configs/sunxi_defconfig
+++ b/arch/arm/configs/sunxi_defconfig
@@ -98,6 +98,7 @@ CONFIG_MEDIA_RC_SUPPORT=y
 CONFIG_RC_DEVICES=y
 CONFIG_IR_SUNXI=y
 CONFIG_DRM=y
+CONFIG_DRM_DUMB_VGA_DAC=y
 CONFIG_DRM_SUN4I=y
 CONFIG_FB=y
 CONFIG_FB_SIMPLE=y
-- 
git-series 0.8.10

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH v7 3/3] ARM: sunxi: Enable VGA bridge
  2016-10-10  9:05 ` [PATCH v7 3/3] ARM: sunxi: Enable " Maxime Ripard
@ 2016-10-11 10:05   ` Chen-Yu Tsai
  0 siblings, 0 replies; 7+ messages in thread
From: Chen-Yu Tsai @ 2016-10-11 10:05 UTC (permalink / raw)
  To: linux-arm-kernel

On Mon, Oct 10, 2016 at 5:05 PM, Maxime Ripard
<maxime.ripard@free-electrons.com> wrote:
> Enable the VGA bridge used on the A13-Olinuxino in the sunxi defconfig
>
> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>

Acked-by: Chen-Yu Tsai <wens@csie.org>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH v7 2/3] ARM: multi_v7: enable VGA bridge
  2016-10-10  9:05 ` [PATCH v7 2/3] ARM: multi_v7: enable " Maxime Ripard
@ 2016-10-11 10:05   ` Chen-Yu Tsai
  0 siblings, 0 replies; 7+ messages in thread
From: Chen-Yu Tsai @ 2016-10-11 10:05 UTC (permalink / raw)
  To: linux-arm-kernel

On Mon, Oct 10, 2016 at 5:05 PM, Maxime Ripard
<maxime.ripard@free-electrons.com> wrote:
> Enable the RGB to VGA bridge driver in the defconfig
>
> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>

Acked-by: Chen-Yu Tsai <wens@csie.org>

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH v7 0/3] drm: Add Support for Passive RGB to VGA bridges
  2016-10-10  9:05 [PATCH v7 0/3] drm: Add Support for Passive RGB to VGA bridges Maxime Ripard
                   ` (2 preceding siblings ...)
  2016-10-10  9:05 ` [PATCH v7 3/3] ARM: sunxi: Enable " Maxime Ripard
@ 2016-10-11 10:26 ` Maxime Ripard
  3 siblings, 0 replies; 7+ messages in thread
From: Maxime Ripard @ 2016-10-11 10:26 UTC (permalink / raw)
  To: linux-arm-kernel

On Mon, Oct 10, 2016 at 11:05:40AM +0200, Maxime Ripard wrote:
> Hi,
> 
> This serie is about adding support for the RGB to VGA bridge found in
> the A13-Olinuxino and the CHIP VGA adapter.
> 
> Both these boards rely on an entirely passive bridge made out of
> resitor ladders that do not require any initialisation. The only thing
> needed is to get the timings from the screen if available (and if not,
> fall back on XGA standards), set up the display pipeline to output on
> the RGB bus with the proper timings, and you're done.
> 
> This serie also fixes a bunch of bugs uncovered when trying to
> increase the resolution, and hence the pixel clock, of our
> pipeline. It also fixes a few bugs in the DRM driver itself that went
> unnoticed before.
> 
> Let me know what you think,
> Maxime

Queued all three for 4.10.

Maxime

-- 
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20161011/7305a832/attachment.sig>

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-10-11 10:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-10  9:05 [PATCH v7 0/3] drm: Add Support for Passive RGB to VGA bridges Maxime Ripard
2016-10-10  9:05 ` [PATCH v7 1/3] ARM: sun5i: a13-olinuxino: Enable VGA bridge Maxime Ripard
2016-10-10  9:05 ` [PATCH v7 2/3] ARM: multi_v7: enable " Maxime Ripard
2016-10-11 10:05   ` Chen-Yu Tsai
2016-10-10  9:05 ` [PATCH v7 3/3] ARM: sunxi: Enable " Maxime Ripard
2016-10-11 10:05   ` Chen-Yu Tsai
2016-10-11 10:26 ` [PATCH v7 0/3] drm: Add Support for Passive RGB to VGA bridges Maxime Ripard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.