# Bring up alternate hardware enablement

You can attach MAC/PHY components other than the hardware configuration provided by Qualcomm and bring them up.

Note

You must obtain the MAC/PHY driver and firmware from the respective vendor. Qualcomm is not responsible for these configuration changes.

To replace QPS615 with other PCIe based MAC/PHY, see [PCIe software
support for QPS615
switch](https://docs.qualcomm.com/bundle/publicresource/topics/80-70017-8/pcie.html#sub$pcie-software-support-feature-for-qps615).

## Retain QPS615 PCIe and replace QEP8121/AQR113C

To retain QPS615 PCIe and replace QEP8121/AQR113C with other PHY
components, do the following:

1. Based on the attached PHY recommendations, update all the parameters
in the `arch/arm64/boot/dts/qcom/qcs6490-addons-rb3gen2.dtsi` file.
2. Compile the software.

    A sample code for QEP PHY is as follows:

qep_vreg: qep_vreg {
              compatible = "regulator-fixed";
              regulator-name = "qep_vreg";
              gpio = <&pm7325_gpios 8 0>;
              regulator-min-microvolt = <1800000>;
              regulator-max-microvolt = <1800000>;
              enable-active-high;
              };

        qps615_eth1,qps615_eth1@pcie1_rp {
                 reg = <0x100 0x0 0x0 0x0 0x0>;
                 pinctrl-names = "default";
                 pinctrl-0 = <&napa_intn_wol_sig>;
                 qcom,phy-rst-gpio = <1>;
                 interrupts-extended = <&tlmm 101 IRQ_TYPE_EDGE_FALLING>;
                 interrupt-names = "wol_irq";
                 phy-supply = <&qep_vreg>;
                 qcom,phy-rst-delay-us = <20000>;
                 #address-cells = <1>;
                 #size-cells = <1>;
              };
        Copy to clipboard

    After flashing the modified software, the QPS615 driver scans the
physical devices connected to it and matches the device tree
information in the `qcs6490-addons-rb3gen2.dtsi` file.

Note

A PHY may fail to load due to mismatch between the
configuration in the `.dtsi` file and actual recommendations for the
PHY. In such cases, you must update the configuration in the `.dtsi`
file accordingly.

Last Published: Dec 24, 2024