From owner-freebsd-arm@freebsd.org Tue Dec 29 13:22:45 2015 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9B0D0A54992 for ; Tue, 29 Dec 2015 13:22:45 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "raven.bwct.de", Issuer "BWCT" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 2CA271EA3 for ; Tue, 29 Dec 2015 13:22:44 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from mail.cicely.de ([10.1.1.37]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id tBTDMKhg043411 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Tue, 29 Dec 2015 14:22:27 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by mail.cicely.de (8.14.5/8.14.4) with ESMTP id tBTDMEDd019013 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 29 Dec 2015 14:22:14 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.15.2/8.15.2) with ESMTP id tBTDMEIY050340; Tue, 29 Dec 2015 14:22:14 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.15.2/8.15.2/Submit) id tBTDMDCV050339; Tue, 29 Dec 2015 14:22:13 +0100 (CET) (envelope-from ticso) Date: Tue, 29 Dec 2015 14:22:13 +0100 From: Bernd Walter To: Matthieu Volat Cc: ticso@cicely.de, freebsd-arm@freebsd.org Subject: Re: Raspberry Pi and WaveShare SpotPear LCD screens Message-ID: <20151229132213.GB48795@cicely7.cicely.de> Reply-To: ticso@cicely.de References: <36285EFC-0739-4A93-B22D-C22B7BDEE16D@alkumuna.eu> <20151228135554.GA45251@cicely7.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Operating-System: FreeBSD cicely7.cicely.de 10.2-RELEASE amd64 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED=-1, BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 autolearn=ham version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on spamd.cicely.de X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Dec 2015 13:22:45 -0000 On Mon, Dec 28, 2015 at 04:40:59PM +0100, Matthieu Volat wrote: > > > Le 28 déc. 2015 à 14:55, Bernd Walter a écrit : > > > [...] > > > > Basicly they run with fixed configuration HDMI dummy output and then > > copy the framebuffer over SPI to the display, which has it's own > > displaymemory. > > The board has some shift registers, so I'm guessing that the panel > > itself uses a memory bus. > > At least one GPIOs is used for backlight and I think there is an enable. > > The touch controller is connected to I2C and needs it's own driver too. > > Havn't worked out the details. > > Easiest for you would be to use one of their bigger HDMI displays. > > They have 5" and 7" and recently also 10.x". > > Be aware that they have two 5" - one is connected to the GPIO header > > for Power and I²C to run the touch controller. > > The other one uses USB cables and an STM32 controller to run the touch > > controller as an USB device - not sure if it is a standard device, > > since I'd tested it with a Linux desktop and it didn't run out of the box. > > I havn't run any FreeBSD with display yet. > > > > Thanks, that's a very good summary. So if I understand well, we'd need to add a whole new class of framebuffer. That would be a good exercise, but I fear not having enough time/knowledge to do so... not soon at least. Or just a driver that copies over as done withLinux, which theoretically could also be done in userland. The advantage for copying vs. a new framebuffer is that the GPU features can be used for creating the image, but IIRC we don't support the GPU anyway. I have a complete set of their modules, including the HDMI with the exception of the 10.x" one, which wasn't available when I'd ordered them. But in my case I was under time Pressure, so I had to use Linux. > Thank you very much, I'll try to read a bit more about the fb devices in /usr/src/arm/bcm2835, as well as look a bit at the fbtft module in Linux staging area. -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.