From 7220731d636580e6522dd6747cd09a341902c719 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Sat, 18 Dec 2021 20:11:05 +0100 Subject: [PATCH 1/3] brcm: Add nvram for the Asus TF103C tablet Add a NVRAM file for the brcmfmac43340 wifi/bt chip found on the Asus TF103C tablet. This is based on copy of the existing brcm/brcmfmac43340-sdio.pov-tab-p1006w-data.txt NVRAM file with some of the calibration values adjusted for the Asus TF103C tablet. Signed-off-by: Hans de Goede --- WHENCE | 1 + ...340-sdio.ASUSTeK COMPUTER INC.-TF103CE.txt | 103 ++++++++++++++++++ 2 files changed, 104 insertions(+) create mode 100644 brcm/brcmfmac43340-sdio.ASUSTeK COMPUTER INC.-TF103CE.txt diff --git a/WHENCE b/WHENCE index ef43a82..13fab41 100644 --- a/WHENCE +++ b/WHENCE @@ -2786,6 +2786,7 @@ Link: brcm/brcmfmac54591-pcie.clm_blob -> ../cypress/cyfmac54591-pcie.clm_blob Licence: Redistributable. See LICENCE.cypress for details. File: "brcm/brcmfmac4330-sdio.Prowise-PT301.txt" +File: "brcm/brcmfmac43340-sdio.ASUSTeK COMPUTER INC.-TF103CE.txt" File: "brcm/brcmfmac43340-sdio.meegopad-t08.txt" File: "brcm/brcmfmac43340-sdio.pov-tab-p1006w-data.txt" File: "brcm/brcmfmac43340-sdio.predia-basic.txt" diff --git a/brcm/brcmfmac43340-sdio.ASUSTeK COMPUTER INC.-TF103CE.txt b/brcm/brcmfmac43340-sdio.ASUSTeK COMPUTER INC.-TF103CE.txt new file mode 100644 index 0000000..a2e613d --- /dev/null +++ b/brcm/brcmfmac43340-sdio.ASUSTeK COMPUTER INC.-TF103CE.txt @@ -0,0 +1,103 @@ +# SPDX-License-Identifier: GPL-2.0+ +# (C) Copyright 2018 Linaro Ltd +# NVRAM config file for the 43430 WiFi/BT chip as found on the Asus TF103C +# tablet's mainboard +aa2g=1 +aci_detect_en_2g=1 +ag0=255 +boardflags=0x0090201 +boardnum=22 +boardrev=0x1203 +boardtype=0x0653 +btc_params95=0x09 +cck2gpo=0x0000 +cckPwrOffset=3 +cckpapden=0 +ccode=X2 +dacrate2xen=1 +devid=0x4386 +dlocalidx5g=70 +dlorange_lowlimit=5 +gain=32 +gain_settle_dly_2g=4 +gain_settle_dly_5g=4 +interference=3 +iqcalidx5g=50 +iqlocalidx5g=40 +loflag=0 +lpbckmode5g=1 +macaddr=00:90:4c:c5:12:38 +manfid=0x2d0 +maxp2ga0=0x46 +maxp5ga0=0x36 +maxp5gha0=0x36 +maxp5gla0=0x36 +mcs2gpo0=0x8888 +mcs2gpo1=0x8888 +mcs5ghpo0=0x4444 +mcs5ghpo1=0x4444 +mcs5ghpo2 =0x3333 +mcs5ghpo3 = 0x3333 +mcs5glpo0=0x4444 +mcs5glpo1=0x4444 +mcs5glpo2=0x3333 +mcs5glpo3 =0x3333 +mcs5gpo0=0x4444 +mcs5gpo1=0x4444 +mcs5gpo2=0x3333 +mcs5gpo3 =0x3333 +nocrc=1 +noise_cal_high_gain_2g=73 +noise_cal_high_gain_5g=73 +noise_cal_nf_substract_val_2g=346 +noise_cal_nf_substract_val_5g=346 +noise_cal_po_2g=-1 +noise_cal_po_40_2g=-1 +noise_cal_po_40_5g=-1 +noise_cal_po_5g=-1 +ofdm2gpo=0x66666666 +ofdm5ghpo=0x00000000 +ofdm5glpo=0x00000000 +ofdm5gpo=0x00000000 +pa0b0=0x19f0 +pa0b1=0xfd03 +pa0b2=0xff64 +pa0itssit=0x20 +pa1b0=0x1477 +pa1b1=0xfd80 +pa1b2=0xff3d +pa1hib0=0x13c9 +pa1hib1=0xfdb2 +pa1hib2=0xff59 +pa1lob0=0x1528 +pa1lob1=0xfd70 +pa1lob2=0xff45 +papden2g=1 +papden5g=1 +prodid=0x0653 +rssisav2g=0x1 +rssisav5g=0x3 +rssismc2g=0x8 +rssismc5g=0x7 +rssismf2g=0xf +rssismf5g=0xf +rxpo5g=0 +sd_gpdc=0 +sd_gpout=4 +sd_level_trigger=1 +sd_oobonly=1 +sromrev=3 +swctrlmap_2g=0x00080008,0x00100010,0x00080008,0x011010,0x11f +swctrlmap_5g=0x00020002,0x00040004,0x00020002,0x011010,0x2fe +triso2g=8 +triso5g=8 +tssifloor2g=64 +tssifloor5gh=32 +tssifloor5gl=32 +tssifloor5gm=34 +txalpfbyp=1 +txalpfpu=1 +txiqlopapu2g=0 +txiqlopapu5g=0 +vendid=0x14e4 +xtalfreq=37400 From d4a422496503cf59b4f650f3824851c4173e4f4f Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Sat, 18 Dec 2021 20:13:10 +0100 Subject: [PATCH 2/3] brcm: Add nvram for the Xiaomi Mi Pad 2 tablet Add a NVRAM file for the brcmfmac43340 wifi/bt chip found on the Xiaomi Mi Pad 2 tablet. This is based on copy of the existing brcm/brcmfmac4356-pcie.gpd-win-pocket.txt NVRAM file with some of the calibration values adjusted for the Xiaomi Mi Pad 2 tablet. Signed-off-by: Hans de Goede --- WHENCE | 1 + brcm/brcmfmac4356-pcie.Xiaomi Inc-Mipad2.txt | 137 +++++++++++++++++++ 2 files changed, 138 insertions(+) create mode 100644 brcm/brcmfmac4356-pcie.Xiaomi Inc-Mipad2.txt diff --git a/WHENCE b/WHENCE index 13fab41..caf790a 100644 --- a/WHENCE +++ b/WHENCE @@ -2816,6 +2816,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.Xiaomi Inc-Mipad2.txt" File: brcm/brcmfmac4356-sdio.AP6356S.txt Link: brcm/brcmfmac4356-sdio.firefly,firefly-rk3399.txt -> brcmfmac4356-sdio.AP6356S.txt Link: brcm/brcmfmac4356-sdio.khadas,vim2.txt -> brcmfmac4356-sdio.AP6356S.txt diff --git a/brcm/brcmfmac4356-pcie.Xiaomi Inc-Mipad2.txt b/brcm/brcmfmac4356-pcie.Xiaomi Inc-Mipad2.txt new file mode 100644 index 0000000..073724a --- /dev/null +++ b/brcm/brcmfmac4356-pcie.Xiaomi Inc-Mipad2.txt @@ -0,0 +1,137 @@ +# SPDX-License-Identifier: GPL-2.0+ +# (C) Copyright 2018 Linaro Ltd +# NVRAM config file for the brcmfmac4356 PCI wifi chip found on the Xiaomi +# Mi Pad 2 tablet's mainboard +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 +aa2g=3 +aa5g=3 +aga0=2 +aga1=2 +agbg0=2 +agbg1=2 +antswitch=0 +boardflags2=0x00802000 +boardflags3=0x4800018a +boardflags=0x12401201 +boardrev=0x1101 +boardtype=0x0732 +btc_mode=1 +cckbw202gpo=0x0000 +cckbw20ul2gpo=0x0000 +cckdigfilttype=2 +ccode=X2 +devid=0x43ec +dot11agduphrpo=0x0 +dot11agduplrpo=0x0 +dot11agofdmhrbw202gpo=0x4322 +epsdelta2g0=0 +epsdelta2g1=0 +extpagain2g=2 +extpagain5g=2 +femctrl=10 +ltecxmux=0x534201 +macaddr=00:90:4c:19:80:01 +manfid=0x2d0 +maxp2ga0=78 +maxp2ga1=78 +maxp5ga0=78,78,78,78 +maxp5ga1=78,78,78,78 +mcsbw202gpo=0xa9643221 +mcsbw205ghpo=0xa8643221 +mcsbw205glpo=0xa8643221 +mcsbw205gmpo=0xa8643221 +mcsbw402gpo=0xcb865443 +mcsbw405ghpo=0xa8643221 +mcsbw405glpo=0xa8643221 +mcsbw405gmpo=0xa8643221 +mcsbw805ghpo=0xa8643221 +mcsbw805glpo=0xa8643221 +mcsbw805gmpo=0xa8643221 +mcslr5ghpo=0x0000 +mcslr5glpo=0x0000 +mcslr5gmpo=0x0000 +nocrc=1 +ofdmfilttype=1 +ofdmlrbw202gpo=0x0011 +otpimagesize=484 +pa2ga0=0xFF8F,0x16B4,0xFD8E +pa2ga1=0xFF5E,0x17A1,0xFD45 +pa2gccka0=0xFF97,0x1917,0xFD40 +pa2gccka1=0xFF99,0x1C42,0xFCF4 +pa5ga0=0xFF41,0x16C3,0xFD38,0xFF3B,0x164F,0xFD40,0xFF46,0x16FA,0xFD32,0xFF38,0x15F3,0xFD4B +pa5ga1=0xFF48,0x17D7,0xFD21,0xFF4E,0x180A,0xFD23,0xFF4C,0x17AA,0xFD2A,0xFF55,0x17EE,0xFD31 +paprdis=0 +pdgain2g=4 +pdgain5g=4 +pdoffset40ma0=0x3333 +pdoffset40ma1=0x3333 +pdoffset80ma0=0x5555 +pdoffset80ma1=0x5555 +pdoffsetcckma0=0x0 +pdoffsetcckma1=0x0 +phy4350_ss_opt=1 +phycal_tempdelta=25 +rawtempsense=0x1ff +regrev=1 +rssicorrnorm5g_c0=1,2,3,1,2,3,1,2,3,1,2,3 +rssicorrnorm5g_c1=1,2,3,1,2,3,1,2,3,1,2,3 +rssicorrnorm_c0=4,4 +rssicorrnorm_c1=4,4 +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,0x05050000,0x01010000,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 From c58f00165b28f2ec094cafbff14b18196e1bec35 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Mon, 6 Jun 2022 13:32:21 +0200 Subject: [PATCH 3/3] brcm: Add nvram for Lenovo Yoga Tablet 2 830F/L and 1050F/L tablets Add a NVRAM file for the brcmfmac43241b4 wifi chip found on the mainboard of Lenovo Yoga Tablet 2 830F/L and 1050F/L tablets. This is based on a copy of the existing brcmfmac43430a0-sdio.ilife-S806.txt NVRAM file with various parameters changed to match the Lenovo Yoga Tablet 2 series. Signed-off-by: Hans de Goede --- WHENCE | 1 + ...dio.Intel Corp.-VALLEYVIEW C0 PLATFORM.txt | 149 ++++++++++++++++++ 2 files changed, 150 insertions(+) create mode 100644 brcm/brcmfmac43241b4-sdio.Intel Corp.-VALLEYVIEW C0 PLATFORM.txt diff --git a/WHENCE b/WHENCE index caf790a..ab049cd 100644 --- a/WHENCE +++ b/WHENCE @@ -2785,6 +2785,7 @@ Link: brcm/brcmfmac54591-pcie.clm_blob -> ../cypress/cyfmac54591-pcie.clm_blob Licence: Redistributable. See LICENCE.cypress for details. +File: "brcm/brcmfmac43241b4-sdio.Intel Corp.-VALLEYVIEW C0 PLATFORM.txt" File: "brcm/brcmfmac4330-sdio.Prowise-PT301.txt" File: "brcm/brcmfmac43340-sdio.ASUSTeK COMPUTER INC.-TF103CE.txt" File: "brcm/brcmfmac43340-sdio.meegopad-t08.txt" diff --git a/brcm/brcmfmac43241b4-sdio.Intel Corp.-VALLEYVIEW C0 PLATFORM.txt b/brcm/brcmfmac43241b4-sdio.Intel Corp.-VALLEYVIEW C0 PLATFORM.txt new file mode 100644 index 0000000..e16cc89 --- /dev/null +++ b/brcm/brcmfmac43241b4-sdio.Intel Corp.-VALLEYVIEW C0 PLATFORM.txt @@ -0,0 +1,149 @@ +# SPDX-License-Identifier: GPL-2.0+ +# (C) Copyright 2018 Linaro Ltd +# NVRAM file for the brcmfmac43241b4 wifi on the Lenovo Yoga Tablet 2 1050F/L +aa2g=3 +aa5g=3 +ag0=0x2 +ag1=0x2 +ag2=0xff +ag3=0xff +antswctl2g=0x9 +antswctl5g=0xa +antswitch=0x0 +boardflags2=0x00800000 +boardflags=0x201 +boardrev=0x1304 +boardtype=0x5f0 +cckbw202gpo=0x2222 +cckbw20ul2gpo=0x2222 +ccode=DE +devid=0x4374 +extpagain2g=2 +extpagain5g=2 +itt2ga0=0x20 +itt2ga1=0x20 +itt5ga0=0x3e +itt5ga1=0x3e +ledbh0=0xff +ledbh1=0xff +ledbh2=0xff +ledbh3=0xff +leddc=0xffff +leg40dup2gpo=0x2 +legofdmbw202gpo=0x44444444 +legofdmbw205ghpo=0x33333333 +legofdmbw205glpo=0x33333333 +legofdmbw205gmpo=0x33333333 +legofdmbw20ul2gpo=0x99992222 +legofdmbw20ul5ghpo=0x33333333 +legofdmbw20ul5glpo=0x33333333 +legofdmbw20ul5gmpo=0x33333333 +macaddr=00:90:4c:c5:12:38 +maxp2ga0=72 +maxp2ga1=72 +maxp5ga0=72 +maxp5ga1=72 +maxp5gha0=72 +maxp5gha1=72 +maxp5gla0=72 +maxp5gla1=72 +mcs32po=0x5555 +mcsbw202gpo=0x77744444 +mcsbw205ghpo=0x88833333 +mcsbw205glpo=0x88833333 +mcsbw205gmpo=0x88833333 +mcsbw20ul2gpo=0x99999222 +mcsbw20ul5ghpo=0x88833333 +mcsbw20ul5glpo=0x88833333 +mcsbw20ul5gmpo=0x88833333 +mcsbw402gpo=0x99999222 +mcsbw405ghpo=0x88833333 +mcsbw405glpo=0x88833333 +mcsbw405gmpo=0x88833333 +muxenab=0x0 +nocrc=1 +noisecaloffset5g=14 +noisecaloffset=14 +otpimagesize=232 +pa0itssit=62 +pa1itssit=62 +pa2gw0a0=0xFFD0 +pa2gw0a0_lo=0xFFFA +pa2gw0a1=0xFFC9 +pa2gw0a1_lo=0xFFEE +pa2gw1a0=0x15B3 +pa2gw1a0_lo=0x0766 +pa2gw1a1=0x15B5 +pa2gw1a1_lo=0x07AD +pa2gw2a0=0xFEDA +pa2gw2a0_lo=0xFF7B +pa2gw2a1=0xFED4 +pa2gw2a1_lo=0xFF6E +pa5ghw0a0=0xFFC6 +pa5ghw0a0_lo=0xFFDD +pa5ghw0a1=0xFFCE +pa5ghw0a1_lo=0xFFDE +pa5ghw1a0=0x1312 +pa5ghw1a0_lo=0x08DD +pa5ghw1a1=0x1356 +pa5ghw1a1_lo=0x09D1 +pa5ghw2a0=0xFEED +pa5ghw2a0_lo=0xFF4D +pa5ghw2a1=0xFEF5 +pa5ghw2a1_lo=0xFF46 +pa5glw0a0=0xFFCA +pa5glw0a0_lo=0xFFE1 +pa5glw0a1=0xFFCB +pa5glw0a1_lo=0xFFEA +pa5glw1a0=0x1382 +pa5glw1a0_lo=0x0934 +pa5glw1a1=0x135D +pa5glw1a1_lo=0x09AD +pa5glw2a0=0xFEEF +pa5glw2a0_lo=0xFF4A +pa5glw2a1=0xFEF6 +pa5glw2a1_lo=0xFF4E +pa5gw0a0=0xFFC5 +pa5gw0a0_lo=0xFFF0 +pa5gw0a1=0xFFCA +pa5gw0a1_lo=0xFFD4 +pa5gw1a0=0x1305 +pa5gw1a0_lo=0x08D0 +pa5gw1a1=0x1332 +pa5gw1a1_lo=0x09B0 +pa5gw2a0=0xFEEA +pa5gw2a0_lo=0xFF5C +pa5gw2a1=0xFEF9 +pa5gw2a1_lo=0xFF3F +pdetrange2g=2 +pdetrange5g=2 +regrev=7 +rssicorrnorm_core0=0x2004 +rssicorrnorm_core0_5g1=0x2203 +rssicorrnorm_core0_5g2=0x1f03 +rssicorrnorm_core0_5g3=0x1903 +rssicorrnorm_core1=0x2004 +rssicorrnorm_core1_5g1=0x2a03 +rssicorrnorm_core1_5g2=0x2303 +rssicorrnorm_core1_5g3=0x1d03 +rxchain=0x3 +sd_gpdc=0 +sd_gpout=0 +sd_gpval=1 +sd_oobonly=0 +sromrev=9 +subband5gver=0 +tempthresh=120 +triso2g=4 +triso5g=5 +triso5g_h_c0=5 +triso5g_h_c1=5 +triso5g_l_c0=5 +triso5g_l_c1=5 +triso5g_m_c0=5 +triso5g_m_c1=5 +tssipos2g=1 +tssipos5g=1 +txchain=0x3 +usbepnum=0x2 +xtalfreq=37400