From nobody Sat Sep 21 11:25:33 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 4X9n5h3cstz5W59c for ; Sat, 21 Sep 2024 11:26:48 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mx.blih.net (mx.blih.net [212.83.155.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4X9n5h1GL9z4pmS for ; Sat, 21 Sep 2024 11:26:48 +0000 (UTC) (envelope-from manu@bidouilliste.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bidouilliste.com; s=mx; t=1726918007; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=F8xNn675z1hMAdNmVgxNdxpWDqcUl+L6HiEPm6QuchM=; b=XBapaBTd/PfOSLMoGt38eqSPKU5zYrzTWYsiHuAtCMecabswDHmO/5zofM8523c4oy3dgh Pdx/UbeCw+0da4Vyqvuzo3vYSaPHLPXUj/RMxVTOFbXq6pd44zlPoq/+ewuf1SqHs2ATVQ HAGbDe90CBNv1Ao8vIUt2tnr27qKt48= Received: from skull.home.blih.net (lfbn-lyo-1-2174-135.w90-66.abo.wanadoo.fr [90.66.97.135]) by mx.blih.net (OpenSMTPD) with ESMTPSA id 88f77f46 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sat, 21 Sep 2024 11:26:46 +0000 (UTC) Date: Sat, 21 Sep 2024 13:25:33 +0200 From: Emmanuel Vadot To: Klaus =?ISO-8859-1?Q?K=FCchemann?= Cc: freebsd-arm@freebsd.org Subject: Re: Rockchip RK3328 Rock64 HDMI Message-Id: <20240921132533.8b8cf0229a38275128ef0ccc@bidouilliste.com> In-Reply-To: <4F94C5BF-B5D8-4EA0-8B4E-695BBC28D693@googlemail.com> References: <5kADboXE-OUia2ncm13XjDesvDmjB3tjWSyr3ytCpa5XYof9xOrL9AbRownQoRG9eJcJpYswqjbMt0P0XiZfs7KNNfiNF7vQ93m72mm_Fyk=@protonmail.com> <4F94C5BF-B5D8-4EA0-8B4E-695BBC28D693@googlemail.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd15.0) 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 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:12876, ipnet:212.83.128.0/19, country:FR] X-Rspamd-Queue-Id: 4X9n5h1GL9z4pmS X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated Hi Klaus, On Sat, 21 Sep 2024 01:06:21 +0200 Klaus K=FCchemann wrote: > 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) 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. > 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. Cheers, >=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 pan= ics when running the board with Linux. So far I enjoy the operating system.= However; there is one little annoyance - the integrated HDMI output does n= ot work. So I want to change that. > >=20 > > As we are on ARM my first intention was looking into the device tree fo= r the rk3328. I compared it to Linux device tree and also found some missin= g 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/m= aster/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. Accodri= ng to https://wiki.freebsd.org/arm/RockChip HDMI works for the rockchip rk3= 399 but I could not find any drivers neither in the freebsd-src or drm-kmo= d (I am new to FreeBSD so i don't know if this is even the right place to l= ook for). I hope someone with more technical knowledge about FreeBSD or HDM= I can provide me with some guidance on where I have to look and work on. > >=20 > > Greetings > > pf0 > >=20 > >=20 >=20 >=20 --=20 Emmanuel Vadot