From nobody Sat Sep 21 04:47:10 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 4X9cDx0bGZz5XFQT for ; Sat, 21 Sep 2024 04:47:29 +0000 (UTC) (envelope-from maciphone2@googlemail.com) Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) (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 4X9cDv6M7Mz42q8 for ; Sat, 21 Sep 2024 04:47:27 +0000 (UTC) (envelope-from maciphone2@googlemail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-42cd46f3a26so23061385e9.2 for ; Fri, 20 Sep 2024 21:47:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20230601; t=1726894045; x=1727498845; 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=r+ynMHoZtT4MB6Ra0ZJUXlk6D/qvXf4IxrA7VpH5l5s=; b=dCyxta4fI0Iwx7rdl+l8Csv1r4vvo8Wr7IbDEYkSWqqnC3dU8WEtroXTym2lo/6Hm6 XDSTrp2hx1IF8o6fJKKy5C/l+wdF+vEEfHXibAsvkW/nBzTvXA7jW2ehdEjAuJNvdyHw 2Jpf5B2XMtuHsUYChh62ka2Nyeg/mScMWoHY7H+ucC5zSzq7h5jTU1pzMPTPFztJUaWn EJikyCbpHs5mf800bi/fVMnf9U9dzdBYrwtfYPwRcitvS7e9M90hbfBgczniGPw6sy2Z 33RolhfSCeKP+GroNfz73L7XIrZ5QWRC0Q7zCL95CU9DLnIqoX0UZU7+JfH13q62zyv4 UlVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726894045; x=1727498845; 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=r+ynMHoZtT4MB6Ra0ZJUXlk6D/qvXf4IxrA7VpH5l5s=; b=vGsbBSdEG0iw/PhN1ovBQVBwM7G2xp4kQ0wp5lWEMGcQrNRt1iEo3GSEupX+yFCQGI dqjEcN86uAWAwdRIxtrnl/XmaRsuj2+5zm8CIJJcLwqqtfChsI4BwD2D89IVs0poYP74 sDe/w/0zVvUB3A2dnfFJiBRSmJHl5UqkYUj/sOKOHTQt5T+LJCU0Jr1sHnjGxytR2ByO dQj96GRb7klmGYmzw85FuHKzylY9YMwG8su2QzttF8fQ5gR8lBggRuILzmQOViVlCser 4hBDvMzGd1Pztmz1FHsFYhZ3z1UJjpRorolxQJ6gMtq1X1h1Ka+yT6smPRXuZMFyvzXJ 7jkw== X-Forwarded-Encrypted: i=1; AJvYcCWIWj2cXcsEOGsmNxxIGkxf3LshmawILCODSbBSv5WZJ2hVJULs1UqfnqMricQsqiDNEOOm5fziZoutng==@freebsd.org X-Gm-Message-State: AOJu0YzjaNjTb7dkwuq0mnAVDQu6/r6DSqcdlkmCSMRInBNAPnXUY7Wg 14Z1+EZaI9TEg/syZEeR+cGmvbjafTvG5ZY9HWxV1g6OgflVQngj X-Google-Smtp-Source: AGHT+IGa4DdI4S2VCbSCBFOxGWkzkh2PM72Km7xX/24aHMdlB0pdRrOeOSDz3BSl1B796/L+zC4NwQ== X-Received: by 2002:a05:6000:144a:b0:368:5a8c:580b with SMTP id ffacd0b85a97d-37a42278050mr3375664f8f.19.1726894044844; Fri, 20 Sep 2024 21:47:24 -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 ffacd0b85a97d-378e7800313sm19251821f8f.88.2024.09.20.21.47.22 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Sep 2024 21:47:23 -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 06:47:10 +0200 References: <5kADboXE-OUia2ncm13XjDesvDmjB3tjWSyr3ytCpa5XYof9xOrL9AbRownQoRG9eJcJpYswqjbMt0P0XiZfs7KNNfiNF7vQ93m72mm_Fyk=@protonmail.com> To: Christoph Pfaller , freebsd-arm@freebsd.org In-Reply-To: <5kADboXE-OUia2ncm13XjDesvDmjB3tjWSyr3ytCpa5XYof9xOrL9AbRownQoRG9eJcJpYswqjbMt0P0XiZfs7KNNfiNF7vQ93m72mm_Fyk=@protonmail.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: 4X9cDv6M7Mz42q8 X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated > Am 21.09.2024 um 01:06 schrieb Klaus K=C3=BCchemann = : >=20 > .. > clknode_link_recalc: Attempt to use unresolved linked clock: hdmi_phy > Cannot get frequency for clk: hdmi_phy, error: 9 > =E2=80=A6 well, to be a bit more concrete: this is where the clock of hdmi_phy seems to be linked : =20 freebsd-src /sys /dev/clk/rockchip/rk3328_cru.c It seems linux(or u-boot?) have added a function to get the clock-rate = into their drivers : = https://lore.kernel.org/all/20240117075154.58747-11-jagan@amarulasolutions= .com/#Z31drivers:clk:rockchip:clk_rk3328.c So perhaps ask the author of rk3328_cru.c if such a function is missing = in the driver or what else could cause to fail to get the clock frequency Regards K. > 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