All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/43] phy: qcom,qmp: fix dt-bindings and deprecate lane suffix
@ 2022-07-05  9:41 ` Johan Hovold
  0 siblings, 0 replies; 178+ messages in thread
From: Johan Hovold @ 2022-07-05  9:41 UTC (permalink / raw)
  To: Vinod Koul, Rob Herring, Krzysztof Kozlowski
  Cc: Andy Gross, Bjorn Andersson, Kishon Vijay Abraham I,
	linux-arm-msm, linux-phy, devicetree, linux-kernel, Johan Hovold

When adding support for SC8280XP to the QMP PHY driver I noticed that
the PHY provider child node was not described by the current DT schema.

The SC8280XP PHYs also need a second fixed-divider PIPE clock
("pipediv2") and I didn't want to have to add a bogus "lane" suffix to
the clock name just to match the current "pipe0" name so I decided to
deprecate the unnecessary suffix in the current binding instead.

To be able to add the missing child-node schema and handle device
specifics like additional PIPE clocks, it quickly became obvious that
the binding needs to be split up.

This series fixes some issue with the current schema before splitting
it up in separate schemas for PCIe, UFS and USB, which are then cleaned
up further before adding missing parts like the child PHY provider
nodes and examples.

The MSM8996 PCIe PHY gets its own schema as this is the only non-combo
PHY that actually provides more than one PHY per IP block. Note that the
"lane" suffix is still unnecessary and misleading.

The final patches adds support for the new resource names to the
(recently split up) PHY drivers. Included is also a related combo PHY
cleanup.

I'll post a separate series with related DTS fixes caught while
developing this series.

Johan


Johan Hovold (43):
  dt-bindings: phy: qcom,qmp: fix bogus clock-cells property
  dt-bindings: phy: qcom,qmp: sort compatible strings
  dt-bindings: phy: qcom,qmp: clean up descriptions
  dt-bindings: phy: qcom,qmp: clean up example
  dt-bindings: phy: qcom,qmp: drop child-node comment
  dt-bindings: phy: qcom,qmp: split out msm8996-qmp-pcie-phy
  dt-bindings: phy: qcom,msm8996-qmp-pcie: clean up constraints
  dt-bindings: phy: qcom,msm8996-qmp-pcie: add missing child node schema
  dt-bindings: phy: qcom,msm8996-qmp-pcie: add example node
  dt-bindings: phy: qcom,msm8996-qmp-pcie: deprecate PIPE clock names
  dt-bindings: phy: qcom,msm8996-qmp-pcie: deprecate reset names
  dt-bindings: phy: qcom,qmp: split out PCIe PHY binding
  dt-bindings: phy: qcom,qmp-pcie: clean up register constraints
  dt-bindings: phy: qcom,qmp-pcie: clean up clock constraints
  dt-bindings: phy: qcom,qmp-pcie: clean up reset constraints
  dt-bindings: phy: qcom,qmp-pcie: drop unused vddp-ref-clk supply
  dt-bindings: phy: qcom,qmp-pcie: add missing child node schema
  dt-bindings: phy: qcom,qmp-pcie: add example node
  dt-bindings: phy: qcom,qmp-pcie: deprecate PIPE clock name
  dt-bindings: phy: qcom,qmp: split out UFS PHY binding
  dt-bindings: phy: qcom,qmp-ufs: clean up supplies
  dt-bindings: phy: qcom,qmp-ufs: clean up reset providers
  dt-bindings: phy: qcom,qmp-ufs: clean up clock constraints
  dt-bindings: phy: qcom,qmp-ufs: clean up register constraints
  dt-bindings: phy: qcom,qmp-ufs: add missing SM8450 clock
  dt-bindings: phy: qcom,qmp-ufs: add missing SM8150 power domain
  dt-bindings: phy: qcom,qmp-ufs: add missing child node schema
  dt-bindings: phy: qcom,qmp-ufs: add example node
  dt-bindings: phy: qcom,qmp: split out USB binding
  dt-bindings: phy: qcom,qmp-usb: clean up clock constraints
  dt-bindings: phy: qcom,qmp-usb: clean up supplies
  dt-bindings: phy: qcom,qmp-usb: drop unused vddp-ref-clk supply
  dt-bindings: phy: qcom,qmp-usb: clean up reset providers
  dt-bindings: phy: qcom,qmp-usb: add missing child node schema
  dt-bindings: phy: qcom,qmp-usb: deprecate PIPE clock name
  dt-bindings: phy: qcom,qmp-usb3-dp: fix bogus clock-cells property
  dt-bindings: phy: qcom,qmp-usb3-dp: deprecate USB PIPE clock name
  phy: qcom-qmp-pcie: drop pipe clock lane suffix
  phy: qcom-qmp-combo: drop unused lane reset
  phy: qcom-qmp-combo: drop pipe clock lane suffix
  phy: qcom-qmp-pcie-msm8996: drop pipe clock lane suffix
  phy: qcom-qmp-pcie-msm8996: drop reset lane suffix
  phy: qcom-qmp-usb: drop pipe clock lane suffix

 .../phy/qcom,msm8996-qmp-pcie-phy.yaml        | 212 ++++++++
 .../bindings/phy/qcom,qmp-pcie-phy.yaml       | 309 +++++++++++
 .../devicetree/bindings/phy/qcom,qmp-phy.yaml | 500 ------------------
 .../bindings/phy/qcom,qmp-ufs-phy.yaml        | 249 +++++++++
 .../bindings/phy/qcom,qmp-usb-phy.yaml        | 417 +++++++++++++++
 .../bindings/phy/qcom,qmp-usb3-dp-phy.yaml    |  15 +-
 drivers/phy/qualcomm/phy-qcom-qmp-combo.c     |  10 +-
 .../phy/qualcomm/phy-qcom-qmp-pcie-msm8996.c  |  17 +-
 drivers/phy/qualcomm/phy-qcom-qmp-pcie.c      |   8 +-
 drivers/phy/qualcomm/phy-qcom-qmp-usb.c       |   8 +-
 10 files changed, 1224 insertions(+), 521 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/phy/qcom,msm8996-qmp-pcie-phy.yaml
 create mode 100644 Documentation/devicetree/bindings/phy/qcom,qmp-pcie-phy.yaml
 delete mode 100644 Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml
 create mode 100644 Documentation/devicetree/bindings/phy/qcom,qmp-ufs-phy.yaml
 create mode 100644 Documentation/devicetree/bindings/phy/qcom,qmp-usb-phy.yaml

-- 
2.35.1


^ permalink raw reply	[flat|nested] 178+ messages in thread

end of thread, other threads:[~2022-07-06  6:06 UTC | newest]

Thread overview: 178+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-05  9:41 [PATCH 00/43] phy: qcom,qmp: fix dt-bindings and deprecate lane suffix Johan Hovold
2022-07-05  9:41 ` Johan Hovold
2022-07-05  9:41 ` [PATCH 01/43] dt-bindings: phy: qcom,qmp: fix bogus clock-cells property Johan Hovold
2022-07-05  9:41   ` Johan Hovold
2022-07-05 10:01   ` Krzysztof Kozlowski
2022-07-05 10:01     ` Krzysztof Kozlowski
2022-07-05  9:41 ` [PATCH 02/43] dt-bindings: phy: qcom,qmp: sort compatible strings Johan Hovold
2022-07-05  9:41   ` Johan Hovold
2022-07-05 10:02   ` Krzysztof Kozlowski
2022-07-05 10:02     ` Krzysztof Kozlowski
2022-07-05  9:41 ` [PATCH 03/43] dt-bindings: phy: qcom,qmp: clean up descriptions Johan Hovold
2022-07-05  9:41   ` Johan Hovold
2022-07-05 10:02   ` Krzysztof Kozlowski
2022-07-05 10:02     ` Krzysztof Kozlowski
2022-07-05  9:42 ` [PATCH 04/43] dt-bindings: phy: qcom,qmp: clean up example Johan Hovold
2022-07-05  9:42   ` Johan Hovold
2022-07-05 10:03   ` Krzysztof Kozlowski
2022-07-05 10:03     ` Krzysztof Kozlowski
2022-07-05  9:42 ` [PATCH 05/43] dt-bindings: phy: qcom,qmp: drop child-node comment Johan Hovold
2022-07-05  9:42   ` Johan Hovold
2022-07-05 10:03   ` Krzysztof Kozlowski
2022-07-05 10:03     ` Krzysztof Kozlowski
2022-07-05  9:42 ` [PATCH 06/43] dt-bindings: phy: qcom,qmp: split out msm8996-qmp-pcie-phy Johan Hovold
2022-07-05  9:42   ` Johan Hovold
2022-07-05 10:08   ` Krzysztof Kozlowski
2022-07-05 10:08     ` Krzysztof Kozlowski
2022-07-05 10:20     ` Johan Hovold
2022-07-05 10:20       ` Johan Hovold
2022-07-05 10:23       ` Krzysztof Kozlowski
2022-07-05 10:23         ` Krzysztof Kozlowski
2022-07-05  9:42 ` [PATCH 07/43] dt-bindings: phy: qcom,msm8996-qmp-pcie: clean up constraints Johan Hovold
2022-07-05  9:42   ` Johan Hovold
2022-07-05 10:09   ` Krzysztof Kozlowski
2022-07-05 10:09     ` Krzysztof Kozlowski
2022-07-05 10:21     ` Johan Hovold
2022-07-05 10:21       ` Johan Hovold
2022-07-05 10:23       ` Krzysztof Kozlowski
2022-07-05 10:23         ` Krzysztof Kozlowski
2022-07-05  9:42 ` [PATCH 08/43] dt-bindings: phy: qcom,msm8996-qmp-pcie: add missing child node schema Johan Hovold
2022-07-05  9:42   ` Johan Hovold
2022-07-05 10:10   ` Krzysztof Kozlowski
2022-07-05 10:10     ` Krzysztof Kozlowski
2022-07-05  9:42 ` [PATCH 09/43] dt-bindings: phy: qcom,msm8996-qmp-pcie: add example node Johan Hovold
2022-07-05  9:42   ` Johan Hovold
2022-07-05 10:10   ` Krzysztof Kozlowski
2022-07-05 10:10     ` Krzysztof Kozlowski
2022-07-05 10:22     ` Johan Hovold
2022-07-05 10:22       ` Johan Hovold
2022-07-05 11:32       ` Krzysztof Kozlowski
2022-07-05 11:32         ` Krzysztof Kozlowski
2022-07-05 12:00         ` Johan Hovold
2022-07-05 12:00           ` Johan Hovold
2022-07-05  9:42 ` [PATCH 10/43] dt-bindings: phy: qcom,msm8996-qmp-pcie: deprecate PIPE clock names Johan Hovold
2022-07-05  9:42   ` Johan Hovold
2022-07-05 10:10   ` Krzysztof Kozlowski
2022-07-05 10:10     ` Krzysztof Kozlowski
2022-07-05  9:42 ` [PATCH 11/43] dt-bindings: phy: qcom,msm8996-qmp-pcie: deprecate reset names Johan Hovold
2022-07-05  9:42   ` Johan Hovold
2022-07-05 10:12   ` Krzysztof Kozlowski
2022-07-05 10:12     ` Krzysztof Kozlowski
2022-07-05 12:14     ` Johan Hovold
2022-07-05 12:14       ` Johan Hovold
2022-07-05  9:42 ` [PATCH 12/43] dt-bindings: phy: qcom,qmp: split out PCIe PHY binding Johan Hovold
2022-07-05  9:42   ` Johan Hovold
2022-07-05 10:13   ` Krzysztof Kozlowski
2022-07-05 10:13     ` Krzysztof Kozlowski
2022-07-05  9:42 ` [PATCH 13/43] dt-bindings: phy: qcom,qmp-pcie: clean up register constraints Johan Hovold
2022-07-05  9:42   ` Johan Hovold
2022-07-05 10:13   ` Krzysztof Kozlowski
2022-07-05 10:13     ` Krzysztof Kozlowski
2022-07-05  9:42 ` [PATCH 14/43] dt-bindings: phy: qcom,qmp-pcie: clean up clock constraints Johan Hovold
2022-07-05  9:42   ` Johan Hovold
2022-07-05 10:14   ` Krzysztof Kozlowski
2022-07-05 10:14     ` Krzysztof Kozlowski
2022-07-05  9:42 ` [PATCH 15/43] dt-bindings: phy: qcom,qmp-pcie: clean up reset constraints Johan Hovold
2022-07-05  9:42   ` Johan Hovold
2022-07-05 10:14   ` Krzysztof Kozlowski
2022-07-05 10:14     ` Krzysztof Kozlowski
2022-07-05  9:42 ` [PATCH 16/43] dt-bindings: phy: qcom,qmp-pcie: drop unused vddp-ref-clk supply Johan Hovold
2022-07-05  9:42   ` Johan Hovold
2022-07-05 10:16   ` Krzysztof Kozlowski
2022-07-05 10:16     ` Krzysztof Kozlowski
2022-07-05 11:46     ` Johan Hovold
2022-07-05 11:46       ` Johan Hovold
2022-07-05 11:59       ` Krzysztof Kozlowski
2022-07-05 11:59         ` Krzysztof Kozlowski
2022-07-05 12:43         ` Johan Hovold
2022-07-05 12:43           ` Johan Hovold
2022-07-05 18:13           ` Krzysztof Kozlowski
2022-07-05 18:13             ` Krzysztof Kozlowski
2022-07-06  6:03             ` Johan Hovold
2022-07-06  6:03               ` Johan Hovold
2022-07-05  9:42 ` [PATCH 17/43] dt-bindings: phy: qcom,qmp-pcie: add missing child node schema Johan Hovold
2022-07-05  9:42   ` Johan Hovold
2022-07-05 10:18   ` Krzysztof Kozlowski
2022-07-05 10:18     ` Krzysztof Kozlowski
2022-07-05 11:51     ` Johan Hovold
2022-07-05 11:51       ` Johan Hovold
2022-07-05 11:56       ` Krzysztof Kozlowski
2022-07-05 11:56         ` Krzysztof Kozlowski
2022-07-05 12:11         ` Johan Hovold
2022-07-05 12:11           ` Johan Hovold
2022-07-05 18:21           ` Krzysztof Kozlowski
2022-07-05 18:21             ` Krzysztof Kozlowski
2022-07-06  6:06             ` Johan Hovold
2022-07-06  6:06               ` Johan Hovold
2022-07-05 14:14   ` Rob Herring
2022-07-05 14:14     ` Rob Herring
2022-07-05  9:42 ` [PATCH 18/43] dt-bindings: phy: qcom,qmp-pcie: add example node Johan Hovold
2022-07-05  9:42   ` Johan Hovold
2022-07-05 10:18   ` Krzysztof Kozlowski
2022-07-05 10:18     ` Krzysztof Kozlowski
2022-07-05  9:42 ` [PATCH 19/43] dt-bindings: phy: qcom,qmp-pcie: deprecate PIPE clock name Johan Hovold
2022-07-05  9:42   ` Johan Hovold
2022-07-05  9:42 ` [PATCH 20/43] dt-bindings: phy: qcom,qmp: split out UFS PHY binding Johan Hovold
2022-07-05  9:42   ` Johan Hovold
2022-07-05 10:19   ` Krzysztof Kozlowski
2022-07-05 10:19     ` Krzysztof Kozlowski
2022-07-05  9:42 ` [PATCH 21/43] dt-bindings: phy: qcom,qmp-ufs: clean up supplies Johan Hovold
2022-07-05  9:42   ` Johan Hovold
2022-07-05  9:42 ` [PATCH 22/43] dt-bindings: phy: qcom,qmp-ufs: clean up reset providers Johan Hovold
2022-07-05  9:42   ` Johan Hovold
2022-07-05  9:42 ` [PATCH 23/43] dt-bindings: phy: qcom,qmp-ufs: clean up clock constraints Johan Hovold
2022-07-05  9:42   ` Johan Hovold
2022-07-05  9:42 ` [PATCH 24/43] dt-bindings: phy: qcom,qmp-ufs: clean up register constraints Johan Hovold
2022-07-05  9:42   ` Johan Hovold
2022-07-05  9:42 ` [PATCH 25/43] dt-bindings: phy: qcom,qmp-ufs: add missing SM8450 clock Johan Hovold
2022-07-05  9:42   ` Johan Hovold
2022-07-05  9:42 ` [PATCH 26/43] dt-bindings: phy: qcom,qmp-ufs: add missing SM8150 power domain Johan Hovold
2022-07-05  9:42   ` Johan Hovold
2022-07-05  9:42 ` [PATCH 27/43] dt-bindings: phy: qcom,qmp-ufs: add missing child node schema Johan Hovold
2022-07-05  9:42   ` Johan Hovold
2022-07-05  9:42 ` [PATCH 28/43] dt-bindings: phy: qcom,qmp-ufs: add example node Johan Hovold
2022-07-05  9:42   ` Johan Hovold
2022-07-05  9:42 ` [PATCH 29/43] dt-bindings: phy: qcom,qmp: split out USB binding Johan Hovold
2022-07-05  9:42   ` Johan Hovold
2022-07-05  9:42 ` [PATCH 30/43] dt-bindings: phy: qcom,qmp-usb: clean up clock constraints Johan Hovold
2022-07-05  9:42   ` Johan Hovold
2022-07-05  9:42 ` [PATCH 31/43] dt-bindings: phy: qcom,qmp-usb: clean up supplies Johan Hovold
2022-07-05  9:42   ` Johan Hovold
2022-07-05  9:42 ` [PATCH 32/43] dt-bindings: phy: qcom,qmp-usb: drop unused vddp-ref-clk supply Johan Hovold
2022-07-05  9:42   ` Johan Hovold
2022-07-05  9:42 ` [PATCH 33/43] dt-bindings: phy: qcom,qmp-usb: clean up reset providers Johan Hovold
2022-07-05  9:42   ` Johan Hovold
2022-07-05  9:42 ` [PATCH 34/43] dt-bindings: phy: qcom,qmp-usb: add missing child node schema Johan Hovold
2022-07-05  9:42   ` Johan Hovold
2022-07-05  9:42 ` [PATCH 35/43] dt-bindings: phy: qcom,qmp-usb: deprecate PIPE clock name Johan Hovold
2022-07-05  9:42   ` Johan Hovold
2022-07-05  9:42 ` [PATCH 36/43] dt-bindings: phy: qcom,qmp-usb3-dp: fix bogus clock-cells property Johan Hovold
2022-07-05  9:42   ` Johan Hovold
2022-07-05  9:42 ` [PATCH 37/43] dt-bindings: phy: qcom,qmp-usb3-dp: deprecate USB PIPE clock name Johan Hovold
2022-07-05  9:42   ` Johan Hovold
2022-07-05  9:42 ` [PATCH 38/43] phy: qcom-qmp-pcie: drop pipe clock lane suffix Johan Hovold
2022-07-05  9:42   ` Johan Hovold
2022-07-05 10:20   ` Krzysztof Kozlowski
2022-07-05 10:20     ` Krzysztof Kozlowski
2022-07-05 11:13     ` Dmitry Baryshkov
2022-07-05 11:13       ` Dmitry Baryshkov
2022-07-05 11:58       ` Johan Hovold
2022-07-05 11:58         ` Johan Hovold
2022-07-05 12:06         ` Krzysztof Kozlowski
2022-07-05 12:06           ` Krzysztof Kozlowski
2022-07-05  9:42 ` [PATCH 39/43] phy: qcom-qmp-combo: drop unused lane reset Johan Hovold
2022-07-05  9:42   ` Johan Hovold
2022-07-05 11:10   ` Dmitry Baryshkov
2022-07-05 11:10     ` Dmitry Baryshkov
2022-07-05  9:42 ` [PATCH 40/43] phy: qcom-qmp-combo: drop pipe clock lane suffix Johan Hovold
2022-07-05  9:42   ` Johan Hovold
2022-07-05 10:20   ` Krzysztof Kozlowski
2022-07-05 10:20     ` Krzysztof Kozlowski
2022-07-05  9:42 ` [PATCH 41/43] phy: qcom-qmp-pcie-msm8996: " Johan Hovold
2022-07-05  9:42   ` Johan Hovold
2022-07-05  9:42 ` [PATCH 42/43] phy: qcom-qmp-pcie-msm8996: drop reset " Johan Hovold
2022-07-05  9:42   ` Johan Hovold
2022-07-05 10:21   ` Krzysztof Kozlowski
2022-07-05 10:21     ` Krzysztof Kozlowski
2022-07-05  9:42 ` [PATCH 43/43] phy: qcom-qmp-usb: drop pipe clock " Johan Hovold
2022-07-05  9:42   ` Johan Hovold

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.