From 2b824fd28ff5cb0e771683076378a327624cfad3 Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Mon, 20 Mar 2023 08:32:17 +0100 Subject: [PATCH] mb/asrock/b75pro3-m/devicetree.cb: Fix errors for PNP 2e.308 [ERROR] PNP: 002e.308 60 io size: 0x0000000008 not assigned in devicetree [ERROR] ERROR: Resource didn't fit!!! PNP: 002e.308 60 * size: 0x8 limit: fff io Configure GPIO pins like asrock/h77pro4-m, this resolves the error and makes CPU-fan readings work. Signed-off-by: Fabian Groffen Change-Id: If717d046d9f60ca66d1e33db59ad67d23c393376 Reviewed-on: https://review.coreboot.org/c/coreboot/+/73818 Tested-by: build bot (Jenkins) Reviewed-by: Felix Singer --- src/mainboard/asrock/b75pro3-m/devicetree.cb | 26 +++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/src/mainboard/asrock/b75pro3-m/devicetree.cb b/src/mainboard/asrock/b75pro3-m/devicetree.cb index 6d7dddc05f..d3b6828d33 100644 --- a/src/mainboard/asrock/b75pro3-m/devicetree.cb +++ b/src/mainboard/asrock/b75pro3-m/devicetree.cb @@ -110,9 +110,29 @@ chip northbridge/intel/sandybridge irq 0x72 = 12 end device pnp 2e.6 off end # CIR - device pnp 2e.7 off end # GPIO6-9 - device pnp 2e.8 off end # WDT1, GPIO0, GPIO1, GPIOA - device pnp 2e.9 off end # GPIO2-5 + device pnp 2e.7 off end # GPIO8 + device pnp 2e.107 off end # GPIO9 + device pnp 2e.8 off end # WDT1 + device pnp 2e.108 off end # GPIO0 + device pnp 2e.208 off end # GPIOA + device pnp 2e.308 on # GPIO base + io 0x60 = 0x0 + irq 0xf0 = 0x3e # + GPIO1 direction + irq 0xf1 = 0xde # + GPIO1 value + end + device pnp 2e.109 on end # GPIO1 + device pnp 2e.209 on # GPIO2 + irq 0xe0 = 0xff # + GPIO2 direction + irq 0xe1 = 0x0c # + GPIO2 value + end + device pnp 2e.309 on # GPIO3 + irq 0xe4 = 0xf7 # + GPIO3 direction + irq 0xe5 = 0x08 # + GPIO3 value + end + device pnp 2e.409 off end # GPIO4 + device pnp 2e.509 off end # GPIO5 + device pnp 2e.609 off end # GPIO6 + device pnp 2e.709 on end # GPIO7 device pnp 2e.a on # ACPI irq 0xe0 = 0x01 irq 0xe3 = 0x14