Debian Codegraph @

src/mainboard/starlabs/starbook/variants/kbl/devicetree.cb

raw
1 chip soc/intel/skylake
2 # FPD UPDs
3 register "eist_enable" = "true"
4 register "SaGv" = "SaGv_Enabled"
5
6 # Graphics
7 # IGD Displays
8 register "panel_cfg" = "{
9 .up_delay_ms = 0, // T3
10 .backlight_on_delay_ms = 0, // T7
11 .backlight_off_delay_ms = 0, // T9
12 .down_delay_ms = 0, // T10
13 .cycle_delay_ms = 500, // T12
14 .backlight_pwm_hz = 200, // PWM
15 }"
16
17 # Serial I/O
18 register "SerialIoDevMode" = "{
19 [PchSerialIoIndexI2C0] = PchSerialIoPci,
20 [PchSerialIoIndexUart2] = PchSerialIoSkipInit,
21 }"
22
23 register "common_soc_config" = "{
24 .i2c[0] = {
25 .speed = I2C_SPEED_FAST,
26 },
27 }"
28
29 # Power
30 register "PmConfigSlpS3MinAssert" = "2" # 1ms
31 register "PmConfigSlpS4MinAssert" = "3" # 3s
32 register "PmConfigSlpSusMinAssert" = "3" # 1s
33 register "PmConfigSlpAMinAssert" = "3" # 98ms
34
35 # GPE configuration
36 register "gpe0_dw0" = "GPP_B"
37 register "gpe0_dw1" = "GPP_C"
38 register "gpe0_dw2" = "GPP_E"
39
40 # Enable the correct decode ranges on the LPC bus.
41 register "lpc_ioe" = "LPC_IOE_EC_4E_4F |
42 LPC_IOE_KBC_60_64 |
43 LPC_IOE_EC_62_66"
44
45 # Actual device tree.
46 device domain 0 on
47 device ref igpu on
48 register "gfx" = "GMA_DEFAULT_PANEL(0)"
49 end
50 device ref south_xhci on
51 # Motherboard USB Type C
52 register "usb2_ports[0]" = "USB2_PORT_TYPE_C(OC_SKIP)"
53 register "usb3_ports[0]" = "USB3_PORT_DEFAULT(OC_SKIP)"
54
55 # Motherboard USB 3.0
56 register "usb2_ports[1]" = "USB2_PORT_MID(OC_SKIP)"
57 register "usb3_ports[1]" = "USB3_PORT_DEFAULT(OC_SKIP)"
58
59 # Daughterboard USB 3.0
60 register "usb2_ports[2]" = "USB2_PORT_MID(OC_SKIP)"
61 register "usb3_ports[2]" = "USB3_PORT_DEFAULT(OC_SKIP)"
62
63 # Internal Bluetooth
64 register "usb2_ports[5]" = "USB2_PORT_MID(OC_SKIP)"
65
66 # Daughterboard SD Card
67 register "usb2_ports[6]" = "USB2_PORT_MID(OC_SKIP)"
68
69 # Webcam
70 register "usb2_ports[CONFIG_CCD_PORT]" = "USB2_PORT_MID(OC_SKIP)"
71 end
72 device ref thermal on end
73 device ref i2c0 on
74 chip drivers/i2c/hid
75 register "generic.hid" = ""STAR0001""
76 register "generic.desc" = ""Touchpad""
77 register "generic.irq" = "ACPI_IRQ_LEVEL_LOW(GPP_C23_IRQ)"
78 register "hid_desc_reg_offset" = "0x20"
79 device i2c 2c on end
80 end
81 end
82 device ref heci1 on end
83 device ref sata on
84 register "SataSalpSupport" = "1"
85 # Port 1
86 register "SataPortsEnable[1]" = "1"
87 register "SataPortsDevSlp[1]" = "1"
88 end
89 device ref uart2 on end
90 device ref pcie_rp6 on
91 register "PcieRpClkReqSupport[5]" = "true"
92 register "PcieRpClkReqNumber[5]" = "4"
93 register "PcieRpClkSrcNumber[5]" = "4"
94 register "PcieRpLtrEnable[5]" = "true"
95 chip drivers/wifi/generic
96 register "add_acpi_dma_property" = "true"
97 register "enable_cnvi_ddr_rfim" = "true"
98 device generic 0 on end
99 end
100 end
101 device ref pcie_rp9 on
102 register "PcieRpClkReqSupport[8]" = "true"
103 register "PcieRpClkReqNumber[8]" = "0"
104 register "PcieRpClkSrcNumber[8]" = "0"
105 register "PcieRpLtrEnable[8]" = "true"
106 smbios_slot_desc "SlotTypeM2Socket3" "SlotLengthOther" "M.2/M 2280" "SlotDataBusWidth4X"
107 end
108 device ref uart0 on end
109 device ref lpc_espi on
110 register "gen1_dec" = "0x00040069"
111 register "gen2_dec" = "0x00fc0201"
112 register "gen3_dec" = "0x000c0081"
113
114 chip ec/starlabs/merlin
115 # Port pair 4Eh/4Fh
116 device pnp 4e.01 off end # Com 1
117 device pnp 4e.02 off end # Com 2
118 device pnp 4e.04 off end # System Wake-Up
119 device pnp 4e.05 off end # PS/2 Mouse
120 device pnp 4e.06 on # PS/2 Keyboard
121 io 0x60 = 0x0060
122 io 0x62 = 0x0064
123 irq 0x70 = 1
124 end
125 device pnp 4e.0a off end # Consumer IR
126 device pnp 4e.0f off end # Shared Memory/Flash Interface
127 device pnp 4e.10 off end # RTC-like Timer
128 device pnp 4e.11 off end # Power Management Channel 1
129 device pnp 4e.12 off end # Power Management Channel 2
130 device pnp 4e.13 off end # Serial Peripheral Interface
131 device pnp 4e.14 off end # Platform EC Interface
132 device pnp 4e.17 off end # Power Management Channel 3
133 device pnp 4e.18 off end # Power Management Channel 4
134 device pnp 4e.19 off end # Power Management Channel 5
135 end
136 end
137 device ref hda on
138 subsystemid 0x10ec 0x10d0
139 end
140 device ref smbus on end
141 device ref fast_spi on end
142 end
143 end