summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configs/ASRock/B450-Gaming-ITX-ac.conf100
-rwxr-xr-xprog/detect/sensors-detect15
2 files changed, 108 insertions, 7 deletions
diff --git a/configs/ASRock/B450-Gaming-ITX-ac.conf b/configs/ASRock/B450-Gaming-ITX-ac.conf
new file mode 100644
index 00000000..01e7603c
--- /dev/null
+++ b/configs/ASRock/B450-Gaming-ITX-ac.conf
@@ -0,0 +1,100 @@
+# ASRock B450 Gaming-ITX/ac
+# manufacturing date July 2019 (came with Zen2-aware BIOS)
+# board does have connectors for buzzer and 3 fans (2 case + 1 CPU)
+# board does not have a connector for intrusion detection
+# dmesg: "nct6775: Found NCT6792D or compatible chip at 0x2e:0x290"
+
+chip "nct6792-*"
+
+ # beeping appears to not work
+ set beep_enable 1
+
+ # voltages
+
+ label in0 "Vcore"
+ compute in0 @*2, @/2
+ set in0_min 0.16
+ set in0_max 1.46
+ set in0_beep 1
+
+ label in2 "AVCC"
+ set in2_min 3.30 * 0.90
+ set in2_max 3.30 * 1.10
+
+ label in3 "+3.3V"
+ set in3_min 3.30 * 0.90
+ set in3_max 3.30 * 1.10
+
+ label in7 "3VSB"
+ set in7_min 3.30 * 0.90
+ set in7_max 3.30 * 1.10
+
+ label in8 "VBAT"
+ set in8_min 3.00 * 0.90
+ set in8_max 3.30 * 1.10
+
+ label in9 "+12V"
+ compute in9 @*(53/8), @/(53/8)
+ set in9_min 12 * 0.90
+ set in9_max 12 * 1.10
+
+ label in13 "+5V"
+ compute in13 @*(24/8), @/(24/8)
+ set in13_min 5 * 0.90
+ set in13_max 5 * 1.10
+
+ # these are all zero
+ ignore in1
+ ignore in4
+ ignore in5
+ ignore in6
+ ignore in14
+
+ # these have non-zero input, but are unknown
+ ignore in10
+ ignore in11
+ ignore in12
+
+ # temperatures
+ # not sure about temp2 and temp3
+ label temp2 "VRM(?) temp"
+ set temp2_max 55
+ set temp2_max_hyst 50
+ set temp2_beep 1
+ label temp3 "MB(?) temp"
+ set temp3_max 55
+ set temp3_max_hyst 50
+ set temp3_beep 1
+ label temp7 "CPU temp"
+
+ # temp2 has similar readings to temp3
+ # other temps are zero or unreasonably high/low
+ ignore temp1
+ ignore temp4
+ ignore temp5
+ ignore temp6
+ ignore temp8
+ ignore temp9
+ ignore temp10
+
+ # fans
+
+ label fan1 "CHA_FAN1"
+ set fan1_min 300
+ set fan1_beep 1
+ label fan2 "CPU_FAN1"
+ set fan2_min 600
+ set fan2_beep 1
+ label fan3 "CHA_FAN2"
+ set fan3_min 300
+ set fan3_beep 1
+
+ # these are not on the mainboard
+ ignore fan4
+ ignore fan5
+
+ # misc
+
+ ignore intrusion0
+ ignore intrusion1
+
diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect
index 6fc441aa..fd43db56 100755
--- a/prog/detect/sensors-detect
+++ b/prog/detect/sensors-detect
@@ -719,11 +719,6 @@ use vars qw(@i2c_adapter_names);
i2c_addrs => [0x2c..0x2e],
i2c_detect => sub { emc6w201_detect(@_); },
}, {
- name => "Winbond WPCD377I",
- driver => "not-a-sensor",
- i2c_addrs => [0x2c..0x2e],
- i2c_detect => sub { lm85_detect(@_, 7); },
- }, {
name => "Analog Devices ADT7462",
driver => "adt7462",
i2c_addrs => [0x5c, 0x58],
@@ -1684,6 +1679,10 @@ use vars qw(@i2c_adapter_names);
i2c_addrs => [0x2c..0x2f],
i2c_detect => sub { w83791sd_detect(@_); },
}, {
+ name => "Winbond WPCD377I",
+ i2c_addrs => [0x2c..0x2e],
+ i2c_detect => sub { lm85_detect(@_, 7); },
+ }, {
name => "Fintek F75111R/RG/N (GPIO)",
i2c_addrs => [0x37, 0x4e],
i2c_detect => sub { fintek_detect(@_, 1); },
@@ -2273,7 +2272,7 @@ use constant FEAT_SMBUS => (1 << 7);
features => FEAT_IN | FEAT_FAN | FEAT_TEMP,
}, {
name => "Nuvoton W83677HG-I (NCT5572D/NCT6771F/NCT6772F/NCT6775F) Super IO Sensors",
- driver => "w83627ehf",
+ driver => sub { kernel_version_at_least(3, 10, 0) ? "nct6775" : "w83627ehf" },
devid => 0xB470,
devid_mask => 0xFFF0,
logdev => 0x0b,
@@ -4574,7 +4573,9 @@ sub scan_cpu
sub chip_special_cases
{
# Some chip to driver mappings depend on the environment
- foreach my $chip (@chip_ids) {
+ foreach my $chip (@chip_ids, @superio_ids_natsemi, @superio_ids_smsc,
+ @superio_ids_smsc_ns, @superio_ids_winbond,
+ @superio_ids_ite) {
if (ref($chip->{driver}) eq 'CODE') {
$chip->{driver} = $chip->{driver}->();
}