* [RFC 10/10] ARM: shmobile: r8a7790: lager: HDMI output via DU and ADV7511
@ 2013-08-30 12:37 Ulrich Hecht
2013-08-30 17:38 ` Sergei Shtylyov
2013-09-02 13:41 ` Laurent Pinchart
0 siblings, 2 replies; 3+ messages in thread
From: Ulrich Hecht @ 2013-08-30 12:37 UTC (permalink / raw)
To: linux-sh
This builds and runs but is unlikely to provide useful output as I do not
have physical access to a Lager board yet.
Signed-off-by: Ulrich Hecht <ulrich.hecht@gmail.com>
---
arch/arm/mach-shmobile/board-lager.c | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/arch/arm/mach-shmobile/board-lager.c b/arch/arm/mach-shmobile/board-lager.c
index c6b5f21..edd0f3e 100644
--- a/arch/arm/mach-shmobile/board-lager.c
+++ b/arch/arm/mach-shmobile/board-lager.c
@@ -40,12 +40,20 @@
#include <asm/mach-types.h>
#include <asm/mach/arch.h>
+#include "../../../drivers/gpu/drm/i2c/adv7511.h"
+
+static struct i2c_client *hdmi_encoder = NULL;
+
/* DU */
static struct rcar_du_encoder_data lager_du_encoders[] = {
{
.type = RCAR_DU_ENCODER_VGA,
.output = RCAR_DU_OUTPUT_DPAD0,
}, {
+ .type = RCAR_DU_ENCODER_HDMI,
+ .output = RCAR_DU_OUTPUT_LVDS0,
+ .slave = &hdmi_encoder,
+ }, {
.type = RCAR_DU_ENCODER_NONE,
.output = RCAR_DU_OUTPUT_LVDS1,
.connector.lvds.panel = {
@@ -199,6 +207,21 @@ static const struct pinctrl_map lager_pinctrl_map[] = {
"intc_irq0", "intc"),
};
+static struct adv7511_link_config adv7511_data = {
+ /* random guesses */
+ .input_style = ADV7511_INPUT_STYLE2,
+ .id = ADV7511_INPUT_ID_16_20_24BIT_YCbCr422_SEPARATE_SYNC,
+ .sync_pulse = ADV7511_INPUT_SYNC_PULSE_NONE,
+ .bit_justification = ADV7511_INPUT_BIT_JUSTIFICATION_RIGHT,
+ .up_conversion = ADV7511_UP_CONVERSION_ZERO_ORDER,
+ .timing_gen_seq = ADV7511_TIMING_GEN_SEQ_SYN_ADJ_FIRST,
+ .vsync_polarity = ADV7511_SYNC_POLARITY_HIGH,
+ .hsync_polarity = ADV7511_SYNC_POLARITY_HIGH,
+ .tmds_clock_inversion = true,
+ .clock_delay = ADV7511_INPUT_CLOCK_DELAY_NONE,
+ .client = &hdmi_encoder,
+};
+
static struct i2c_board_info i2c2_devices[] = {
/* ak4643 at 0x12: no driver */
{
@@ -206,6 +229,7 @@ static struct i2c_board_info i2c2_devices[] = {
},
{
I2C_BOARD_INFO("adv7511", 0x39),
+ .platform_data = &adv7511_data,
},
/* adv7612 at 0x4c: no driver */
};
--
1.8.1.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [RFC 10/10] ARM: shmobile: r8a7790: lager: HDMI output via DU and ADV7511
2013-08-30 12:37 [RFC 10/10] ARM: shmobile: r8a7790: lager: HDMI output via DU and ADV7511 Ulrich Hecht
@ 2013-08-30 17:38 ` Sergei Shtylyov
2013-09-02 13:41 ` Laurent Pinchart
1 sibling, 0 replies; 3+ messages in thread
From: Sergei Shtylyov @ 2013-08-30 17:38 UTC (permalink / raw)
To: linux-sh
On 08/30/2013 04:37 PM, Ulrich Hecht wrote:
> This builds and runs but is unlikely to provide useful output as I do not
> have physical access to a Lager board yet.
> Signed-off-by: Ulrich Hecht <ulrich.hecht@gmail.com>
> ---
> arch/arm/mach-shmobile/board-lager.c | 24 ++++++++++++++++++++++++
> 1 file changed, 24 insertions(+)
> diff --git a/arch/arm/mach-shmobile/board-lager.c b/arch/arm/mach-shmobile/board-lager.c
> index c6b5f21..edd0f3e 100644
> --- a/arch/arm/mach-shmobile/board-lager.c
> +++ b/arch/arm/mach-shmobile/board-lager.c
> @@ -40,12 +40,20 @@
> #include <asm/mach-types.h>
> #include <asm/mach/arch.h>
>
> +#include "../../../drivers/gpu/drm/i2c/adv7511.h"
Shouldn't this header moved into include/linux/platform_data/ first?
WBR, Sergei
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [RFC 10/10] ARM: shmobile: r8a7790: lager: HDMI output via DU and ADV7511
2013-08-30 12:37 [RFC 10/10] ARM: shmobile: r8a7790: lager: HDMI output via DU and ADV7511 Ulrich Hecht
2013-08-30 17:38 ` Sergei Shtylyov
@ 2013-09-02 13:41 ` Laurent Pinchart
1 sibling, 0 replies; 3+ messages in thread
From: Laurent Pinchart @ 2013-09-02 13:41 UTC (permalink / raw)
To: linux-sh
On Friday 30 August 2013 21:38:53 Sergei Shtylyov wrote:
> On 08/30/2013 04:37 PM, Ulrich Hecht wrote:
> > This builds and runs but is unlikely to provide useful output as I do not
> > have physical access to a Lager board yet.
> >
> > Signed-off-by: Ulrich Hecht <ulrich.hecht@gmail.com>
> > ---
> >
> > arch/arm/mach-shmobile/board-lager.c | 24 ++++++++++++++++++++++++
> > 1 file changed, 24 insertions(+)
> >
> > diff --git a/arch/arm/mach-shmobile/board-lager.c
> > b/arch/arm/mach-shmobile/board-lager.c index c6b5f21..edd0f3e 100644
> > --- a/arch/arm/mach-shmobile/board-lager.c
> > +++ b/arch/arm/mach-shmobile/board-lager.c
> > @@ -40,12 +40,20 @@
> >
> > #include <asm/mach-types.h>
> > #include <asm/mach/arch.h>
> >
> > +#include "../../../drivers/gpu/drm/i2c/adv7511.h"
>
> Shouldn't this header moved into include/linux/platform_data/ first?
Agreed. The header should even be split into platform data (to be moved to
include/linux/platform_data/adv7511.h) and driver-private data that can be
kept in drivers/gpu/drm/i2c/adv7511.h (or possibly be moved to
drivers/gpu/drm/i2c/adv7511.c, I have no strong preference there).
--
Regards,
Laurent Pinchart
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-09-02 13:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-30 12:37 [RFC 10/10] ARM: shmobile: r8a7790: lager: HDMI output via DU and ADV7511 Ulrich Hecht
2013-08-30 17:38 ` Sergei Shtylyov
2013-09-02 13:41 ` Laurent Pinchart
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).