From owner-freebsd-arm@freebsd.org Sat Jul 20 11:33:38 2019 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6AE5FBBA97 for ; Sat, 20 Jul 2019 11:33:38 +0000 (UTC) (envelope-from vijaykumar9597@gmail.com) Received: from mail-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A15E176FE6 for ; Sat, 20 Jul 2019 11:33:37 +0000 (UTC) (envelope-from vijaykumar9597@gmail.com) Received: by mail-io1-xd30.google.com with SMTP id j5so59759964ioj.8 for ; Sat, 20 Jul 2019 04:33:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=kfL1dz/ZQYUPTprrnCnuMNvjxgPkXLtenpzm++Mekwg=; b=Y5Xx2kXm/jXqM6OZsl6+56/QyDrDAvarcLju42lcoBwLyU0dLf/hF4YW1c4FgtRB8a ItttXCIA6BCHu61rMp9/bLqGuzk+HrhvNQQsj5SUb6P1bNOay86IUtHWfEYv+YcgJs6W dfZhYmM5U4KZjdrD0y0gaVlU91CfM8KCrMvHgfLE1/xcQBvjxeq0CnCJIR3R8Z1T7JEi 20RjOQpYVR5TMNNpyXedQEPusBywYTFzIakMCMXK2Ml4ToExCL0I8D+oVdjqiiDs0jlE h/9lSkNO/lMhq3gA3vAjOQ+NyixOBBiz7fQ+4I3sSO9A6LBM/yhVEUjrZanL0WlVVQoa XQ4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=kfL1dz/ZQYUPTprrnCnuMNvjxgPkXLtenpzm++Mekwg=; b=mNi9E9PiRrsgv8/rInCBCPGQZ98uKax0IqY0EMrod8hAsKdGvVtBP7UK5GmXytttrq jijeVXR1YqRjjfkDIvjRBZOciHYkwtVrdx4UVjd9UGs/Gy+oz7KnqE9dJaT/yThxGyWX REByZjLfXWwnqXwaN2s59GOf/K7uBJ7OqayR5cJScTnc1pZkJIEj6EBmJoQBZ5T+tVVI 2BbiYGARC3GCqrvmYnwF/sP2anb/RTJtYSr4BDNzDH9+ENX5EFuAupvOHtBX1h3VYO2K pNh4kqH89LTn/pWDfowHFm9X+IoQ/Ny1K+y+RhmAPBZSjGB6bf+9rnmJhzeqEsssfECX tXiA== X-Gm-Message-State: APjAAAW0CriFCHEBxoOMIAMSPV0tDybUxUBHizbZbv06FxpPweQxVKfy d/RROiwaJdtThUkBbqp92dmH7CtLb9RP6Bk/UHw= X-Google-Smtp-Source: APXvYqyMvG9tyHhYRTTpYUaOl4xeqQuVZ876YkUBt5K0l6oxCQ6O+y/cEFkOjNqLPMzd3p9qq9aJ2G2T7QLGoWEKUzc= X-Received: by 2002:a6b:641a:: with SMTP id t26mr8347787iog.3.1563622416830; Sat, 20 Jul 2019 04:33:36 -0700 (PDT) MIME-Version: 1.0 References: <20190720024214.GA56812@bluezbox.com> <20190720055421.GB41013@dendrobates> In-Reply-To: <20190720055421.GB41013@dendrobates> From: Vijay Kumar Banerjee Date: Sat, 20 Jul 2019 17:03:25 +0530 Message-ID: Subject: Re: Question regarding framebuffer driver. To: Sergey Manucharian Cc: Oleksandr Tymoshenko , freebsd-arm@freebsd.org X-Rspamd-Queue-Id: A15E176FE6 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=Y5Xx2kXm; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of vijaykumar9597@gmail.com designates 2607:f8b0:4864:20::d30 as permitted sender) smtp.mailfrom=vijaykumar9597@gmail.com X-Spamd-Result: default: False [-6.90 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[0.3.d.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; RCVD_TLS_LAST(0.00)[]; NEURAL_HAM_SHORT(-0.94)[-0.941,0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(-2.95)[ip: (-9.15), ipnet: 2607:f8b0::/32(-3.13), asn: 15169(-2.43), country: US(-0.05)]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Jul 2019 11:33:38 -0000 On Sat, Jul 20, 2019 at 11:24 AM Sergey Manucharian wrote: > Vijay Kumar Banerjee (vijaykumar9597@gmail.com) wrote: > > > >From the FreeBSD bootlog (12-RELEASE), I see that the screen is > > > turning on after the VT initialization message, so I guess it's > something > > > that happens after the vt initialization that turns the screen on. > > What kind of screen? If it's not HDMI, but directly connected LCD, > "turn on" has two different meaning: one is the screen's backlight, > another is the actual text/image drawn on the screen. So, even if your > screen is black, do you see the backlight? Usually the backlight is > controlled by PWM signal, if the backlight is off, the corresponding pin > is not configured properly. Instead of PWM you can configure it just as > output with high value to check. > > Hi, I'm using an HDMI screen and by turn on I mean that there's no backlight. In case of HDMI what is responsible for turning on the backlight? I can see the EDID reading working and the values match the ones I get from the FBSD image, which means the TDA driver is working I suppose (?) Regarding PWM : From the device tree obtained form the FreeBSD tree, I see that the PWM entries are "disabled" and during the startup I can see that they're not attaching because the ofw_bus_status_okay fails. Is it supposed to be manually set to "okay" with an overlay or something is going wrong in the pwm driver? > Excerpts from Oleksandr Tymoshenko's message from Fri 19-Jul-19 19:42: > > without HDMI framer and try to initialize framebuffer in am335x_lcd > > driver with certain pattern to make sure it works. FreeBSD driver worked > > with 4DCAPE [1] at some point, so it might be a good start. > > I confirm it works with Newhaven 7" LCD cape as well. > (Except touchpanel, which is completely different story). > > If there's no other clue I can follow this way of stepwise checking each drivers. Can you please elaborate "hardcoding logic in TDA so it doesn't require VT"? I'm new to the FreeBSD source so any hint is much appreciated. Thanks for the quick reply and for the helpful tips. Best Regards, Viay > -S. > > >