From nobody Wed Sep 25 18:00: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 4XDPgg6LzYz5XWj7 for ; Wed, 25 Sep 2024 18:01:51 +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 4XDPgg0326z4jNf for ; Wed, 25 Sep 2024 18:01:50 +0000 (UTC) (envelope-from manu@bidouilliste.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bidouilliste.com header.s=mx header.b=cmtNAgKv; spf=pass (mx1.freebsd.org: domain of manu@bidouilliste.com designates 212.83.155.74 as permitted sender) smtp.mailfrom=manu@bidouilliste.com; dmarc=pass (policy=none) header.from=bidouilliste.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bidouilliste.com; s=mx; t=1727287309; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LCnUpGnf2KA/WUqHLb1iEv9fWhtEmxfybHWurJu6Zdc=; b=cmtNAgKvockAD5rHk5w1nfN+UBbNk14F94TakHw7UqO+SywAWpAtmSHTX4vIrB7BHJ6fUI PquhWrhphlXstwUfnDo8E6/acHFqCUVH7rl6FTdcQHIY4z0DsAYDfj/QFCjyO10MhKQ8f5 AUkBtF/Rv9pjy+D/E90eMCBofTFAu9E= 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 a85bdd15 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Wed, 25 Sep 2024 18:01:49 +0000 (UTC) Date: Wed, 25 Sep 2024 20:00:33 +0200 From: Emmanuel Vadot To: Klaus =?ISO-8859-1?Q?K=FCchemann?= , freebsd-arm@freebsd.org Subject: Re: Rockchip RK3328 Rock64 HDMI Message-Id: <20240925200033.71f37cd50e1290bdfa98cf22@bidouilliste.com> In-Reply-To: <20240925192116.860d73712f620c2fd77685a4@bidouilliste.com> References: <5kADboXE-OUia2ncm13XjDesvDmjB3tjWSyr3ytCpa5XYof9xOrL9AbRownQoRG9eJcJpYswqjbMt0P0XiZfs7KNNfiNF7vQ93m72mm_Fyk=@protonmail.com> <4F94C5BF-B5D8-4EA0-8B4E-695BBC28D693@googlemail.com> <20240921132533.8b8cf0229a38275128ef0ccc@bidouilliste.com> <20240921193608.d88ec27b1da889a52c1f6e3e@bidouilliste.com> <577A672D-E92B-446D-9C81-428FC2121E09@googlemail.com> <20240925185607.8fc021905b94c98c002d3dec@bidouilliste.com> <9361258C-6C87-4F67-892F-30AE593FF436@googlemail.com> <20240925192116.860d73712f620c2fd77685a4@bidouilliste.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 [-3.39 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.994]; MV_CASE(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[bidouilliste.com,none]; R_SPF_ALLOW(-0.20)[+ip4:212.83.155.74/32]; R_DKIM_ALLOW(-0.20)[bidouilliste.com:s=mx]; ONCE_RECEIVED(0.10)[]; MIME_GOOD(-0.10)[text/plain]; ARC_NA(0.00)[]; ASN(0.00)[asn:12876, ipnet:212.83.128.0/19, country:FR]; RCVD_TLS_ALL(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEFALL_USER(0.00)[manu]; RCVD_COUNT_ONE(0.00)[1]; TO_DN_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; FREEMAIL_TO(0.00)[googlemail.com,freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[bidouilliste.com:+] X-Rspamd-Queue-Id: 4XDPgg0326z4jNf X-Spamd-Bar: --- On Wed, 25 Sep 2024 19:21:16 +0200 Emmanuel Vadot wrote: > On Wed, 25 Sep 2024 19:19:57 +0200 > Klaus K=FCchemann wrote: >=20 > > this time even without specific hack, just a config : > >=20 > > CONFIG_PHY_ROCKCHIP_INNO_HDMI=3Dy > > CONFIG_VIDEO=3Dy > > CONFIG_DISPLAY=3Dy > > CONFIG_VIDEO_ROCKCHIP=3Dy > > CONFIG_DISPLAY_ROCKCHIP_HDMI=3Dy >=20 > Thanks, just found the same settings messing with make menuconfig, > will test on my board tonight. >=20 > >=20 > > U-boot 2024.07( I think also 2024.04) then enables the inno hdmi_phy d= river > > 2024.10-rc5 even shows the u-boot logo,=20 > > t...hey seem to still maintain the RK3328 hdmi.... I'm on rc5 and by default it's not enabled. > > -?I will look into that GOP- thing?. > > If you have instructions or hints for that, plz let me know > >=20 So I kinda see what's going on. For some reason the video isn't considered as a valid console, setting stdout to be serial,vidconsole doesn't work. I couldn't find why or if there is some way to enable this for the rock64 but I think that this is why efifb doesn't work, since this is not a valid console for u-boot I think that the u-boot drivers de-init the hdmi and all when we get into the kernel (even if loader sees the GOP as valid). I don't think that I have enought motivation to look further. Cheers, > > > Am 25.09.2024 um 18:56 schrieb Emmanuel Vadot : > > >=20 > > > On Wed, 25 Sep 2024 17:29:11 +0200 > > > Klaus K=FCchemann wrote: > > >=20 > > >> Needed 5 minutes to hack u-boot`s current version to get HDMI - out= put on the RK3328/ Rock64.. > > >=20 > > > What's the hack ? > > >=20 > >=20 > >=20 > > > Am 25.09.2024 um 18:56 schrieb Emmanuel Vadot : > > >=20 > > > On Wed, 25 Sep 2024 17:29:11 +0200 > > > Klaus K=FCchemann wrote: > > >=20 > > >> It works because u-boot(and linux) has built in driver for the hdmi-= inno phy. > > >> So the dts devicetree- entries for the hdmi_phy point to that driver= ( which is glued in their drm). > > >> So u-boot sets up it?s framebuffer based on this driver while it can= not be handed over to FreeBSD=20 > > >> because it`s not implemented FreeBSD (as Manu said) . > > >=20 > > > That's not what I said, if u-boot setup a GOP interface FreeBSD loader > > > and kernel will be able to use it. >=20 >=20 > --=20 > Emmanuel Vadot >=20 --=20 Emmanuel Vadot