Attention is currently required from: Matt DeVillier, Paul Menzel, Sean Rhodes.
Angel Pons has posted comments on this change by Sean Rhodes. ( https://review.coreboot.org/c/coreboot/+/81409?usp=email )
Change subject: i2c/drivers/generic: Add support for including a CDM
......................................................................
Patch Set 9:
(3 comments)
File src/drivers/i2c/generic/chip.h:
https://review.coreboot.org/c/coreboot/+/81409/comment/7e68993a_7e6ab8e8?us… :
PS9, Line 98: bool has_cdm;
: int cdm_index;
If a zero value is not valid, the boolean isn't needed:
```suggestion
enum {
CDM_NOT_PRESENT = 0,
CDM_ROT_90 = 1,
CDM_ROT_180 = 2,
CDM_ROT_270 = 3,
CDM_ROT_0 = 4,
CDM_ROT_90_INVERT = 5,
CDM_ROT_180_INVERT = 6,
CDM_ROT_270_INVERT = 7,
CDM_ROT_0_INVERT = 8,
} cdm_index;
```
The acpigen magic would be skipped if `cdm_index` equals `CDM_NOT_PRESENT` (the default for unspecified devicetree settings)
File src/drivers/i2c/generic/generic.c:
https://review.coreboot.org/c/coreboot/+/81409/comment/5ba1298b_f98b407d?us… :
PS9, Line 170: acpigen_write_method("_CDM", 1);
Could this be a Name instead? Or does it need to be a Method?
https://review.coreboot.org/c/coreboot/+/81409/comment/576bebdb_c8adbbae?us… :
PS9, Line 171: +
Any reason not to use a bitwise OR?
--
To view, visit https://review.coreboot.org/c/coreboot/+/81409?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: If70c25288d835df7064b4051c43abeb2d6531f3b
Gerrit-Change-Number: 81409
Gerrit-PatchSet: 9
Gerrit-Owner: Sean Rhodes <sean(a)starlabs.systems>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-CC: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-CC: Matt DeVillier <matt.devillier(a)gmail.com>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Sean Rhodes <sean(a)starlabs.systems>
Gerrit-Attention: Matt DeVillier <matt.devillier(a)gmail.com>
Gerrit-Attention: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Comment-Date: Sat, 27 Jul 2024 11:17:55 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Attention is currently required from: Felix Held, Felix Singer, Martin Roth, Maxim, Michał Żygowski, Paul Menzel.
Angel Pons has posted comments on this change by Maxim. ( https://review.coreboot.org/c/coreboot/+/83004?usp=email )
Change subject: util/superiotool/fintek: Add f81866 register table
......................................................................
Patch Set 18: Code-Review+2
--
To view, visit https://review.coreboot.org/c/coreboot/+/83004?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I4367a1129fe628e7bf05d49678ea1c3718da710b
Gerrit-Change-Number: 83004
Gerrit-PatchSet: 18
Gerrit-Owner: Maxim <max.senia.poliak(a)gmail.com>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Felix Singer <service+coreboot-gerrit(a)felixsinger.de>
Gerrit-Reviewer: Michał Żygowski <michal.zygowski(a)3mdeb.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Martin Roth <martin.roth(a)amd.corp-partner.google.com>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Felix Singer <service+coreboot-gerrit(a)felixsinger.de>
Gerrit-Attention: Michał Żygowski <michal.zygowski(a)3mdeb.com>
Gerrit-Attention: Maxim <max.senia.poliak(a)gmail.com>
Gerrit-Attention: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Martin Roth <martin.roth(a)amd.corp-partner.google.com>
Gerrit-Attention: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Comment-Date: Sat, 27 Jul 2024 11:11:17 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Attention is currently required from: Felix Held, Maxim, Paul Menzel.
Angel Pons has posted comments on this change by Maxim. ( https://review.coreboot.org/c/coreboot/+/83196?usp=email )
Change subject: util/superiotool: Add extra selectors support
......................................................................
Patch Set 8: Code-Review+2
--
To view, visit https://review.coreboot.org/c/coreboot/+/83196?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: If56af9f977381e637245bdd26563f5ba7e6cbead
Gerrit-Change-Number: 83196
Gerrit-PatchSet: 8
Gerrit-Owner: Maxim <max.senia.poliak(a)gmail.com>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Felix Singer <service+coreboot-gerrit(a)felixsinger.de>
Gerrit-CC: Martin L Roth <gaumless(a)gmail.com>
Gerrit-CC: Michał Żygowski <michal.zygowski(a)3mdeb.com>
Gerrit-CC: Nico Huber <nico.h(a)gmx.de>
Gerrit-Attention: Maxim <max.senia.poliak(a)gmail.com>
Gerrit-Attention: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Comment-Date: Sat, 27 Jul 2024 11:11:13 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Attention is currently required from: Alexander Couzens, Cleyton Silva, Keith Hui.
Angel Pons has posted comments on this change by Cleyton Silva. ( https://review.coreboot.org/c/coreboot/+/83670?usp=email )
Change subject: mb/lenovo: Add IH61M mainboard
......................................................................
Patch Set 1: Code-Review+1
(24 comments)
Patchset:
PS1:
Welcome to coreboot!
Commit Message:
https://review.coreboot.org/c/coreboot/+/83670/comment/d1282377_c83b0844?us… :
PS1, Line 13: 2MB+4MB
Hmmm, usually the larger chip is the first one. Could you please check? I believe inteltool's dump option would answer this question, if you have a full firmware dump.
https://review.coreboot.org/c/coreboot/+/83670/comment/6fb84b74_e905652f?us… :
PS1, Line 20: - All USB ports
: - USB 2.0 headers
"All USB ports" would already include "USB 2.0 headers", I believe. Was any USB port/header/connector not tested?
https://review.coreboot.org/c/coreboot/+/83670/comment/59760835_3dd1e926?us… :
PS1, Line 26: - Audio
If the `F_AUDIO` header is untested, I imagine this refers to the rear audio jacks. Would be nice to specify
https://review.coreboot.org/c/coreboot/+/83670/comment/73a013b4_12a0af4f?us… :
PS1, Line 43: - Internal flashing
: - External flashing (in-circuit)
Flashing internally should be possible when running coreboot. Could you please describe the errors you get in each case?
Also, how was the board flashed?
File src/mainboard/lenovo/ih61m/Kconfig:
https://review.coreboot.org/c/coreboot/+/83670/comment/5a95f317_387a5295?us… :
PS1, Line 27: config DRAM_RESET_GATE_GPIO
: int
: default 60
Default, can be dropped.
https://review.coreboot.org/c/coreboot/+/83670/comment/e784873a_52fe2775?us… :
PS1, Line 31: config USBDEBUG_HCD_INDEX
: int
: default 2 #top usb port located next to vga connector
: #default 1 #yellow upper header F_USB1
The `int` type is not needed, and I would refactor the comments a bit:
```suggestion
# HCD 1: yellow upper header F_USB1
# HCD 2: top USB port located next to VGA connector
config USBDEBUG_HCD_INDEX
default 2
```
Defaulting to the connector on the back panel is very reasonable (it doesn't require extra hardware to be used)
File src/mainboard/lenovo/ih61m/Kconfig.name:
https://review.coreboot.org/c/coreboot/+/83670/comment/34efbda6_3f9a743d?us… :
PS1, Line 1: config BOARD_LENOVO_IH61MV1
: bool "IH61M Ver:1.0"
:
: config BOARD_LENOVO_IH61MV4
: bool "IH61M Ver:4.2"
nit-pick: Add an extra underscore to the Kconfig symbols to separate the model and the version?
```suggestion
config BOARD_LENOVO_IH61M_V1
bool "IH61M Ver:1.0"
config BOARD_LENOVO_IH61M_V4
bool "IH61M Ver:4.2"
```
File src/mainboard/lenovo/ih61m/acpi_tables.c:
PS1:
You can delete this file. autoport generates it by default but it only makes a difference if other code uses these GNVS values.
File src/mainboard/lenovo/ih61m/devicetree.cb:
https://review.coreboot.org/c/coreboot/+/83670/comment/de293a66_c5f03988?us… :
PS1, Line 1: # SPDX-License-Identifier: GPL-2.0-or-later
: chip northbridge/intel/sandybridge
nit-pick: Add a blank line after the license header?
```suggestion
# SPDX-License-Identifier: GPL-2.0-or-later
chip northbridge/intel/sandybridge
```
https://review.coreboot.org/c/coreboot/+/83670/comment/5e953c89_d2379311?us… :
PS1, Line 6: device ref host_bridge on end # Host bridge
Devices that are already on/off in the chipset devicetree [1] can be omitted. Here, the host bridge is already enabled.
[1]: https://github.com/coreboot/coreboot/blob/main/src/northbridge/intel/sandyb…https://review.coreboot.org/c/coreboot/+/83670/comment/e3d07e84_ea6fd2c1?us… :
PS1, Line 10: register "docking_supported" = "0"
Generally, a devicetree "register" that is set to a zero value can be omitted (it is already zero by default). This line can be omitted
https://review.coreboot.org/c/coreboot/+/83670/comment/9839224f_046973bd?us… :
PS1, Line 14: register "gen4_dec" = "0x00000000"
: register "pcie_hotplug_map" = "{ 0, 0, 0, 0, 0, 0, 0, 0 }"
Zero by default, can also be omitted
https://review.coreboot.org/c/coreboot/+/83670/comment/5e62c1aa_cf8517e8?us… :
PS1, Line 37: device ref mei1 on end
: device ref me_ide_r off end
: device ref me_kt off end
Same state as chipset devicetree, can be omitted.
https://review.coreboot.org/c/coreboot/+/83670/comment/008da120_e377072c?us… :
PS1, Line 41: device ref gbe on end
This device is only used with a special kind of Intel GbE controllers. Looks like this board uses a Realtek GbE controller instead, so this line can be removed.
https://review.coreboot.org/c/coreboot/+/83670/comment/72bcbc7c_2cd5f947?us… :
PS1, Line 43: device ref pcie_rp1 on end
: device ref pcie_rp4 on end # PCIEX1_1
: device ref pcie_rp5 on end # PCIEX1_2
: device ref pcie_rp6 on end
Do you know what the rest of PCIe ports are used for? From the V1.0 schematics, looks like the mapping is as follows:
```suggestion
device ref pcie_rp4 on end # PCIEX1_1 slot
device ref pcie_rp5 on end # PCIEX1_2 slot
device ref pcie_rp6 on end # Realtek RTL8111E GbE
```
https://review.coreboot.org/c/coreboot/+/83670/comment/cd8031a2_6b8d4c4c?us… :
PS1, Line 67: io 0x60 = 0x02f8
nit-pick: Use consistent style across the file, e.g.
```suggestion
io 0x60 = 0x2f8
```
https://review.coreboot.org/c/coreboot/+/83670/comment/31a5bd41_d60f0ec1?us… :
PS1, Line 107: device ref sata2 off end # SATA (Legacy)
Already disabled in chipset devicetree, can remove from here
https://review.coreboot.org/c/coreboot/+/83670/comment/f788367e_e89ecc24?us… :
PS1, Line 108: device ref smbus on end # SMBus
Already enabled in chipset devicetree, can remove from here
File src/mainboard/lenovo/ih61m/early_init.c:
https://review.coreboot.org/c/coreboot/+/83670/comment/89f7ae5e_3961f6ff?us… :
PS1, Line 1: /* SPDX-License-Identifier: GPL-2.0-only */
: #include <bootblock_common.h>
Nit-pick: Blank line after license header:
```suggestion
/* SPDX-License-Identifier: GPL-2.0-only */
#include <bootblock_common.h>
```
File src/mainboard/lenovo/ih61m/gma-mainboard.ads:
https://review.coreboot.org/c/coreboot/+/83670/comment/16f03323_65b25afe?us… :
PS1, Line 11: ports : constant Port_List :=
: (HDMI1,
: HDMI2,
: HDMI3,
: Analog,
: others => Disabled);
V1.0 schematics say DVI-D is on digital output D (HDMI3):
```suggestion
ports : constant Port_List :=
(HDMI3, -- DVI-D
Analog, -- VGA
others => Disabled);
```
File src/mainboard/lenovo/ih61m/hda_verb.c:
https://review.coreboot.org/c/coreboot/+/83670/comment/025f808f_ac7aaa75?us… :
PS1, Line 21: 0x80862805, /* Codec Vendor / Device ID: Intel */
: 0x80860101, /* Subsystem ID */
: 4, /* Number of 4 dword sets */
: AZALIA_SUBVENDOR(3, 0x80860101),
: AZALIA_PIN_CFG(3, 0x05, 0x18560010),
: AZALIA_PIN_CFG(3, 0x06, 0x18560020),
: AZALIA_PIN_CFG(3, 0x07, 0x18560030),
This is for the iGPU's audio outputs. If this board doesn't have HDMI or DP outputs, this is irrelevant (neither DVI nor VGA support audio)
https://review.coreboot.org/c/coreboot/+/83670/comment/0b4b7186_e71b0828?us… :
PS1, Line 28:
nit-pick: drop blank line
File src/mainboard/lenovo/ih61m/mainboard.c:
https://review.coreboot.org/c/coreboot/+/83670/comment/340c5338_4f5ca01c?us… :
PS1, Line 10: beep(2500, 100);
This is not mainboard-specific. Instead, consider making a separate change that adds a Kconfig option to enable beeping on boot.
--
To view, visit https://review.coreboot.org/c/coreboot/+/83670?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: Ia7387bd46113e85fd00b17374ec4dee8e23b4e2c
Gerrit-Change-Number: 83670
Gerrit-PatchSet: 1
Gerrit-Owner: Cleyton Silva <pokecleyton(a)gmail.com>
Gerrit-Reviewer: Alexander Couzens <lynxis(a)fe80.eu>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Keith Hui <buurin(a)gmail.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Keith Hui <buurin(a)gmail.com>
Gerrit-Attention: Cleyton Silva <pokecleyton(a)gmail.com>
Gerrit-Attention: Alexander Couzens <lynxis(a)fe80.eu>
Gerrit-Comment-Date: Sat, 27 Jul 2024 11:10:15 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Subrata Banik has submitted this change. ( https://review.coreboot.org/c/coreboot/+/83666?usp=email )
Change subject: mb/google/brya/var/trulo: Add USB2 Bluetooth device on Port 10
......................................................................
mb/google/brya/var/trulo: Add USB2 Bluetooth device on Port 10
This change adds a new USB2 Bluetooth device configuration on Port 10
for the Trulo variant.
* A new `drivers/usb/acpi` chip is added with:
* `desc` set to "USB2 Bluetooth"
* `type` set to "UPC_TYPE_INTERNAL"
* `reset_gpio` set to "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_A13)"
* `device` referencing `usb2_port10`
BUG=b:351976770
TEST=Builds successfully for google/trulo.
Change-Id: I9a92a4d008eb4d0c339079ecbbb77facece435ba
Signed-off-by: Subrata Banik <subratabanik(a)google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/83666
Tested-by: build bot (Jenkins) <no-reply(a)coreboot.org>
Reviewed-by: Eric Lai <ericllai(a)google.com>
---
M src/mainboard/google/brya/variants/trulo/overridetree.cb
1 file changed, 6 insertions(+), 0 deletions(-)
Approvals:
Eric Lai: Looks good to me, approved
build bot (Jenkins): Verified
diff --git a/src/mainboard/google/brya/variants/trulo/overridetree.cb b/src/mainboard/google/brya/variants/trulo/overridetree.cb
index a9be57c..3ae9f85 100644
--- a/src/mainboard/google/brya/variants/trulo/overridetree.cb
+++ b/src/mainboard/google/brya/variants/trulo/overridetree.cb
@@ -446,6 +446,12 @@
device ref usb2_port5 on end
end
chip drivers/usb/acpi
+ register "desc" = ""USB2 Bluetooth""
+ register "type" = "UPC_TYPE_INTERNAL"
+ register "reset_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_A13)"
+ device ref usb2_port10 on end
+ end
+ chip drivers/usb/acpi
register "desc" = ""USB3 Type-A Port A0 (MLB)""
register "type" = "UPC_TYPE_USB3_A"
register "use_custom_pld" = "true"
--
To view, visit https://review.coreboot.org/c/coreboot/+/83666?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I9a92a4d008eb4d0c339079ecbbb77facece435ba
Gerrit-Change-Number: 83666
Gerrit-PatchSet: 2
Gerrit-Owner: Subrata Banik <subratabanik(a)google.com>
Gerrit-Reviewer: Amanda Hwang <amanda_hwang(a)compal.corp-partner.google.com>
Gerrit-Reviewer: Dinesh Gehlot <digehlot(a)google.com>
Gerrit-Reviewer: Eric Lai <ericllai(a)google.com>
Gerrit-Reviewer: Kapil Porwal <kapilporwal(a)google.com>
Gerrit-Reviewer: Nick Vaccaro <nvaccaro(a)chromium.org>
Gerrit-Reviewer: Rishika Raj <rishikaraj(a)google.com>
Gerrit-Reviewer: Subrata Banik <subratabanik(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>