Attention is currently required from: Tarun Tuli, Subrata Banik, Eric Lai.
Kapil Porwal has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/69937 )
Change subject: {drivers/wifi, mb/google}: Rename `is_untrusted` to `add_acpi_dma_property`
......................................................................
Patch Set 2:
(1 comment)
Patchset:
PS2:
> oh yes.
I think it is okay to use only 1 GUID (i.e. "70d24161-6dd5-4c9e-8070-705531292865") because the support is only available in the downstream kernel (CL:3406512, CL:3538626).
--
To view, visit https://review.coreboot.org/c/coreboot/+/69937
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I4e0829a76a193b0a1e1e0f2b7ce2119bb00dd696
Gerrit-Change-Number: 69937
Gerrit-PatchSet: 2
Gerrit-Owner: Kapil Porwal <kapilporwal(a)google.com>
Gerrit-Reviewer: Subrata Banik <subratabanik(a)google.com>
Gerrit-Reviewer: Tarun Tuli <taruntuli(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Eric Lai <eric_lai(a)quanta.corp-partner.google.com>
Gerrit-Attention: Tarun Tuli <taruntuli(a)google.com>
Gerrit-Attention: Subrata Banik <subratabanik(a)google.com>
Gerrit-Attention: Eric Lai <eric_lai(a)quanta.corp-partner.google.com>
Gerrit-Comment-Date: Thu, 24 Nov 2022 06:03:45 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Kapil Porwal <kapilporwal(a)google.com>
Comment-In-Reply-To: Eric Lai <eric_lai(a)quanta.corp-partner.google.com>
Gerrit-MessageType: comment
Martin L Roth has submitted this change. ( https://review.coreboot.org/c/coreboot/+/69853 )
(
2 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.
)Change subject: drivers/net/phy/m88e1512: Add downshift enable
......................................................................
drivers/net/phy/m88e1512: Add downshift enable
This patch provides the functionality to enable downshift on Marvell
PHY. By setting a downshift counter, the PHY is correspondingly often
attempted to establish Gigabit link before the PHY downshifts to the
next highest speed. The range is limited to 8 trials. To activate
downshift, a software reset must follow to take effect.
Change-Id: I4224eab6c1fc13824d53556c80435bc130a13bdb
Signed-off-by: Mario Scheithauer <mario.scheithauer(a)siemens.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/69853
Reviewed-by: Arthur Heymans <arthur(a)aheymans.xyz>
Tested-by: build bot (Jenkins) <no-reply(a)coreboot.org>
---
M src/drivers/net/phy/m88e1512/chip.h
M src/drivers/net/phy/m88e1512/m88e1512.c
M src/drivers/net/phy/m88e1512/m88e1512.h
3 files changed, 53 insertions(+), 0 deletions(-)
Approvals:
build bot (Jenkins): Verified
Arthur Heymans: Looks good to me, approved
diff --git a/src/drivers/net/phy/m88e1512/chip.h b/src/drivers/net/phy/m88e1512/chip.h
index 9a3523d..915001a 100644
--- a/src/drivers/net/phy/m88e1512/chip.h
+++ b/src/drivers/net/phy/m88e1512/chip.h
@@ -8,4 +8,7 @@
unsigned char led_1_ctrl; /* LED[1] Control */
unsigned char led_2_ctrl; /* LED[2] Control */
bool enable_int; /* INTn can be routed to LED[2] pin */
+ /* 1x, 2x,...8x is the number of times the PHY attempts to establish Gigabit link
+ before the PHY downshifts to the next highest speed. */
+ unsigned char downshift_cnt;
};
diff --git a/src/drivers/net/phy/m88e1512/m88e1512.c b/src/drivers/net/phy/m88e1512/m88e1512.c
index a8d1c73..f32991f 100644
--- a/src/drivers/net/phy/m88e1512/m88e1512.c
+++ b/src/drivers/net/phy/m88e1512/m88e1512.c
@@ -17,6 +17,28 @@
struct drivers_net_phy_m88e1512_config *config = dev->chip_info;
uint16_t reg;
+ /* Enable downshift. */
+ if (config->downshift_cnt) {
+ if (config->downshift_cnt > DOWNSHIFT_CNT_MAX) {
+ printk(BIOS_INFO, "%s: Downshift counter for %s is too large.\n",
+ dev_path(dev->bus->dev), dev->chip_ops->name);
+ } else {
+ printk(BIOS_DEBUG, "%s: Enable downshift after %d attempts for %s.\n",
+ dev_path(dev->bus->dev), config->downshift_cnt,
+ dev->chip_ops->name);
+
+ reg = mdio_read(dev, COPPER_SPEC_CTRL_REG_1);
+ clrsetbits16(®, DOWNSHIFT_CNT_MASK,
+ DOWNSHIFT_CNT(config->downshift_cnt) | DOWNSHIFT_EN);
+ mdio_write(dev, COPPER_SPEC_CTRL_REG_1, reg);
+
+ /* Downshift enable requires a software reset to take effect. */
+ reg = mdio_read(dev, COPPER_CTRL_REG);
+ setbits16(®, SOFTWARE_RESET);
+ mdio_write(dev, COPPER_CTRL_REG, reg);
+ }
+ }
+
/* Configure LEDs if requested. */
if (config->configure_leds) {
printk(BIOS_DEBUG, "%s: Set a customized LED mode for %s.\n",
diff --git a/src/drivers/net/phy/m88e1512/m88e1512.h b/src/drivers/net/phy/m88e1512/m88e1512.h
index ca0f756..449cc57 100644
--- a/src/drivers/net/phy/m88e1512/m88e1512.h
+++ b/src/drivers/net/phy/m88e1512/m88e1512.h
@@ -5,6 +5,15 @@
/* Register layout */
#define PAGE_REG 0x16
+/* Page 0 registers */
+#define COPPER_CTRL_REG 0
+#define SOFTWARE_RESET (1 << 15)
+#define COPPER_SPEC_CTRL_REG_1 0x10
+#define DOWNSHIFT_CNT_MASK 0x7000
+#define DOWNSHIFT_CNT_MAX 8
+#define DOWNSHIFT_CNT(cnt) ((cnt - 1) << 12)
+#define DOWNSHIFT_EN (1 << 11)
+/* Page 3 registers */
#define LED_FUNC_CTRL_REG 0x10
#define LED_FUNC_CTRL_MASK 0x0FFF
#define LED_TIMER_CTRL_REG 0x12
--
To view, visit https://review.coreboot.org/c/coreboot/+/69853
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I4224eab6c1fc13824d53556c80435bc130a13bdb
Gerrit-Change-Number: 69853
Gerrit-PatchSet: 4
Gerrit-Owner: Mario Scheithauer <mario.scheithauer(a)siemens.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Martin L Roth <gaumless(a)gmail.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-MessageType: merged
Martin L Roth has submitted this change. ( https://review.coreboot.org/c/coreboot/+/69434 )
(
10 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.
)Change subject: mb/siemens/mc_ehl2: Enable Marvell PHY interrupt
......................................................................
mb/siemens/mc_ehl2: Enable Marvell PHY interrupt
On this mainboard Marvell PHY INTn is routed to LED[2] pin.
Change-Id: I28a78afdcf0599bb998f906ce8056a0586e24f33
Signed-off-by: Mario Scheithauer <mario.scheithauer(a)siemens.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/69434
Reviewed-by: Werner Zeh <werner.zeh(a)siemens.com>
Reviewed-by: Arthur Heymans <arthur(a)aheymans.xyz>
Tested-by: build bot (Jenkins) <no-reply(a)coreboot.org>
---
M src/mainboard/siemens/mc_ehl/variants/mc_ehl2/devicetree.cb
1 file changed, 22 insertions(+), 0 deletions(-)
Approvals:
build bot (Jenkins): Verified
Werner Zeh: Looks good to me, approved
Arthur Heymans: Looks good to me, approved
diff --git a/src/mainboard/siemens/mc_ehl/variants/mc_ehl2/devicetree.cb b/src/mainboard/siemens/mc_ehl/variants/mc_ehl2/devicetree.cb
index b8ea1b6..8090927 100644
--- a/src/mainboard/siemens/mc_ehl/variants/mc_ehl2/devicetree.cb
+++ b/src/mainboard/siemens/mc_ehl/variants/mc_ehl2/devicetree.cb
@@ -189,6 +189,8 @@
register "led_0_ctrl" = "7"
# LED[1]: On - Link, Blink - Activity, Off - No Link
register "led_1_ctrl" = "1"
+ # INTn is routed to LED[2] pin
+ register "enable_int" = "true"
device mdio 0 on # PHY address
ops m88e1512_ops
end
@@ -202,6 +204,8 @@
register "led_0_ctrl" = "7"
# LED[1]: On - Link, Blink - Activity, Off - No Link
register "led_1_ctrl" = "1"
+ # INTn is routed to LED[2] pin
+ register "enable_int" = "true"
device mdio 1 on # PHY address
ops m88e1512_ops
end
@@ -218,6 +222,8 @@
register "led_0_ctrl" = "7"
# LED[1]: On - Link, Blink - Activity, Off - No Link
register "led_1_ctrl" = "1"
+ # INTn is routed to LED[2] pin
+ register "enable_int" = "true"
device mdio 1 on # PHY address
ops m88e1512_ops
end
--
To view, visit https://review.coreboot.org/c/coreboot/+/69434
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I28a78afdcf0599bb998f906ce8056a0586e24f33
Gerrit-Change-Number: 69434
Gerrit-PatchSet: 12
Gerrit-Owner: Mario Scheithauer <mario.scheithauer(a)siemens.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Martin L Roth <gaumless(a)gmail.com>
Gerrit-Reviewer: Werner Zeh <werner.zeh(a)siemens.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Jan Samek <jan.samek(a)siemens.com>
Gerrit-MessageType: merged
Martin L Roth has submitted this change. ( https://review.coreboot.org/c/coreboot/+/69387 )
(
18 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.
)Change subject: mb/siemens/mc_ehl2: Enable Marvell PHY 88E1512 driver
......................................................................
mb/siemens/mc_ehl2: Enable Marvell PHY 88E1512 driver
This mainboard has three Marvel PHYs connected to the internal SOC GbE
controllers. The default LED status after HW reset of this PHYs shows a
different mode than what is needed. LED[2] is not connected on this
mainboard.
This patch sets the following LED status:
LED[0] - 7 = On - 1000 Mbps Link, Off - Else
LED[1] - 1 = On - Link, Blink - Activity, Off - No Link
LED[2] - not connected
TEST=Try different register values to verify LED feature.
Change-Id: I51d817bc720bf787279777f503efdc17dbb1274d
Signed-off-by: Mario Scheithauer <mario.scheithauer(a)siemens.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/69387
Reviewed-by: Werner Zeh <werner.zeh(a)siemens.com>
Reviewed-by: Arthur Heymans <arthur(a)aheymans.xyz>
Tested-by: build bot (Jenkins) <no-reply(a)coreboot.org>
---
M src/mainboard/siemens/mc_ehl/variants/mc_ehl2/Kconfig
M src/mainboard/siemens/mc_ehl/variants/mc_ehl2/devicetree.cb
2 files changed, 66 insertions(+), 3 deletions(-)
Approvals:
build bot (Jenkins): Verified
Werner Zeh: Looks good to me, approved
Arthur Heymans: Looks good to me, approved
diff --git a/src/mainboard/siemens/mc_ehl/variants/mc_ehl2/Kconfig b/src/mainboard/siemens/mc_ehl/variants/mc_ehl2/Kconfig
index 00875fb..9e3e9dc 100644
--- a/src/mainboard/siemens/mc_ehl/variants/mc_ehl2/Kconfig
+++ b/src/mainboard/siemens/mc_ehl/variants/mc_ehl2/Kconfig
@@ -6,6 +6,7 @@
select DRIVER_INTEL_I210
select SOC_INTEL_COMMON_BLOCK_LPC_COMB_ENABLE
select EHL_TSN_DRIVER
+ select DRIVERS_ETH_PHY_M88E1512
config FMDFILE
default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/mc_ehl.fmd"
diff --git a/src/mainboard/siemens/mc_ehl/variants/mc_ehl2/devicetree.cb b/src/mainboard/siemens/mc_ehl/variants/mc_ehl2/devicetree.cb
index 4dd062c..b8ea1b6 100644
--- a/src/mainboard/siemens/mc_ehl/variants/mc_ehl2/devicetree.cb
+++ b/src/mainboard/siemens/mc_ehl/variants/mc_ehl2/devicetree.cb
@@ -181,12 +181,48 @@
device pci 1c.6 on end # RP7 (pcie3 multi VC)
device pci 1d.0 off end # Intel PSE IPC (local host to PSE)
- device pci 1d.1 on end # Intel PSE Time-Sensitive Networking GbE 0
- device pci 1d.2 on end # Intel PSE Time-Sensitive Networking GbE 1
+ device pci 1d.1 on # Intel PSE Time-Sensitive Networking GbE 0
+ # Enable external Marvell PHY 88E1512
+ chip drivers/net/phy/m88e1512
+ register "configure_leds" = "true"
+ # LED[0]: On - 1000 Mbps Link, Off - Else
+ register "led_0_ctrl" = "7"
+ # LED[1]: On - Link, Blink - Activity, Off - No Link
+ register "led_1_ctrl" = "1"
+ device mdio 0 on # PHY address
+ ops m88e1512_ops
+ end
+ end
+ end
+ device pci 1d.2 on # Intel PSE Time-Sensitive Networking GbE 1
+ # Enable external Marvell PHY 88E1512
+ chip drivers/net/phy/m88e1512
+ register "configure_leds" = "true"
+ # LED[0]: On - 1000 Mbps Link, Off - Else
+ register "led_0_ctrl" = "7"
+ # LED[1]: On - Link, Blink - Activity, Off - No Link
+ register "led_1_ctrl" = "1"
+ device mdio 1 on # PHY address
+ ops m88e1512_ops
+ end
+ end
+ end
device pci 1e.0 on end # UART0
device pci 1e.1 on end # UART1
- device pci 1e.4 on end # PCH Time-Sensitive Networking GbE
+ device pci 1e.4 on # PCH Time-Sensitive Networking GbE
+ # Enable external Marvell PHY 88E1512
+ chip drivers/net/phy/m88e1512
+ register "configure_leds" = "true"
+ # LED[0]: On - 1000 Mbps Link, Off - Else
+ register "led_0_ctrl" = "7"
+ # LED[1]: On - Link, Blink - Activity, Off - No Link
+ register "led_1_ctrl" = "1"
+ device mdio 1 on # PHY address
+ ops m88e1512_ops
+ end
+ end
+ end
device pci 1f.0 on # eSPI Interface
chip drivers/pc80/tpm
--
To view, visit https://review.coreboot.org/c/coreboot/+/69387
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I51d817bc720bf787279777f503efdc17dbb1274d
Gerrit-Change-Number: 69387
Gerrit-PatchSet: 20
Gerrit-Owner: Mario Scheithauer <mario.scheithauer(a)siemens.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Martin L Roth <gaumless(a)gmail.com>
Gerrit-Reviewer: Werner Zeh <werner.zeh(a)siemens.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Jan Samek <jan.samek(a)siemens.com>
Gerrit-MessageType: merged
Martin L Roth has submitted this change. ( https://review.coreboot.org/c/coreboot/+/69384 )
(
13 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.
)Change subject: drivers/net/phy/m88e1512: Add new driver for Marvell PHY 88E1512
......................................................................
drivers/net/phy/m88e1512: Add new driver for Marvell PHY 88E1512
This driver enables the usage of an external Marvell PHY 88E1512 which
should be connected to a SOC internal MAC controller. In a first step it
is only the framework of the driver. Functionality will follow with a
second patch.
Change-Id: I24011860caa7bb206770f9779eb34b689293db10
Signed-off-by: Mario Scheithauer <mario.scheithauer(a)siemens.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/69384
Reviewed-by: Werner Zeh <werner.zeh(a)siemens.com>
Reviewed-by: Arthur Heymans <arthur(a)aheymans.xyz>
Tested-by: build bot (Jenkins) <no-reply(a)coreboot.org>
---
A src/drivers/net/phy/m88e1512/Kconfig
A src/drivers/net/phy/m88e1512/Makefile.inc
A src/drivers/net/phy/m88e1512/m88e1512.c
3 files changed, 42 insertions(+), 0 deletions(-)
Approvals:
build bot (Jenkins): Verified
Werner Zeh: Looks good to me, approved
Arthur Heymans: Looks good to me, approved
diff --git a/src/drivers/net/phy/m88e1512/Kconfig b/src/drivers/net/phy/m88e1512/Kconfig
new file mode 100644
index 0000000..24405a5
--- /dev/null
+++ b/src/drivers/net/phy/m88e1512/Kconfig
@@ -0,0 +1,5 @@
+config DRIVERS_ETH_PHY_M88E1512
+ bool
+ default n
+ help
+ Enable support for external Marvell PHY chip 88E1512.
diff --git a/src/drivers/net/phy/m88e1512/Makefile.inc b/src/drivers/net/phy/m88e1512/Makefile.inc
new file mode 100644
index 0000000..043b3a3
--- /dev/null
+++ b/src/drivers/net/phy/m88e1512/Makefile.inc
@@ -0,0 +1 @@
+ramstage-$(CONFIG_DRIVERS_ETH_PHY_M88E1512) += m88e1512.c
diff --git a/src/drivers/net/phy/m88e1512/m88e1512.c b/src/drivers/net/phy/m88e1512/m88e1512.c
new file mode 100644
index 0000000..3f45a10
--- /dev/null
+++ b/src/drivers/net/phy/m88e1512/m88e1512.c
@@ -0,0 +1,17 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <device/device.h>
+
+static void m88e1512_init(struct device *dev)
+{
+}
+
+struct device_operations m88e1512_ops = {
+ .read_resources = noop_read_resources,
+ .set_resources = noop_set_resources,
+ .init = m88e1512_init,
+};
+
+struct chip_operations drivers_net_phy_m88e1512_ops = {
+ CHIP_NAME("88E1512")
+};
--
To view, visit https://review.coreboot.org/c/coreboot/+/69384
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I24011860caa7bb206770f9779eb34b689293db10
Gerrit-Change-Number: 69384
Gerrit-PatchSet: 15
Gerrit-Owner: Mario Scheithauer <mario.scheithauer(a)siemens.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Martin L Roth <gaumless(a)gmail.com>
Gerrit-Reviewer: Werner Zeh <werner.zeh(a)siemens.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-MessageType: merged