From 76ad2755a29fcace1a948b4413313dfac3aff284 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Fri, 3 Mar 2023 21:42:25 +0100 Subject: [PATCH] brcm: Add nvram for the Lenovo Yoga Book X90F / X90L convertible Add a NVRAM file for the brcmfmac4356 wifi chip found on the mainboard of the Lenovo Yoga Book X90 convertible. This is based on a copy of the existing "brcmfmac4356-pcie.Xiaomi Inc-Mipad2.txt" NVRAM file with various parameters changed to match the Lenovo Yoga Book X90F / X90L. Signed-off-by: Hans de Goede --- WHENCE | 1 + ...tel Corporation-CHERRYVIEW D1 PLATFORM.txt | 139 ++++++++++++++++++ 2 files changed, 140 insertions(+) create mode 100644 brcm/brcmfmac4356-pcie.Intel Corporation-CHERRYVIEW D1 PLATFORM.txt diff --git a/WHENCE b/WHENCE index 005438ee..2f12a13a 100644 --- a/WHENCE +++ b/WHENCE @@ -2727,6 +2727,7 @@ Link: brcm/brcmfmac43455-sdio.Raspberry\ Pi\ Foundation-Raspberry\ Pi\ 4\ Model\ Link: brcm/brcmfmac43455-sdio.Raspberry\ Pi\ Foundation-Raspberry\ Pi\ Compute\ Module\ 4.txt -> brcmfmac43455-sdio.raspberrypi,4-model-b.txt File: "brcm/brcmfmac43455-sdio.MINIX-NEO Z83-4.txt" File: "brcm/brcmfmac4356-pcie.gpd-win-pocket.txt" +File: "brcm/brcmfmac4356-pcie.Intel Corporation-CHERRYVIEW D1 PLATFORM.txt" File: "brcm/brcmfmac4356-pcie.Xiaomi Inc-Mipad2.txt" File: brcm/brcmfmac4356-sdio.AP6356S.txt Link: brcm/brcmfmac4356-sdio.firefly,firefly-rk3399.txt -> brcmfmac4356-sdio.AP6356S.txt diff --git a/brcm/brcmfmac4356-pcie.Intel Corporation-CHERRYVIEW D1 PLATFORM.txt b/brcm/brcmfmac4356-pcie.Intel Corporation-CHERRYVIEW D1 PLATFORM.txt new file mode 100644 index 00000000..39b0083a --- /dev/null +++ b/brcm/brcmfmac4356-pcie.Intel Corporation-CHERRYVIEW D1 PLATFORM.txt @@ -0,0 +1,139 @@ +# SPDX-License-Identifier: GPL-2.0+ +# (C) Copyright 2018 Linaro Ltd +# NVRAM config file for the brcmfmac4356 PCI wifi chip found on +# the Lenovo Yoga Book X90F / X90L convertible's mainboard +aa2g=3 +aa5g=3 +aga0=2 +aga1=2 +agbg0=2 +agbg1=2 +antswitch=0 +AvVmid_c0=2,140,2,145,2,145,2,145,2,145 +AvVmid_c1=2,140,2,145,2,145,2,145,2,145 +AvVmid_c2=0,0,0,0,0,0,0,0,0,0 +boardflags=0x02401201 +boardflags2=0x00802000 +boardflags3=0x4808018a +boardrev=0x1101 +boardtype=0x0732 +btc_mode=1 +cckbw202gpo=0x0000 +cckbw20ul2gpo=0x0000 +cckdigfilttype=1 +ccode=X2 +devid=0x43ec +dot11agduphrpo=0x0 +dot11agduplrpo=0x0 +dot11agofdmhrbw202gpo=0x3332 +dynamicsarctrl_2g=0xb8b8 +dynamicsarctrl_5g=0xa4a4 +epsdelta2g0=0 +epsdelta2g1=0 +extpagain2g=2 +extpagain5g=2 +femctrl=10 +ltecxmux=0x534201 +macaddr=00:90:4c:c5:12:38 +manfid=0x2d0 +maxp2ga0=78 +maxp2ga1=78 +maxp5ga0=80,80,80,80 +maxp5ga1=80,80,80,80 +mcsbw202gpo=0xa9755422 +mcsbw205ghpo=0xa9844443 +mcsbw205glpo=0xa9844443 +mcsbw205gmpo=0xa9844443 +mcsbw402gpo=0xa9855422 +mcsbw405ghpo=0xa9955553 +mcsbw405glpo=0xa9955553 +mcsbw405gmpo=0xa9955553 +mcsbw805ghpo=0xba955555 +mcsbw805glpo=0xba955555 +mcsbw805gmpo=0xba955555 +mcslr5ghpo=0x0000 +mcslr5glpo=0x0000 +mcslr5gmpo=0x0000 +nocrc=1 +ofdmfilttype=1 +ofdmlrbw202gpo=0x0022 +otpimagesize=484 +pa2ga0=-159,5988,-685 +pa2ga1=-158,6026,-687 +pa2gccka0=-128,6716,-762 +pa2gccka1=-124,6801,-767 +pa5ga0=-168,6003,-705,-175,6041,-714,-181,6102,-720,-182,6062,-717 +pa5ga1=-182,6164,-738,-185,6181,-741,-185,6217,-742,-187,6090,-730 +paprdis=0 +pdgain2g=4 +pdgain5g=4 +pdoffset40ma0=0x0000 +pdoffset40ma1=0x0000 +pdoffset80ma0=0x0000 +pdoffset80ma1=0x0000 +pdoffsetcckma0=0x0 +pdoffsetcckma1=0x0 +phy4350_ss_opt=1 +phycal_tempdelta=25 +rawtempsense=0x1ff +regrev=1 +rssicorrnorm5g_c0=3,3,3,5,5,5,9,9,9,9,9,9 +rssicorrnorm5g_c1=2,2,2,4,4,4,8,8,8,8,8,8 +rssicorrnorm_c0=3,3 +rssicorrnorm_c1=3,3 +rxchain=3 +rxgains2gelnagaina0=3 +rxgains2gelnagaina1=3 +rxgains2gtrelnabypa0=1 +rxgains2gtrelnabypa1=1 +rxgains2gtrisoa0=6 +rxgains2gtrisoa1=6 +rxgains5gelnagaina0=3 +rxgains5gelnagaina1=3 +rxgains5ghelnagaina0=3 +rxgains5ghelnagaina1=3 +rxgains5ghtrelnabypa0=1 +rxgains5ghtrelnabypa1=1 +rxgains5ghtrisoa0=6 +rxgains5ghtrisoa1=6 +rxgains5gmelnagaina0=3 +rxgains5gmelnagaina1=3 +rxgains5gmtrelnabypa0=1 +rxgains5gmtrelnabypa1=1 +rxgains5gmtrisoa0=6 +rxgains5gmtrisoa1=6 +rxgains5gtrelnabypa0=1 +rxgains5gtrelnabypa1=1 +rxgains5gtrisoa0=5 +rxgains5gtrisoa1=5 +sb20in40hrpo=0x0 +sb20in40lrpo=0x0 +sb20in80and160hr5ghpo=0x0 +sb20in80and160hr5glpo=0x0 +sb20in80and160hr5gmpo=0x0 +sb20in80and160lr5ghpo=0x0 +sb20in80and160lr5glpo=0x0 +sb20in80and160lr5gmpo=0x0 +sb40and80hr5ghpo=0x0 +sb40and80hr5glpo=0x0 +sb40and80hr5gmpo=0x0 +sb40and80lr5ghpo=0x0 +sb40and80lr5glpo=0x0 +sb40and80lr5gmpo=0x0 +sromrev=11 +subband5gver=0x4 +swctrlmap_2g=0x00001040,0xC0300000,0x40200000,0x803020,0x0ff +swctrlmap_5g=0x00000202,0x00000101,0x00000202,0x000000,0x047 +swctrlmapext_2g=0x00000000,0x00000000,0x00000000,0x000000,0x000 +swctrlmapext_5g=0x00000000,0x00000000,0x00000000,0x000000,0x000 +tempoffset=255 +temps_hysteresis=15 +temps_period=15 +tempthresh=120 +tssipos2g=1 +tssipos5g=1 +tworangetssi2g=0 +tworangetssi5g=0 +txchain=3 +vendid=0x14e4 +xtalfreq=37400