qualcommax: use defines for MAC mode setting
[openwrt/staging/hauke.git] / target / linux / qualcommax / files / arch / arm64 / boot / dts / qcom / ipq8072-wpq873.dts
index 9779070725b40eff647b7fb74e4824c8c038a150..7b47a0d97ef72cfba2f2c7cc49ef64daa56728a7 100644 (file)
 &switch {
        status = "okay";
 
-       switch_cpu_bmp = <0x1>;  /* cpu port bitmap */
-       switch_lan_bmp = <0x3e>; /* lan port bitmap */
-       switch_wan_bmp = <0x40>; /* wan port bitmap */
-       switch_mac_mode = <0x0>; /* mac mode for uniphy instance0*/
-       switch_mac_mode1 = <0x0f>; /* mac mode for uniphy instance1*/
-       switch_mac_mode2 = <0x0f>; /* mac mode for uniphy instance2*/
+       switch_lan_bmp = <(ESS_PORT2 | ESS_PORT3 | ESS_PORT4)>; /* lan port bitmap */
+       switch_wan_bmp = <ESS_PORT6>; /* wan port bitmap */
+       switch_mac_mode = <MAC_MODE_PSGMII>; /* mac mode for uniphy instance0*/
+       switch_mac_mode1 = <MAC_MODE_SGMII_CHANNEL0>; /* mac mode for uniphy instance1*/
+       switch_mac_mode2 = <MAC_MODE_SGMII_CHANNEL0>; /* mac mode for uniphy instance2*/
        bm_tick_mode = <0>; /* bm tick mode */
        tm_tick_mode = <0>; /* tm tick mode */