aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/google
diff options
context:
space:
mode:
authorJulian Schroeder <julianmarcusschroeder@gmail.com>2021-05-21 14:56:00 -0500
committerFelix Held <felix-coreboot@felixheld.de>2021-05-26 15:16:01 +0000
commitcf2c99f40ca47b8c066e2eac3a873e7b45d03947 (patch)
treee6e5f0f9fca36ca975572bd62df2cc50d1f032ff /src/mainboard/google
parentd2f3308ad7efd01a2d23749aa4ccc6bc5efc8a56 (diff)
src/mainboard/google/guybrush: update devicetree with USB settings
All relevant USB phy settings can now be controlled via devicetree. The given values are the AMD default ones. For proper tuning procedure and values contact AMD. Signed-off-by: Julian Schroeder <julianmarcusschroeder@gmail.com> Change-Id: Ie8d08bde54f8c0cb8202ba111b9c7a9bd33fa03e Reviewed-on: https://review.coreboot.org/c/coreboot/+/54785 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Raul Rangel <rrangel@chromium.org> Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Diffstat (limited to 'src/mainboard/google')
-rw-r--r--src/mainboard/google/guybrush/variants/baseboard/devicetree.cb125
1 files changed, 125 insertions, 0 deletions
diff --git a/src/mainboard/google/guybrush/variants/baseboard/devicetree.cb b/src/mainboard/google/guybrush/variants/baseboard/devicetree.cb
index a30772054a..34540014ee 100644
--- a/src/mainboard/google/guybrush/variants/baseboard/devicetree.cb
+++ b/src/mainboard/google/guybrush/variants/baseboard/devicetree.cb
@@ -52,6 +52,131 @@ chip soc/amd/cezanne
register "i2c_scl_reset" = "GPIO_I2C0_SCL | GPIO_I2C1_SCL |
GPIO_I2C2_SCL | GPIO_I2C3_SCL"
+ register "usb_phy_custom" = "1"
+ register "usb_phy" = "{
+ .Usb2PhyPort[0] = {
+ .compdstune = 3,
+ .sqrxtune = 3,
+ .txfslstune = 3,
+ .txpreempamptune = 1,
+ .txpreemppulsetune = 0,
+ .txrisetune = 1,
+ .txvreftune = 6,
+ .txhsxvtune = 3,
+ .txrestune = 1,
+ },
+ .Usb2PhyPort[1] = {
+ .compdstune = 3,
+ .sqrxtune = 3,
+ .txfslstune = 3,
+ .txpreempamptune = 1,
+ .txpreemppulsetune = 0,
+ .txrisetune = 1,
+ .txvreftune = 6,
+ .txhsxvtune = 3,
+ .txrestune = 1,
+ },
+ .Usb2PhyPort[2] = {
+ .compdstune = 1,
+ .sqrxtune = 3,
+ .txfslstune = 3,
+ .txpreempamptune = 2,
+ .txpreemppulsetune = 0,
+ .txrisetune = 2,
+ .txvreftune = 3,
+ .txhsxvtune = 3,
+ .txrestune = 2,
+ },
+ .Usb2PhyPort[3] = {
+ .compdstune = 1,
+ .sqrxtune = 3,
+ .txfslstune = 3,
+ .txpreempamptune = 2,
+ .txpreemppulsetune = 0,
+ .txrisetune = 2,
+ .txvreftune = 3,
+ .txhsxvtune = 3,
+ .txrestune = 2,
+ },
+ .Usb2PhyPort[4] = {
+ .compdstune = 3,
+ .sqrxtune = 3,
+ .txfslstune = 3,
+ .txpreempamptune = 1,
+ .txpreemppulsetune = 0,
+ .txrisetune = 1,
+ .txvreftune = 6,
+ .txhsxvtune = 3,
+ .txrestune = 1,
+ },
+ .Usb2PhyPort[5] = {
+ .compdstune = 3,
+ .sqrxtune = 3,
+ .txfslstune = 3,
+ .txpreempamptune = 1,
+ .txpreemppulsetune = 0,
+ .txrisetune = 1,
+ .txvreftune = 6,
+ .txhsxvtune = 3,
+ .txrestune = 1,
+ },
+ .Usb2PhyPort[6] = {
+ .compdstune = 1,
+ .sqrxtune = 3,
+ .txfslstune = 3,
+ .txpreempamptune = 2,
+ .txpreemppulsetune = 0,
+ .txrisetune = 2,
+ .txvreftune = 3,
+ .txhsxvtune = 3,
+ .txrestune = 2,
+ },
+ .Usb2PhyPort[7] = {
+ .compdstune = 1,
+ .sqrxtune = 3,
+ .txfslstune = 3,
+ .txpreempamptune = 2,
+ .txpreemppulsetune = 0,
+ .txrisetune = 2,
+ .txvreftune = 3,
+ .txhsxvtune = 3,
+ .txrestune = 2,
+ },
+
+ .Usb3PhyPort[0] = {
+ .tx_term_ctrl=2,
+ .rx_term_ctrl=2,
+ .tx_vboost_lvl_en=1,
+ .tx_vboost_lvl=5,
+ },
+ .Usb3PhyPort[1] = {
+ .tx_term_ctrl=2,
+ .rx_term_ctrl=2,
+ .tx_vboost_lvl_en=1,
+ .tx_vboost_lvl=5,
+ },
+ .Usb3PhyPort[2] = {
+ .tx_term_ctrl=2,
+ .rx_term_ctrl=2,
+ .tx_vboost_lvl_en=1,
+ .tx_vboost_lvl=5,
+ },
+ .Usb3PhyPort[3] = {
+ .tx_term_ctrl=2,
+ .rx_term_ctrl=2,
+ .tx_vboost_lvl_en=1,
+ .tx_vboost_lvl=5,
+ },
+
+ .ComboPhyStaticConfig[0] = 0,
+ .ComboPhyStaticConfig[1] = 0,
+ .Version_Major = 0xd,
+ .Version_Minor = 0x4,
+ .TableLength = 100,
+ .BatteryChargerEnable = 0,
+ .PhyP3CpmP4Support = 0,
+ }"
+
device domain 0 on
device ref gpp_bridge_0 on
chip drivers/wifi/generic