From nobody Fri Nov 4 19:31:51 2022 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 4N3rNZ2sCMz4hXB0 for ; Fri, 4 Nov 2022 19:31:58 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic307-55.consmr.mail.gq1.yahoo.com (sonic307-55.consmr.mail.gq1.yahoo.com [98.137.64.31]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4N3rNY0hQlz3fXf for ; Fri, 4 Nov 2022 19:31:57 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1667590314; bh=fW7qfVb0fCegvYwU+yjiUNjFOtKBmFrqlfzydLNT5B8=; h=From:Subject:Date:References:To:In-Reply-To:From:Subject:Reply-To; b=Jn/FNCwyoD82Jp3h6NHY4ONhC4dwDtxQOk4j/Dvhb2uw+YUUQb3P6bg5J+BBzwGChkJ/qeFwq21KMPFpCemn2HWwcytDktEyiCFDjOgz3Y+c1gI3Q/lrt/MdKaVWZcEZBtZM9gISkB/YMTGmbZ0pAh9vmHg5oBmG4qJH2cO9Vb+pOey7iy3VRqSRIuR89cgMLPpigL4yyHHA+PfXlicsMk1X9seyfaVGMXdh2BWLUt6kv2IvYtD+g/XooTAF8UAZV1006BhKcs/hEe2B5BYxhLQwVk9vHuvoxYHTshujmFUeJKrYRCM7blW5zthuV9M4U+Z8o29aTwUaEqY+1Iz7ew== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1667590314; bh=V3bu+956spPGMqdNKpwgnNftBlfvis4SN+Yf8MoskYq=; h=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R4Oet4rZvHQb_2m8iK7OCgDf1q3j6Eh4xrdlsG9r.Yr. s5EADoryEo8u2irDqCLTnJgv7KFGiriRxweycELim6bXGBD9G5gVboTa0tWB1kSig0gh7ZhISRA. M5fW6MddyPKqyrjSiAqH1rnQE7dDnegcaqPBhz5dSmkaTfiEIKfuGtbykknCoik2tTpVuPhpmgKW 0mCBgvV7sfiM5aKyN_AtaC6dt93BAdknwfKPE86VVxuCkPaxYdGsYeRhKgYkw3MvbjAp9ZPtEFwT i57G_ZFhA7QWjYrvOxnYmh_7C9dMlGwrHMI9sAAt4nnvbyz7cG_qibSor4EpuROd8rd5eYSI6VmF wQxDqWOXhuUDkAlR_KHCS0H.297rKpyHnurAAHR5xuLukixzyFBlyced9G8JiNC7NnQ0CxFglw1b VR9PfbF0M0SYm_UwJu6SrsI4BvoiGLV1vmM9jMzEjb50ucoIm3xpKRPnXPWTVhLur3C0s_U9Htti y7.kALjtBo.NWDhsHb7u0dcUuQgD2tJWo_xsyfKzUukmlKj9f0fWTnh04xd5C X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.gq1.yahoo.com with HTTP; Fri, 4 Nov 2022 19:31:54 +0000 Received: by hermes--production-gq1-579bc4bddd-gwpsw (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 5d8cd76683ae8e1715048acbf0e2e771; Fri, 04 Nov 2022 19:31:51 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii 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 \(3696.120.41.1.1\)) Subject: Re: FYI: Rock64 USB3 port no longer works for main [so: 14] (looks like dtb changes invalidating use of the old .dtbo and needing kernel changes) Date: Fri, 4 Nov 2022 12:31:51 -0700 References: <8A639ABB-D8CC-47D6-A106-A5E2463E7AEE@yahoo.com> <665C125A-3E2B-408F-8F6E-B2D23237F06A@yahoo.com> To: freebsd-arm In-Reply-To: <665C125A-3E2B-408F-8F6E-B2D23237F06A@yahoo.com> Message-Id: X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Rspamd-Queue-Id: 4N3rNY0hQlz3fXf X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b="Jn/FNCwy"; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.64.31 as permitted sender) smtp.mailfrom=marklmi@yahoo.com X-Spamd-Result: default: False [-3.50 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; MV_CASE(0.50)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MIME_GOOD(-0.10)[text/plain]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; RCPT_COUNT_ONE(0.00)[1]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; RCVD_IN_DNSWL_NONE(0.00)[98.137.64.31:from]; TO_DN_ALL(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; FREEMAIL_FROM(0.00)[yahoo.com]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org] X-ThisMailContainsUnwantedMimeParts: N On 2022-Oct-22, at 23:00, Mark Millard wrote: > Well, turns out that part of the "Import device-tree files > from Linux 5.14" is: >=20 > = https://cgit.freebsd.org/src/commit/sys/contrib/device-tree/src/arm64/rock= chip/rk3328-rock64.dts?id=3D5956d97f4b32 >=20 > which has: >=20 > diff --git = a/sys/contrib/device-tree/src/arm64/rockchip/rk3328-rock64.dts = b/sys/contrib/device-tree/src/arm64/rockchip/rk3328-rock64.dts > index 3bef1f39bc6e..1b0f7e4551ea 100644 > --- a/sys/contrib/device-tree/src/arm64/rockchip/rk3328-rock64.dts > +++ b/sys/contrib/device-tree/src/arm64/rockchip/rk3328-rock64.dts > @@ -381,6 +381,11 @@ > status =3D "okay"; > }; >=20 > +&usbdrd3 { > + dr_mode =3D "host"; > + status =3D "okay"; > +}; > + > &usb_host0_ehci { > status =3D "okay"; > }; >=20 > usbdrd3 is for USB3, so "host" now has a sort of dtb change > in the interfacing for supporting host-mode USB3. The old: >=20 > /usr/main-src/sys/dts/arm64/overlays/rk3328-dwc3.dtso >=20 > has, in part: >=20 > usbdrd3: usb@ff600000 { > compatible =3D "rockchip,rk3328-dwc3"; > clocks =3D <&cru SCLK_USB3OTG_REF>, <&cru = SCLK_USB3OTG_SUSPEND>, > <&cru ACLK_USB3OTG>; > clock-names =3D "ref_clk", "suspend_clk", > "bus_clk"; > #address-cells =3D <2>; > #size-cells =3D <2>; > ranges; > status =3D "okay"; >=20 > usbdrd_dwc3: dwc3@ff600000 { > compatible =3D "snps,dwc3"; > reg =3D <0x0 0xff600000 0x0 0x100000>; > interrupts =3D ; > dr_mode =3D "host"; > phy_type =3D "utmi_wide"; > snps,dis_enblslpm_quirk; > snps,dis-u2-freeclk-exists-quirk; > snps,dis_u2_susphy_quirk; > snps,dis_u3_susphy_quirk; > snps,dis-del-phy-power-chg-quirk; > snps,dis-tx-ipgap-linecheck-quirk; > status =3D "okay"; > }; > }; >=20 > which looks to me to likely now conflict with the below --given > the added "host" usage as of 5.14 reported above: >=20 > /usr/main-src/sys/contrib/device-tree/src/arm64/rockchip/rk3328.dtsi >=20 > that, as of the 5.13 import, has: >=20 > usbdrd3: usb@ff600000 { > compatible =3D "rockchip,rk3328-dwc3", "snps,dwc3"; > reg =3D <0x0 0xff600000 0x0 0x100000>; > interrupts =3D ; > clocks =3D <&cru SCLK_USB3OTG_REF>, <&cru = SCLK_USB3OTG_SUSPEND>, > <&cru ACLK_USB3OTG>; > clock-names =3D "ref_clk", "suspend_clk", > "bus_clk"; > dr_mode =3D "otg"; > phy_type =3D "utmi_wide"; > snps,dis-del-phy-power-chg-quirk; > snps,dis_enblslpm_quirk; > snps,dis-tx-ipgap-linecheck-quirk; > snps,dis-u2-freeclk-exists-quirk; > snps,dis_u2_susphy_quirk; > snps,dis_u3_susphy_quirk; > status =3D "disabled"; > }; >=20 > My guess would be that some kernel changes are required > in order to track this structural changes, not just > avoiding the old .dtbo . Testing showed that disabling > the load of the .dtbo was insufficient to fix things. FYI: The mainline Linux commit that addeed usbdrd3 to arch/arm64/boot/dts/rockchip/rk3328.dtsi is the following from 2021-03-24: = https://github.com/torvalds/linux/commit/44dd5e2106dc2fd01697b539085818d1d= 1c58df0 The mainline Linux commit that added the enabling of the USB3 host mode in arch/arm64/boot/dts/rockchip/rk3328-rock64.dts is the following from 2021-05-01: = https://github.com/torvalds/linux/commit/bbac8bd65f5402281cb7b0452c1c5f367= 387b459 =3D=3D=3D Mark Millard marklmi at yahoo.com