Skip to content

phy: qcom-qmp: Fix clock-cells binding and provider

Evan Green linux-arm-msm linux-devicetree lkml 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 0 repliesNew
  2. v14 patches 11 repliesSuperseded

Changes in v2 from the cover letter

- Rebased onto phy/next

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4dt-bindings: phy-qcom-qmp: Move #clock-cells to childDocumentation/devicetree/bindings/phy/qcom-qmp-phy.txt+5 -60 replies
2/4arm64: dts: qcom: msm8996: Fix QMP PHY #clock-cellsarch/arm64/boot/dts/qcom/msm8996.dtsi+4 -20 replies
3/4arm64: dts: qcom: sdm845: Fix QMP PHY #clock-cellsarch/arm64/boot/dts/qcom/sdm845.dtsi+2 -20 replies
4/4phy: qcom-qmp: Expose provided clocks to DTdrivers/phy/qualcomm/phy-qcom-qmp.c+22 -10 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchStephen BoydVivek Gautam
1/4R-b
2/4R-b T-b
3/4R-b
4/4R-b T-b

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/4] phy: qcom-qmp: Fix clock-cells binding and provider

This series fixes the QMP PHY bindings, which had specified #clock-cells in the parent node, and had set it to 1. Putting it in the parent node is wrong because the clock providers are the child nodes, so this change moves it there. Having it set to 1 is also wrong, since nothing is ever specified as to what should go in that cell. So this changes it to zero. Finally, this change completes a little bit of code to actually allow these exposed clocks to be pointed at in DT.

I had no idea how to fix up ipq8074.dtsi. It seems to be completely wrong in that it doesn't specify #clock-cells at all, has no child nodes, and specifies clock-output-names in the parent node. As far as I can tell this doesn't work at all. But I can't add the child nodes myself because I don't know
1) how many there are, and 2) the registers in them. I also have no way to test it.

Thanks to Vivek for testing msm8996.

This patch sits atop the UFS device nodes series [1].

[1] https://lore.kernel.org/lkml/[email protected]/

Changes in v2:
- Rebased onto phy/next

Evan Green (4):
dt-bindings: phy-qcom-qmp: Move #clock-cells to child
arm64: dts: qcom: msm8996: Fix QMP PHY #clock-cells
arm64: dts: qcom: sdm845: Fix QMP PHY #clock-cells
phy: qcom-qmp: Expose provided clocks to DT

 .../devicetree/bindings/phy/qcom-qmp-phy.txt  | 11 ++++-----
 arch/arm64/boot/dts/qcom/msm8996.dtsi         |  6 +++--
 arch/arm64/boot/dts/qcom/sdm845.dtsi          |  4 ++--
 drivers/phy/qualcomm/phy-qcom-qmp.c           | 23 ++++++++++++++++++-
 4 files changed, 33 insertions(+), 11 deletions(-)
Signature · 1 line
2.18.1