From owner-freebsd-arm@FreeBSD.ORG Mon Mar 24 02:34:48 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6E2BB18E for ; Mon, 24 Mar 2014 02:34:48 +0000 (UTC) Received: from id.bluezbox.com (id.bluezbox.com [88.198.91.248]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 186FC242 for ; Mon, 24 Mar 2014 02:34:47 +0000 (UTC) Received: from [208.184.220.60] (helo=[10.112.201.108]) by id.bluezbox.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.77 (FreeBSD)) (envelope-from ) id 1WRuio-0001Ff-PG for freebsd-arm@freebsd.org; Sun, 23 Mar 2014 19:34:45 -0700 Content-Type: text/plain; charset=iso-2022-jp Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Subject: Re: HDMI output on Beaglebone black From: Oleksandr Tymoshenko In-Reply-To: <7C58B233-1E84-47A3-ABB2-0038928BB1B2@bluezbox.com> Date: Sun, 23 Mar 2014 19:34:08 -0700 Cc: "freebsd-arm@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <536748F0-FE1C-42CD-B33A-D7484282D840@bluezbox.com> References: <7C58B233-1E84-47A3-ABB2-0038928BB1B2@bluezbox.com> X-Mailer: Apple Mail (2.1874) Sender: gonzo@id.bluezbox.com X-Spam-Level: - X-Spam-Report: Spam detection software, running on the system "id.bluezbox.com", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see The administrator of that system for details. Content preview: On Dec 26, 2013, at 1:18 PM, Oleksandr Tymoshenko wrote: > > On 2013-12-25, at 9:08 PM, "Lundberg, Johannes" wrote: > >> Hi >> >> According to the readme for Beaglebone Black in crochet-freebsd there is no >> support for HMDI output yet (as of Dec 2013). >> >> Does anyone know what is required to make this work? > > You need to write driver for NXP TDA19988 HDMI (LCD to HDMI converter), driver > for LCD controller and vt/syscons wrapper. Also properly pinmux LCD pins in .dts. > > I did some experiments few months back but didn't get far: > http://people.freebsd.org/~gonzo/arm/patches/bbb-tda.diff [...] Content analysis details: (-1.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP 1.0 MISSING_HEADERS Missing To: header -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Mar 2014 02:34:48 -0000 On Dec 26, 2013, at 1:18 PM, Oleksandr Tymoshenko = wrote: >=20 > On 2013-12-25, at 9:08 PM, "Lundberg, Johannes" = wrote: >=20 >> Hi >>=20 >> According to the readme for Beaglebone Black in crochet-freebsd there = is no >> support for HMDI output yet (as of Dec 2013). >>=20 >> Does anyone know what is required to make this work? >=20 > You need to write driver for NXP TDA19988 HDMI (LCD to HDMI = converter), driver=20 > for LCD controller and vt/syscons wrapper. Also properly pinmux LCD = pins in .dts. >=20 > I did some experiments few months back but didn't get far: > http://people.freebsd.org/~gonzo/arm/patches/bbb-tda.diff I got a little bit further with this and thought I=1B$B!G=1B(Bd better = post my WIP before somebody=20 wastes his/her time fixing things that=1B$B!G=1B(Bs already fixed. Here is diff of my work dir:=20 http://people.freebsd.org/~gonzo/arm/patches/tda19988.diff There are several problems fixed comparing to first patch: - Fixed HDMI controller I2C address - Register write should be one I2C transaction - Current TI I2C driver can=1B$B!G=1B(Bt read more bytes than FIFO = length. I moved read/write=20 handler to ithread, instead of notifying requesting thread with = wakeup. Kernel with this patch can read and parse EDID. I failed to get video output working even with test pattern (part of code commented by "#if = 0=1B$B!I=1B(B).=20 Part of this code is direct copy-paste from linux driver just to get = something=20 working before re-coding it properly.=