mb/google/nissa/var/rull: add ssd timing and modify ssd GPIO pins of rtd3
[coreboot2.git] / Documentation / mainboard / asus / f2a85-m.md
blob790a2f7592ede6c9c1832eaea14465e86d44d7f1
1 # ASUS F2A85-M
3 This page describes how to run coreboot on the [ASUS F2A85-M].
5 ## Variants
6 - ASUS F2A85-M - Working
7 - ASUS F2A85-M LE - Working
8 - ASUS F2A85-M PRO - Working
9 - ASUS F2A85-M2 - Working
10 - ASUS F2A85-M/CSM - Unsure if WIP.
12 ## Technology
14 Both "Trinity" and "Richland" desktop processing units are working,
15 the CPU architecture in these CPUs/APUs is [Piledriver],
16 and their GPU is [TeraScale 3] (VLIW4-based).
18 ```{eval-rst}
19 +------------------+--------------------------------------------------+
20 | F2A85-M          |                                                  |
21 +------------------+--------------------------------------------------+
22 | DDR voltage IC   | Nuvoton NCT3933U (AUX SMBUS 0x15)                |
23 +------------------+--------------------------------------------------+
24 | Network          | Realtek RTL8111F                                 |
25 +------------------+--------------------------------------------------+
26 | Northbridge      | Integrated into CPU with IMC and GPU (APUs only) |
27 +------------------+--------------------------------------------------+
28 | Southbridge      | Hudson-D4                                        |
29 +------------------+--------------------------------------------------+
30 | Sound IC         | Realtek ALC887                                   |
31 +------------------+--------------------------------------------------+
32 | Super I/O        | ITE 8603E                                        |
33 +------------------+--------------------------------------------------+
34 | VRM controller   | DIGI VRM ASP1106 (Rebranded RT8894A - SMBUS 0x20)|
35 +------------------+--------------------------------------------------+
36 ```
38 ```{eval-rst}
39 +------------------+--------------------------------------------------+
40 | F2A85-M LE       |                                                  |
41 +------------------+--------------------------------------------------+
42 | DDR voltage IC   | Nuvoton NCT3933U (AUX SMBUS 0x15 - unconfirmed)  |
43 +------------------+--------------------------------------------------+
44 | Network          | Realtek RTL8111F                                 |
45 +------------------+--------------------------------------------------+
46 | Northbridge      | Integrated into CPU with IMC and GPU(APUs only)  |
47 +------------------+--------------------------------------------------+
48 | Southbridge      | Hudson-D4                                        |
49 +------------------+--------------------------------------------------+
50 | Sound IC         | Realtek ALC887                                   |
51 +------------------+--------------------------------------------------+
52 | Super I/O        | ITE 8623E                                        |
53 +------------------+--------------------------------------------------+
54 | VRM controller   | DIGI VRM ASP1106 (Rebranded RT8894A - SMBUS 0x20)|
55 +------------------+--------------------------------------------------+
56 ```
58 ```{eval-rst}
59 +------------------+--------------------------------------------------+
60 | F2A85-M PRO      |                                                  |
61 +------------------+--------------------------------------------------+
62 | DDR voltage IC   | Nuvoton NCT3933U (?)                             |
63 +------------------+--------------------------------------------------+
64 | Network          | Realtek RTL8111F - Not working                   |
65 +------------------+--------------------------------------------------+
66 | Northbridge      | Integrated into CPU with IMC and GPU(APUs only)  |
67 +------------------+--------------------------------------------------+
68 | Southbridge      | Hudson-D4                                        |
69 +------------------+--------------------------------------------------+
70 | Sound IC         | Realtek ALC887                                   |
71 +------------------+--------------------------------------------------+
72 | Super I/O        | Nuvoton NCT6779D                                 |
73 +------------------+--------------------------------------------------+
74 | VRM controller   | DIGI VRM ASP1107                                 |
75 +------------------+--------------------------------------------------+
76 ```
78 ## Flashing coreboot
80 ```{eval-rst}
81 +---------------------+------------+
82 | Type                | Value      |
83 +=====================+============+
84 | Socketed flash      | yes        |
85 +---------------------+------------+
86 | Model               | W25Q64F    |
87 +---------------------+------------+
88 | Size                | 8 MiB      |
89 +---------------------+------------+
90 | Package             | DIP-8      |
91 +---------------------+------------+
92 | Write protection    | no         |
93 +---------------------+------------+
94 | Dual BIOS feature   | no         |
95 +---------------------+------------+
96 | Internal flashing   | yes        |
97 +---------------------+------------+
98 ```
100 ### Internal programming
102 The main SPI flash can be accessed using [flashrom].
103 UEFI builds that allow flash chip access:
104 > v5016 is untested, but expected to work as well
105 > v5018
106 > v5103
107 > v5104
108 > v5107
109 > v5202
110 > v6002
111 > v6004
112 > v6102
113 > v6402
114 > v6404 (requires downgrading to v6402 to flash coreboot)
115 > v6501 (requires downgrading to v6402 to flash coreboot)
116 > v6502 (requires downgrading to v6402 to flash coreboot)
118 Build v6502, v6501 and v6404 do not allow access to the flash chip.
119 Fortunately it is possible to downgrade build v6502, v6501, v6404 to v6402, with EZFlash.
120 Downgrading is done by downloading build v6402 from ASUS' F2A85-M download page
121 and copying it to (the root directory of) a FAT32 formatted USB flash drive.
122 Enter the EFI setup, switch to advanced mode if necessary,
123 open the 'Tool' tab and select "ASUS EZ Flash 2 Utility".
125 ## Integrated graphics
127 ### Option 1: Retrieve the VGA optionrom from the vendor EFI binary by running:
129     # dd if=/dev/mem of=vgabios.bin bs=1k count=64 skip=768
131 ### Option 2: Extract from the vendor binary
133 Download the BIOS from the Support section at [ASUS F2A85-M].
134 Using MMTool Aptio (versions 4.5.0 and 5.0.0):
135 - Load image, click on 'Extract tab'
136 - Select the 'export path' and 'link present' options
137 - Choose option ROM '1002,9900' and click on 'Extract'
139 This version is usable for all the GPUs.
140 > 1002,9901 Trinity (Radeon HD 7660D)
141 > 1002,9904 Trinity (Radeon HD 7560D)
142 > 1002,990c Richland (Radeon HD 8670D)
143 > 1002,990e Richland (Radeon HD 8570D)
144 > 1002,9991 Trinity (Radeon HD 7540D)
145 > 1002,9993 Trinity (Radeon HD 7480D)
146 > 1002,9996 Richland (Radeon HD 8470D)
147 > 1002,9998 Richland (Radeon HD 8370D)
148 > 1002,999d Richland (Radeon HD 8550D)
150 ## Known issues
152 - buggy USB 3.0 controller (works fine as 2.0 port)
153 - reboot, poweroff, S3 suspend/resume (broken since 4.8.1)
155 ## Known issues (untested because of non-working ACPI sleep)
157 - blink in suspend mode (GP43, program LDN7 F8=23 and blink with F9=2 for 1s blinks)
158 - fix immediate resume after suspend (perhaps PCIe STS needs to be cleared)
159 - fix resume with USB3.0 used (perhaps there is a bug in resume.c)
161 ## Untested
163 - audio over HDMI
164 - IOMMU
165 - PS/2 mouse
167 ## TODOs
169 - manage to use one ATOMBIOS for all the integrated GPUs
171 ## Working
173 - ACPI
174 - CPU frequency scaling
175 - flashrom under coreboot
176 - Gigabit Ethernet
177 - Hardware monitor
178 - Integrated graphics
179 - KVM
180 - Onboard audio
181 - PCIe
182 - PS/2 keyboard
183 - SATA
184 - Serial port
185 - SuperIO based fan control
186 - USB (XHCI is buggy)
188 ## Extra resources
190 - [Board manual]
191 - Flash chip datasheet [W25Q64FV]
193 [ASUS F2A85-M]: https://web.archive.org/web/20160320065008/http://www.asus.com/Motherboards/F2A85M/
194 [Board manual]: https://web.archive.org/web/20211028063105/https://dlcdnets.asus.com/pub/ASUS/mb/SocketFM2/F2A85-M/E8005_F2A85-M.pdf
195 [flashrom]: https://flashrom.org/Flashrom
196 [Piledriver]: https://en.wikipedia.org/wiki/Piledriver_%28microarchitecture%29#APU_lines
197 [TeraScale 3]: https://en.wikipedia.org/wiki/TeraScale_%28microarchitecture%29#TeraScale_3
198 [W25Q64FV]: https://web.archive.org/web/20220127184640/https://www.winbond.com/resource-files/w25q64fv%20revs%2007182017.pdf