summaryrefslogtreecommitdiff
path: root/Documentation/mainboard/asus/p5q.md
blob: 3b3cdb43dc26267dc217c3b72cf8bcd749705990 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# ASUS P5Q

This page describes how to run coreboot on the [ASUS P5Q] desktop board.

## Working

+ PCI slots
+ PCI-e slots
+ Onboard Ethernet
+ USB
+ Onboard sound card
+ PS/2 keyboard
+ All 4 DIMM slots
+ S3 suspend and resume
+ Red SATA ports
+ Fan control through the W83667HG chip
+ FireWire

## Not working

+ PS/2 mouse support
+ PATA aka IDE (because of buggy IDE controller)
+ Fan profiles with Q-Fan
+ TPM module (support not implemented)

## Untested

+ S/PDIF
+ CD Audio In
+ Floppy disk drive


## Flashing coreboot

```eval_rst
+-------------------+----------------+
| Type              | Value          |
+===================+================+
| Socketed flash    | Yes            |
+-------------------+----------------+
| Model             | MX25L8005      |
+-------------------+----------------+
| Size              | 1 MiB          |
+-------------------+----------------+
| Package           | Socketed DIP-8 |
+-------------------+----------------+
| Write protection  | No             |
+-------------------+----------------+
| Dual BIOS feature | No             |
+-------------------+----------------+
| Internal flashing | Yes            |
+-------------------+----------------+
```

You can flash coreboot into your motherboard using [this guide].

## Technology

```eval_rst
+------------------+---------------------------------------------------+
| Northbridge      | Intel P45 (called x4x in coreboot code)           |
+------------------+---------------------------------------------------+
| Southbridge      | Intel ICH10R (called i82801jx in coreboot code)   |
+------------------+---------------------------------------------------+
| CPU (LGA775)     | Model f4x, f6x, 6fx, 1067x (Pentium 4, d, Core 2) |
+------------------+---------------------------------------------------+
| SuperIO          | Winbond W83667HG                                  |
+------------------+---------------------------------------------------+
| Coprocessor      | No                                                |
+------------------+---------------------------------------------------+
| Clockgen (CK505) | ICS 9LPRS918JKLF                                  |
+------------------+---------------------------------------------------+
```

## Controlling fans

With vendor firmware, the P5Q uses the ATK0110 ACPI device to control its fans
according to the parameters configured in the BIOS setup menu. With coreboot,
one can instead control the Super I/O directly as described in the
[kernel docs]:

+ pwm1 controls fan1 (CHA_FAN1) and fan4 (CHA_FAN2)
+ pwm2 controls fan2 (CPU_FAN)
+ fan3 (PWR_FAN) cannot be controlled
+ temp1 (board) can be used to control fan1 and fan4
+ temp2 (CPU) can be used to control fan2

### Manual fan speed

These commands set the chassis fans to a constant speed:

    # Use PWM output
    echo 1 >/sys/class/hwmon/hwmon2/pwm1_mode
    # Set to manual mode
    echo 1 >/sys/class/hwmon/hwmon2/pwm1_enable
    # Set relative speed: 0 (stop) to 255 (full)
    echo 150 >/sys/class/hwmon/hwmon2/pwm1

### Automatic fan speed

The W83667HG can adjust fan speeds when things get too warm. These settings will
control the chassis fans:

    # Set to "Thermal Cruise" mode
    echo 2 >/sys/class/hwmon/hwmon2/pwm1_enable
    # Target temperature: 60°C
    echo 60000 >/sys/class/hwmon/hwmon2/pwm1_target
    # Minimum fan speed when spinning up
    echo 135 >/sys/class/hwmon/hwmon2/pwm1_start_output
    # Minimum fan speed when spinning down
    echo 135 >/sys/class/hwmon/hwmon2/pwm1_stop_output
    # Tolerance: 2°C
    echo 2000 >/sys/class/hwmon/hwmon2/pwm1_tolerance
    # Turn fans off after 600 seconds when below defined range
    echo 600000 >/sys/class/hwmon/hwmon2/pwm1_stop_time

You can also control the CPU fan with similar rules:

    # Switch to "Thermal Cruise" mode
    echo 2 >/sys/class/hwmon/hwmon2/pwm2_enable
    # Target temperature: 55°C
    echo 55000 >/sys/class/hwmon/hwmon2/pwm2_target
    # Minimum fan speed when spinning down
    echo 50 >/sys/class/hwmon/hwmon2/pwm2_stop_output
    # Rate of fan speed change
    echo 50 >/sys/class/hwmon/hwmon2/pwm2_step_output
    # Maximum fan speed
    echo 200 >/sys/class/hwmon/hwmon2/pwm2_max_output
    # Tolerance: 2°C
    echo 2000 >/sys/class/hwmon/hwmon2/pwm1_tolerance

[ASUS P5Q]: https://www.asus.com/Motherboards/P5Q
[this guide]: https://doc.coreboot.org/flash_tutorial/int_flashrom.html
[kernel docs]: https://www.kernel.org/doc/Documentation/hwmon/w83627ehf.rst