Skip to content

Commit

Permalink
add files realtek wants us to keep secret
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelscholle committed Jun 14, 2024
1 parent de01894 commit 515eca5
Show file tree
Hide file tree
Showing 4 changed files with 379 additions and 0 deletions.
52 changes: 52 additions & 0 deletions non-public/PHY_REG_PG.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
//RL6286_MAC_PHY_Parameter_v018_20121207
//=========================
// PHY_related MAC register by channel
// Related from RL6286 Normal driver for long distance throughput required
//=========================

//Offset talbe_0 for for EEPROM_0xC1[bit0~2]= 0 Tab_0 (2G)
// For Ant A
0xc20 0x7f7f7f7f 0x00020406 // TXAGC codeword (H-byte->L-byte)={11M 5.5M 2M 1M}
0xc24 0x7f7f7f7f 0x0c0c0e0e // TXAGC codeword (H-byte->L-byte)={18M 12M 9M 6M}
0xc28 0x7f7f7f7f 0x00020608 // TXAGC codeword (H-byte->L-byte)={54M 48M 36M 24M}
0xc2c 0x7f7f7f7f 0x0c0e1010 // TXAGC codeword (H-byte->L-byte)=HT_{MCS3 MCS2 MCS1 MCS0}
0xc30 0x7f7f7f7f 0x00020408 // TXAGC codeword (H-byte->L-byte)=HT_{MCS7 MCS6 MCS5 MCS4}
0xc34 0x7f7f7f7f 0x0c0e1010 // TXAGC codeword (H-byte->L-byte)=HT_{MCS11 MCS10 MCS9 MCS8}
0xc38 0x7f7f7f7f 0x00020408 // TXAGC codeword (H-byte->L-byte)=HT_{MCS15 MCS14 MCS13 MCS12}

// For Ant B
0xe20 0x7f7f7f7f 0x00020406 // TXAGC codeword (H-byte->L-byte)={11M 5.5M 2M 1M}
0xe24 0x7f7f7f7f 0x0c0c0e0e // TXAGC codeword (H-byte->L-byte)={18M 12M 9M 6M}
0xe28 0x7f7f7f7f 0x00020608 // TXAGC codeword (H-byte->L-byte)={54M 48M 36M 24M}
0xe2c 0x7f7f7f7f 0x0c0e1010 // TXAGC codeword (H-byte->L-byte)=HT_{MCS3 MCS2 MCS1 MCS0}
0xe30 0x7f7f7f7f 0x00020408 // TXAGC codeword (H-byte->L-byte)=HT_{MCS7 MCS6 MCS5 MCS4}
0xe34 0x7f7f7f7f 0x0c0e1010 // TXAGC codeword (H-byte->L-byte)=HT_{MCS11 MCS10 MCS9 MCS8}
0xe38 0x7f7f7f7f 0x00020408 // TXAGC codeword (H-byte->L-byte)=HT_{MCS15 MCS14 MCS13 MCS12}

//Offset talbe_1 for for EEPROM_0xC1[bit0~2]= 0 Tab_1 (5G)
// For Ant A
0xc24 0x7f7f7f7f 0x0c0c0e0e // TXAGC codeword (H-byte->L-byte)={8M 12M 9M 6M}
0xc28 0x7f7f7f7f 0x0002060a // TXAGC codeword (H-byte->L-byte)={54M 48M 36M 24M}
0xc2c 0x7f7f7f7f 0x0c0e1010 // TXAGC codeword (H-byte->L-byte)=HT_{MCS3 MCS2 MCS1 MCS0}
0xc30 0x7f7f7f7f 0x00020408 // TXAGC codeword (H-byte->L-byte)=HT_{MCS7 MCS6 MCS5 MCS4}
0xc34 0x7f7f7f7f 0x0c0e1010 // TXAGC codeword (H-byte->L-byte)=HT_{MCS11 MCS10 MCS9 MCS8}
0xc38 0x7f7f7f7f 0x00020408 // TXAGC codeword (H-byte->L-byte)=HT_{MCS15 MCS14 MCS13 MCS12}
0xc3c 0x7f7f7f7f 0x0c0e1010 // TXAGC codeword (H-byte->L-byte)=VHT1SS_{MCS3 MCS2 MCS1 MCS0}
0xc40 0x7f7f7f7f 0x00020408 // TXAGC codeword (H-byte->L-byte)=VHT1SS_{MCS7 MCS6 MCS5 MCS4}
0xc44 0x7f7f7f7f 0x10100402 // TXAGC codeword (H-byte->L-byte)={VHT2SS{MCS1 MCS0} VHT1SS_{MC9 MCS8}}
0xc48 0x7f7f7f7f 0x04080c0e // TXAGC codeword (H-byte->L-byte)=VHT2SS_{MCS5 MCS4 MCS3 MCS2}
0xc4c 0x7f7f7f7f 0x04020002 // TXAGC codeword (H-byte->L-byte)=VHT2SS_{MCS9 MCS8 MCS7 MCS6}

// For Ant B
0xe24 0x7f7f7f7f 0x0c0c0e0e // TXAGC codeword (H-byte->L-byte)={8M 12M 9M 6M}
0xe28 0x7f7f7f7f 0x0002060a // TXAGC codeword (H-byte->L-byte)={54M 48M 36M 24M}
0xe2c 0x7f7f7f7f 0x0c0e1010 // TXAGC codeword (H-byte->L-byte)=HT_{MCS3 MCS2 MCS1 MCS0}
0xe30 0x7f7f7f7f 0x00020408 // TXAGC codeword (H-byte->L-byte)=HT_{MCS7 MCS6 MCS5 MCS4}
0xe34 0x7f7f7f7f 0x0c0e1010 // TXAGC codeword (H-byte->L-byte)=HT_{MCS11 MCS10 MCS9 MCS8}
0xe38 0x7f7f7f7f 0x00020408 // TXAGC codeword (H-byte->L-byte)=HT_{MCS15 MCS14 MCS13 MCS12}
0xe3c 0x7f7f7f7f 0x0c0e1010 // TXAGC codeword (H-byte->L-byte)=VHT1SS_{MCS3 MCS2 MCS1 MCS0}
0xe40 0x7f7f7f7f 0x00020408 // TXAGC codeword (H-byte->L-byte)=VHT1SS_{MCS7 MCS6 MCS5 MCS4}
0xe44 0x7f7f7f7f 0x10100402 // TXAGC codeword (H-byte->L-byte)={VHT2SS{MCS1 MCS0} VHT1SS_{MC9 MCS8}}
0xe48 0x7f7f7f7f 0x04080c0e // TXAGC codeword (H-byte->L-byte)=VHT2SS_{MCS5 MCS4 MCS3 MCS2}
0xe4c 0x7f7f7f7f 0x04020002 // TXAGC codeword (H-byte->L-byte)=VHT2SS_{MCS9 MCS8 MCS7 MCS6}
0xffff 0xffff
327 changes: 327 additions & 0 deletions non-public/TXPWR_LMT.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,327 @@
//RL6286_MAC_PHY_Parameter_v024_20130125
//RL6286_MAC_PHY_Parameter_v024_20130125
// Format:
//
// Note: The order of the tables MUST match the definition in WLAN driver.
//
// Power Limit Table Parameter Definition
// Band: 2.4G/5G
// Bandwidth: 20/40/80/160 MHZ
// RF Path: 1/2/3/4 Transmit RF
// Rate Section: CCK/OFDM/HT/VHT
// Regulation: FCC/ETSI/MKK
//
// Description:
// 1. IF in 1T test
// 2. power is real dBm.
// 3. // is for comment.
//
// NA is non-release channle.
//
//
//Table 1: ===========================================
//
## 2.4G, 20M, 1T, CCK, //(1M;2M;5.5M;11M)
## START
## #3# FCC ETSI MKK
CH01 18 16 16
CH02 18 16 16
CH03 18 16 16
CH04 18 16 16
CH05 18 16 16
CH06 18 16 16
CH07 18 16 16
CH08 18 16 16
CH09 18 16 16
CH10 18 16 16
CH11 18 16 16
CH12 NA 16 16
CH13 NA 16 16
CH14 NA NA 16
## END
//
//Table 2: ===========================================
//
## 2.4G, 20M, 1T, OFDM, //(6M;9M;12M;18M;24M;36M;48M;54M)
## START
## #3# FCC ETSI MKK
CH01 17 16 16
CH02 18 16 16
CH03 18 16 16
CH04 18 16 16
CH05 18 16 16
CH06 18 16 16
CH07 18 16 16
CH08 18 16 16
CH09 18 16 16
CH10 18 16 16
CH11 16 16 16
CH12 NA 16 16
CH13 NA 16 16
CH14 NA NA NA
## END
//
//Table 3: ===========================================
//
## 2.4G, 20M, 1T, HT, //(MCS0~MCS7)
## START
## #3# FCC ETSI MKK
CH01 17 16 16
CH02 18 16 16
CH03 18 16 16
CH04 18 16 16
CH05 18 16 16
CH06 18 16 16
CH07 18 16 16
CH08 18 16 16
CH09 18 16 16
CH10 18 16 16
CH11 16 16 16
CH12 NA 16 16
CH13 NA 16 16
CH14 NA NA NA
## END
//
//Table 4: ===========================================
//
## 2.4G, 20M, 2T, HT, //(MCS8~MCS15)
## START
## #3# FCC ETSI MKK
CH01 16 16 16
CH02 17 16 16
CH03 17 16 16
CH04 17 16 16
CH05 17 16 16
CH06 17 16 16
CH07 17 16 16
CH08 17 16 16
CH09 17 16 16
CH10 17 16 16
CH11 15 16 16
CH12 NA 16 16
CH13 NA 16 16
CH14 NA NA NA
## END
//
//Table 5: ===========================================
//
## 2.4G, 40M, 1T, HT, //(MCS0~MCS7)
## START
## #3# FCC ETSI MKK
CH01 NA NA NA
CH02 NA NA NA
CH03 16 16 16
CH04 18 16 16
CH05 18 16 16
CH06 18 16 16
CH07 18 16 16
CH08 18 16 16
CH09 18 16 16
CH10 18 16 16
CH11 16 16 16
CH12 NA 16 16
CH13 NA 16 16
CH14 NA NA NA
## END
//
//Table 6: ===========================================
//
## 2.4G, 40M, 2T, HT, //(MCS8~MCS15)
## START
## #3# FCC ETSI MKK
CH01 NA NA NA
CH02 NA NA NA
CH03 15 15 15
CH04 17 15 15
CH05 17 15 15
CH06 17 15 15
CH07 17 15 15
CH08 17 15 15
CH09 17 15 15
CH10 17 15 15
CH11 15 15 15
CH12 NA 16 16
CH13 NA 16 16
CH14 NA NA NA
## END
//
//Table 7: ===========================================
//
## 5G, 20M, 1T, OFDM, //(6M;9M;12M;18M;24M;36M;48M;54M)
## START
## #3# FCC ETSI MKK
//5G Band 1
CH36 15 16 16
CH40 15 16 16
CH44 15 16 16
CH48 15 16 16
//5G Band 2
CH52 18 16 16
CH56 17 16 16
CH60 16 16 16
CH64 14 16 16
//5G Band 3
CH100 15 16 16
CH104 15 16 16
CH108 16 16 16
CH112 17 16 16
CH116 17 16 16
CH120 18 16 16
CH124 17 16 16
CH128 16 16 16
CH132 15 16 16
CH136 15 16 16
CH140 14 16 16
//5G Band 4
CH149 18 16 NA
CH153 18 16 NA
CH157 18 16 NA
CH161 18 16 NA
CH165 18 16 NA
## END
//
//Table 8: ======================================
//
## 5G, 20M, 1T, HT, //(MCS0~MCS7)
## START
## #3# FCC ETSI MKK
//5G Band 1
CH36 15 16 16
CH40 15 16 16
CH44 15 16 16
CH48 15 16 16
//5G Band 2
CH52 18 16 16
CH56 17 16 16
CH60 16 16 16
CH64 14 16 16
//5G Band 3
CH100 15 16 16
CH104 15 16 16
CH108 16 16 16
CH112 17 16 16
CH116 17 16 16
CH120 18 16 16
CH124 17 16 16
CH128 16 16 16
CH132 15 16 16
CH136 15 16 16
CH140 14 16 16
//5G Band 4
CH149 18 16 NA
CH153 18 16 NA
CH157 18 16 NA
CH161 18 16 NA
CH165 18 16 NA
## END
//
//Table 9: ===========================================
//
## 5G, 20M, 2T, HT, //(MCS8~MCS15)
## START
## #3# FCC ETSI MKK
//5G Band 1
CH36 14 15 15
CH40 14 15 15
CH44 14 15 15
CH48 14 15 15
//5G Band 2
CH52 17 15 15
CH56 16 15 15
CH60 15 15 15
CH64 13 15 15
//5G Band 3
CH100 14 15 15
CH104 14 15 15
CH108 15 15 15
CH112 16 15 15
CH116 16 15 15
CH120 17 15 15
CH124 16 15 15
CH128 15 15 15
CH132 14 15 15
CH136 14 15 15
CH140 13 15 15
//5G Band 4
CH149 17 15 NA
CH153 17 15 NA
CH157 17 15 NA
CH161 17 15 NA
CH165 17 15 NA
## END
//
//Table 10: ===========================================
//
## 5G, 40M, 1T, HT, //(MCS0~MCS7)
## START
## #3# FCC ETSI MKK
//5G Band 1
CH38 15 16 16
CH46 15 16 16
//5G Band 2
CH54 16 16 16
CH62 16 16 16
//5G Band 3
CH102 14 16 16
CH110 16 16 16
CH118 18 16 16
CH126 17 16 16
CH134 16 16 16
//5G Band 4
CH151 18 16 NA
CH159 18 16 NA
## END
//
//Table 11: ===========================================
//
## 5G;, 40M, 2T, HT, //(MCS8~MCS15)
## START
## #3# FCC ETSI MKK
//5G Band 1
CH38 14 15 15
CH46 14 15 15
//5G Band 2
CH54 15 15 15
CH62 15 15 15
//5G Band 3
CH102 13 15 15
CH110 15 15 15
CH118 17 15 15
CH126 16 15 15
CH134 15 15 15
//5G Band 4
CH151 17 15 NA
CH159 17 15 NA
## END
//
//Table 12: ===========================================
//
## 5G, 80M, 1T, VHT, //(MCS0~MCS9)
## START
## #3# FCC ETSI MKK
//5G Band 1
CH42 15 16 16
//5G Band 2
CH58 14 16 16
//5G Band 3
CH106 15 16 16
CH122 17 16 16
//5G Band 4
CH155 18 16 NA
## END
//
//Table 13: ===========================================
//
## 5G, 80M, 2T, VHT, //(MCS0~MCS9)
## START
## #3# FCC ETSI MKK
//5G Band 1
CH42 14 15 15
//5G Band 2
CH58 13 15 15
//5G Band 3
CH106 14 15 15
CH122 16 15 15
//5G Band 4
CH155 17 15 NA
## END
Binary file added non-public/rtl8812fw.bin
Binary file not shown.
Binary file added non-public/rtl8812fw_n.bin
Binary file not shown.

0 comments on commit 515eca5

Please sign in to comment.