mb/biostar: Add TH61-ITX port

- CPU: only tested with a Xeon E3-1220 (Sandy Bridge)
- RAM: native raminit tested (4G+4G, 8G+8G)
- USB: both chipset and ASMedia USB3 work, tested in SeaBIOS and Linux (5.4)
- LAN: tested in Linux
- SATA: all 4 ports work, tested in SeaBIOS and Linux
- iGPU: I can't test it as I only have a Xeon for this socket
- PEG: tested with an nVidia GT210, initialized by SeaBIOS
- PS2 keyboard and mouse combo port: no devices to test with
- Front panel header: tested, works
- Audio: tested, works
- Diagnostic LEDs: TBD

Change-Id: I9fd3c0b148b694fcb8e728cc17f0bd45eb5af9f2
Signed-off-by: Mate Kukri <kukri.mate@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/43165
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
diff --git a/src/mainboard/biostar/th61-itx/devicetree.cb b/src/mainboard/biostar/th61-itx/devicetree.cb
new file mode 100644
index 0000000..2329bb2
--- /dev/null
+++ b/src/mainboard/biostar/th61-itx/devicetree.cb
@@ -0,0 +1,79 @@
+## SPDX-License-Identifier: GPL-2.0-only
+
+chip northbridge/intel/sandybridge
+	device cpu_cluster 0 on
+		chip cpu/intel/model_206ax
+			register "c1_acpower" = "1"
+			register "c1_battery" = "1"
+			register "c2_acpower" = "3"
+			register "c2_battery" = "3"
+			register "c3_acpower" = "5"
+			register "c3_battery" = "5"
+			device lapic 0 on	end
+			device lapic 0xacac off	end
+		end
+	end
+	register "pci_mmio_size" = "2048"
+	device domain 0 on
+		subsystemid 0x1565 0x3108 inherit
+
+		device pci 00.0 on end	# Host bridge
+		device pci 01.0 on end	# PEG
+		device pci 02.0 on end	# iGPU
+
+		chip southbridge/intel/bd82x6x # Intel Series 6 Cougar Point PCH
+			register "c2_latency" = "0x0065"
+			register "gen1_dec" = "0x003c0a01"
+			register "sata_interface_speed_support" = "0x3"
+			register "sata_port_map" = "0x33"
+			register "spi_lvscc" = "0x2005"
+			register "spi_uvscc" = "0x2005"
+
+			device pci 16.0 on  end	# MEI #1
+			device pci 1a.0 on  end	# EHCI #2
+			device pci 1b.0 on  end	# HD Audio
+			device pci 1c.0 on  end	# RP #1: Realtek RTL8111F GbE NIC
+			device pci 1c.1 on  end	# RP #2: ASMedia ASM1042 USB3 #1
+			device pci 1c.2 on  end	# RP #3: ASMedia ASM1042 USB3 #2
+			device pci 1c.3 off end # RP #4
+			device pci 1c.4 off end # RP #5
+			device pci 1c.5 off end # RP #6
+			device pci 1d.0 on  end	# EHCI #1
+			device pci 1e.0 off end # PCI bridge
+			device pci 1f.0 on	# LPC bridge
+				chip superio/ite/it8728f
+					device pnp 2e.0 off end	# Floppy
+					device pnp 2e.1 off end	# COM1
+					device pnp 2e.2 off end	# COM2
+					device pnp 2e.3 off end	# Parallel port
+					device pnp 2e.4 on	# Environment Controller
+						io 0x60 = 0x0a30
+						io 0x62 = 0x0a20
+					end
+					device pnp 2e.5 on  end	# Keyboard
+					device pnp 2e.6 on  end	# Mouse
+					device pnp 2e.7 on	# GPIO
+						irq 0x26 = 0xff
+						irq 0x27 = 0x30
+						irq 0x28 = 0x80
+						irq 0x29 = 0x80
+						irq 0x2c = 0x02
+						io 0x60  = 0x0a10
+						io 0x62  = 0x0a00
+						irq 0xb1 = 0x03
+						irq 0xb3 = 0x80
+						irq 0xb8 = 0x00
+						irq 0xf5 = 0x27
+						irq 0xf8 = 0x20
+						irq 0xf9 = 0x01
+					end
+					device pnp 2e.a off end	# CIR
+				end
+			end
+			device pci 1f.2 on  end	# SATA #1
+			device pci 1f.3 on  end	# SMBus
+			device pci 1f.5 off end # SATA #2 (IDE mode)
+			device pci 1f.6 on  end # Thermal subsystem
+		end
+	end
+end