mb/ocp/tiogapass: Fix GPIOs
[coreboot2.git] / src / mainboard / system76 / rpl / variants / oryp12 / overridetree.cb
blob54f42bee32bb462b73e006348e995961318abe9b
1 # SPDX-License-Identifier: GPL-2.0-only
3 chip soc/intel/alderlake
4 # Support 5600 MT/s memory
5 register "max_dram_speed_mts" = "5600"
7 device domain 0 on
8 subsystemid 0x1558 0x66a6 inherit
10 device ref xhci on
11 register "usb2_ports" = "{
12 [0] = USB2_PORT_MID(OC_SKIP), // J_AUD1
13 [2] = USB2_PORT_MID(OC_SKIP), // J_TYPEC2
14 [5] = USB2_PORT_MID(OC_SKIP), // J_USB1
15 [7] = USB2_PORT_MID(OC_SKIP), // Camera
16 [8] = USB2_PORT_MID(OC_SKIP), // J_TYPEC1 (TBT)
17 [13] = USB2_PORT_MID(OC_SKIP), // Bluetooth
19 register "usb3_ports" = "{
20 [0] = USB3_PORT_DEFAULT(OC_SKIP), // J_AUD1
21 [1] = USB3_PORT_DEFAULT(OC_SKIP), // J_USB1
22 [3] = USB3_PORT_DEFAULT(OC_SKIP), // J_TYPEC2
24 end
26 device ref i2c0 on
27 # Touchpad I2C bus
28 register "serial_io_i2c_mode[PchSerialIoIndexI2C0]" = "PchSerialIoPci"
29 chip drivers/i2c/hid
30 register "generic.hid" = ""ELAN0412""
31 register "generic.desc" = ""ELAN Touchpad""
32 register "generic.irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_LOW(GPP_E7)"
33 register "generic.detect" = "1"
34 register "hid_desc_reg_offset" = "0x01"
35 device i2c 15 on end
36 end
37 chip drivers/i2c/hid
38 register "generic.hid" = ""FTCS1000""
39 register "generic.desc" = ""FocalTech Touchpad""
40 register "generic.irq_gpio" = "ACPI_GPIO_IRQ_LEVEL_LOW(GPP_E7)"
41 register "generic.detect" = "1"
42 register "hid_desc_reg_offset" = "0x01"
43 device i2c 38 on end
44 end
45 end
46 device ref i2c1 on
47 # Thunderbolt
48 register "serial_io_i2c_mode[PchSerialIoIndexI2C1]" = "PchSerialIoPci"
49 end
50 device ref i2c2 on
51 # Pantone
52 register "serial_io_i2c_mode[PchSerialIoIndexI2C2]" = "PchSerialIoPci"
53 end
54 device ref i2c3 on
55 # TAS5825M smart amp
56 register "serial_io_i2c_mode[PchSerialIoIndexI2C3]" = "PchSerialIoPci"
57 chip drivers/i2c/tas5825m
58 register "id" = "0"
59 device i2c 4e on end # (8bit address: 0x9c)
60 end
61 end
63 device ref pcie5_0 on
64 # GPU
65 register "cpu_pcie_rp[CPU_RP(2)]" = "{
66 .clk_src = 14,
67 .clk_req = 14,
68 .flags = PCIE_RP_LTR | PCIE_RP_AER,
70 end
71 device ref pcie_rp3 on
72 # GLAN
73 register "pch_pcie_rp[PCH_RP(3)]" = "{
74 .clk_src = 13,
75 .clk_req = 13,
76 .flags = PCIE_RP_LTR | PCIE_RP_AER,
78 end
79 device ref pcie_rp5 on
80 # CARD
81 register "pch_pcie_rp[PCH_RP(5)]" = "{
82 .clk_src = 12,
83 .clk_req = 12,
84 .flags = PCIE_RP_LTR | PCIE_RP_AER | PCIE_RP_HOTPLUG,
86 end
87 device ref pcie_rp8 on
88 # WLAN
89 register "pch_pcie_rp[PCH_RP(8)]" = "{
90 .clk_src = 11,
91 .clk_req = 11,
92 .flags = PCIE_RP_LTR | PCIE_RP_AER,
94 end
95 device ref pcie_rp9 on
96 # SSD1
97 register "pch_pcie_rp[PCH_RP(9)]" = "{
98 .clk_src = 10,
99 .clk_req = 10,
100 .flags = PCIE_RP_LTR | PCIE_RP_AER,
103 device ref pcie_rp13 on
104 # SSD2
105 register "pch_pcie_rp[PCH_RP(13)]" = "{
106 .clk_src = 9,
107 .clk_req = 9,
108 .flags = PCIE_RP_LTR | PCIE_RP_AER,
111 device ref pcie_rp25 on
112 # TBT
113 # XXX: AER causes UnsupReq warnings
114 register "pch_pcie_rp[PCH_RP(25)]" = "{
115 .clk_src = 15,
116 .clk_req = 15,
117 .flags = PCIE_RP_LTR | PCIE_RP_HOTPLUG,