[PW_SID:1122398] net: stmmac: qcom-ethqos: add support for SCMI power domains#2228
[PW_SID:1122398] net: stmmac: qcom-ethqos: add support for SCMI power domains#2228linux-riscv-bot wants to merge 7 commits into
Conversation
Describe the SGMII/SerDes PHY present on the Qualcomm sa8255p platforms. This is essentially the same hardware as sa8775p rev3 but the PHY is managed by firmware over SCMI. Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
Implement support for the firmware-managed SGMII/SerDes PHY present on Qualcomm platforms. Do this as a separate driver from the HLOS-managed variant as they don't share almost any code. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
…tems Describe the firmware-managed variant of the QCom DesignWare MAC. As the properties here differ a lot from the HLOS-managed variant, lets put it in a separate file. Since we need to update the maximum number of power domains, let's update existing bindings referencing the top-level snps,dwmac.yaml and limit their maxItems for power-domains to 1. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> Reviewed-by: Romain Gantois <romain.gantois@bootlin.com> # For RZ/N1 Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
Call phy_set_mode_ext() before phy_power_on() in qcom_ethqos_serdes_powerup(). This is harmless for existing users but on SCMI systems this is required for the PHY driver to select the right performance level - which translates to the link speed. This is done ahead of adding support for the firmware-managed EMAC on Qualcomm sa8255p. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
Instead of needlessly copying the fields of ethqos_emac_driver_data into struct qcom_ethqos, just use the address of the former as a reference. It's .rodata after all. This is done in order to avoid having either two calls to of_device_get_match_data() or having to extend the latter with another field when adding support for SCMI. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
…e function Ahead of adding support for firmware-controlled EMAC variants, extend the ethqos_emac_driver_data structure with a setup() callback, implement it for the existing models and move all operations not required in SCMI mode into it. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
Extend the driver to support a new model - sa8255p. Unlike the previously supported variants, this one's power management is done in the firmware over SCMI. This is modeled in linux using power domains so add a new emac data variant and a separate setup callback. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
|
Patch 1: "[net-next,v12,1/7] dt-bindings: phy: document the serdes PHY on sa8255p" |
|
Patch 1: "[net-next,v12,1/7] dt-bindings: phy: document the serdes PHY on sa8255p" |
|
Patch 1: "[net-next,v12,1/7] dt-bindings: phy: document the serdes PHY on sa8255p" |
|
Patch 1: "[net-next,v12,1/7] dt-bindings: phy: document the serdes PHY on sa8255p" |
|
Patch 1: "[net-next,v12,1/7] dt-bindings: phy: document the serdes PHY on sa8255p" |
|
Patch 1: "[net-next,v12,1/7] dt-bindings: phy: document the serdes PHY on sa8255p" |
|
Patch 1: "[net-next,v12,1/7] dt-bindings: phy: document the serdes PHY on sa8255p" |
|
Patch 1: "[net-next,v12,1/7] dt-bindings: phy: document the serdes PHY on sa8255p" |
|
Patch 1: "[net-next,v12,1/7] dt-bindings: phy: document the serdes PHY on sa8255p" |
|
Patch 1: "[net-next,v12,1/7] dt-bindings: phy: document the serdes PHY on sa8255p" |
|
Patch 1: "[net-next,v12,1/7] dt-bindings: phy: document the serdes PHY on sa8255p" |
|
Patch 1: "[net-next,v12,1/7] dt-bindings: phy: document the serdes PHY on sa8255p" |
|
Patch 2: "[net-next,v12,2/7] phy: qcom: add the SGMII SerDes PHY driver for SCMI systems" |
|
Patch 2: "[net-next,v12,2/7] phy: qcom: add the SGMII SerDes PHY driver for SCMI systems" |
|
Patch 2: "[net-next,v12,2/7] phy: qcom: add the SGMII SerDes PHY driver for SCMI systems" |
|
Patch 2: "[net-next,v12,2/7] phy: qcom: add the SGMII SerDes PHY driver for SCMI systems" |
|
Patch 2: "[net-next,v12,2/7] phy: qcom: add the SGMII SerDes PHY driver for SCMI systems" |
|
Patch 2: "[net-next,v12,2/7] phy: qcom: add the SGMII SerDes PHY driver for SCMI systems" |
|
Patch 2: "[net-next,v12,2/7] phy: qcom: add the SGMII SerDes PHY driver for SCMI systems" |
|
Patch 2: "[net-next,v12,2/7] phy: qcom: add the SGMII SerDes PHY driver for SCMI systems" |
|
Patch 2: "[net-next,v12,2/7] phy: qcom: add the SGMII SerDes PHY driver for SCMI systems" |
|
Patch 2: "[net-next,v12,2/7] phy: qcom: add the SGMII SerDes PHY driver for SCMI systems" |
|
Patch 2: "[net-next,v12,2/7] phy: qcom: add the SGMII SerDes PHY driver for SCMI systems" |
|
Patch 5: "[net-next,v12,5/7] net: stmmac: qcom-ethqos: reuse the address of ethqos_emac_driver_data" |
|
Patch 5: "[net-next,v12,5/7] net: stmmac: qcom-ethqos: reuse the address of ethqos_emac_driver_data" |
|
Patch 5: "[net-next,v12,5/7] net: stmmac: qcom-ethqos: reuse the address of ethqos_emac_driver_data" |
|
Patch 5: "[net-next,v12,5/7] net: stmmac: qcom-ethqos: reuse the address of ethqos_emac_driver_data" |
|
Patch 6: "[net-next,v12,6/7] net: stmmac: qcom-ethqos: factor out linux-level setup into a separate function" |
|
Patch 6: "[net-next,v12,6/7] net: stmmac: qcom-ethqos: factor out linux-level setup into a separate function" |
|
Patch 6: "[net-next,v12,6/7] net: stmmac: qcom-ethqos: factor out linux-level setup into a separate function" |
|
Patch 6: "[net-next,v12,6/7] net: stmmac: qcom-ethqos: factor out linux-level setup into a separate function" |
|
Patch 6: "[net-next,v12,6/7] net: stmmac: qcom-ethqos: factor out linux-level setup into a separate function" |
|
Patch 6: "[net-next,v12,6/7] net: stmmac: qcom-ethqos: factor out linux-level setup into a separate function" |
|
Patch 6: "[net-next,v12,6/7] net: stmmac: qcom-ethqos: factor out linux-level setup into a separate function" |
|
Patch 6: "[net-next,v12,6/7] net: stmmac: qcom-ethqos: factor out linux-level setup into a separate function" |
|
Patch 6: "[net-next,v12,6/7] net: stmmac: qcom-ethqos: factor out linux-level setup into a separate function" |
|
Patch 6: "[net-next,v12,6/7] net: stmmac: qcom-ethqos: factor out linux-level setup into a separate function" |
|
Patch 6: "[net-next,v12,6/7] net: stmmac: qcom-ethqos: factor out linux-level setup into a separate function" |
|
Patch 6: "[net-next,v12,6/7] net: stmmac: qcom-ethqos: factor out linux-level setup into a separate function" |
|
Patch 7: "[net-next,v12,7/7] net: stmmac: qcom-ethqos: add support for sa8255p" |
|
Patch 7: "[net-next,v12,7/7] net: stmmac: qcom-ethqos: add support for sa8255p" |
|
Patch 7: "[net-next,v12,7/7] net: stmmac: qcom-ethqos: add support for sa8255p" |
|
Patch 7: "[net-next,v12,7/7] net: stmmac: qcom-ethqos: add support for sa8255p" |
|
Patch 7: "[net-next,v12,7/7] net: stmmac: qcom-ethqos: add support for sa8255p" |
|
Patch 7: "[net-next,v12,7/7] net: stmmac: qcom-ethqos: add support for sa8255p" |
|
Patch 7: "[net-next,v12,7/7] net: stmmac: qcom-ethqos: add support for sa8255p" |
|
Patch 7: "[net-next,v12,7/7] net: stmmac: qcom-ethqos: add support for sa8255p" |
|
Patch 7: "[net-next,v12,7/7] net: stmmac: qcom-ethqos: add support for sa8255p" |
|
Patch 7: "[net-next,v12,7/7] net: stmmac: qcom-ethqos: add support for sa8255p" |
|
Patch 7: "[net-next,v12,7/7] net: stmmac: qcom-ethqos: add support for sa8255p" |
|
Patch 7: "[net-next,v12,7/7] net: stmmac: qcom-ethqos: add support for sa8255p" |
PR for series 1122398 applied to workflow__riscv__fixes
Name: net: stmmac: qcom-ethqos: add support for SCMI power domains
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1122398
Version: 12