ipq: Change qca808x mode to SGMII by default

This patch updates the default uniphy mode to SGMII
for the qca808x ports. If suppose, the phy is capable
of supporting 2.5G, then it will reconfigure the
uniphy mode to SGMII_PLUS at that time based on the
link speed detected.

Change-Id: I56692b19536e71cbcf3a4c31d32ecb29866c5fdc
Signed-off-by: Selvam Sathappan Periakaruppan <quic_speriaka@quicinc.com>
This commit is contained in:
Selvam Sathappan Periakaruppan 2022-01-25 15:21:34 +05:30 committed by Gerrit - the friendly Code Review server
parent d5357b5326
commit a8ed69675d
15 changed files with 21 additions and 21 deletions

View file

@ -52,7 +52,7 @@
};
ess-switch {
switch_mac_mode = <PORT_WRAPPER_PSGMII>;
switch_mac_mode1 = <PORT_WRAPPER_SGMII_PLUS>;
switch_mac_mode1 = <PORT_WRAPPER_SGMII>;
napa_gpio = <77>;
napa_gpio_cnt = <1>;
malibu_gpio = <75>;

View file

@ -25,8 +25,8 @@
i2c1 = "/i2c@78ba000";
};
ess-switch {
switch_mac_mode = <PORT_WRAPPER_SGMII_PLUS>;
switch_mac_mode1 = <PORT_WRAPPER_SGMII_PLUS>;
switch_mac_mode = <PORT_WRAPPER_SGMII>;
switch_mac_mode1 = <PORT_WRAPPER_SGMII>;
napa_gpio = <77>;
napa_gpio_cnt = <1>;
mdc_mdio_gpio = <64 65>;

View file

@ -179,7 +179,7 @@
ess-switch {
switch_mac_mode = <PORT_WRAPPER_PSGMII>;
switch_mac_mode1 = <PORT_WRAPPER_SGMII_PLUS>;
switch_mac_mode1 = <PORT_WRAPPER_SGMII>;
napa_gpio = <77>;
napa_gpio_cnt = <1>;
malibu_gpio = <75>;

View file

@ -26,8 +26,8 @@
i2c1 = "/i2c@78ba000";
};
ess-switch {
switch_mac_mode = <PORT_WRAPPER_SGMII_PLUS>;
switch_mac_mode1 = <PORT_WRAPPER_SGMII_PLUS>;
switch_mac_mode = <PORT_WRAPPER_SGMII>;
switch_mac_mode1 = <PORT_WRAPPER_SGMII>;
napa_gpio = <77>;
napa_gpio_cnt = <1>;
mdc_mdio_gpio = <64 65>;

View file

@ -25,8 +25,8 @@
};
ess-switch {
switch_mac_mode = <0x0>;
switch_mac_mode1 = <0x6>;
switch_mac_mode2 = <0x6>;
switch_mac_mode1 = <0x1>;
switch_mac_mode2 = <0x1>;
napa_gpio = <25 44>;
napa_gpio_cnt = <2>;
port_phyinfo {

View file

@ -25,8 +25,8 @@
};
ess-switch {
switch_mac_mode = <0x0>;
switch_mac_mode1 = <0x6>;
switch_mac_mode2 = <0x6>;
switch_mac_mode1 = <0x1>;
switch_mac_mode2 = <0x1>;
napa_gpio = <25 44>;
napa_gpio_cnt = <2>;
port_phyinfo {

View file

@ -25,8 +25,8 @@
};
ess-switch {
switch_mac_mode = <0x0>;
switch_mac_mode1 = <0x6>;
switch_mac_mode2 = <0x6>;
switch_mac_mode1 = <0x1>;
switch_mac_mode2 = <0x1>;
napa_gpio = <25 44>;
napa_gpio_cnt = <2>;
port_phyinfo {

View file

@ -27,7 +27,7 @@
ess-switch {
switch_mac_mode = <0x0>;
switch_mac_mode1 = <0x2>;
switch_mac_mode2 = <0x6>;
switch_mac_mode2 = <0x1>;
napa_gpio = <26>;
napa_gpio_cnt = <1>;
aquantia_port = <4>;

View file

@ -25,7 +25,7 @@
ess-switch {
switch_mac_mode = <0x0>;
switch_mac_mode1 = <0xFF>;
switch_mac_mode2 = <0x6>;
switch_mac_mode2 = <0x1>;
napa_gpio = <44>;
napa_gpio_cnt = <1>;
port_phyinfo {

View file

@ -25,7 +25,7 @@
};
ess-switch {
switch_mac_mode = <0x1>;
switch_mac_mode1 = <0x6>;
switch_mac_mode1 = <0x1>;
switch_mac_mode2 = <0x2>;
8033_port = <0>;
aquantia_port = <5>;

View file

@ -25,8 +25,8 @@
};
ess-switch {
switch_mac_mode = <0x0>;
switch_mac_mode1 = <0x6>;
switch_mac_mode2 = <0x6>;
switch_mac_mode1 = <0x1>;
switch_mac_mode2 = <0x1>;
napa_gpio = <25 44>;
napa_gpio_cnt = <2>;
port_phyinfo {

View file

@ -28,7 +28,7 @@
ess-switch {
switch_mac_mode = <0x0>;
switch_mac_mode1 = <0x2>;
switch_mac_mode2 = <0x6>;
switch_mac_mode2 = <0x1>;
aquantia_port = <4>;
aquantia_gpio = <44>;
uniphy_ext_ref_clk;

View file

@ -191,7 +191,7 @@
ess-switch {
switch_mac_mode0 = <PORT_WRAPPER_PSGMII>;
switch_mac_mode1 = <PORT_WRAPPER_USXGMII>;
switch_mac_mode2 = <PORT_WRAPPER_SGMII_PLUS>;
switch_mac_mode2 = <PORT_WRAPPER_SGMII0_RGMII4>;
qca807x_gpio = <60>;
qca807x_gpio_cnt = <1>;
aquantia_gpio = <36>;

View file

@ -190,7 +190,7 @@
ess-switch {
switch_mac_mode0 = <PORT_WRAPPER_PSGMII>;
switch_mac_mode1 = <PORT_WRAPPER_SGMII_PLUS>;
switch_mac_mode1 = <PORT_WRAPPER_SGMII0_RGMII4>;
switch_mac_mode2 = <PORT_WRAPPER_USXGMII>;
qca807x_gpio = <60>;
qca807x_gpio_cnt = <1>;

View file

@ -1118,7 +1118,7 @@ static void ppe_port_mux_set(int port_id, int port_type, int mode)
port_mux_ctrl.bf.port4_pcs_sel = PORT4_PCS_SEL_GMII_FROM_PCS0;
if (port_id == PORT5) {
if (port_type == PORT_GMAC_TYPE) {
if (mode == PORT_WRAPPER_SGMII_PLUS)
if (mode == PORT_WRAPPER_SGMII_PLUS || mode == PORT_WRAPPER_SGMII0_RGMII4)
port_mux_ctrl.bf.port5_pcs_sel = PORT5_PCS_SEL_GMII_FROM_PCS1;
else
port_mux_ctrl.bf.port5_pcs_sel = PORT5_PCS_SEL_GMII_FROM_PCS0;