Debian Codegraph @

src/mainboard/lattepanda/mu/devicetree.cb

raw
1 # SPDX-License-Identifier: GPL-2.0-only
2
3 chip soc/intel/alderlake
4 # FSP configuration
5 # Sagv Configuration
6 register "sagv" = "SaGv_Enabled"
7
8 # Enable EDP in PortA
9 register "ddi_portA_config" = "1"
10 # Enable HDMI in Port B
11 register "ddi_portB_config" = "1"
12 register "ddi_ports_config" = "{
13 [DDI_PORT_A] = DDI_ENABLE_HPD,
14 [DDI_PORT_B] = DDI_ENABLE_HPD | DDI_ENABLE_DDC,
15 }"
16
17 register "s0ix_enable" = "1"
18
19 register "serial_io_i2c_mode" = "{
20 [PchSerialIoIndexI2C0] = PchSerialIoDisabled,
21 [PchSerialIoIndexI2C1] = PchSerialIoDisabled,
22 [PchSerialIoIndexI2C2] = PchSerialIoPci,
23 [PchSerialIoIndexI2C3] = PchSerialIoPci,
24 [PchSerialIoIndexI2C4] = PchSerialIoPci,
25 [PchSerialIoIndexI2C5] = PchSerialIoPci,
26 }"
27
28 register "serial_io_uart_mode" = "{
29 [PchSerialIoIndexUART0] = PchSerialIoSkipInit,
30 [PchSerialIoIndexUART1] = PchSerialIoDisabled,
31 [PchSerialIoIndexUART2] = PchSerialIoDisabled,
32 }"
33
34 # Intel Common SoC Config
35 register "common_soc_config" = "{
36 .i2c[2] = {
37 .speed = I2C_SPEED_FAST,
38 },
39 .i2c[3] = {
40 .speed = I2C_SPEED_FAST,
41 },
42 .i2c[4] = {
43 .speed = I2C_SPEED_FAST,
44 },
45 .i2c[5] = {
46 .speed = I2C_SPEED_FAST,
47 },
48 }"
49
50 # Configure external V1P05/Vnn/VnnSx Rails
51 register "ext_fivr_settings" = "{
52 .configure_ext_fivr = 1,
53 .v1p05_enable_bitmap = FIVR_ENABLE_ALL_SX & ~FIVR_ENABLE_S0,
54 .vnn_enable_bitmap = FIVR_ENABLE_ALL_SX,
55 .vnn_sx_enable_bitmap = FIVR_ENABLE_ALL_SX,
56 .v1p05_supported_voltage_bitmap = FIVR_VOLTAGE_NORMAL,
57 .vnn_supported_voltage_bitmap = FIVR_VOLTAGE_MIN_ACTIVE,
58 .v1p05_voltage_mv = 1050,
59 .vnn_voltage_mv = 780,
60 .vnn_sx_voltage_mv = 1050,
61 .v1p05_icc_max_ma = 500,
62 .vnn_icc_max_ma = 500,
63 }"
64
65 device domain 0 on
66 device ref igpu on end
67 device ref crashlog off end
68 device ref xhci on
69 register "usb2_ports" = "{
70 [0] = USB2_PORT_MID(OC_SKIP), // USB3/2 Type A
71 [1] = USB2_PORT_MID(OC_SKIP), // USB3/2 Type A
72 [2] = USB2_PORT_MID(OC_SKIP), // USB2 Type A
73 [4] = USB2_PORT_MID(OC_SKIP), // USB2 Type A
74 [6] = USB2_PORT_MID(OC_SKIP), // M.2 E 2230
75 }"
76
77 register "usb3_ports" = "{
78 [0] = USB3_PORT_DEFAULT(OC_SKIP),// USB3/2 Type A
79 [1] = USB3_PORT_DEFAULT(OC_SKIP),// USB3/2 Type A
80 }"
81 end
82 device ref i2c2 on end
83 device ref i2c3 on end
84 device ref i2c4 on end
85 device ref i2c5 on end
86 device ref pcie_rp3 on
87 register "pcie_clk_config_flag[0]" = "PCIE_CLK_FREE_RUNNING"
88 register "pch_pcie_rp[PCH_RP(3)]" = "{
89 .flags = PCIE_RP_LTR | PCIE_RP_AER | PCIE_RP_CLK_SRC_UNUSED | PCIE_RP_CLK_REQ_UNUSED,
90 .pcie_rp_aspm = ASPM_DISABLE,
91 .PcieRpL1Substates = L1_SS_DISABLED,
92 }"
93 smbios_slot_desc "SlotTypeM2Socket3" "SlotLengthOther"
94 "M.2/M 2230 (M2_SSD)" "SlotDataBusWidth1X"
95 end
96 device ref pcie_rp4 on
97 register "pcie_clk_config_flag[3]" = "PCIE_CLK_FREE_RUNNING"
98 register "pch_pcie_rp[PCH_RP(4)]" = "{
99 .flags = PCIE_RP_LTR | PCIE_RP_AER | PCIE_RP_CLK_SRC_UNUSED | PCIE_RP_CLK_REQ_UNUSED,
100 .pcie_rp_aspm = ASPM_DISABLE,
101 .PcieRpL1Substates = L1_SS_DISABLED,
102 }"
103 smbios_slot_desc "SlotTypeM2Socket1_SD" "SlotLengthOther"
104 "M.2/E 2230 (M2_WIFI)" "SlotDataBusWidth1X"
105 end
106 device ref pcie_rp7 on # RTL8111H Ethernet NIC
107 register "pcie_clk_config_flag[4]" = "PCIE_CLK_FREE_RUNNING"
108 register "pch_pcie_rp[PCH_RP(7)]" = "{
109 .flags = PCIE_RP_LTR | PCIE_RP_AER | PCIE_RP_CLK_SRC_UNUSED | PCIE_RP_CLK_REQ_UNUSED | PCIE_RP_BUILT_IN,
110 .pcie_rp_aspm = ASPM_DISABLE,
111 .PcieRpL1Substates = L1_SS_DISABLED,
112 }"
113 chip drivers/net
114 # register "wake" = "no link"
115 register "device_index" = "0"
116 register "add_acpi_dma_property" = "true"
117 device pci 00.0 on end
118 end
119 end
120 device ref emmc on
121 register "emmc_enable_hs400_mode" = "1"
122 end
123 device ref hda on
124 # HD Audio
125 register "pch_hda_dsp_enable" = "1"
126 register "pch_hda_idisp_link_tmode" = "HDA_TMODE_8T"
127 register "pch_hda_idisp_link_frequency" = "HDA_LINKFREQ_96MHZ"
128 register "pch_hda_idisp_codec_enable" = "1"
129 end
130 device ref pch_espi on
131 register "gen1_dec" = "0x00fc0201"
132 register "gen2_dec" = "0x003c0a01"
133 register "gen3_dec" = "0x000c03f1"
134 register "gen4_dec" = "0x000c0081"
135 chip superio/ite/it8613e
136 device pnp 2e.0 off end
137 device pnp 2e.1 on # COM 1
138 io 0x60 = 0x3f8
139 irq 0x70 = 4
140 irq 0xf0 = 0x1
141 end
142 device pnp 2e.4 on # Environment Controller
143 io 0x60 = 0xa40
144 io 0x62 = 0xa30
145 irq 0x70 = 0x00
146 end
147 device pnp 2e.5 off end # Keyboard
148 device pnp 2e.6 off end # Mouse
149 device pnp 2e.7 off end # GPIO
150 device pnp 2e.a off end # CIR
151 end
152 end
153 chip drivers/crb
154 device mmio 0xfed40000 on end
155 end
156 end
157 end