summaryrefslogtreecommitdiff
path: root/src/mainboard/siemens/mc_apl1/devicetree.cb
blob: e2b6ceec7fed2fdd026b019730070cdf5795d94f (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
chip soc/intel/apollolake

	device cpu_cluster 0 on
		device lapic 0 on end
	end

	register "sci_irq" = "SCIS_IRQ10"

	# Disable unused clkreq of PCIe root ports
	register "pcie_rp0_clkreq_pin" = "3" # PCIe-PCI-Bridge
	register "pcie_rp1_clkreq_pin" = "CLKREQ_DISABLED"
	register "pcie_rp2_clkreq_pin" = "0" # MACPHY
	register "pcie_rp3_clkreq_pin" = "1" # MACPHY
	register "pcie_rp4_clkreq_pin" = "CLKREQ_DISABLED"
	register "pcie_rp5_clkreq_pin" = "CLKREQ_DISABLED"

	# EMMC TX DATA Delay 1
	# Refer to EDS-Vol2-22.3.
	# [14:8] steps of delay for HS400, each 125ps.
	# [6:0] steps of delay for SDR104/HS200, each 125ps.
	register "emmc_tx_data_cntl1" = "0x0C16"

	# EMMC TX DATA Delay 2
	# Refer to EDS-Vol2-22.3.
	# [30:24] steps of delay for SDR50, each 125ps.
	# [22:16] steps of delay for DDR50, each 125ps.
	# [14:8] steps of delay for SDR25/HS50, each 125ps.
	# [6:0] steps of delay for SDR12, each 125ps.
	register "emmc_tx_data_cntl2" = "0x28162828"

	# EMMC RX CMD/DATA Delay 1
	# Refer to EDS-Vol2-22.3.
	# [30:24] steps of delay for SDR50, each 125ps.
	# [22:16] steps of delay for DDR50, each 125ps.
	# [14:8] steps of delay for SDR25/HS50, each 125ps.
	# [6:0] steps of delay for SDR12, each 125ps.
	register "emmc_rx_cmd_data_cntl1" = "0x00181717"

	# EMMC RX CMD/DATA Delay 2
	# Refer to EDS-Vol2-22.3.
	# [17:16] stands for Rx Clock before Output Buffer
	# [14:8] steps of delay for Auto Tuning Mode, each 125ps.
	# [6:0] steps of delay for HS200, each 125ps.
	register "emmc_rx_cmd_data_cntl2" = "0x10008"

	# Enable I2C0 for proximity sensor at 100kHz
	register "i2c[0]" = "{
		.speed = I2C_SPEED_STANDARD
	}"

	device domain 0 on
		device pci 00.0 on  end	# - Host Bridge
		device pci 00.1 off end	# - DPTF
		device pci 00.2 off end	# - NPK
		device pci 02.0 on  end	# - Gen - Display
		device pci 03.0 off end	# - Iunit
		device pci 0d.0 on  end	# - P2SB
		device pci 0d.1 off end	# - PMC
		device pci 0d.2 on  end	# - SPI
		device pci 0d.3 off end	# - Shared SRAM
		device pci 0e.0 off end	# - Audio
		device pci 11.0 on  end	# - ISH
		device pci 12.0 on  end	# - SATA
		device pci 13.0 on  end	# - RP 2 - PCIe A 0 - MACPHY
		device pci 13.1 on  end	# - RP 3 - PCIe A 1 - MACPHY
		device pci 13.2 off end	# - RP 4 - PCIe-A 2
		device pci 13.3 off end	# - RP 5 - PCIe-A 3
		device pci 14.0 on  end	# - RP 0 - PCIe-B 0 - PCIe-PCI-Bridge
		device pci 14.1 off end	# - RP 1 - PCIe-B 1
		device pci 15.0 on  end	# - XHCI
		device pci 15.1 off end	# - XDCI
		device pci 16.0 on	# - I2C 0
			# Enable external RTC chip
			chip drivers/i2c/rx6110sa
				register "pmon_sampling" = "PMON_SAMPL_256_MS"
				register "bks_on" = "0"
				register "bks_off" = "1"
				register "iocut_en" = "1"
				register "set_user_date" = "1"
				register "user_year" = "04"
				register "user_month" = "07"
				register "user_day" = "01"
				register "user_weekday" = "4"
				device i2c 0x32 on end	# RTC RX6110 SA
			end
		end
		device pci 16.1 off end	# - I2C 1
		device pci 16.2 off end	# - I2C 2
		device pci 16.3 off end	# - I2C 3
		device pci 17.0 off end	# - I2C 4
		device pci 17.1 off end	# - I2C 5
		device pci 17.2 off end	# - I2C 6
		device pci 17.3 on  end	# - I2C 7
		device pci 18.0 off end	# - UART 0
		device pci 18.1 off end	# - UART 1
		device pci 18.2 off end	# - UART 2
		device pci 18.3 off end	# - UART 3
		device pci 19.0 off end	# - SPI 0
		device pci 19.1 off end	# - SPI 1
		device pci 19.2 off end	# - SPI 2
		device pci 1a.0 off end	# - PWM
		device pci 1b.0 off end	# - SDCARD
		device pci 1c.0 on  end	# - eMMC
		device pci 1d.0 off end	# - UFS
		device pci 1e.0 off end	# - SDIO
		device pci 1f.0 on  end	# - LPC
		device pci 1f.1 on  end	# - SMBUS
	end
end