From nobody Sat Sep 21 13:49:51 2024 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4X9rH365zKz5Wcjw for ; Sat, 21 Sep 2024 13:50:07 +0000 (UTC) (envelope-from maciphone2@googlemail.com) Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4X9rH2612Vz4GfB for ; Sat, 21 Sep 2024 13:50:06 +0000 (UTC) (envelope-from maciphone2@googlemail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-a8a789c4fc5so677653666b.0 for ; Sat, 21 Sep 2024 06:50:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20230601; t=1726926605; x=1727531405; darn=freebsd.org; h=message-id:in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:from:to:cc:subject:date:message-id :reply-to; bh=6p10uAkm5NsWB31CskZbJDVMRmLGetqNIXSOS3brsCk=; b=aTw2D0egybQjWC452r91QCcWP2y72YUY4fZBVdxFB2XXCThZGNiX5PtuJW3scnZocn a6zuOnk15dK0ejPWuLY+ydkgRYgVDRyFv1fnybYhMaAoJnrVbGNpMVtHWNcPwo0zJDqv E5V8Bcj11Rc8F7981NjB7k32xqUUWwgwMpwhvHm5J+pJKelSYwD+3kpmg0vR8CZxQfd7 OKcSj2yGFxL+O/frHOIoq2OsQ6+74oNd+FYc9GA/eeo22osgKg4lp2mtiAuwDgz0/LQF YPL6VmPHRpMojBFVmRhCMmSbJ/N0dLHYI/28KKJE0ngu7vZhoyVwr8P37x0HsJk9fSO7 LEcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726926605; x=1727531405; h=message-id:in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6p10uAkm5NsWB31CskZbJDVMRmLGetqNIXSOS3brsCk=; b=npsbZeFk9u9DrmIjSLn8ik04IRSQOaOSdeqaZz9k9IEwZSJdOu6LRqgTU4YZtMFdZ8 YTE0IlEFMN0cndvgS8pjENoSZABor6Oo06vDJ2qJbk+wcYzo1CX8pQtuDwJfpuH56Zev l07Hcf3sKVeXUSq466aBACTd1pdFoXx4VWD2sIyT4pnQuNz9jJAKX1cGMR9v3akaAjJh HJV5optSm/uGyPg3dPJUy9TLiAcnCLGZORp679CPuRNxs6GFxr96/v/kN1lQJsy4jiMp a2F2lwhiSOdFiWpIPnirhveLek3xIXmQG0J+epX8yetOleLp7n2juDTDgTGQx0qaDAq+ Ukpw== X-Forwarded-Encrypted: i=1; AJvYcCVvdjADk11xcIz+w+p+pk3fzn2gFqUePHaTwyCurm6p9ZPESv3ju/vwdmaw2ABIaZw/a1QlJxMk9T0lsQ==@freebsd.org X-Gm-Message-State: AOJu0YzFjT+B3ufWTmWLCe4LJ/hnIVfCIBJKj0dWDn69uWQA4fLtVpCS qs6hxDK9zqcOilScnVB25BfVxthd8GdewMaFJIM6NWGmzB4/NmpI X-Google-Smtp-Source: AGHT+IH5SgVpAHmi0qedntIZwJrncS+o5D09BoFZ2hNz7h2bcip57GpfLo+iNmzVGAb6SiTYBmcwng== X-Received: by 2002:a17:907:988:b0:a86:8f9b:ef6e with SMTP id a640c23a62f3a-a90d3513a5cmr604135466b.13.1726926604947; Sat, 21 Sep 2024 06:50:04 -0700 (PDT) Received: from smtpclient.apple (dynamic-046-114-115-140.46.114.pool.telefonica.de. [46.114.115.140]) by smtp.googlemail.com with ESMTPSA id a640c23a62f3a-a906132fa05sm970340866b.190.2024.09.21.06.50.02 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 21 Sep 2024 06:50:03 -0700 (PDT) From: =?utf-8?Q?Klaus_K=C3=BCchemann?= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3818.100.11.1.3\)) Subject: Re: Rockchip RK3328 Rock64 HDMI Date: Sat, 21 Sep 2024 15:49:51 +0200 References: <5kADboXE-OUia2ncm13XjDesvDmjB3tjWSyr3ytCpa5XYof9xOrL9AbRownQoRG9eJcJpYswqjbMt0P0XiZfs7KNNfiNF7vQ93m72mm_Fyk=@protonmail.com> <4F94C5BF-B5D8-4EA0-8B4E-695BBC28D693@googlemail.com> <20240921132533.8b8cf0229a38275128ef0ccc@bidouilliste.com> To: Emmanuel Vadot , freebsd-arm@freebsd.org In-Reply-To: <20240921132533.8b8cf0229a38275128ef0ccc@bidouilliste.com> Message-Id: X-Mailer: Apple Mail (2.3818.100.11.1.3) X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] X-Rspamd-Queue-Id: 4X9rH2612Vz4GfB X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated Hi Manu, thanks for letting me know. It`s the first time I looked deeper into = this issue. So you mean that adding RK3328 codes to your DRM-subtree is even = necessary=20 to get efifb console output ? The current state of (at least my) Rock64 is a complete HDMI blank = screen without any electrical reaction at boot . Can`t find any specific Rockchip frame buffer code at first view, so = for now I`m a bit confused where to start=20 to get any HDMI-output.u-boot or firmware or your drm-subtree, or is = there a specific Rockchip bug somewhere?=E2=80=A6?=20 Regards K. > Am 21.09.2024 um 13:25 schrieb Emmanuel Vadot : >=20 >=20 > Hi Klaus, >=20 > On Sat, 21 Sep 2024 01:06:21 +0200 > Klaus K=C3=BCchemann wrote: >=20 >> First time since years I switched the dusty Rock64 on :-) >> yes, you?re right, still not fixed : >> dmesg: >> .. >> clknode_link_recalc: Attempt to use unresolved linked clock: hdmi_phy >> Cannot get frequency for clk: hdmi_phy, error: 9 >> ? >> So you can file a bug report to: https://bugs.freebsd.org = >> You can attach dmesg there (or what I would prefer: send dmesg to = https://dmesgd.nycbug.org) >=20 > This isn't a bug, the hdmi_phy clock is supposed to be exported by > the hdmi-phy driver (see the hdmiphy: phy@ff430000 in the DTS), since = we > don't have a driver for this, it's not exported and we warn about = this. >=20 >> I guess you don`t want to port any linux drivers at first attempt :-) = but instead fix the issue=20 >> to get the framebuffer driver working( with it`s restrictions e.g. no = 4K) >>=20 >> Regards >> K. >=20 > Cheers, >=20 >>=20 >>> Am 20.09.2024 um 19:22 schrieb Christoph Pfaller = : >>>=20 >>> Hello! >>>=20 >>> I recently switched to FreeBSD on my Rock64 due to appearing kernel = panics when running the board with Linux. So far I enjoy the operating = system. However; there is one little annoyance - the integrated HDMI = output does not work. So I want to change that. >>>=20 >>> As we are on ARM my first intention was looking into the device tree = for the rk3328. I compared it to Linux device tree and also found some = missing parts. My next step was looking into the drivers itself and as = the Linux drivers sources are available here = https://github.com/torvalds/linux/tree/master/drivers/gpu/drm/rockchip I = got some idea how the corresponding driver should look like. >>>=20 >>> However, I am unsure how I should proceed getting HDMI to work. = Accodring to https://wiki.freebsd.org/arm/RockChip HDMI works for the = rockchip rk3399 but I could not find any drivers neither in the = freebsd-src or drm-kmod (I am new to FreeBSD so i don't know if this is = even the right place to look for). I hope someone with more technical = knowledge about FreeBSD or HDMI can provide me with some guidance on = where I have to look and work on. >>>=20 >>> Greetings >>> pf0 >>>=20 >>>=20 >>=20 >>=20 >=20 >=20 > --=20 > Emmanuel Vadot