From nobody Fri Sep 09 16:36:46 2022 X-Original-To: dev-commits-src-main@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 4MPM8H135Qz4bpGV; Fri, 9 Sep 2022 16:36:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MPM8G71fQz459C; Fri, 9 Sep 2022 16:36:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662741407; 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; bh=gwQR8oFWxCOluOxGXmn1oNPGYeGePntIyKNQenOYBgQ=; b=NLTCv/lWSAtPgVFAOa+s4aEcf/UCndFEZQk/rwOdi7q4joU709W6nd2voijjexTuR82BkF 6dgFrh2PVB32UrQwcbnOvlbW+yBbfQAydAUatW7RrM4eNfkbsbrTHmKvOU+o1W2mOycWhO 8sieaiBWJN0swUDD/jjx9KyVFD/wnCEbrIRJyviuQcWYPPMeJlTicZFj7+0z5QoLSCecoy yb7Gy/ISK3rT/NoqWQxQTK5N0HDKPy9CaArOqq8qzX9uSEgLGsECXrx+N0WKfOje4imOl5 IZ08Eji4eYJFmOkkERFr/hAutiSTF8jafLiBO0ZJYPK37FY5iE+YHaCZ3tPx+w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MPM8G5nTvz1GHF; Fri, 9 Sep 2022 16:36:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 289Gakq1095221; Fri, 9 Sep 2022 16:36:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 289GakqU095220; Fri, 9 Sep 2022 16:36:46 GMT (envelope-from git) Date: Fri, 9 Sep 2022 16:36:46 GMT Message-Id: <202209091636.289GakqU095220@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: "Bjoern A. Zeeb" Subject: git: 866e021654cf - main - rtw89: import firmware for Realtek's rtw89 supported chipsets. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bz X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 866e021654cfb72c050fd228dee476fb92fa6f48 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662741407; 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; bh=gwQR8oFWxCOluOxGXmn1oNPGYeGePntIyKNQenOYBgQ=; b=sbFM6hEeCUGU5PoI2i9fUkX2Dfn8/vY16YdOZYoIE5LQVOVZrE2UVDun7wGen3ktm/+f8o ebHzAg4kmR/7T98Kw23RnKuctK/QhVIr+MUr6gDIltVoJTjs3CifgRq8HCT5/UroCI796A jSVes/vaOj96deqonJEDR5eaniuLydzjlsV7ZUhBph1krOu70JDI5XCWiTkaVkMJ2s33s5 Xgd3YLWfpob2r7Fid18Xdr6Fx9lb1aCGSuHVzv2zJom3D9WZ0OwnEFOzHXyRCQH9Yowvl6 IufYrhKSBeIEgs8Qr0GF7QT4673f0weCvRwqwPJp7A5o2bJyU3ZXxEqvC3MycQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1662741407; a=rsa-sha256; cv=none; b=OZsBH0tNlTVcI2KYryS69GcuYrl7VIYeeWC0L/NKg8/DDd00JwReg0/mkVrZWCDjI2CVDn kHeheqm7nXnvvJr/DmebD9irR+nRWU4Yzbd+HmdkmVkPxNfWZvDxOvELWOcAxkSUwn9pgp IG6RzwipvHdhhtYVTbPXBBEOI0DL6VpigtqFgh7IaLE8bk8CTD5veXb/QfPoo6dD7DGj4j szHWCVfYPstDTabkLhlZYbcI1o7pnWXpTWBMVs1bAPmJxItI26HRvMAylyL0c+z5j3gca2 xF+rDXrPbWazOsXCSpngJNydXKVgLPxxPBoQ1TjaoYCC3/rGgiphMOUvb9+dbA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=866e021654cfb72c050fd228dee476fb92fa6f48 commit 866e021654cfb72c050fd228dee476fb92fa6f48 Author: Bjoern A. Zeeb AuthorDate: 2022-09-09 12:52:54 +0000 Commit: Bjoern A. Zeeb CommitDate: 2022-09-09 16:32:17 +0000 rtw89: import firmware for Realtek's rtw89 supported chipsets. Import the most recent versions of the firmware images for the rtw89 driver. This is based on linux-firmware at 2f2f0181581d3e35bfdb9fc65f609ee9d3fbaeb7. The license of the firmware matches the previously added rtw88(4) firmware and you can find a copy in sys/contrib/dev/rtw89fw/LICENCE.rtlwifi_firmware.txt. Add build infrastructure to create the .ko files but do not yet hook it up to the build until all parts are in the tree. Approved by: core.11 (imp) [2022-03-27] MFC after: 6 weeks --- .../dev/rtw89fw/LICENCE.rtlwifi_firmware.txt | 39 +++++++++++++++++++++ sys/contrib/dev/rtw89fw/WHENCE | 8 +++++ sys/contrib/dev/rtw89fw/rtw8852a_fw.bin | Bin 0 -> 1423232 bytes sys/contrib/dev/rtw89fw/rtw8852c_fw.bin | Bin 0 -> 1340192 bytes sys/modules/rtw89fw/Makefile | 7 ++++ sys/modules/rtw89fw/Makefile.inc | 17 +++++++++ sys/modules/rtw89fw/rtw8852a/Makefile | 6 ++++ sys/modules/rtw89fw/rtw8852c/Makefile | 6 ++++ 8 files changed, 83 insertions(+) diff --git a/sys/contrib/dev/rtw89fw/LICENCE.rtlwifi_firmware.txt b/sys/contrib/dev/rtw89fw/LICENCE.rtlwifi_firmware.txt new file mode 100644 index 000000000000..d70921f49379 --- /dev/null +++ b/sys/contrib/dev/rtw89fw/LICENCE.rtlwifi_firmware.txt @@ -0,0 +1,39 @@ +Copyright (c) 2010, Realtek Semiconductor Corporation +All rights reserved. + +Redistribution. Redistribution and use in binary form, without +modification, are permitted provided that the following conditions are +met: + +* Redistributions must reproduce the above copyright notice and the + following disclaimer in the documentation and/or other materials + provided with the distribution. +* Neither the name of Realtek Semiconductor Corporation nor the names of its + suppliers may be used to endorse or promote products derived from this + software without specific prior written permission. +* No reverse engineering, decompilation, or disassembly of this software + is permitted. + +Limited patent license. Realtek Semiconductor Corporation grants a world-wide, +royalty-free, non-exclusive license under patents it now or hereafter +owns or controls to make, have made, use, import, offer to sell and +sell ("Utilize") this software, but solely to the extent that any +such patent is necessary to Utilize the software alone, or in +combination with an operating system licensed under an approved Open +Source license as listed by the Open Source Initiative at +http://opensource.org/licenses. The patent license shall not apply to +any other combinations which include this software. No hardware per +se is licensed hereunder. + +DISCLAIMER. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND +CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, +BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND +FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE +COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, +INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS +OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR +TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE +USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH +DAMAGE. diff --git a/sys/contrib/dev/rtw89fw/WHENCE b/sys/contrib/dev/rtw89fw/WHENCE new file mode 100644 index 000000000000..496ef115ef0b --- /dev/null +++ b/sys/contrib/dev/rtw89fw/WHENCE @@ -0,0 +1,8 @@ + +Driver: rtw89 - Realtek 802.11ax WLAN driver for RTL8852A + +File: rtw89/rtw8852a_fw.bin +File: rtw89/rtw8852c_fw.bin + +Licence: Redistributable. See LICENCE.rtlwifi_firmware.txt for details. + diff --git a/sys/contrib/dev/rtw89fw/rtw8852a_fw.bin b/sys/contrib/dev/rtw89fw/rtw8852a_fw.bin new file mode 100644 index 000000000000..00d139b3f2f1 Binary files /dev/null and b/sys/contrib/dev/rtw89fw/rtw8852a_fw.bin differ diff --git a/sys/contrib/dev/rtw89fw/rtw8852c_fw.bin b/sys/contrib/dev/rtw89fw/rtw8852c_fw.bin new file mode 100644 index 000000000000..86b634aeb69f Binary files /dev/null and b/sys/contrib/dev/rtw89fw/rtw8852c_fw.bin differ diff --git a/sys/modules/rtw89fw/Makefile b/sys/modules/rtw89fw/Makefile new file mode 100644 index 000000000000..2db828c06f00 --- /dev/null +++ b/sys/modules/rtw89fw/Makefile @@ -0,0 +1,7 @@ +# $FreeBSD$ + +SUBDIR= \ + rtw8852a \ + rtw8852c + +.include diff --git a/sys/modules/rtw89fw/Makefile.inc b/sys/modules/rtw89fw/Makefile.inc new file mode 100644 index 000000000000..96ab73502152 --- /dev/null +++ b/sys/modules/rtw89fw/Makefile.inc @@ -0,0 +1,17 @@ +# $FreeBSD$ +# +# Common rules for building firmware. Note this gets auto-included +# by the subdir Makefile's as a consequence of included bsd.kmod.mk. + +_NAME= rtw${NAME}_fw.bin + +IMG= ${_NAME} +KMOD= ${_NAME} + +CLEANFILES+= ${IMG} + +FIRMWS= ${IMG}:${IMG}:${VERSION} + +${IMG}: ${SRCTOP}/sys/contrib/dev/rtw89fw/${IMG} + cp ${.ALLSRC} ${.TARGET} + diff --git a/sys/modules/rtw89fw/rtw8852a/Makefile b/sys/modules/rtw89fw/rtw8852a/Makefile new file mode 100644 index 000000000000..7ed7ad1f6c71 --- /dev/null +++ b/sys/modules/rtw89fw/rtw8852a/Makefile @@ -0,0 +1,6 @@ +# $FreeBSD$ + +VERSION= 013360 +NAME= 8852a + +.include diff --git a/sys/modules/rtw89fw/rtw8852c/Makefile b/sys/modules/rtw89fw/rtw8852c/Makefile new file mode 100644 index 000000000000..7b871745cde4 --- /dev/null +++ b/sys/modules/rtw89fw/rtw8852c/Makefile @@ -0,0 +1,6 @@ +# $FreeBSD$ + +VERSION= 027200 +NAME= 8852c + +.include