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
parent 5c8476a66f
commit f0b5bb9e0a
13 changed files with 19 additions and 19 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

@ -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;