Skip to content

mips: econet: Add clk/reset and PCIe support

Caleb James DeLisle linux-arm-kernel linux-clk linux-devicetree linux-mediatek linux-mips linux-pci linux-phy lkml 2 versions – Applied

Status from this message: applied to mips-next

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 16 repliesApplied
  2. v18 patches 10 repliesSuperseded

Changes in v2 from the cover letter

* clock/econet,en751221-scu.h drop EN751221_MAX_CLKS
* clk-en7523.c add EN751221_MAX_CLKS
* econet,en751221-chip-scu.yaml drop in favor of using mtd/syscon.yaml
* airoha,en7523-scu.yaml drop redundant example
* econet,en751221-pcie-phy.yaml Refer to PHYs as "gen1" and "gen2"
* pcie-mediatek.c Exclude pcie_retrain_link() when building as a module
* en751221.dtsi "econet,en751221-scu" is not a "syscon"
* Rebase to linux-next
* v1: https://lore.kernel.org/linux-mips/[email protected]/

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/8dt-bindings: clock, reset: Add econet EN751221Documentation/devicetree/bindings/clock/airoha,en7523-scu.yaml Documentation/devicetree/bindings/mfd/syscon.yaml MAINTAINERS +2 more+72 -13 replies
2/8clk: airoha: Add econet EN751221 clock/reset support to en7523-scudrivers/clk/Kconfig drivers/clk/clk-en7523.c+236 -83 replies
3/8dt-bindings: phy: Document PCIe PHY in EcoNet EN751221 and EN7528Documentation/devicetree/bindings/phy/econet,en751221-pcie-phy.yaml MAINTAINERS+56 -06 replies
4/8phy: econet: Add PCIe PHY driver for EcoNet EN751221 and EN7528 SoCs.MAINTAINERS drivers/phy/Kconfig drivers/phy/Makefile +1 more+194 -00 replies
5/8dt-bindings: PCI: mediatek: Add support for EcoNet EN7528Documentation/devicetree/bindings/pci/mediatek-pcie.yaml+1 -02 replies
6/8PCI: mediatek: Add support for EcoNet EN7528 SoCdrivers/pci/controller/Kconfig drivers/pci/controller/pcie-mediatek.c+119 -10 replies
7/8PCI: Skip bridge window reads when window is not supporteddrivers/pci/probe.c+6 -00 replies
8/8mips: dts: Add PCIe to EcoNet EN751221arch/mips/boot/dts/econet/en751221.dtsi arch/mips/boot/dts/econet/en751221_smartfiber_xp8421-b.dts arch/mips/econet/Kconfig+137 -02 replies

Reviews trailers per patch

1 of 8 patches has a Reviewed-by or Acked-by.

PatchKrzysztof Kozlowski
1/8
2/8
3/8R-b
4/8
5/8
6/8
7/8
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/8] mips: econet: Add clk/reset and PCIe support

Add clock/reset and PCIe support to EcoNet EN751221 and related SoCs. This builds on the Airoha EN7523 clock driver and the Mediatek PCIe driver.

Patch 6 is upstreaming of Ahmed Naseef's work on EcoNet PCIe, which was developed to support the EN7528, but which works equally on the EN751221.

There is also a workaround in patch 7 to gracefully handle PCI hardware which does not advertize a bridge window and instead always reads zero.

Changes in v2:
* clock/econet,en751221-scu.h drop EN751221_MAX_CLKS
* clk-en7523.c add EN751221_MAX_CLKS
* econet,en751221-chip-scu.yaml drop in favor of using mtd/syscon.yaml
* airoha,en7523-scu.yaml drop redundant example
* econet,en751221-pcie-phy.yaml Refer to PHYs as "gen1" and "gen2"
* pcie-mediatek.c Exclude pcie_retrain_link() when building as a module
* en751221.dtsi "econet,en751221-scu" is not a "syscon"
* Rebase to linux-next
* v1: https://lore.kernel.org/linux-mips/[email protected]/

Caleb James DeLisle (8):
dt-bindings: clock, reset: Add econet EN751221
clk: airoha: Add econet EN751221 clock/reset support to en7523-scu
dt-bindings: phy: Document PCIe PHY in EcoNet EN751221 and EN7528
phy: econet: Add PCIe PHY driver for EcoNet EN751221 and EN7528 SoCs.
dt-bindings: PCI: mediatek: Add support for EcoNet EN7528
PCI: mediatek: Add support for EcoNet EN7528 SoC
PCI: Skip bridge window reads when window is not supported
mips: dts: Add PCIe to EcoNet EN751221

 .../bindings/clock/airoha,en7523-scu.yaml     |   7 +-
 .../devicetree/bindings/mfd/syscon.yaml       |   2 +
 .../bindings/pci/mediatek-pcie.yaml           |   1 +
 .../phy/econet,en751221-pcie-phy.yaml         |  50 ++++
 MAINTAINERS                                   |   9 +
 arch/mips/boot/dts/econet/en751221.dtsi       | 114 +++++++++
 .../econet/en751221_smartfiber_xp8421-b.dts   |  21 ++
 arch/mips/econet/Kconfig                      |   2 +
 drivers/clk/Kconfig                           |   6 +-
 drivers/clk/clk-en7523.c                      | 238 +++++++++++++++++-
 drivers/pci/controller/Kconfig                |   2 +-
 drivers/pci/controller/pcie-mediatek.c        | 118 +++++++++
 drivers/pci/probe.c                           |   6 +
 drivers/phy/Kconfig                           |  12 +
 drivers/phy/Makefile                          |   1 +
 drivers/phy/phy-econet-pcie.c                 | 180 +++++++++++++
 .../dt-bindings/clock/econet,en751221-scu.h   |  13 +
 .../dt-bindings/reset/econet,en751221-scu.h   |  49 ++++
 18 files changed, 821 insertions(+), 10 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/phy/econet,en751221-pcie-phy.yaml
 create mode 100644 drivers/phy/phy-econet-pcie.c
 create mode 100644 include/dt-bindings/clock/econet,en751221-scu.h
 create mode 100644 include/dt-bindings/reset/econet,en751221-scu.h

base-commit: 3fa5e5702a82d259897bd7e209469bc06368bf31

Signature · 1 line
2.39.5