* [PATCH v2 00/30] phy: qcom,qmp: fix dt-bindings and deprecate lane suffix
@ 2022-07-07 13:46 Johan Hovold
2022-07-07 13:46 ` [PATCH v2 01/30] dt-bindings: phy: qcom,qmp: fix bogus clock-cells property Johan Hovold
` (30 more replies)
0 siblings, 31 replies; 67+ messages in thread
From: Johan Hovold @ 2022-07-07 13:46 UTC (permalink / raw)
To: Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, 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 clean up and fixes some issue with the current schema before
splitting it up in separate schemas for PCIe, UFS and USB and adding
missing parts like the child PHY provider nodes.
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 add support for the updated binding to the (recently
split up) PHY drivers. Included is also a related combo PHY cleanup.
Johan
Changes in v2
- squash split + cleanup + example patches (Krzysztof)
- deprecate clock-names instead of dropping suffix (Krzysztof)
- deprecate reset-names instead of dropping suffix (Krzysztof)
- flatten child reg if/then schemas (Krzysztof)
- add back optional vddp-ref-clk to all bindings even though it likely
only applies to MSM8996/98 UFS (Krzysztof)
- add missing sc7180 schema to USB binding
- misc clean ups
- shorten or drop descriptions
- drop quotes around $id and $schema (Krzysztof)
- use maxItems with clock-output-names
- combine two USB clock+reset schemas
- add Reviewed-by/Acked-by tags
Johan Hovold (30):
dt-bindings: phy: qcom,qmp: fix bogus clock-cells property
dt-bindings: phy: qcom,qmp: sort compatible strings
dt-bindings: phy: qcom,qmp: drop redundant descriptions
dt-bindings: phy: qcom,qmp: fix child node description
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: add qcom,msm8996-qmp-pcie-phy schema
dt-bindings: phy: qcom,msm8996-qmp-pcie: add missing child node schema
dt-bindings: phy: qcom,msm8996-qmp-pcie: deprecate PIPE clock names
dt-bindings: phy: qcom,msm8996-qmp-pcie: deprecate reset names
dt-bindings: phy: add QMP PCIe PHY schema
dt-bindings: phy: qcom,qmp-pcie: add missing child node schema
dt-bindings: phy: qcom,qmp-pcie: deprecate PIPE clock name
dt-bindings: phy: add QMP UFS PHY schema
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: add QMP USB PHY schema
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-usb: add missing qcom,sc7180-qmp-usb3-phy
schema
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 | 189 +++++++
.../bindings/phy/qcom,qmp-pcie-phy.yaml | 294 ++++++++++
.../devicetree/bindings/phy/qcom,qmp-phy.yaml | 500 ------------------
.../bindings/phy/qcom,qmp-ufs-phy.yaml | 239 +++++++++
.../bindings/phy/qcom,qmp-usb-phy.yaml | 387 ++++++++++++++
.../bindings/phy/qcom,qmp-usb3-dp-phy.yaml | 8 +-
drivers/phy/qualcomm/phy-qcom-qmp-combo.c | 6 +-
.../phy/qualcomm/phy-qcom-qmp-pcie-msm8996.c | 8 +-
drivers/phy/qualcomm/phy-qcom-qmp-pcie.c | 4 +-
drivers/phy/qualcomm/phy-qcom-qmp-usb.c | 4 +-
10 files changed, 1115 insertions(+), 524 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] 67+ messages in thread
* [PATCH v2 01/30] dt-bindings: phy: qcom,qmp: fix bogus clock-cells property
2022-07-07 13:46 [PATCH v2 00/30] phy: qcom,qmp: fix dt-bindings and deprecate lane suffix Johan Hovold
@ 2022-07-07 13:46 ` Johan Hovold
2022-07-07 13:46 ` [PATCH v2 02/30] dt-bindings: phy: qcom,qmp: sort compatible strings Johan Hovold
` (29 subsequent siblings)
30 siblings, 0 replies; 67+ messages in thread
From: Johan Hovold @ 2022-07-07 13:46 UTC (permalink / raw)
To: Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel, Johan Hovold, Krzysztof Kozlowski
The QMP PHY wrapper node is not a clock provider so drop the bogus
'#clock-cells' property that was added when converting to DT schema.
Fixes: ccf51c1cedfd ("dt-bindings: phy: qcom,qmp: Convert QMP PHY bindings to yaml")
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
---
Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml | 5 -----
1 file changed, 5 deletions(-)
diff --git a/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml
index 8b850c5ab116..f74b3bf34a23 100644
--- a/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml
+++ b/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml
@@ -66,9 +66,6 @@ properties:
- description: Address and length of PHY's common serdes block.
- description: Address and length of PHY's DP_COM control block.
- "#clock-cells":
- enum: [ 1, 2 ]
-
"#address-cells":
enum: [ 1, 2 ]
@@ -116,7 +113,6 @@ patternProperties:
required:
- compatible
- reg
- - "#clock-cells"
- "#address-cells"
- "#size-cells"
- ranges
@@ -468,7 +464,6 @@ examples:
usb_2_qmpphy: phy-wrapper@88eb000 {
compatible = "qcom,sdm845-qmp-usb3-uni-phy";
reg = <0x088eb000 0x18c>;
- #clock-cells = <1>;
#address-cells = <1>;
#size-cells = <1>;
ranges = <0x0 0x088eb000 0x2000>;
--
2.35.1
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [PATCH v2 02/30] dt-bindings: phy: qcom,qmp: sort compatible strings
2022-07-07 13:46 [PATCH v2 00/30] phy: qcom,qmp: fix dt-bindings and deprecate lane suffix Johan Hovold
2022-07-07 13:46 ` [PATCH v2 01/30] dt-bindings: phy: qcom,qmp: fix bogus clock-cells property Johan Hovold
@ 2022-07-07 13:46 ` Johan Hovold
2022-07-07 13:46 ` [PATCH v2 03/30] dt-bindings: phy: qcom,qmp: drop redundant descriptions Johan Hovold
` (28 subsequent siblings)
30 siblings, 0 replies; 67+ messages in thread
From: Johan Hovold @ 2022-07-07 13:46 UTC (permalink / raw)
To: Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel, Johan Hovold, Krzysztof Kozlowski
Sort the compatible strings alphabetically to make it easier to look up
entries and add new ones.
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
---
.../devicetree/bindings/phy/qcom,qmp-phy.yaml | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml
index f74b3bf34a23..38e0ade01687 100644
--- a/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml
+++ b/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml
@@ -38,15 +38,18 @@ properties:
- qcom,sdm845-qmp-ufs-phy
- qcom,sdm845-qmp-usb3-phy
- qcom,sdm845-qmp-usb3-uni-phy
+ - qcom,sdx55-qmp-pcie-phy
+ - qcom,sdx55-qmp-usb3-uni-phy
+ - qcom,sdx65-qmp-usb3-uni-phy
- qcom,sm6115-qmp-ufs-phy
- qcom,sm6350-qmp-ufs-phy
- qcom,sm8150-qmp-ufs-phy
- qcom,sm8150-qmp-usb3-phy
- qcom,sm8150-qmp-usb3-uni-phy
- - qcom,sm8250-qmp-ufs-phy
- qcom,sm8250-qmp-gen3x1-pcie-phy
- qcom,sm8250-qmp-gen3x2-pcie-phy
- qcom,sm8250-qmp-modem-pcie-phy
+ - qcom,sm8250-qmp-ufs-phy
- qcom,sm8250-qmp-usb3-phy
- qcom,sm8250-qmp-usb3-uni-phy
- qcom,sm8350-qmp-ufs-phy
@@ -56,9 +59,6 @@ properties:
- qcom,sm8450-qmp-gen4x2-pcie-phy
- qcom,sm8450-qmp-ufs-phy
- qcom,sm8450-qmp-usb3-phy
- - qcom,sdx55-qmp-pcie-phy
- - qcom,sdx55-qmp-usb3-uni-phy
- - qcom,sdx65-qmp-usb3-uni-phy
reg:
minItems: 1
@@ -277,12 +277,12 @@ allOf:
contains:
enum:
- qcom,msm8998-qmp-ufs-phy
+ - qcom,sc8180x-qmp-ufs-phy
+ - qcom,sc8280xp-qmp-ufs-phy
- qcom,sdm845-qmp-ufs-phy
- qcom,sm6350-qmp-ufs-phy
- qcom,sm8150-qmp-ufs-phy
- qcom,sm8250-qmp-ufs-phy
- - qcom,sc8180x-qmp-ufs-phy
- - qcom,sc8280xp-qmp-ufs-phy
then:
properties:
clocks:
--
2.35.1
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [PATCH v2 03/30] dt-bindings: phy: qcom,qmp: drop redundant descriptions
2022-07-07 13:46 [PATCH v2 00/30] phy: qcom,qmp: fix dt-bindings and deprecate lane suffix Johan Hovold
2022-07-07 13:46 ` [PATCH v2 01/30] dt-bindings: phy: qcom,qmp: fix bogus clock-cells property Johan Hovold
2022-07-07 13:46 ` [PATCH v2 02/30] dt-bindings: phy: qcom,qmp: sort compatible strings Johan Hovold
@ 2022-07-07 13:46 ` Johan Hovold
2022-07-14 9:07 ` Krzysztof Kozlowski
2022-07-07 13:46 ` [PATCH v2 04/30] dt-bindings: phy: qcom,qmp: fix child node description Johan Hovold
` (27 subsequent siblings)
30 siblings, 1 reply; 67+ messages in thread
From: Johan Hovold @ 2022-07-07 13:46 UTC (permalink / raw)
To: Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel, Johan Hovold
Drop the redundant supply and clock descriptions which did not add much
information beyond what can be inferred from the corresponding resource
names.
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
---
.../devicetree/bindings/phy/qcom,qmp-phy.yaml | 108 ++++--------------
1 file changed, 25 insertions(+), 83 deletions(-)
diff --git a/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml
index 38e0ade01687..ea028bad961d 100644
--- a/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml
+++ b/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml
@@ -90,17 +90,11 @@ properties:
minItems: 1
maxItems: 3
- vdda-phy-supply:
- description:
- Phandle to a regulator supply to PHY core block.
+ vdda-phy-supply: true
- vdda-pll-supply:
- description:
- Phandle to 1.8V regulator supply to PHY refclk pll block.
+ vdda-pll-supply: true
- vddp-ref-clk-supply:
- description:
- Phandle to a regulator supply to any specific refclk pll block.
+ vddp-ref-clk-supply: true
#Required nodes:
patternProperties:
@@ -133,11 +127,7 @@ allOf:
then:
properties:
clocks:
- items:
- - description: Phy aux clock.
- - description: Phy config clock.
- - description: 19.2 MHz ref clk.
- - description: Phy common block aux clock.
+ maxItems: 4
clock-names:
items:
- const: aux
@@ -145,9 +135,7 @@ allOf:
- const: ref
- const: com_aux
resets:
- items:
- - description: reset of phy block.
- - description: phy common block reset.
+ maxItems: 2
reset-names:
items:
- const: phy
@@ -165,19 +153,14 @@ allOf:
then:
properties:
clocks:
- items:
- - description: Phy aux clock.
- - description: Phy config clock.
- - description: 19.2 MHz ref clk.
+ maxItems: 3
clock-names:
items:
- const: aux
- const: cfg_ahb
- const: ref
resets:
- items:
- - description: reset of phy block.
- - description: phy common block reset.
+ maxItems: 2
reset-names:
items:
- const: phy
@@ -194,20 +177,14 @@ allOf:
then:
properties:
clocks:
- items:
- - description: Phy aux clock.
- - description: Phy config clock.
- - description: 19.2 MHz ref clk.
+ maxItems: 3
clock-names:
items:
- const: aux
- const: cfg_ahb
- const: ref
resets:
- items:
- - description: reset of phy block.
- - description: phy common block reset.
- - description: phy's ahb cfg block reset.
+ maxItems: 3
reset-names:
items:
- const: phy
@@ -228,19 +205,14 @@ allOf:
then:
properties:
clocks:
- items:
- - description: Phy aux clock.
- - description: Phy config clock.
- - description: 19.2 MHz ref clk.
+ maxItems: 3
clock-names:
items:
- const: aux
- const: cfg_ahb
- const: ref
resets:
- items:
- - description: reset of phy block.
- - description: phy common block reset.
+ maxItems: 2
reset-names:
items:
- const: phy
@@ -257,14 +229,12 @@ allOf:
then:
properties:
clocks:
- items:
- - description: 19.2 MHz ref clk.
+ maxItems: 1
clock-names:
items:
- const: ref
resets:
- items:
- - description: PHY reset in the UFS controller.
+ maxItems: 1
reset-names:
items:
- const: ufsphy
@@ -286,16 +256,13 @@ allOf:
then:
properties:
clocks:
- items:
- - description: 19.2 MHz ref clk.
- - description: Phy reference aux clock.
+ maxItems: 2
clock-names:
items:
- const: ref
- const: ref_aux
resets:
- items:
- - description: PHY reset in the UFS controller.
+ maxItems: 1
reset-names:
items:
- const: ufsphy
@@ -312,17 +279,13 @@ allOf:
then:
properties:
clocks:
- items:
- - description: Phy aux clock.
- - description: Phy config clock.
+ maxItems: 2
clock-names:
items:
- const: aux
- const: cfg_ahb
resets:
- items:
- - description: reset of phy block.
- - description: phy common block reset.
+ maxItems: 2
reset-names:
items:
- const: phy
@@ -344,11 +307,7 @@ allOf:
then:
properties:
clocks:
- items:
- - description: Phy aux clock.
- - description: Phy config clock.
- - description: 19.2 MHz ref clk.
- - description: Phy refgen clk.
+ maxItems: 4
clock-names:
items:
- const: aux
@@ -356,8 +315,7 @@ allOf:
- const: ref
- const: refgen
resets:
- items:
- - description: reset of phy block.
+ maxItems: 1
reset-names:
items:
- const: phy
@@ -376,11 +334,7 @@ allOf:
then:
properties:
clocks:
- items:
- - description: Phy aux clock.
- - description: 19.2 MHz ref clk source.
- - description: 19.2 MHz ref clk.
- - description: Phy common block aux clock.
+ maxItems: 4
clock-names:
items:
- const: aux
@@ -388,9 +342,7 @@ allOf:
- const: ref
- const: com_aux
resets:
- items:
- - description: reset of phy block.
- - description: phy common block reset.
+ maxItems: 2
reset-names:
items:
- const: phy
@@ -408,19 +360,14 @@ allOf:
then:
properties:
clocks:
- items:
- - description: Phy aux clock.
- - description: 19.2 MHz ref clk.
- - description: Phy common block aux clock.
+ maxItems: 3
clock-names:
items:
- const: aux
- const: ref_clk_src
- const: com_aux
resets:
- items:
- - description: reset of phy block.
- - description: phy common block reset.
+ maxItems: 2
reset-names:
items:
- const: phy
@@ -437,19 +384,14 @@ allOf:
then:
properties:
clocks:
- items:
- - description: Phy config clock.
- - description: 19.2 MHz ref clk.
- - description: Phy common block aux clock.
+ maxItems: 3
clock-names:
items:
- const: cfg_ahb
- const: ref
- const: com_aux
resets:
- items:
- - description: phy_phy reset.
- - description: reset of phy block.
+ maxItems: 2
reset-names:
items:
- const: phy_phy
--
2.35.1
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [PATCH v2 04/30] dt-bindings: phy: qcom,qmp: fix child node description
2022-07-07 13:46 [PATCH v2 00/30] phy: qcom,qmp: fix dt-bindings and deprecate lane suffix Johan Hovold
` (2 preceding siblings ...)
2022-07-07 13:46 ` [PATCH v2 03/30] dt-bindings: phy: qcom,qmp: drop redundant descriptions Johan Hovold
@ 2022-07-07 13:46 ` Johan Hovold
2022-07-14 9:07 ` Krzysztof Kozlowski
2022-07-07 13:47 ` [PATCH v2 05/30] dt-bindings: phy: qcom,qmp: clean up descriptions Johan Hovold
` (26 subsequent siblings)
30 siblings, 1 reply; 67+ messages in thread
From: Johan Hovold @ 2022-07-07 13:46 UTC (permalink / raw)
To: Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel, Johan Hovold
Fix the incorrect description of the child nodes which claimed that one
node is required per lane rather than per PHY.
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
---
Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml
index ea028bad961d..f7b8898fd95d 100644
--- a/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml
+++ b/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml
@@ -100,9 +100,7 @@ properties:
patternProperties:
"^phy@[0-9a-f]+$":
type: object
- description:
- Each device node of QMP phy is required to have as many child nodes as
- the number of lanes the PHY has.
+ description: one child node per PHY provided by this block
required:
- compatible
--
2.35.1
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [PATCH v2 05/30] dt-bindings: phy: qcom,qmp: clean up descriptions
2022-07-07 13:46 [PATCH v2 00/30] phy: qcom,qmp: fix dt-bindings and deprecate lane suffix Johan Hovold
` (3 preceding siblings ...)
2022-07-07 13:46 ` [PATCH v2 04/30] dt-bindings: phy: qcom,qmp: fix child node description Johan Hovold
@ 2022-07-07 13:47 ` Johan Hovold
2022-07-14 9:07 ` Krzysztof Kozlowski
2022-07-07 13:47 ` [PATCH v2 06/30] dt-bindings: phy: qcom,qmp: clean up example Johan Hovold
` (25 subsequent siblings)
30 siblings, 1 reply; 67+ messages in thread
From: Johan Hovold @ 2022-07-07 13:47 UTC (permalink / raw)
To: Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel, Johan Hovold
Clean up the remaining descriptions by using uppercase "PHY"
consistently and dropping redundant information from the register
descriptions.
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
---
Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml
index f7b8898fd95d..bcffabf04566 100644
--- a/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml
+++ b/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml
@@ -11,7 +11,7 @@ maintainers:
- Vinod Koul <vkoul@kernel.org>
description:
- QMP phy controller supports physical layer functionality for a number of
+ QMP PHY controller supports physical layer functionality for a number of
controllers on Qualcomm chipsets, such as, PCIe, UFS, and USB.
properties:
@@ -63,8 +63,8 @@ properties:
reg:
minItems: 1
items:
- - description: Address and length of PHY's common serdes block.
- - description: Address and length of PHY's DP_COM control block.
+ - description: serdes
+ - description: DP_COM
"#address-cells":
enum: [ 1, 2 ]
--
2.35.1
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [PATCH v2 06/30] dt-bindings: phy: qcom,qmp: clean up example
2022-07-07 13:46 [PATCH v2 00/30] phy: qcom,qmp: fix dt-bindings and deprecate lane suffix Johan Hovold
` (4 preceding siblings ...)
2022-07-07 13:47 ` [PATCH v2 05/30] dt-bindings: phy: qcom,qmp: clean up descriptions Johan Hovold
@ 2022-07-07 13:47 ` Johan Hovold
2022-07-07 13:47 ` [PATCH v2 07/30] dt-bindings: phy: qcom,qmp: drop child-node comment Johan Hovold
` (24 subsequent siblings)
30 siblings, 0 replies; 67+ messages in thread
From: Johan Hovold @ 2022-07-07 13:47 UTC (permalink / raw)
To: Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel, Johan Hovold, Krzysztof Kozlowski
Clean up the example node somewhat by grouping consumer and provider
properties in the child node.
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
---
Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml
index bcffabf04566..7e0f798632f4 100644
--- a/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml
+++ b/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml
@@ -426,10 +426,13 @@ examples:
<0x400 0x1fc>,
<0x800 0x218>,
<0x600 0x70>;
- #clock-cells = <0>;
- #phy-cells = <0>;
+
clocks = <&gcc GCC_USB3_SEC_PHY_PIPE_CLK>;
clock-names = "pipe0";
+
+ #clock-cells = <0>;
clock-output-names = "usb3_uni_phy_pipe_clk_src";
+
+ #phy-cells = <0>;
};
};
--
2.35.1
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [PATCH v2 07/30] dt-bindings: phy: qcom,qmp: drop child-node comment
2022-07-07 13:46 [PATCH v2 00/30] phy: qcom,qmp: fix dt-bindings and deprecate lane suffix Johan Hovold
` (5 preceding siblings ...)
2022-07-07 13:47 ` [PATCH v2 06/30] dt-bindings: phy: qcom,qmp: clean up example Johan Hovold
@ 2022-07-07 13:47 ` Johan Hovold
2022-07-07 13:47 ` [PATCH v2 08/30] dt-bindings: phy: add qcom,msm8996-qmp-pcie-phy schema Johan Hovold
` (23 subsequent siblings)
30 siblings, 0 replies; 67+ messages in thread
From: Johan Hovold @ 2022-07-07 13:47 UTC (permalink / raw)
To: Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel, Johan Hovold, Krzysztof Kozlowski
Drop the redundant comment about child nodes being required that was
copied from the old binding documentation.
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
---
Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml | 1 -
1 file changed, 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml
index 7e0f798632f4..08a84af711ce 100644
--- a/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml
+++ b/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml
@@ -96,7 +96,6 @@ properties:
vddp-ref-clk-supply: true
-#Required nodes:
patternProperties:
"^phy@[0-9a-f]+$":
type: object
--
2.35.1
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [PATCH v2 08/30] dt-bindings: phy: add qcom,msm8996-qmp-pcie-phy schema
2022-07-07 13:46 [PATCH v2 00/30] phy: qcom,qmp: fix dt-bindings and deprecate lane suffix Johan Hovold
` (6 preceding siblings ...)
2022-07-07 13:47 ` [PATCH v2 07/30] dt-bindings: phy: qcom,qmp: drop child-node comment Johan Hovold
@ 2022-07-07 13:47 ` Johan Hovold
2022-07-14 9:09 ` Krzysztof Kozlowski
2022-07-07 13:47 ` [PATCH v2 09/30] dt-bindings: phy: qcom,msm8996-qmp-pcie: add missing child node schema Johan Hovold
` (22 subsequent siblings)
30 siblings, 1 reply; 67+ messages in thread
From: Johan Hovold @ 2022-07-07 13:47 UTC (permalink / raw)
To: Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel, Johan Hovold
The QMP PHY DT schema is getting unwieldy. Break out the odd-bird
msm8996-qmp-pcie-phy which is the only QMP PHY that uses separate
"per-lane" nodes.
Add an example node based on a cleaned up version of msm8996.dtsi.
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
---
.../phy/qcom,msm8996-qmp-pcie-phy.yaml | 146 ++++++++++++++++++
.../devicetree/bindings/phy/qcom,qmp-phy.yaml | 26 ----
2 files changed, 146 insertions(+), 26 deletions(-)
create mode 100644 Documentation/devicetree/bindings/phy/qcom,msm8996-qmp-pcie-phy.yaml
diff --git a/Documentation/devicetree/bindings/phy/qcom,msm8996-qmp-pcie-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,msm8996-qmp-pcie-phy.yaml
new file mode 100644
index 000000000000..accbcb8b5c6f
--- /dev/null
+++ b/Documentation/devicetree/bindings/phy/qcom,msm8996-qmp-pcie-phy.yaml
@@ -0,0 +1,146 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/phy/qcom,msm8996-qmp-pcie-phy.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Qualcomm QMP PHY controller (MSM8996 PCIe)
+
+maintainers:
+ - Vinod Koul <vkoul@kernel.org>
+
+description:
+ QMP PHY controller supports physical layer functionality for a number of
+ controllers on Qualcomm chipsets, such as, PCIe, UFS, and USB.
+
+properties:
+ compatible:
+ const: qcom,msm8996-qmp-pcie-phy
+
+ reg:
+ items:
+ - description: serdes
+
+ "#address-cells":
+ enum: [ 1, 2 ]
+
+ "#size-cells":
+ enum: [ 1, 2 ]
+
+ ranges: true
+
+ clocks:
+ maxItems: 3
+
+ clock-names:
+ items:
+ - const: aux
+ - const: cfg_ahb
+ - const: ref
+
+ resets:
+ maxItems: 3
+
+ reset-names:
+ items:
+ - const: phy
+ - const: common
+ - const: cfg
+
+ vdda-phy-supply: true
+
+ vdda-pll-supply: true
+
+ vddp-ref-clk-supply: true
+
+patternProperties:
+ "^phy@[0-9a-f]+$":
+ type: object
+ description: one child node per PHY provided by this block
+
+required:
+ - compatible
+ - reg
+ - "#address-cells"
+ - "#size-cells"
+ - ranges
+ - clocks
+ - clock-names
+ - resets
+ - reset-names
+ - vdda-phy-supply
+ - vdda-pll-supply
+
+additionalProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/clock/qcom,gcc-msm8996.h>
+ pcie_phy: phy-wrapper@34000 {
+ compatible = "qcom,msm8996-qmp-pcie-phy";
+ reg = <0x34000 0x488>;
+ #address-cells = <1>;
+ #size-cells = <1>;
+ ranges = <0x0 0x34000 0x4000>;
+
+ clocks = <&gcc GCC_PCIE_PHY_AUX_CLK>,
+ <&gcc GCC_PCIE_PHY_CFG_AHB_CLK>,
+ <&gcc GCC_PCIE_CLKREF_CLK>;
+ clock-names = "aux", "cfg_ahb", "ref";
+
+ resets = <&gcc GCC_PCIE_PHY_BCR>,
+ <&gcc GCC_PCIE_PHY_COM_BCR>,
+ <&gcc GCC_PCIE_PHY_COM_NOCSR_BCR>;
+ reset-names = "phy", "common", "cfg";
+
+ vdda-phy-supply = <&vreg_l28a_0p925>;
+ vdda-pll-supply = <&vreg_l12a_1p8>;
+
+ pciephy_0: phy@1000 {
+ reg = <0x1000 0x130>,
+ <0x1200 0x200>,
+ <0x1400 0x1dc>;
+
+ clocks = <&gcc GCC_PCIE_0_PIPE_CLK>;
+ clock-names = "pipe0";
+ resets = <&gcc GCC_PCIE_0_PHY_BCR>;
+ reset-names = "lane0";
+
+ #clock-cells = <0>;
+ clock-output-names = "pcie_0_pipe_clk_src";
+
+ #phy-cells = <0>;
+ };
+
+ pciephy_1: phy@2000 {
+ reg = <0x2000 0x130>,
+ <0x2200 0x200>,
+ <0x2400 0x1dc>;
+
+ clocks = <&gcc GCC_PCIE_1_PIPE_CLK>;
+ clock-names = "pipe1";
+ resets = <&gcc GCC_PCIE_1_PHY_BCR>;
+ reset-names = "lane1";
+
+ #clock-cells = <0>;
+ clock-output-names = "pcie_1_pipe_clk_src";
+
+ #phy-cells = <0>;
+ };
+
+ pciephy_2: phy@3000 {
+ reg = <0x3000 0x130>,
+ <0x3200 0x200>,
+ <0x3400 0x1dc>;
+
+ clocks = <&gcc GCC_PCIE_2_PIPE_CLK>;
+ clock-names = "pipe2";
+ resets = <&gcc GCC_PCIE_2_PHY_BCR>;
+ reset-names = "lane2";
+
+ #clock-cells = <0>;
+ clock-output-names = "pcie_2_pipe_clk_src";
+
+ #phy-cells = <0>;
+ };
+ };
diff --git a/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml
index 08a84af711ce..5fd716c6412f 100644
--- a/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml
+++ b/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml
@@ -21,7 +21,6 @@ properties:
- qcom,ipq6018-qmp-usb3-phy
- qcom,ipq8074-qmp-pcie-phy
- qcom,ipq8074-qmp-usb3-phy
- - qcom,msm8996-qmp-pcie-phy
- qcom,msm8996-qmp-ufs-phy
- qcom,msm8996-qmp-usb3-phy
- qcom,msm8998-qmp-pcie-phy
@@ -165,31 +164,6 @@ allOf:
required:
- vdda-phy-supply
- vdda-pll-supply
- - if:
- properties:
- compatible:
- contains:
- enum:
- - qcom,msm8996-qmp-pcie-phy
- then:
- properties:
- clocks:
- maxItems: 3
- clock-names:
- items:
- - const: aux
- - const: cfg_ahb
- - const: ref
- resets:
- maxItems: 3
- reset-names:
- items:
- - const: phy
- - const: common
- - const: cfg
- required:
- - vdda-phy-supply
- - vdda-pll-supply
- if:
properties:
compatible:
--
2.35.1
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [PATCH v2 09/30] dt-bindings: phy: qcom,msm8996-qmp-pcie: add missing child node schema
2022-07-07 13:46 [PATCH v2 00/30] phy: qcom,qmp: fix dt-bindings and deprecate lane suffix Johan Hovold
` (7 preceding siblings ...)
2022-07-07 13:47 ` [PATCH v2 08/30] dt-bindings: phy: add qcom,msm8996-qmp-pcie-phy schema Johan Hovold
@ 2022-07-07 13:47 ` Johan Hovold
2022-07-14 9:10 ` Krzysztof Kozlowski
2022-07-07 13:47 ` [PATCH v2 10/30] dt-bindings: phy: qcom,msm8996-qmp-pcie: deprecate PIPE clock names Johan Hovold
` (21 subsequent siblings)
30 siblings, 1 reply; 67+ messages in thread
From: Johan Hovold @ 2022-07-07 13:47 UTC (permalink / raw)
To: Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel, Johan Hovold, Krzysztof Kozlowski
Add the missing the description of the PHY-provider child nodes which
were ignored when converting to DT schema.
Fixes: ccf51c1cedfd ("dt-bindings: phy: qcom,qmp: Convert QMP PHY bindings to yaml")
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
---
.../phy/qcom,msm8996-qmp-pcie-phy.yaml | 49 +++++++++++++++++++
1 file changed, 49 insertions(+)
diff --git a/Documentation/devicetree/bindings/phy/qcom,msm8996-qmp-pcie-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,msm8996-qmp-pcie-phy.yaml
index accbcb8b5c6f..8125a91a3591 100644
--- a/Documentation/devicetree/bindings/phy/qcom,msm8996-qmp-pcie-phy.yaml
+++ b/Documentation/devicetree/bindings/phy/qcom,msm8996-qmp-pcie-phy.yaml
@@ -57,6 +57,55 @@ patternProperties:
"^phy@[0-9a-f]+$":
type: object
description: one child node per PHY provided by this block
+ properties:
+ reg:
+ items:
+ - description: TX
+ - description: RX
+ - description: PCS
+
+ clocks:
+ items:
+ - description: PIPE clock
+
+ clock-names:
+ items:
+ - enum:
+ - pipe0
+ - pipe1
+ - pipe2
+
+ resets:
+ items:
+ - description: PHY (lane) reset
+
+ reset-names:
+ items:
+ - enum:
+ - lane0
+ - lane1
+ - lane2
+
+ "#clock-cells":
+ const: 0
+
+ clock-output-names:
+ maxItems: 1
+
+ "#phy-cells":
+ const: 0
+
+ required:
+ - reg
+ - clocks
+ - clock-names
+ - resets
+ - reset-names
+ - "#clock-cells"
+ - clock-output-names
+ - "#phy-cells"
+
+ additionalProperties: false
required:
- compatible
--
2.35.1
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [PATCH v2 10/30] dt-bindings: phy: qcom,msm8996-qmp-pcie: deprecate PIPE clock names
2022-07-07 13:46 [PATCH v2 00/30] phy: qcom,qmp: fix dt-bindings and deprecate lane suffix Johan Hovold
` (8 preceding siblings ...)
2022-07-07 13:47 ` [PATCH v2 09/30] dt-bindings: phy: qcom,msm8996-qmp-pcie: add missing child node schema Johan Hovold
@ 2022-07-07 13:47 ` Johan Hovold
2022-07-14 9:13 ` Krzysztof Kozlowski
2022-07-07 13:47 ` [PATCH v2 11/30] dt-bindings: phy: qcom,msm8996-qmp-pcie: deprecate reset names Johan Hovold
` (20 subsequent siblings)
30 siblings, 1 reply; 67+ messages in thread
From: Johan Hovold @ 2022-07-07 13:47 UTC (permalink / raw)
To: Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel, Johan Hovold
Deprecate the PHY node 'clock-names' property which specified that the
PIPE clock name should have an unnecessary "lane" suffix.
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
---
.../devicetree/bindings/phy/qcom,msm8996-qmp-pcie-phy.yaml | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/Documentation/devicetree/bindings/phy/qcom,msm8996-qmp-pcie-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,msm8996-qmp-pcie-phy.yaml
index 8125a91a3591..b7b115e021d4 100644
--- a/Documentation/devicetree/bindings/phy/qcom,msm8996-qmp-pcie-phy.yaml
+++ b/Documentation/devicetree/bindings/phy/qcom,msm8996-qmp-pcie-phy.yaml
@@ -69,6 +69,7 @@ patternProperties:
- description: PIPE clock
clock-names:
+ deprecated: true
items:
- enum:
- pipe0
@@ -98,7 +99,6 @@ patternProperties:
required:
- reg
- clocks
- - clock-names
- resets
- reset-names
- "#clock-cells"
@@ -151,7 +151,6 @@ examples:
<0x1400 0x1dc>;
clocks = <&gcc GCC_PCIE_0_PIPE_CLK>;
- clock-names = "pipe0";
resets = <&gcc GCC_PCIE_0_PHY_BCR>;
reset-names = "lane0";
@@ -167,7 +166,6 @@ examples:
<0x2400 0x1dc>;
clocks = <&gcc GCC_PCIE_1_PIPE_CLK>;
- clock-names = "pipe1";
resets = <&gcc GCC_PCIE_1_PHY_BCR>;
reset-names = "lane1";
@@ -183,7 +181,6 @@ examples:
<0x3400 0x1dc>;
clocks = <&gcc GCC_PCIE_2_PIPE_CLK>;
- clock-names = "pipe2";
resets = <&gcc GCC_PCIE_2_PHY_BCR>;
reset-names = "lane2";
--
2.35.1
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [PATCH v2 11/30] dt-bindings: phy: qcom,msm8996-qmp-pcie: deprecate reset names
2022-07-07 13:46 [PATCH v2 00/30] phy: qcom,qmp: fix dt-bindings and deprecate lane suffix Johan Hovold
` (9 preceding siblings ...)
2022-07-07 13:47 ` [PATCH v2 10/30] dt-bindings: phy: qcom,msm8996-qmp-pcie: deprecate PIPE clock names Johan Hovold
@ 2022-07-07 13:47 ` Johan Hovold
2022-07-14 9:13 ` Krzysztof Kozlowski
2022-07-07 13:47 ` [PATCH v2 12/30] dt-bindings: phy: add QMP PCIe PHY schema Johan Hovold
` (19 subsequent siblings)
30 siblings, 1 reply; 67+ messages in thread
From: Johan Hovold @ 2022-07-07 13:47 UTC (permalink / raw)
To: Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel, Johan Hovold
Deprecate the PHY node 'reset-names' property which specified that the
reset name should have an unnecessary "lane" suffix.
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
---
.../devicetree/bindings/phy/qcom,msm8996-qmp-pcie-phy.yaml | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/Documentation/devicetree/bindings/phy/qcom,msm8996-qmp-pcie-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,msm8996-qmp-pcie-phy.yaml
index b7b115e021d4..4e710ef75523 100644
--- a/Documentation/devicetree/bindings/phy/qcom,msm8996-qmp-pcie-phy.yaml
+++ b/Documentation/devicetree/bindings/phy/qcom,msm8996-qmp-pcie-phy.yaml
@@ -78,9 +78,10 @@ patternProperties:
resets:
items:
- - description: PHY (lane) reset
+ - description: PHY reset
reset-names:
+ deprecated: true
items:
- enum:
- lane0
@@ -100,7 +101,6 @@ patternProperties:
- reg
- clocks
- resets
- - reset-names
- "#clock-cells"
- clock-output-names
- "#phy-cells"
@@ -152,7 +152,6 @@ examples:
clocks = <&gcc GCC_PCIE_0_PIPE_CLK>;
resets = <&gcc GCC_PCIE_0_PHY_BCR>;
- reset-names = "lane0";
#clock-cells = <0>;
clock-output-names = "pcie_0_pipe_clk_src";
@@ -167,7 +166,6 @@ examples:
clocks = <&gcc GCC_PCIE_1_PIPE_CLK>;
resets = <&gcc GCC_PCIE_1_PHY_BCR>;
- reset-names = "lane1";
#clock-cells = <0>;
clock-output-names = "pcie_1_pipe_clk_src";
@@ -182,7 +180,6 @@ examples:
clocks = <&gcc GCC_PCIE_2_PIPE_CLK>;
resets = <&gcc GCC_PCIE_2_PHY_BCR>;
- reset-names = "lane2";
#clock-cells = <0>;
clock-output-names = "pcie_2_pipe_clk_src";
--
2.35.1
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [PATCH v2 12/30] dt-bindings: phy: add QMP PCIe PHY schema
2022-07-07 13:46 [PATCH v2 00/30] phy: qcom,qmp: fix dt-bindings and deprecate lane suffix Johan Hovold
` (10 preceding siblings ...)
2022-07-07 13:47 ` [PATCH v2 11/30] dt-bindings: phy: qcom,msm8996-qmp-pcie: deprecate reset names Johan Hovold
@ 2022-07-07 13:47 ` Johan Hovold
2022-07-14 9:15 ` Krzysztof Kozlowski
2022-07-07 13:47 ` [PATCH v2 13/30] dt-bindings: phy: qcom,qmp-pcie: add missing child node schema Johan Hovold
` (18 subsequent siblings)
30 siblings, 1 reply; 67+ messages in thread
From: Johan Hovold @ 2022-07-07 13:47 UTC (permalink / raw)
To: Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel, Johan Hovold
The QMP PHY DT schema is getting unwieldy. Break out the PCIe PHY
binding in a separate file.
Add an example node based on a cleaned up version of sm8250.dtsi.
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
---
.../bindings/phy/qcom,qmp-pcie-phy.yaml | 203 ++++++++++++++++++
.../devicetree/bindings/phy/qcom,qmp-phy.yaml | 66 ------
2 files changed, 203 insertions(+), 66 deletions(-)
create mode 100644 Documentation/devicetree/bindings/phy/qcom,qmp-pcie-phy.yaml
diff --git a/Documentation/devicetree/bindings/phy/qcom,qmp-pcie-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,qmp-pcie-phy.yaml
new file mode 100644
index 000000000000..ec5f83878a2b
--- /dev/null
+++ b/Documentation/devicetree/bindings/phy/qcom,qmp-pcie-phy.yaml
@@ -0,0 +1,203 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/phy/qcom,qmp-pcie-phy.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Qualcomm QMP PHY controller (PCIe)
+
+maintainers:
+ - Vinod Koul <vkoul@kernel.org>
+
+description:
+ QMP PHY controller supports physical layer functionality for a number of
+ controllers on Qualcomm chipsets, such as, PCIe, UFS, and USB.
+
+properties:
+ compatible:
+ enum:
+ - qcom,ipq6018-qmp-pcie-phy
+ - qcom,ipq8074-qmp-pcie-phy
+ - qcom,msm8998-qmp-pcie-phy
+ - qcom,sc8180x-qmp-pcie-phy
+ - qcom,sdm845-qhp-pcie-phy
+ - qcom,sdm845-qmp-pcie-phy
+ - qcom,sdx55-qmp-pcie-phy
+ - qcom,sm8250-qmp-gen3x1-pcie-phy
+ - qcom,sm8250-qmp-gen3x2-pcie-phy
+ - qcom,sm8250-qmp-modem-pcie-phy
+ - qcom,sm8450-qmp-gen3x1-pcie-phy
+ - qcom,sm8450-qmp-gen4x2-pcie-phy
+
+ reg:
+ items:
+ - description: serdes
+
+ "#address-cells":
+ enum: [ 1, 2 ]
+
+ "#size-cells":
+ enum: [ 1, 2 ]
+
+ ranges: true
+
+ clocks:
+ minItems: 2
+ maxItems: 4
+
+ clock-names:
+ minItems: 2
+ maxItems: 4
+
+ resets:
+ minItems: 1
+ maxItems: 2
+
+ reset-names:
+ minItems: 1
+ maxItems: 2
+
+ vdda-phy-supply: true
+
+ vdda-pll-supply: true
+
+ vddp-ref-clk-supply: true
+
+patternProperties:
+ "^phy@[0-9a-f]+$":
+ type: object
+ description: single PHY-provider child node
+
+required:
+ - compatible
+ - reg
+ - "#address-cells"
+ - "#size-cells"
+ - ranges
+ - clocks
+ - clock-names
+ - resets
+ - reset-names
+
+additionalProperties: false
+
+allOf:
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - qcom,msm8998-qmp-pcie-phy
+ then:
+ properties:
+ clocks:
+ maxItems: 3
+ clock-names:
+ items:
+ - const: aux
+ - const: cfg_ahb
+ - const: ref
+ resets:
+ maxItems: 2
+ reset-names:
+ items:
+ - const: phy
+ - const: common
+ required:
+ - vdda-phy-supply
+ - vdda-pll-supply
+
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - qcom,ipq6018-qmp-pcie-phy
+ - qcom,ipq8074-qmp-pcie-phy
+ then:
+ properties:
+ clocks:
+ maxItems: 2
+ clock-names:
+ items:
+ - const: aux
+ - const: cfg_ahb
+ resets:
+ maxItems: 2
+ reset-names:
+ items:
+ - const: phy
+ - const: common
+
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - qcom,sc8180x-qmp-pcie-phy
+ - qcom,sdm845-qhp-pcie-phy
+ - qcom,sdm845-qmp-pcie-phy
+ - qcom,sdx55-qmp-pcie-phy
+ - qcom,sm8250-qmp-gen3x1-pcie-phy
+ - qcom,sm8250-qmp-gen3x2-pcie-phy
+ - qcom,sm8250-qmp-modem-pcie-phy
+ - qcom,sm8450-qmp-gen3x1-pcie-phy
+ - qcom,sm8450-qmp-gen4x2-pcie-phy
+ then:
+ properties:
+ clocks:
+ maxItems: 4
+ clock-names:
+ items:
+ - const: aux
+ - const: cfg_ahb
+ - const: ref
+ - const: refgen
+ resets:
+ maxItems: 1
+ reset-names:
+ items:
+ - const: phy
+ required:
+ - vdda-phy-supply
+ - vdda-pll-supply
+
+examples:
+ - |
+ #include <dt-bindings/clock/qcom,gcc-sm8250.h>
+ phy-wrapper@1c0e000 {
+ compatible = "qcom,sm8250-qmp-gen3x2-pcie-phy";
+ reg = <0x01c0e000 0x1c0>;
+ #address-cells = <1>;
+ #size-cells = <1>;
+ ranges = <0x0 0x01c0e000 0x1000>;
+
+ clocks = <&gcc GCC_PCIE_PHY_AUX_CLK>,
+ <&gcc GCC_PCIE_1_CFG_AHB_CLK>,
+ <&gcc GCC_PCIE_WIGIG_CLKREF_EN>,
+ <&gcc GCC_PCIE1_PHY_REFGEN_CLK>;
+ clock-names = "aux", "cfg_ahb", "ref", "refgen";
+
+ resets = <&gcc GCC_PCIE_1_PHY_BCR>;
+ reset-names = "phy";
+
+ vdda-phy-supply = <&vreg_l10c_0p88>;
+ vdda-pll-supply = <&vreg_l6b_1p2>;
+
+ phy@200 {
+ reg = <0x200 0x170>,
+ <0x400 0x200>,
+ <0xa00 0x1f0>,
+ <0x600 0x170>,
+ <0x800 0x200>,
+ <0xe00 0xf4>;
+
+ clocks = <&gcc GCC_PCIE_1_PIPE_CLK>;
+ clock-names = "pipe0";
+
+ #clock-cells = <0>;
+ clock-output-names = "pcie_1_pipe_clk";
+
+ #phy-cells = <0>;
+ };
+ };
diff --git a/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml
index 5fd716c6412f..897dcd4f7dc9 100644
--- a/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml
+++ b/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml
@@ -17,27 +17,20 @@ description:
properties:
compatible:
enum:
- - qcom,ipq6018-qmp-pcie-phy
- qcom,ipq6018-qmp-usb3-phy
- - qcom,ipq8074-qmp-pcie-phy
- qcom,ipq8074-qmp-usb3-phy
- qcom,msm8996-qmp-ufs-phy
- qcom,msm8996-qmp-usb3-phy
- - qcom,msm8998-qmp-pcie-phy
- qcom,msm8998-qmp-ufs-phy
- qcom,msm8998-qmp-usb3-phy
- qcom,qcm2290-qmp-usb3-phy
- qcom,sc7180-qmp-usb3-phy
- - qcom,sc8180x-qmp-pcie-phy
- qcom,sc8180x-qmp-ufs-phy
- qcom,sc8180x-qmp-usb3-phy
- qcom,sc8280xp-qmp-ufs-phy
- - qcom,sdm845-qhp-pcie-phy
- - qcom,sdm845-qmp-pcie-phy
- qcom,sdm845-qmp-ufs-phy
- qcom,sdm845-qmp-usb3-phy
- qcom,sdm845-qmp-usb3-uni-phy
- - qcom,sdx55-qmp-pcie-phy
- qcom,sdx55-qmp-usb3-uni-phy
- qcom,sdx65-qmp-usb3-uni-phy
- qcom,sm6115-qmp-ufs-phy
@@ -45,17 +38,12 @@ properties:
- qcom,sm8150-qmp-ufs-phy
- qcom,sm8150-qmp-usb3-phy
- qcom,sm8150-qmp-usb3-uni-phy
- - qcom,sm8250-qmp-gen3x1-pcie-phy
- - qcom,sm8250-qmp-gen3x2-pcie-phy
- - qcom,sm8250-qmp-modem-pcie-phy
- qcom,sm8250-qmp-ufs-phy
- qcom,sm8250-qmp-usb3-phy
- qcom,sm8250-qmp-usb3-uni-phy
- qcom,sm8350-qmp-ufs-phy
- qcom,sm8350-qmp-usb3-phy
- qcom,sm8350-qmp-usb3-uni-phy
- - qcom,sm8450-qmp-gen3x1-pcie-phy
- - qcom,sm8450-qmp-gen4x2-pcie-phy
- qcom,sm8450-qmp-ufs-phy
- qcom,sm8450-qmp-usb3-phy
@@ -171,7 +159,6 @@ allOf:
enum:
- qcom,ipq8074-qmp-usb3-phy
- qcom,msm8996-qmp-usb3-phy
- - qcom,msm8998-qmp-pcie-phy
- qcom,msm8998-qmp-usb3-phy
then:
properties:
@@ -240,59 +227,6 @@ allOf:
required:
- vdda-phy-supply
- vdda-pll-supply
- - if:
- properties:
- compatible:
- contains:
- enum:
- - qcom,ipq6018-qmp-pcie-phy
- - qcom,ipq8074-qmp-pcie-phy
- then:
- properties:
- clocks:
- maxItems: 2
- clock-names:
- items:
- - const: aux
- - const: cfg_ahb
- resets:
- maxItems: 2
- reset-names:
- items:
- - const: phy
- - const: common
- - if:
- properties:
- compatible:
- contains:
- enum:
- - qcom,sc8180x-qmp-pcie-phy
- - qcom,sdm845-qhp-pcie-phy
- - qcom,sdm845-qmp-pcie-phy
- - qcom,sdx55-qmp-pcie-phy
- - qcom,sm8250-qmp-gen3x1-pcie-phy
- - qcom,sm8250-qmp-gen3x2-pcie-phy
- - qcom,sm8250-qmp-modem-pcie-phy
- - qcom,sm8450-qmp-gen3x1-pcie-phy
- - qcom,sm8450-qmp-gen4x2-pcie-phy
- then:
- properties:
- clocks:
- maxItems: 4
- clock-names:
- items:
- - const: aux
- - const: cfg_ahb
- - const: ref
- - const: refgen
- resets:
- maxItems: 1
- reset-names:
- items:
- - const: phy
- required:
- - vdda-phy-supply
- - vdda-pll-supply
- if:
properties:
compatible:
--
2.35.1
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [PATCH v2 13/30] dt-bindings: phy: qcom,qmp-pcie: add missing child node schema
2022-07-07 13:46 [PATCH v2 00/30] phy: qcom,qmp: fix dt-bindings and deprecate lane suffix Johan Hovold
` (11 preceding siblings ...)
2022-07-07 13:47 ` [PATCH v2 12/30] dt-bindings: phy: add QMP PCIe PHY schema Johan Hovold
@ 2022-07-07 13:47 ` Johan Hovold
2022-07-14 9:15 ` Krzysztof Kozlowski
2022-07-07 13:47 ` [PATCH v2 14/30] dt-bindings: phy: qcom,qmp-pcie: deprecate PIPE clock name Johan Hovold
` (17 subsequent siblings)
30 siblings, 1 reply; 67+ messages in thread
From: Johan Hovold @ 2022-07-07 13:47 UTC (permalink / raw)
To: Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel, Johan Hovold
Add the missing the description of the PHY-provider child node which was
ignored when converting to DT schema.
Fixes: ccf51c1cedfd ("dt-bindings: phy: qcom,qmp: Convert QMP PHY bindings to yaml")
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
---
.../bindings/phy/qcom,qmp-pcie-phy.yaml | 92 +++++++++++++++++++
1 file changed, 92 insertions(+)
diff --git a/Documentation/devicetree/bindings/phy/qcom,qmp-pcie-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,qmp-pcie-phy.yaml
index ec5f83878a2b..801222403bcc 100644
--- a/Documentation/devicetree/bindings/phy/qcom,qmp-pcie-phy.yaml
+++ b/Documentation/devicetree/bindings/phy/qcom,qmp-pcie-phy.yaml
@@ -67,6 +67,37 @@ patternProperties:
"^phy@[0-9a-f]+$":
type: object
description: single PHY-provider child node
+ properties:
+ reg:
+ minItems: 3
+ maxItems: 6
+
+ clocks:
+ items:
+ - description: PIPE clock
+
+ clock-names:
+ items:
+ - const: pipe0
+
+ "#clock-cells":
+ const: 0
+
+ clock-output-names:
+ maxItems: 1
+
+ "#phy-cells":
+ const: 0
+
+ required:
+ - reg
+ - clocks
+ - clock-names
+ - "#clock-cells"
+ - clock-output-names
+ - "#phy-cells"
+
+ additionalProperties: false
required:
- compatible
@@ -162,6 +193,67 @@ allOf:
- vdda-phy-supply
- vdda-pll-supply
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - qcom,sm8250-qmp-gen3x2-pcie-phy
+ - qcom,sm8250-qmp-modem-pcie-phy
+ - qcom,sm8450-qmp-gen4x2-pcie-phy
+ then:
+ patternProperties:
+ "^phy@[0-9a-f]+$":
+ properties:
+ reg:
+ items:
+ - description: TX lane 1
+ - description: RX lane 1
+ - description: PCS
+ - description: TX lane 2
+ - description: RX lane 2
+ - description: PCS_MISC
+
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - qcom,sc8180x-qmp-pcie-phy
+ - qcom,sdm845-qmp-pcie-phy
+ - qcom,sdx55-qmp-pcie-phy
+ - qcom,sm8250-qmp-gen3x1-pcie-phy
+ - qcom,sm8450-qmp-gen3x1-pcie-phy
+ then:
+ patternProperties:
+ "^phy@[0-9a-f]+$":
+ properties:
+ reg:
+ items:
+ - description: TX
+ - description: RX
+ - description: PCS
+ - description: PCS_MISC
+
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - qcom,ipq6018-qmp-pcie-phy
+ - qcom,ipq8074-qmp-pcie-phy
+ - qcom,msm8998-qmp-pcie-phy
+ - qcom,sdm845-qhp-pcie-phy
+ then:
+ patternProperties:
+ "^phy@[0-9a-f]+$":
+ properties:
+ reg:
+ items:
+ - description: TX
+ - description: RX
+ - description: PCS
+
examples:
- |
#include <dt-bindings/clock/qcom,gcc-sm8250.h>
--
2.35.1
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [PATCH v2 14/30] dt-bindings: phy: qcom,qmp-pcie: deprecate PIPE clock name
2022-07-07 13:46 [PATCH v2 00/30] phy: qcom,qmp: fix dt-bindings and deprecate lane suffix Johan Hovold
` (12 preceding siblings ...)
2022-07-07 13:47 ` [PATCH v2 13/30] dt-bindings: phy: qcom,qmp-pcie: add missing child node schema Johan Hovold
@ 2022-07-07 13:47 ` Johan Hovold
2022-07-14 9:18 ` Krzysztof Kozlowski
2022-07-07 13:47 ` [PATCH v2 15/30] dt-bindings: phy: add QMP UFS PHY schema Johan Hovold
` (16 subsequent siblings)
30 siblings, 1 reply; 67+ messages in thread
From: Johan Hovold @ 2022-07-07 13:47 UTC (permalink / raw)
To: Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel, Johan Hovold
Deprecate the PHY node 'clock-names' property which specified that the
PIPE clock name should have a bogus "lane" suffix.
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
---
Documentation/devicetree/bindings/phy/qcom,qmp-pcie-phy.yaml | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/phy/qcom,qmp-pcie-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,qmp-pcie-phy.yaml
index 801222403bcc..f4e84c1ad0c1 100644
--- a/Documentation/devicetree/bindings/phy/qcom,qmp-pcie-phy.yaml
+++ b/Documentation/devicetree/bindings/phy/qcom,qmp-pcie-phy.yaml
@@ -77,6 +77,7 @@ patternProperties:
- description: PIPE clock
clock-names:
+ deprecated: true
items:
- const: pipe0
@@ -92,7 +93,6 @@ patternProperties:
required:
- reg
- clocks
- - clock-names
- "#clock-cells"
- clock-output-names
- "#phy-cells"
@@ -285,7 +285,6 @@ examples:
<0xe00 0xf4>;
clocks = <&gcc GCC_PCIE_1_PIPE_CLK>;
- clock-names = "pipe0";
#clock-cells = <0>;
clock-output-names = "pcie_1_pipe_clk";
--
2.35.1
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [PATCH v2 15/30] dt-bindings: phy: add QMP UFS PHY schema
2022-07-07 13:46 [PATCH v2 00/30] phy: qcom,qmp: fix dt-bindings and deprecate lane suffix Johan Hovold
` (13 preceding siblings ...)
2022-07-07 13:47 ` [PATCH v2 14/30] dt-bindings: phy: qcom,qmp-pcie: deprecate PIPE clock name Johan Hovold
@ 2022-07-07 13:47 ` Johan Hovold
2022-07-14 9:19 ` Krzysztof Kozlowski
2022-07-07 13:47 ` [PATCH v2 16/30] dt-bindings: phy: qcom,qmp-ufs: add missing SM8450 clock Johan Hovold
` (15 subsequent siblings)
30 siblings, 1 reply; 67+ messages in thread
From: Johan Hovold @ 2022-07-07 13:47 UTC (permalink / raw)
To: Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel, Johan Hovold
The QMP PHY DT schema is getting unwieldy. Break out the UFS PHY
binding in a separate file.
Add an example node based on a cleaned up version of sc8280xp.dtsi.
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
---
.../devicetree/bindings/phy/qcom,qmp-phy.yaml | 60 -------
.../bindings/phy/qcom,qmp-ufs-phy.yaml | 148 ++++++++++++++++++
2 files changed, 148 insertions(+), 60 deletions(-)
create mode 100644 Documentation/devicetree/bindings/phy/qcom,qmp-ufs-phy.yaml
diff --git a/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml
index 897dcd4f7dc9..21d6ec875529 100644
--- a/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml
+++ b/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml
@@ -19,32 +19,21 @@ properties:
enum:
- qcom,ipq6018-qmp-usb3-phy
- qcom,ipq8074-qmp-usb3-phy
- - qcom,msm8996-qmp-ufs-phy
- qcom,msm8996-qmp-usb3-phy
- - qcom,msm8998-qmp-ufs-phy
- qcom,msm8998-qmp-usb3-phy
- qcom,qcm2290-qmp-usb3-phy
- qcom,sc7180-qmp-usb3-phy
- - qcom,sc8180x-qmp-ufs-phy
- qcom,sc8180x-qmp-usb3-phy
- - qcom,sc8280xp-qmp-ufs-phy
- - qcom,sdm845-qmp-ufs-phy
- qcom,sdm845-qmp-usb3-phy
- qcom,sdm845-qmp-usb3-uni-phy
- qcom,sdx55-qmp-usb3-uni-phy
- qcom,sdx65-qmp-usb3-uni-phy
- - qcom,sm6115-qmp-ufs-phy
- - qcom,sm6350-qmp-ufs-phy
- - qcom,sm8150-qmp-ufs-phy
- qcom,sm8150-qmp-usb3-phy
- qcom,sm8150-qmp-usb3-uni-phy
- - qcom,sm8250-qmp-ufs-phy
- qcom,sm8250-qmp-usb3-phy
- qcom,sm8250-qmp-usb3-uni-phy
- - qcom,sm8350-qmp-ufs-phy
- qcom,sm8350-qmp-usb3-phy
- qcom,sm8350-qmp-usb3-uni-phy
- - qcom,sm8450-qmp-ufs-phy
- qcom,sm8450-qmp-usb3-phy
reg:
@@ -178,55 +167,6 @@ allOf:
required:
- vdda-phy-supply
- vdda-pll-supply
- - if:
- properties:
- compatible:
- contains:
- enum:
- - qcom,msm8996-qmp-ufs-phy
- then:
- properties:
- clocks:
- maxItems: 1
- clock-names:
- items:
- - const: ref
- resets:
- maxItems: 1
- reset-names:
- items:
- - const: ufsphy
- required:
- - vdda-phy-supply
- - vdda-pll-supply
- - if:
- properties:
- compatible:
- contains:
- enum:
- - qcom,msm8998-qmp-ufs-phy
- - qcom,sc8180x-qmp-ufs-phy
- - qcom,sc8280xp-qmp-ufs-phy
- - qcom,sdm845-qmp-ufs-phy
- - qcom,sm6350-qmp-ufs-phy
- - qcom,sm8150-qmp-ufs-phy
- - qcom,sm8250-qmp-ufs-phy
- then:
- properties:
- clocks:
- maxItems: 2
- clock-names:
- items:
- - const: ref
- - const: ref_aux
- resets:
- maxItems: 1
- reset-names:
- items:
- - const: ufsphy
- required:
- - vdda-phy-supply
- - vdda-pll-supply
- if:
properties:
compatible:
diff --git a/Documentation/devicetree/bindings/phy/qcom,qmp-ufs-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,qmp-ufs-phy.yaml
new file mode 100644
index 000000000000..e9dfed29e996
--- /dev/null
+++ b/Documentation/devicetree/bindings/phy/qcom,qmp-ufs-phy.yaml
@@ -0,0 +1,148 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/phy/qcom,qmp-ufs-phy.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Qualcomm QMP PHY controller (UFS)
+
+maintainers:
+ - Vinod Koul <vkoul@kernel.org>
+
+description:
+ QMP PHY controller supports physical layer functionality for a number of
+ controllers on Qualcomm chipsets, such as, PCIe, UFS, and USB.
+
+properties:
+ compatible:
+ enum:
+ - qcom,msm8996-qmp-ufs-phy
+ - qcom,msm8998-qmp-ufs-phy
+ - qcom,sc8180x-qmp-ufs-phy
+ - qcom,sc8280xp-qmp-ufs-phy
+ - qcom,sdm845-qmp-ufs-phy
+ - qcom,sm6115-qmp-ufs-phy
+ - qcom,sm6350-qmp-ufs-phy
+ - qcom,sm8150-qmp-ufs-phy
+ - qcom,sm8250-qmp-ufs-phy
+ - qcom,sm8350-qmp-ufs-phy
+ - qcom,sm8450-qmp-ufs-phy
+
+ reg:
+ items:
+ - description: serdes
+
+ "#address-cells":
+ enum: [ 1, 2 ]
+
+ "#size-cells":
+ enum: [ 1, 2 ]
+
+ ranges: true
+
+ clocks:
+ minItems: 1
+ maxItems: 2
+
+ clock-names:
+ minItems: 1
+ maxItems: 2
+
+ resets:
+ maxItems: 1
+
+ reset-names:
+ items:
+ - const: ufsphy
+
+ vdda-phy-supply: true
+
+ vdda-pll-supply: true
+
+ vddp-ref-clk-supply: true
+
+patternProperties:
+ "^phy@[0-9a-f]+$":
+ type: object
+ description: single PHY-provider child node
+
+required:
+ - compatible
+ - reg
+ - "#address-cells"
+ - "#size-cells"
+ - ranges
+ - clocks
+ - clock-names
+ - resets
+ - reset-names
+ - vdda-phy-supply
+ - vdda-pll-supply
+
+additionalProperties: false
+
+allOf:
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - qcom,msm8996-qmp-ufs-phy
+ then:
+ properties:
+ clocks:
+ maxItems: 1
+ clock-names:
+ items:
+ - const: ref
+
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - qcom,msm8998-qmp-ufs-phy
+ - qcom,sc8180x-qmp-ufs-phy
+ - qcom,sc8280xp-qmp-ufs-phy
+ - qcom,sdm845-qmp-ufs-phy
+ - qcom,sm6350-qmp-ufs-phy
+ - qcom,sm8150-qmp-ufs-phy
+ - qcom,sm8250-qmp-ufs-phy
+ then:
+ properties:
+ clocks:
+ maxItems: 2
+ clock-names:
+ items:
+ - const: ref
+ - const: ref_aux
+
+examples:
+ - |
+ #include <dt-bindings/clock/qcom,gcc-sc8280xp.h>
+ #include <dt-bindings/clock/qcom,rpmh.h>
+ phy-wrapper@1d87000 {
+ compatible = "qcom,sc8280xp-qmp-ufs-phy";
+ reg = <0x01d87000 0xe10>;
+ #address-cells = <1>;
+ #size-cells = <1>;
+ ranges = <0x0 0x01d87000 0x1000>;
+
+ clocks = <&rpmhcc RPMH_CXO_CLK>, <&gcc GCC_UFS_PHY_PHY_AUX_CLK>;
+ clock-names = "ref", "ref_aux";
+
+ resets = <&ufs_mem_hc 0>;
+ reset-names = "ufsphy";
+
+ vdda-phy-supply = <&vreg_l6b>;
+ vdda-pll-supply = <&vreg_l3b>;
+
+ phy@400 {
+ reg = <0x400 0x108>,
+ <0x600 0x1e0>,
+ <0xc00 0x1dc>,
+ <0x800 0x108>,
+ <0xa00 0x1e0>;
+ #phy-cells = <0>;
+ };
+ };
--
2.35.1
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [PATCH v2 16/30] dt-bindings: phy: qcom,qmp-ufs: add missing SM8450 clock
2022-07-07 13:46 [PATCH v2 00/30] phy: qcom,qmp: fix dt-bindings and deprecate lane suffix Johan Hovold
` (14 preceding siblings ...)
2022-07-07 13:47 ` [PATCH v2 15/30] dt-bindings: phy: add QMP UFS PHY schema Johan Hovold
@ 2022-07-07 13:47 ` Johan Hovold
2022-07-14 9:21 ` Krzysztof Kozlowski
2022-07-07 13:47 ` [PATCH v2 17/30] dt-bindings: phy: qcom,qmp-ufs: add missing SM8150 power domain Johan Hovold
` (14 subsequent siblings)
30 siblings, 1 reply; 67+ messages in thread
From: Johan Hovold @ 2022-07-07 13:47 UTC (permalink / raw)
To: Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel, Johan Hovold
Add the missing "qref" clock used by the SM8450 UFS QMP PHY to the
binding.
Fixes: e04121ba1b08 ("dt-bindings: phy: qcom,qmp: Add SM8450 UFS phy compatible")
Fixes: 07fa917a335e ("arm64: dts: qcom: sm8450: add ufs nodes")
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
---
.../bindings/phy/qcom,qmp-ufs-phy.yaml | 20 +++++++++++++++++--
1 file changed, 18 insertions(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/phy/qcom,qmp-ufs-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,qmp-ufs-phy.yaml
index e9dfed29e996..7a1f80e2cf23 100644
--- a/Documentation/devicetree/bindings/phy/qcom,qmp-ufs-phy.yaml
+++ b/Documentation/devicetree/bindings/phy/qcom,qmp-ufs-phy.yaml
@@ -42,11 +42,11 @@ properties:
clocks:
minItems: 1
- maxItems: 2
+ maxItems: 3
clock-names:
minItems: 1
- maxItems: 2
+ maxItems: 3
resets:
maxItems: 1
@@ -117,6 +117,22 @@ allOf:
- const: ref
- const: ref_aux
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - qcom,sm8450-qmp-ufs-phy
+ then:
+ properties:
+ clocks:
+ maxItems: 3
+ clock-names:
+ items:
+ - const: ref
+ - const: ref_aux
+ - const: qref
+
examples:
- |
#include <dt-bindings/clock/qcom,gcc-sc8280xp.h>
--
2.35.1
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [PATCH v2 17/30] dt-bindings: phy: qcom,qmp-ufs: add missing SM8150 power domain
2022-07-07 13:46 [PATCH v2 00/30] phy: qcom,qmp: fix dt-bindings and deprecate lane suffix Johan Hovold
` (15 preceding siblings ...)
2022-07-07 13:47 ` [PATCH v2 16/30] dt-bindings: phy: qcom,qmp-ufs: add missing SM8450 clock Johan Hovold
@ 2022-07-07 13:47 ` Johan Hovold
2022-07-14 9:22 ` Krzysztof Kozlowski
2022-07-07 13:47 ` [PATCH v2 18/30] dt-bindings: phy: qcom,qmp-ufs: add missing child node schema Johan Hovold
` (13 subsequent siblings)
30 siblings, 1 reply; 67+ messages in thread
From: Johan Hovold @ 2022-07-07 13:47 UTC (permalink / raw)
To: Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel, Johan Hovold
Add the missing optional power-domains property used by the SM8150 UFS
QMP PHY to the binding.
Fixes: fe75b0c4a691 ("arm64: dts: qcom: sm8150: Add ufs power-domain entries")
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
---
Documentation/devicetree/bindings/phy/qcom,qmp-ufs-phy.yaml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/Documentation/devicetree/bindings/phy/qcom,qmp-ufs-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,qmp-ufs-phy.yaml
index 7a1f80e2cf23..0e76256e5636 100644
--- a/Documentation/devicetree/bindings/phy/qcom,qmp-ufs-phy.yaml
+++ b/Documentation/devicetree/bindings/phy/qcom,qmp-ufs-phy.yaml
@@ -48,6 +48,9 @@ properties:
minItems: 1
maxItems: 3
+ power-domains:
+ maxItems: 1
+
resets:
maxItems: 1
--
2.35.1
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [PATCH v2 18/30] dt-bindings: phy: qcom,qmp-ufs: add missing child node schema
2022-07-07 13:46 [PATCH v2 00/30] phy: qcom,qmp: fix dt-bindings and deprecate lane suffix Johan Hovold
` (16 preceding siblings ...)
2022-07-07 13:47 ` [PATCH v2 17/30] dt-bindings: phy: qcom,qmp-ufs: add missing SM8150 power domain Johan Hovold
@ 2022-07-07 13:47 ` Johan Hovold
2022-07-14 9:23 ` Krzysztof Kozlowski
2022-07-07 13:47 ` [PATCH v2 19/30] dt-bindings: phy: add QMP USB PHY schema Johan Hovold
` (12 subsequent siblings)
30 siblings, 1 reply; 67+ messages in thread
From: Johan Hovold @ 2022-07-07 13:47 UTC (permalink / raw)
To: Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel, Johan Hovold
Add the missing the description of the PHY-provider child node which was
ignored when converting to DT schema.
Fixes: ccf51c1cedfd ("dt-bindings: phy: qcom,qmp: Convert QMP PHY bindings to yaml")
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
---
.../bindings/phy/qcom,qmp-ufs-phy.yaml | 72 +++++++++++++++++++
1 file changed, 72 insertions(+)
diff --git a/Documentation/devicetree/bindings/phy/qcom,qmp-ufs-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,qmp-ufs-phy.yaml
index 0e76256e5636..6e3c186b9972 100644
--- a/Documentation/devicetree/bindings/phy/qcom,qmp-ufs-phy.yaml
+++ b/Documentation/devicetree/bindings/phy/qcom,qmp-ufs-phy.yaml
@@ -68,6 +68,19 @@ patternProperties:
"^phy@[0-9a-f]+$":
type: object
description: single PHY-provider child node
+ properties:
+ reg:
+ minItems: 3
+ maxItems: 6
+
+ "#phy-cells":
+ const: 0
+
+ required:
+ - reg
+ - "#phy-cells"
+
+ additionalProperties: false
required:
- compatible
@@ -136,6 +149,65 @@ allOf:
- const: ref_aux
- const: qref
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - qcom,msm8998-qmp-ufs-phy
+ - qcom,sc8280xp-qmp-ufs-phy
+ - qcom,sdm845-qmp-ufs-phy
+ - qcom,sm6350-qmp-ufs-phy
+ - qcom,sm8150-qmp-ufs-phy
+ - qcom,sm8250-qmp-ufs-phy
+ - qcom,sm8350-qmp-ufs-phy
+ - qcom,sm8450-qmp-ufs-phy
+ then:
+ patternProperties:
+ "^phy@[0-9a-f]+$":
+ properties:
+ reg:
+ items:
+ - description: TX lane 1
+ - description: RX lane 1
+ - description: PCS
+ - description: TX lane 2
+ - description: RX lane 2
+
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - qcom,sc8180x-qmp-ufs-phy
+ - qcom,sm6115-qmp-ufs-phy
+ then:
+ patternProperties:
+ "^phy@[0-9a-f]+$":
+ properties:
+ reg:
+ items:
+ - description: TX
+ - description: RX
+ - description: PCS
+ - description: PCS_MISC
+
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - qcom,msm8996-qmp-ufs-phy
+ then:
+ patternProperties:
+ "^phy@[0-9a-f]+$":
+ properties:
+ reg:
+ items:
+ - description: TX
+ - description: RX
+ - description: PCS
+
examples:
- |
#include <dt-bindings/clock/qcom,gcc-sc8280xp.h>
--
2.35.1
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [PATCH v2 19/30] dt-bindings: phy: add QMP USB PHY schema
2022-07-07 13:46 [PATCH v2 00/30] phy: qcom,qmp: fix dt-bindings and deprecate lane suffix Johan Hovold
` (17 preceding siblings ...)
2022-07-07 13:47 ` [PATCH v2 18/30] dt-bindings: phy: qcom,qmp-ufs: add missing child node schema Johan Hovold
@ 2022-07-07 13:47 ` Johan Hovold
2022-07-14 9:24 ` Krzysztof Kozlowski
2022-07-07 13:47 ` [PATCH v2 20/30] dt-bindings: phy: qcom,qmp-usb: add missing child node schema Johan Hovold
` (11 subsequent siblings)
30 siblings, 1 reply; 67+ messages in thread
From: Johan Hovold @ 2022-07-07 13:47 UTC (permalink / raw)
To: Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel, Johan Hovold
The QMP PHY DT schema is getting unwieldy. Break out the USB PHY
binding in a separate file.
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
---
...com,qmp-phy.yaml => qcom,qmp-usb-phy.yaml} | 69 +++++--------------
1 file changed, 18 insertions(+), 51 deletions(-)
rename Documentation/devicetree/bindings/phy/{qcom,qmp-phy.yaml => qcom,qmp-usb-phy.yaml} (82%)
diff --git a/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,qmp-usb-phy.yaml
similarity index 82%
rename from Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml
rename to Documentation/devicetree/bindings/phy/qcom,qmp-usb-phy.yaml
index 21d6ec875529..66cabf4d5722 100644
--- a/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml
+++ b/Documentation/devicetree/bindings/phy/qcom,qmp-usb-phy.yaml
@@ -1,11 +1,10 @@
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
-
%YAML 1.2
---
-$id: "http://devicetree.org/schemas/phy/qcom,qmp-phy.yaml#"
-$schema: "http://devicetree.org/meta-schemas/core.yaml#"
+$id: http://devicetree.org/schemas/phy/qcom,qmp-usb-phy.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
-title: Qualcomm QMP PHY controller
+title: Qualcomm QMP PHY controller (USB)
maintainers:
- Vinod Koul <vkoul@kernel.org>
@@ -51,20 +50,20 @@ properties:
ranges: true
clocks:
- minItems: 1
+ minItems: 3
maxItems: 4
clock-names:
- minItems: 1
+ minItems: 3
maxItems: 4
resets:
- minItems: 1
- maxItems: 3
+ minItems: 2
+ maxItems: 2
reset-names:
- minItems: 1
- maxItems: 3
+ minItems: 2
+ maxItems: 2
vdda-phy-supply: true
@@ -75,7 +74,7 @@ properties:
patternProperties:
"^phy@[0-9a-f]+$":
type: object
- description: one child node per PHY provided by this block
+ description: single PHY-provider child node
required:
- compatible
@@ -87,6 +86,8 @@ required:
- clock-names
- resets
- reset-names
+ - vdda-phy-supply
+ - vdda-pll-supply
additionalProperties: false
@@ -113,34 +114,7 @@ allOf:
items:
- const: phy
- const: common
- required:
- - vdda-phy-supply
- - vdda-pll-supply
- - if:
- properties:
- compatible:
- contains:
- enum:
- - qcom,sdx55-qmp-usb3-uni-phy
- - qcom,sdx65-qmp-usb3-uni-phy
- then:
- properties:
- clocks:
- maxItems: 3
- clock-names:
- items:
- - const: aux
- - const: cfg_ahb
- - const: ref
- resets:
- maxItems: 2
- reset-names:
- items:
- - const: phy
- - const: common
- required:
- - vdda-phy-supply
- - vdda-pll-supply
+
- if:
properties:
compatible:
@@ -149,6 +123,8 @@ allOf:
- qcom,ipq8074-qmp-usb3-phy
- qcom,msm8996-qmp-usb3-phy
- qcom,msm8998-qmp-usb3-phy
+ - qcom,sdx55-qmp-usb3-uni-phy
+ - qcom,sdx65-qmp-usb3-uni-phy
then:
properties:
clocks:
@@ -164,9 +140,7 @@ allOf:
items:
- const: phy
- const: common
- required:
- - vdda-phy-supply
- - vdda-pll-supply
+
- if:
properties:
compatible:
@@ -192,9 +166,7 @@ allOf:
items:
- const: phy
- const: common
- required:
- - vdda-phy-supply
- - vdda-pll-supply
+
- if:
properties:
compatible:
@@ -217,9 +189,7 @@ allOf:
items:
- const: phy
- const: common
- required:
- - vdda-phy-supply
- - vdda-pll-supply
+
- if:
properties:
compatible:
@@ -241,9 +211,6 @@ allOf:
items:
- const: phy_phy
- const: phy
- required:
- - vdda-phy-supply
- - vdda-pll-supply
examples:
- |
--
2.35.1
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [PATCH v2 20/30] dt-bindings: phy: qcom,qmp-usb: add missing child node schema
2022-07-07 13:46 [PATCH v2 00/30] phy: qcom,qmp: fix dt-bindings and deprecate lane suffix Johan Hovold
` (18 preceding siblings ...)
2022-07-07 13:47 ` [PATCH v2 19/30] dt-bindings: phy: add QMP USB PHY schema Johan Hovold
@ 2022-07-07 13:47 ` Johan Hovold
2022-07-14 9:24 ` Krzysztof Kozlowski
2022-07-07 13:47 ` [PATCH v2 21/30] dt-bindings: phy: qcom,qmp-usb: deprecate PIPE clock name Johan Hovold
` (10 subsequent siblings)
30 siblings, 1 reply; 67+ messages in thread
From: Johan Hovold @ 2022-07-07 13:47 UTC (permalink / raw)
To: Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel, Johan Hovold
Add the missing the description of the PHY-provider child node which was
ignored when converting to DT schema.
Fixes: ccf51c1cedfd ("dt-bindings: phy: qcom,qmp: Convert QMP PHY bindings to yaml")
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
---
.../bindings/phy/qcom,qmp-usb-phy.yaml | 114 ++++++++++++++++++
1 file changed, 114 insertions(+)
diff --git a/Documentation/devicetree/bindings/phy/qcom,qmp-usb-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,qmp-usb-phy.yaml
index 66cabf4d5722..0e9f909ccb82 100644
--- a/Documentation/devicetree/bindings/phy/qcom,qmp-usb-phy.yaml
+++ b/Documentation/devicetree/bindings/phy/qcom,qmp-usb-phy.yaml
@@ -75,6 +75,37 @@ patternProperties:
"^phy@[0-9a-f]+$":
type: object
description: single PHY-provider child node
+ properties:
+ reg:
+ minItems: 3
+ maxItems: 6
+
+ clocks:
+ items:
+ - description: PIPE clock
+
+ clock-names:
+ items:
+ - const: pipe0
+
+ "#clock-cells":
+ const: 0
+
+ clock-output-names:
+ maxItems: 1
+
+ "#phy-cells":
+ const: 0
+
+ required:
+ - reg
+ - clocks
+ - clock-names
+ - "#clock-cells"
+ - clock-output-names
+ - "#phy-cells"
+
+ additionalProperties: false
required:
- compatible
@@ -212,6 +243,89 @@ allOf:
- const: phy_phy
- const: phy
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - qcom,sdm845-qmp-usb3-phy
+ - qcom,sm8150-qmp-usb3-phy
+ - qcom,sm8350-qmp-usb3-phy
+ - qcom,sm8450-qmp-usb3-phy
+ then:
+ patternProperties:
+ "^phy@[0-9a-f]+$":
+ properties:
+ reg:
+ items:
+ - description: TX lane 1
+ - description: RX lane 1
+ - description: PCS
+ - description: TX lane 2
+ - description: RX lane 2
+ - description: PCS_MISC
+
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - qcom,msm8998-qmp-usb3-phy
+ then:
+ patternProperties:
+ "^phy@[0-9a-f]+$":
+ properties:
+ reg:
+ items:
+ - description: TX lane 1
+ - description: RX lane 1
+ - description: PCS
+ - description: TX lane 2
+ - description: RX lane 2
+
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - qcom,ipq6018-qmp-usb3-phy
+ - qcom,ipq8074-qmp-usb3-phy
+ - qcom,qcm2290-qmp-usb3-phy
+ - qcom,sc7180-qmp-usb3-phy
+ - qcom,sc8180x-qmp-usb3-phy
+ - qcom,sdx55-qmp-usb3-uni-phy
+ - qcom,sdx65-qmp-usb3-uni-phy
+ - qcom,sm8150-qmp-usb3-uni-phy
+ - qcom,sm8250-qmp-usb3-phy
+ then:
+ patternProperties:
+ "^phy@[0-9a-f]+$":
+ properties:
+ reg:
+ items:
+ - description: TX
+ - description: RX
+ - description: PCS
+ - description: PCS_MISC
+
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - qcom,msm8996-qmp-usb3-phy
+ - qcom,sm8250-qmp-usb3-uni-phy
+ - qcom,sm8350-qmp-usb3-uni-phy
+ then:
+ patternProperties:
+ "^phy@[0-9a-f]+$":
+ properties:
+ reg:
+ items:
+ - description: TX
+ - description: RX
+ - description: PCS
+
examples:
- |
#include <dt-bindings/clock/qcom,gcc-sdm845.h>
--
2.35.1
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [PATCH v2 21/30] dt-bindings: phy: qcom,qmp-usb: deprecate PIPE clock name
2022-07-07 13:46 [PATCH v2 00/30] phy: qcom,qmp: fix dt-bindings and deprecate lane suffix Johan Hovold
` (19 preceding siblings ...)
2022-07-07 13:47 ` [PATCH v2 20/30] dt-bindings: phy: qcom,qmp-usb: add missing child node schema Johan Hovold
@ 2022-07-07 13:47 ` Johan Hovold
2022-07-14 9:24 ` Krzysztof Kozlowski
2022-07-07 13:47 ` [PATCH v2 22/30] dt-bindings: phy: qcom,qmp-usb: add missing qcom,sc7180-qmp-usb3-phy schema Johan Hovold
` (9 subsequent siblings)
30 siblings, 1 reply; 67+ messages in thread
From: Johan Hovold @ 2022-07-07 13:47 UTC (permalink / raw)
To: Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel, Johan Hovold
Deprecate the PHY node 'clock-names' property which specified that the
PIPE clock name should have a bogus "lane" suffix.
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
---
Documentation/devicetree/bindings/phy/qcom,qmp-usb-phy.yaml | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/phy/qcom,qmp-usb-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,qmp-usb-phy.yaml
index 0e9f909ccb82..174f96d53d6b 100644
--- a/Documentation/devicetree/bindings/phy/qcom,qmp-usb-phy.yaml
+++ b/Documentation/devicetree/bindings/phy/qcom,qmp-usb-phy.yaml
@@ -85,6 +85,7 @@ patternProperties:
- description: PIPE clock
clock-names:
+ deprecated: true
items:
- const: pipe0
@@ -100,7 +101,6 @@ patternProperties:
required:
- reg
- clocks
- - clock-names
- "#clock-cells"
- clock-output-names
- "#phy-cells"
@@ -356,7 +356,6 @@ examples:
<0x600 0x70>;
clocks = <&gcc GCC_USB3_SEC_PHY_PIPE_CLK>;
- clock-names = "pipe0";
#clock-cells = <0>;
clock-output-names = "usb3_uni_phy_pipe_clk_src";
--
2.35.1
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [PATCH v2 22/30] dt-bindings: phy: qcom,qmp-usb: add missing qcom,sc7180-qmp-usb3-phy schema
2022-07-07 13:46 [PATCH v2 00/30] phy: qcom,qmp: fix dt-bindings and deprecate lane suffix Johan Hovold
` (20 preceding siblings ...)
2022-07-07 13:47 ` [PATCH v2 21/30] dt-bindings: phy: qcom,qmp-usb: deprecate PIPE clock name Johan Hovold
@ 2022-07-07 13:47 ` Johan Hovold
2022-07-14 9:25 ` Krzysztof Kozlowski
2022-07-07 13:47 ` [PATCH v2 23/30] dt-bindings: phy: qcom,qmp-usb3-dp: fix bogus clock-cells property Johan Hovold
` (8 subsequent siblings)
30 siblings, 1 reply; 67+ messages in thread
From: Johan Hovold @ 2022-07-07 13:47 UTC (permalink / raw)
To: Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel, Johan Hovold
The "qcom,sc7180-qmp-usb3-phy" compatible is apparently used to describe
a combo PHY where only the USB part is used. Specifically, only a single
reset is used.
4ad7d7eeed3a ("dt-bindings: phy: qcom,qmp-usb3-dp: Add support for SC7180")
94c34600b617 ("dt-bindings: phy: qcom,qmp-usb3-dp-phy: move usb3 compatibles back to qcom,qmp-phy.yaml")
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
---
.../bindings/phy/qcom,qmp-usb-phy.yaml | 22 +++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/Documentation/devicetree/bindings/phy/qcom,qmp-usb-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,qmp-usb-phy.yaml
index 174f96d53d6b..65e8e4ec656b 100644
--- a/Documentation/devicetree/bindings/phy/qcom,qmp-usb-phy.yaml
+++ b/Documentation/devicetree/bindings/phy/qcom,qmp-usb-phy.yaml
@@ -123,6 +123,28 @@ required:
additionalProperties: false
allOf:
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - qcom,sc7180-qmp-usb3-phy
+ then:
+ properties:
+ clocks:
+ maxItems: 4
+ clock-names:
+ items:
+ - const: aux
+ - const: cfg_ahb
+ - const: ref
+ - const: com_aux
+ resets:
+ maxItems: 1
+ reset-names:
+ items:
+ - const: phy
+
- if:
properties:
compatible:
--
2.35.1
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [PATCH v2 23/30] dt-bindings: phy: qcom,qmp-usb3-dp: fix bogus clock-cells property
2022-07-07 13:46 [PATCH v2 00/30] phy: qcom,qmp: fix dt-bindings and deprecate lane suffix Johan Hovold
` (21 preceding siblings ...)
2022-07-07 13:47 ` [PATCH v2 22/30] dt-bindings: phy: qcom,qmp-usb: add missing qcom,sc7180-qmp-usb3-phy schema Johan Hovold
@ 2022-07-07 13:47 ` Johan Hovold
2022-07-14 9:27 ` Krzysztof Kozlowski
2022-07-07 13:47 ` [PATCH v2 24/30] dt-bindings: phy: qcom,qmp-usb3-dp: deprecate USB PIPE clock name Johan Hovold
` (7 subsequent siblings)
30 siblings, 1 reply; 67+ messages in thread
From: Johan Hovold @ 2022-07-07 13:47 UTC (permalink / raw)
To: Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel, Johan Hovold
The QMP PHY wrapper node is not a clock provider so drop the bogus
'#clock-cells' property that was added when converting to DT schema.
Fixes: 59351049ad15 ("dt-bindings: phy: qcom,qmp-usb3-dp: Add dt bindings for USB3 DP PHY")
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
---
.../devicetree/bindings/phy/qcom,qmp-usb3-dp-phy.yaml | 5 -----
1 file changed, 5 deletions(-)
diff --git a/Documentation/devicetree/bindings/phy/qcom,qmp-usb3-dp-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,qmp-usb3-dp-phy.yaml
index 60dc27834e1d..86d64c61bca3 100644
--- a/Documentation/devicetree/bindings/phy/qcom,qmp-usb3-dp-phy.yaml
+++ b/Documentation/devicetree/bindings/phy/qcom,qmp-usb3-dp-phy.yaml
@@ -30,9 +30,6 @@ properties:
- const: dp_com
- const: dp
- "#clock-cells":
- enum: [ 1, 2 ]
-
"#address-cells":
enum: [ 1, 2 ]
@@ -147,7 +144,6 @@ patternProperties:
required:
- compatible
- reg
- - "#clock-cells"
- "#address-cells"
- "#size-cells"
- ranges
@@ -169,7 +165,6 @@ examples:
<0x088e8000 0x10>,
<0x088ea000 0x40>;
reg-names = "usb", "dp_com", "dp";
- #clock-cells = <1>;
#address-cells = <1>;
#size-cells = <1>;
ranges = <0x0 0x088e9000 0x2000>;
--
2.35.1
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [PATCH v2 24/30] dt-bindings: phy: qcom,qmp-usb3-dp: deprecate USB PIPE clock name
2022-07-07 13:46 [PATCH v2 00/30] phy: qcom,qmp: fix dt-bindings and deprecate lane suffix Johan Hovold
` (22 preceding siblings ...)
2022-07-07 13:47 ` [PATCH v2 23/30] dt-bindings: phy: qcom,qmp-usb3-dp: fix bogus clock-cells property Johan Hovold
@ 2022-07-07 13:47 ` Johan Hovold
2022-07-14 9:27 ` Krzysztof Kozlowski
2022-07-07 13:47 ` [PATCH v2 25/30] phy: qcom-qmp-pcie: drop pipe clock lane suffix Johan Hovold
` (6 subsequent siblings)
30 siblings, 1 reply; 67+ messages in thread
From: Johan Hovold @ 2022-07-07 13:47 UTC (permalink / raw)
To: Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel, Johan Hovold
Deprecate the USB PHY node 'clock-names' property which specified that
the PIPE clock name should have a bogus "lane" suffix.
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
---
.../devicetree/bindings/phy/qcom,qmp-usb3-dp-phy.yaml | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/phy/qcom,qmp-usb3-dp-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,qmp-usb3-dp-phy.yaml
index 86d64c61bca3..5f0ff078e831 100644
--- a/Documentation/devicetree/bindings/phy/qcom,qmp-usb3-dp-phy.yaml
+++ b/Documentation/devicetree/bindings/phy/qcom,qmp-usb3-dp-phy.yaml
@@ -96,6 +96,7 @@ patternProperties:
- description: pipe clock
clock-names:
+ deprecated: true
items:
- const: pipe0
@@ -112,7 +113,6 @@ patternProperties:
required:
- reg
- clocks
- - clock-names
- '#clock-cells'
- '#phy-cells'
@@ -192,7 +192,6 @@ examples:
#clock-cells = <0>;
#phy-cells = <0>;
clocks = <&gcc GCC_USB3_PRIM_PHY_PIPE_CLK>;
- clock-names = "pipe0";
clock-output-names = "usb3_phy_pipe_clk_src";
};
--
2.35.1
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [PATCH v2 25/30] phy: qcom-qmp-pcie: drop pipe clock lane suffix
2022-07-07 13:46 [PATCH v2 00/30] phy: qcom,qmp: fix dt-bindings and deprecate lane suffix Johan Hovold
` (23 preceding siblings ...)
2022-07-07 13:47 ` [PATCH v2 24/30] dt-bindings: phy: qcom,qmp-usb3-dp: deprecate USB PIPE clock name Johan Hovold
@ 2022-07-07 13:47 ` Johan Hovold
2022-07-14 9:28 ` Krzysztof Kozlowski
2022-07-07 13:47 ` [PATCH v2 26/30] phy: qcom-qmp-combo: drop unused lane reset Johan Hovold
` (5 subsequent siblings)
30 siblings, 1 reply; 67+ messages in thread
From: Johan Hovold @ 2022-07-07 13:47 UTC (permalink / raw)
To: Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel, Johan Hovold
The pipe clock is defined in the "lane" node so there's no need to keep
adding a redundant lane-number suffix to the clock name.
Update driver to support the new binding where the pipe clock name has
been deprecated by instead requesting the clock by index.
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
---
drivers/phy/qualcomm/phy-qcom-qmp-pcie.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c b/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c
index 385ea3d8de08..67476d48e71b 100644
--- a/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c
+++ b/drivers/phy/qualcomm/phy-qcom-qmp-pcie.c
@@ -2154,7 +2154,6 @@ int qcom_qmp_phy_pcie_create(struct device *dev, struct device_node *np, int id,
struct qcom_qmp *qmp = dev_get_drvdata(dev);
struct phy *generic_phy;
struct qmp_phy *qphy;
- char prop_name[MAX_PROP_NAME];
int ret;
qphy = devm_kzalloc(dev, sizeof(*qphy), GFP_KERNEL);
@@ -2210,8 +2209,7 @@ int qcom_qmp_phy_pcie_create(struct device *dev, struct device_node *np, int id,
if (!qphy->pcs_misc)
dev_vdbg(dev, "PHY pcs_misc-reg not used\n");
- snprintf(prop_name, sizeof(prop_name), "pipe%d", id);
- qphy->pipe_clk = devm_get_clk_from_child(dev, np, prop_name);
+ qphy->pipe_clk = devm_get_clk_from_child(dev, np, NULL);
if (IS_ERR(qphy->pipe_clk)) {
return dev_err_probe(dev, PTR_ERR(qphy->pipe_clk),
"failed to get lane%d pipe clock\n", id);
--
2.35.1
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [PATCH v2 26/30] phy: qcom-qmp-combo: drop unused lane reset
2022-07-07 13:46 [PATCH v2 00/30] phy: qcom,qmp: fix dt-bindings and deprecate lane suffix Johan Hovold
` (24 preceding siblings ...)
2022-07-07 13:47 ` [PATCH v2 25/30] phy: qcom-qmp-pcie: drop pipe clock lane suffix Johan Hovold
@ 2022-07-07 13:47 ` Johan Hovold
2022-07-14 9:29 ` Krzysztof Kozlowski
2022-07-07 13:47 ` [PATCH v2 27/30] phy: qcom-qmp-combo: drop pipe clock lane suffix Johan Hovold
` (4 subsequent siblings)
30 siblings, 1 reply; 67+ messages in thread
From: Johan Hovold @ 2022-07-07 13:47 UTC (permalink / raw)
To: Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel, Johan Hovold
Drop the unused lane reset pointer which isn't used by any combo PHY.
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
---
drivers/phy/qualcomm/phy-qcom-qmp-combo.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-combo.c b/drivers/phy/qualcomm/phy-qcom-qmp-combo.c
index c18cd3b93c30..b266514ae9ee 100644
--- a/drivers/phy/qualcomm/phy-qcom-qmp-combo.c
+++ b/drivers/phy/qualcomm/phy-qcom-qmp-combo.c
@@ -818,7 +818,6 @@ struct qmp_phy_combo_cfg {
* @pipe_clk: pipe clock
* @index: lane index
* @qmp: QMP phy to which this lane belongs
- * @lane_rst: lane's reset controller
* @mode: current PHY mode
* @dp_aux_cfg: Display port aux config
* @dp_opts: Display port optional config
@@ -837,7 +836,6 @@ struct qmp_phy {
struct clk *pipe_clk;
unsigned int index;
struct qcom_qmp *qmp;
- struct reset_control *lane_rst;
enum phy_mode mode;
unsigned int dp_aux_cfg;
struct phy_configure_opts_dp dp_opts;
--
2.35.1
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [PATCH v2 27/30] phy: qcom-qmp-combo: drop pipe clock lane suffix
2022-07-07 13:46 [PATCH v2 00/30] phy: qcom,qmp: fix dt-bindings and deprecate lane suffix Johan Hovold
` (25 preceding siblings ...)
2022-07-07 13:47 ` [PATCH v2 26/30] phy: qcom-qmp-combo: drop unused lane reset Johan Hovold
@ 2022-07-07 13:47 ` Johan Hovold
2022-07-14 9:29 ` Krzysztof Kozlowski
2022-07-07 13:47 ` [PATCH v2 28/30] phy: qcom-qmp-pcie-msm8996: " Johan Hovold
` (3 subsequent siblings)
30 siblings, 1 reply; 67+ messages in thread
From: Johan Hovold @ 2022-07-07 13:47 UTC (permalink / raw)
To: Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel, Johan Hovold
The pipe clock is defined in the "lane" node so there's no need to keep
adding a redundant lane-number suffix to the clock name.
Update driver to support the new binding where the pipe clock name has
been deprecated by instead requesting the clock by index.
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
---
drivers/phy/qualcomm/phy-qcom-qmp-combo.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-combo.c b/drivers/phy/qualcomm/phy-qcom-qmp-combo.c
index b266514ae9ee..b90a28cad4ce 100644
--- a/drivers/phy/qualcomm/phy-qcom-qmp-combo.c
+++ b/drivers/phy/qualcomm/phy-qcom-qmp-combo.c
@@ -2495,7 +2495,6 @@ int qcom_qmp_phy_combo_create(struct device *dev, struct device_node *np, int id
struct phy *generic_phy;
struct qmp_phy *qphy;
const struct phy_ops *ops;
- char prop_name[MAX_PROP_NAME];
int ret;
qphy = devm_kzalloc(dev, sizeof(*qphy), GFP_KERNEL);
@@ -2558,8 +2557,7 @@ int qcom_qmp_phy_combo_create(struct device *dev, struct device_node *np, int id
* Otherwise, we initialize pipe clock to NULL for
* all phys that don't need this.
*/
- snprintf(prop_name, sizeof(prop_name), "pipe%d", id);
- qphy->pipe_clk = devm_get_clk_from_child(dev, np, prop_name);
+ qphy->pipe_clk = devm_get_clk_from_child(dev, np, NULL);
if (IS_ERR(qphy->pipe_clk)) {
if (cfg->type == PHY_TYPE_USB3) {
ret = PTR_ERR(qphy->pipe_clk);
--
2.35.1
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [PATCH v2 28/30] phy: qcom-qmp-pcie-msm8996: drop pipe clock lane suffix
2022-07-07 13:46 [PATCH v2 00/30] phy: qcom,qmp: fix dt-bindings and deprecate lane suffix Johan Hovold
` (26 preceding siblings ...)
2022-07-07 13:47 ` [PATCH v2 27/30] phy: qcom-qmp-combo: drop pipe clock lane suffix Johan Hovold
@ 2022-07-07 13:47 ` Johan Hovold
2022-07-14 9:29 ` Krzysztof Kozlowski
2022-07-14 9:30 ` Krzysztof Kozlowski
2022-07-07 13:47 ` [PATCH v2 29/30] phy: qcom-qmp-pcie-msm8996: drop reset " Johan Hovold
` (2 subsequent siblings)
30 siblings, 2 replies; 67+ messages in thread
From: Johan Hovold @ 2022-07-07 13:47 UTC (permalink / raw)
To: Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel, Johan Hovold
The pipe clock is defined in the "lane" node so there's no need to keep
adding a redundant lane-number suffix to the clock name.
Update driver to support the new binding where the pipe clock name has
been deprecated by instead requesting the clock by index.
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
---
drivers/phy/qualcomm/phy-qcom-qmp-pcie-msm8996.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-pcie-msm8996.c b/drivers/phy/qualcomm/phy-qcom-qmp-pcie-msm8996.c
index 812d14afb5ec..af2f14a53b38 100644
--- a/drivers/phy/qualcomm/phy-qcom-qmp-pcie-msm8996.c
+++ b/drivers/phy/qualcomm/phy-qcom-qmp-pcie-msm8996.c
@@ -872,7 +872,6 @@ int qcom_qmp_phy_pcie_msm8996_create(struct device *dev, struct device_node *np,
struct qcom_qmp *qmp = dev_get_drvdata(dev);
struct phy *generic_phy;
struct qmp_phy *qphy;
- char prop_name[MAX_PROP_NAME];
int ret;
qphy = devm_kzalloc(dev, sizeof(*qphy), GFP_KERNEL);
@@ -904,8 +903,7 @@ int qcom_qmp_phy_pcie_msm8996_create(struct device *dev, struct device_node *np,
if (!qphy->pcs_misc)
dev_vdbg(dev, "PHY pcs_misc-reg not used\n");
- snprintf(prop_name, sizeof(prop_name), "pipe%d", id);
- qphy->pipe_clk = devm_get_clk_from_child(dev, np, prop_name);
+ qphy->pipe_clk = devm_get_clk_from_child(dev, np, NULL);
if (IS_ERR(qphy->pipe_clk)) {
return dev_err_probe(dev, PTR_ERR(qphy->pipe_clk),
"failed to get lane%d pipe clock\n", id);
--
2.35.1
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [PATCH v2 29/30] phy: qcom-qmp-pcie-msm8996: drop reset lane suffix
2022-07-07 13:46 [PATCH v2 00/30] phy: qcom,qmp: fix dt-bindings and deprecate lane suffix Johan Hovold
` (27 preceding siblings ...)
2022-07-07 13:47 ` [PATCH v2 28/30] phy: qcom-qmp-pcie-msm8996: " Johan Hovold
@ 2022-07-07 13:47 ` Johan Hovold
2022-07-14 9:31 ` Krzysztof Kozlowski
2022-07-07 13:47 ` [PATCH v2 30/30] phy: qcom-qmp-usb: drop pipe clock " Johan Hovold
2022-07-14 8:12 ` [PATCH v2 00/30] phy: qcom,qmp: fix dt-bindings and deprecate " Johan Hovold
30 siblings, 1 reply; 67+ messages in thread
From: Johan Hovold @ 2022-07-07 13:47 UTC (permalink / raw)
To: Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel, Johan Hovold
The lane reset is defined in the "lane" node so there's no need to keep
adding a redundant lane-number suffix to the reset name.
Update driver to support the new binding where the "lane" reset name has
been deprecated by instead requesting the reset by index.
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
---
drivers/phy/qualcomm/phy-qcom-qmp-pcie-msm8996.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-pcie-msm8996.c b/drivers/phy/qualcomm/phy-qcom-qmp-pcie-msm8996.c
index af2f14a53b38..1734fb01955a 100644
--- a/drivers/phy/qualcomm/phy-qcom-qmp-pcie-msm8996.c
+++ b/drivers/phy/qualcomm/phy-qcom-qmp-pcie-msm8996.c
@@ -909,9 +909,7 @@ int qcom_qmp_phy_pcie_msm8996_create(struct device *dev, struct device_node *np,
"failed to get lane%d pipe clock\n", id);
}
- /* Get lane reset, if any */
- snprintf(prop_name, sizeof(prop_name), "lane%d", id);
- qphy->lane_rst = of_reset_control_get_exclusive(np, prop_name);
+ qphy->lane_rst = of_reset_control_get_exclusive_by_index(np, 0);
if (IS_ERR(qphy->lane_rst)) {
dev_err(dev, "failed to get lane%d reset\n", id);
return PTR_ERR(qphy->lane_rst);
--
2.35.1
^ permalink raw reply related [flat|nested] 67+ messages in thread
* [PATCH v2 30/30] phy: qcom-qmp-usb: drop pipe clock lane suffix
2022-07-07 13:46 [PATCH v2 00/30] phy: qcom,qmp: fix dt-bindings and deprecate lane suffix Johan Hovold
` (28 preceding siblings ...)
2022-07-07 13:47 ` [PATCH v2 29/30] phy: qcom-qmp-pcie-msm8996: drop reset " Johan Hovold
@ 2022-07-07 13:47 ` Johan Hovold
2022-07-14 9:31 ` Krzysztof Kozlowski
2022-07-14 8:12 ` [PATCH v2 00/30] phy: qcom,qmp: fix dt-bindings and deprecate " Johan Hovold
30 siblings, 1 reply; 67+ messages in thread
From: Johan Hovold @ 2022-07-07 13:47 UTC (permalink / raw)
To: Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel, Johan Hovold
The pipe clock is defined in the "lane" node so there's no need to keep
adding a redundant lane-number suffix to the clock name.
Update driver to support the new binding where the pipe clock name has
been deprecated by instead requesting the clock by index.
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
---
drivers/phy/qualcomm/phy-qcom-qmp-usb.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-usb.c b/drivers/phy/qualcomm/phy-qcom-qmp-usb.c
index 994a8232be7b..2ed9b031bde4 100644
--- a/drivers/phy/qualcomm/phy-qcom-qmp-usb.c
+++ b/drivers/phy/qualcomm/phy-qcom-qmp-usb.c
@@ -2609,7 +2609,6 @@ int qcom_qmp_phy_usb_create(struct device *dev, struct device_node *np, int id,
struct qcom_qmp *qmp = dev_get_drvdata(dev);
struct phy *generic_phy;
struct qmp_phy *qphy;
- char prop_name[MAX_PROP_NAME];
int ret;
qphy = devm_kzalloc(dev, sizeof(*qphy), GFP_KERNEL);
@@ -2665,8 +2664,7 @@ int qcom_qmp_phy_usb_create(struct device *dev, struct device_node *np, int id,
if (!qphy->pcs_misc)
dev_vdbg(dev, "PHY pcs_misc-reg not used\n");
- snprintf(prop_name, sizeof(prop_name), "pipe%d", id);
- qphy->pipe_clk = devm_get_clk_from_child(dev, np, prop_name);
+ qphy->pipe_clk = devm_get_clk_from_child(dev, np, NULL);
if (IS_ERR(qphy->pipe_clk)) {
return dev_err_probe(dev, PTR_ERR(qphy->pipe_clk),
"failed to get lane%d pipe clock\n", id);
--
2.35.1
^ permalink raw reply related [flat|nested] 67+ messages in thread
* Re: [PATCH v2 00/30] phy: qcom,qmp: fix dt-bindings and deprecate lane suffix
2022-07-07 13:46 [PATCH v2 00/30] phy: qcom,qmp: fix dt-bindings and deprecate lane suffix Johan Hovold
` (29 preceding siblings ...)
2022-07-07 13:47 ` [PATCH v2 30/30] phy: qcom-qmp-usb: drop pipe clock " Johan Hovold
@ 2022-07-14 8:12 ` Johan Hovold
2022-07-14 9:31 ` Krzysztof Kozlowski
30 siblings, 1 reply; 67+ messages in thread
From: Johan Hovold @ 2022-07-14 8:12 UTC (permalink / raw)
To: Vinod Koul
Cc: Rob Herring, Krzysztof Kozlowski, Dmitry Baryshkov, Andy Gross,
Bjorn Andersson, Kishon Vijay Abraham I, linux-arm-msm, linux-phy,
devicetree, linux-kernel
On Thu, Jul 07, 2022 at 03:46:55PM +0200, Johan Hovold wrote:
> 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 clean up and fixes some issue with the current schema before
> splitting it up in separate schemas for PCIe, UFS and USB and adding
> missing parts like the child PHY provider nodes.
>
> 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 add support for the updated binding to the (recently
> split up) PHY drivers. Included is also a related combo PHY cleanup.
>
> Johan
>
>
> Changes in v2
> - squash split + cleanup + example patches (Krzysztof)
> - deprecate clock-names instead of dropping suffix (Krzysztof)
> - deprecate reset-names instead of dropping suffix (Krzysztof)
> - flatten child reg if/then schemas (Krzysztof)
> - add back optional vddp-ref-clk to all bindings even though it likely
> only applies to MSM8996/98 UFS (Krzysztof)
> - add missing sc7180 schema to USB binding
> - misc clean ups
> - shorten or drop descriptions
> - drop quotes around $id and $schema (Krzysztof)
> - use maxItems with clock-output-names
> - combine two USB clock+reset schemas
> - add Reviewed-by/Acked-by tags
Any further comments to this series?
Vinod, I noticed there was a conflict when rebasing on linux-next due to
commit 85d43a69db2d ("dt-bindings: phy: qcom,qmp: add IPQ8074 PCIe Gen3
PHY binding").
I'll send a v3 so you don't have to do the resolution, but I figured I'd
wait a bit in case there are any other changes that need to be made.
Johan
^ permalink raw reply [flat|nested] 67+ messages in thread
* Re: [PATCH v2 03/30] dt-bindings: phy: qcom,qmp: drop redundant descriptions
2022-07-07 13:46 ` [PATCH v2 03/30] dt-bindings: phy: qcom,qmp: drop redundant descriptions Johan Hovold
@ 2022-07-14 9:07 ` Krzysztof Kozlowski
2022-07-14 10:00 ` Johan Hovold
0 siblings, 1 reply; 67+ messages in thread
From: Krzysztof Kozlowski @ 2022-07-14 9:07 UTC (permalink / raw)
To: Johan Hovold, Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel
On 07/07/2022 15:46, Johan Hovold wrote:
> Drop the redundant supply and clock descriptions which did not add much
> information beyond what can be inferred from the corresponding resource
> names.
>
> Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
(...)
> - const: ref
> - const: refgen
> resets:
> - items:
> - - description: reset of phy block.
> + maxItems: 1
> reset-names:
> items:
> - const: phy
> @@ -376,11 +334,7 @@ allOf:
> then:
> properties:
> clocks:
> - items:
> - - description: Phy aux clock.
> - - description: 19.2 MHz ref clk source.
> - - description: 19.2 MHz ref clk.
Here and in other places - I think you loose information, because the
frequency is not mentioned in clock name.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 67+ messages in thread
* Re: [PATCH v2 04/30] dt-bindings: phy: qcom,qmp: fix child node description
2022-07-07 13:46 ` [PATCH v2 04/30] dt-bindings: phy: qcom,qmp: fix child node description Johan Hovold
@ 2022-07-14 9:07 ` Krzysztof Kozlowski
0 siblings, 0 replies; 67+ messages in thread
From: Krzysztof Kozlowski @ 2022-07-14 9:07 UTC (permalink / raw)
To: Johan Hovold, Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel
On 07/07/2022 15:46, Johan Hovold wrote:
> Fix the incorrect description of the child nodes which claimed that one
> node is required per lane rather than per PHY.
>
> Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
> ---
> Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml | 4 +---
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 67+ messages in thread
* Re: [PATCH v2 05/30] dt-bindings: phy: qcom,qmp: clean up descriptions
2022-07-07 13:47 ` [PATCH v2 05/30] dt-bindings: phy: qcom,qmp: clean up descriptions Johan Hovold
@ 2022-07-14 9:07 ` Krzysztof Kozlowski
0 siblings, 0 replies; 67+ messages in thread
From: Krzysztof Kozlowski @ 2022-07-14 9:07 UTC (permalink / raw)
To: Johan Hovold, Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel
On 07/07/2022 15:47, Johan Hovold wrote:
> Clean up the remaining descriptions by using uppercase "PHY"
> consistently and dropping redundant information from the register
> descriptions.
>
> Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 67+ messages in thread
* Re: [PATCH v2 08/30] dt-bindings: phy: add qcom,msm8996-qmp-pcie-phy schema
2022-07-07 13:47 ` [PATCH v2 08/30] dt-bindings: phy: add qcom,msm8996-qmp-pcie-phy schema Johan Hovold
@ 2022-07-14 9:09 ` Krzysztof Kozlowski
0 siblings, 0 replies; 67+ messages in thread
From: Krzysztof Kozlowski @ 2022-07-14 9:09 UTC (permalink / raw)
To: Johan Hovold, Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel
On 07/07/2022 15:47, Johan Hovold wrote:
> The QMP PHY DT schema is getting unwieldy. Break out the odd-bird
> msm8996-qmp-pcie-phy which is the only QMP PHY that uses separate
> "per-lane" nodes.
>
> Add an example node based on a cleaned up version of msm8996.dtsi.
>
> Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
> ---
> .../phy/qcom,msm8996-qmp-pcie-phy.yaml | 146 ++++++++++++++++++
> .../devicetree/bindings/phy/qcom,qmp-phy.yaml | 26 ----
> 2 files changed, 146 insertions(+), 26 deletions(-)
> create mode 100644 Documentation/devicetree/bindings/phy/qcom,msm8996-qmp-pcie-phy.yaml
>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 67+ messages in thread
* Re: [PATCH v2 09/30] dt-bindings: phy: qcom,msm8996-qmp-pcie: add missing child node schema
2022-07-07 13:47 ` [PATCH v2 09/30] dt-bindings: phy: qcom,msm8996-qmp-pcie: add missing child node schema Johan Hovold
@ 2022-07-14 9:10 ` Krzysztof Kozlowski
2022-07-14 9:21 ` Krzysztof Kozlowski
0 siblings, 1 reply; 67+ messages in thread
From: Krzysztof Kozlowski @ 2022-07-14 9:10 UTC (permalink / raw)
To: Johan Hovold, Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel
On 07/07/2022 15:47, Johan Hovold wrote:
> Add the missing the description of the PHY-provider child nodes which
> were ignored when converting to DT schema.
>
> Fixes: ccf51c1cedfd ("dt-bindings: phy: qcom,qmp: Convert QMP PHY bindings to yaml")
To ease the backport all of fixes should either be independent
(preferred by some maintainers) or go to the beginning of the patchset.
I am fine with both.
> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
> Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
> ---
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 67+ messages in thread
* Re: [PATCH v2 10/30] dt-bindings: phy: qcom,msm8996-qmp-pcie: deprecate PIPE clock names
2022-07-07 13:47 ` [PATCH v2 10/30] dt-bindings: phy: qcom,msm8996-qmp-pcie: deprecate PIPE clock names Johan Hovold
@ 2022-07-14 9:13 ` Krzysztof Kozlowski
0 siblings, 0 replies; 67+ messages in thread
From: Krzysztof Kozlowski @ 2022-07-14 9:13 UTC (permalink / raw)
To: Johan Hovold, Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel
On 07/07/2022 15:47, Johan Hovold wrote:
> Deprecate the PHY node 'clock-names' property which specified that the
> PIPE clock name should have an unnecessary "lane" suffix.
>
> Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 67+ messages in thread
* Re: [PATCH v2 11/30] dt-bindings: phy: qcom,msm8996-qmp-pcie: deprecate reset names
2022-07-07 13:47 ` [PATCH v2 11/30] dt-bindings: phy: qcom,msm8996-qmp-pcie: deprecate reset names Johan Hovold
@ 2022-07-14 9:13 ` Krzysztof Kozlowski
0 siblings, 0 replies; 67+ messages in thread
From: Krzysztof Kozlowski @ 2022-07-14 9:13 UTC (permalink / raw)
To: Johan Hovold, Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel
On 07/07/2022 15:47, Johan Hovold wrote:
> Deprecate the PHY node 'reset-names' property which specified that the
> reset name should have an unnecessary "lane" suffix.
>
> Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 67+ messages in thread
* Re: [PATCH v2 12/30] dt-bindings: phy: add QMP PCIe PHY schema
2022-07-07 13:47 ` [PATCH v2 12/30] dt-bindings: phy: add QMP PCIe PHY schema Johan Hovold
@ 2022-07-14 9:15 ` Krzysztof Kozlowski
0 siblings, 0 replies; 67+ messages in thread
From: Krzysztof Kozlowski @ 2022-07-14 9:15 UTC (permalink / raw)
To: Johan Hovold, Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel
On 07/07/2022 15:47, Johan Hovold wrote:
> The QMP PHY DT schema is getting unwieldy. Break out the PCIe PHY
> binding in a separate file.
>
> Add an example node based on a cleaned up version of sm8250.dtsi.
>
> Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 67+ messages in thread
* Re: [PATCH v2 13/30] dt-bindings: phy: qcom,qmp-pcie: add missing child node schema
2022-07-07 13:47 ` [PATCH v2 13/30] dt-bindings: phy: qcom,qmp-pcie: add missing child node schema Johan Hovold
@ 2022-07-14 9:15 ` Krzysztof Kozlowski
0 siblings, 0 replies; 67+ messages in thread
From: Krzysztof Kozlowski @ 2022-07-14 9:15 UTC (permalink / raw)
To: Johan Hovold, Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel
On 07/07/2022 15:47, Johan Hovold wrote:
> Add the missing the description of the PHY-provider child node which was
> ignored when converting to DT schema.
>
> Fixes: ccf51c1cedfd ("dt-bindings: phy: qcom,qmp: Convert QMP PHY bindings to yaml")
> Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
> ---
> .../bindings/phy/qcom,qmp-pcie-phy.yaml | 92 +++++++++++++++++++
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 67+ messages in thread
* Re: [PATCH v2 14/30] dt-bindings: phy: qcom,qmp-pcie: deprecate PIPE clock name
2022-07-07 13:47 ` [PATCH v2 14/30] dt-bindings: phy: qcom,qmp-pcie: deprecate PIPE clock name Johan Hovold
@ 2022-07-14 9:18 ` Krzysztof Kozlowski
0 siblings, 0 replies; 67+ messages in thread
From: Krzysztof Kozlowski @ 2022-07-14 9:18 UTC (permalink / raw)
To: Johan Hovold, Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel
On 07/07/2022 15:47, Johan Hovold wrote:
> Deprecate the PHY node 'clock-names' property which specified that the
> PIPE clock name should have a bogus "lane" suffix.
>
> Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 67+ messages in thread
* Re: [PATCH v2 15/30] dt-bindings: phy: add QMP UFS PHY schema
2022-07-07 13:47 ` [PATCH v2 15/30] dt-bindings: phy: add QMP UFS PHY schema Johan Hovold
@ 2022-07-14 9:19 ` Krzysztof Kozlowski
0 siblings, 0 replies; 67+ messages in thread
From: Krzysztof Kozlowski @ 2022-07-14 9:19 UTC (permalink / raw)
To: Johan Hovold, Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel
On 07/07/2022 15:47, Johan Hovold wrote:
> The QMP PHY DT schema is getting unwieldy. Break out the UFS PHY
> binding in a separate file.
>
> Add an example node based on a cleaned up version of sc8280xp.dtsi.
>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 67+ messages in thread
* Re: [PATCH v2 09/30] dt-bindings: phy: qcom,msm8996-qmp-pcie: add missing child node schema
2022-07-14 9:10 ` Krzysztof Kozlowski
@ 2022-07-14 9:21 ` Krzysztof Kozlowski
0 siblings, 0 replies; 67+ messages in thread
From: Krzysztof Kozlowski @ 2022-07-14 9:21 UTC (permalink / raw)
To: Johan Hovold, Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel
On 14/07/2022 11:10, Krzysztof Kozlowski wrote:
> On 07/07/2022 15:47, Johan Hovold wrote:
>> Add the missing the description of the PHY-provider child nodes which
>> were ignored when converting to DT schema.
>>
>> Fixes: ccf51c1cedfd ("dt-bindings: phy: qcom,qmp: Convert QMP PHY bindings to yaml")
>
> To ease the backport all of fixes should either be independent
> (preferred by some maintainers) or go to the beginning of the patchset.
> I am fine with both.
Ah, I see why it cannot be moved upfront or to separate patchset. Ignore
my comment.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 67+ messages in thread
* Re: [PATCH v2 16/30] dt-bindings: phy: qcom,qmp-ufs: add missing SM8450 clock
2022-07-07 13:47 ` [PATCH v2 16/30] dt-bindings: phy: qcom,qmp-ufs: add missing SM8450 clock Johan Hovold
@ 2022-07-14 9:21 ` Krzysztof Kozlowski
2022-07-14 10:07 ` Johan Hovold
0 siblings, 1 reply; 67+ messages in thread
From: Krzysztof Kozlowski @ 2022-07-14 9:21 UTC (permalink / raw)
To: Johan Hovold, Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel
On 07/07/2022 15:47, Johan Hovold wrote:
> Add the missing "qref" clock used by the SM8450 UFS QMP PHY to the
> binding.
>
> Fixes: e04121ba1b08 ("dt-bindings: phy: qcom,qmp: Add SM8450 UFS phy compatible")
> Fixes: 07fa917a335e ("arm64: dts: qcom: sm8450: add ufs nodes")
The second fixes seems not appropriate here, because you are not fixing
a DTS. A fix for DTS would be a fix for that one.
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 67+ messages in thread
* Re: [PATCH v2 17/30] dt-bindings: phy: qcom,qmp-ufs: add missing SM8150 power domain
2022-07-07 13:47 ` [PATCH v2 17/30] dt-bindings: phy: qcom,qmp-ufs: add missing SM8150 power domain Johan Hovold
@ 2022-07-14 9:22 ` Krzysztof Kozlowski
0 siblings, 0 replies; 67+ messages in thread
From: Krzysztof Kozlowski @ 2022-07-14 9:22 UTC (permalink / raw)
To: Johan Hovold, Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel
On 07/07/2022 15:47, Johan Hovold wrote:
> Add the missing optional power-domains property used by the SM8150 UFS
> QMP PHY to the binding.
>
> Fixes: fe75b0c4a691 ("arm64: dts: qcom: sm8150: Add ufs power-domain entries")
> Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
> ---
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 67+ messages in thread
* Re: [PATCH v2 18/30] dt-bindings: phy: qcom,qmp-ufs: add missing child node schema
2022-07-07 13:47 ` [PATCH v2 18/30] dt-bindings: phy: qcom,qmp-ufs: add missing child node schema Johan Hovold
@ 2022-07-14 9:23 ` Krzysztof Kozlowski
0 siblings, 0 replies; 67+ messages in thread
From: Krzysztof Kozlowski @ 2022-07-14 9:23 UTC (permalink / raw)
To: Johan Hovold, Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel
On 07/07/2022 15:47, Johan Hovold wrote:
> Add the missing the description of the PHY-provider child node which was
> ignored when converting to DT schema.
>
> Fixes: ccf51c1cedfd ("dt-bindings: phy: qcom,qmp: Convert QMP PHY bindings to yaml")
> Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
> ---
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 67+ messages in thread
* Re: [PATCH v2 19/30] dt-bindings: phy: add QMP USB PHY schema
2022-07-07 13:47 ` [PATCH v2 19/30] dt-bindings: phy: add QMP USB PHY schema Johan Hovold
@ 2022-07-14 9:24 ` Krzysztof Kozlowski
0 siblings, 0 replies; 67+ messages in thread
From: Krzysztof Kozlowski @ 2022-07-14 9:24 UTC (permalink / raw)
To: Johan Hovold, Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel
On 07/07/2022 15:47, Johan Hovold wrote:
> The QMP PHY DT schema is getting unwieldy. Break out the USB PHY
> binding in a separate file.
>
> Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
> ---
> ...com,qmp-phy.yaml => qcom,qmp-usb-phy.yaml} | 69 +++++--------------
> 1 file changed, 18 insertions(+), 51 deletions(-)
> rename Documentation/devicetree/bindings/phy/{qcom,qmp-phy.yaml => qcom,qmp-usb-phy.yaml} (82%)
>
> diff --git a/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,qmp-usb-phy.yaml
> similarity index 82%
> rename from Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml
> rename to Documentation/devicetree/bindings/phy/qcom,qmp-usb-phy.yaml
> index 21d6ec875529..66cabf4d5722 100644
> --- a/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml
> +++ b/Documentation/devicetree/bindings/phy/qcom,qmp-usb-phy.yaml
> @@ -1,11 +1,10 @@
> # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> -
> %YAML 1.2
> ---
> -$id: "http://devicetree.org/schemas/phy/qcom,qmp-phy.yaml#"
> -$schema: "http://devicetree.org/meta-schemas/core.yaml#"
> +$id: http://devicetree.org/schemas/phy/qcom,qmp-usb-phy.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
>
> -title: Qualcomm QMP PHY controller
> +title: Qualcomm QMP PHY controller (USB)
>
> maintainers:
> - Vinod Koul <vkoul@kernel.org>
> @@ -51,20 +50,20 @@ properties:
> ranges: true
>
> clocks:
> - minItems: 1
> + minItems: 3
> maxItems: 4
>
> clock-names:
> - minItems: 1
> + minItems: 3
> maxItems: 4
>
> resets:
> - minItems: 1
> - maxItems: 3
> + minItems: 2
Skip minItems (equal to max)
> + maxItems: 2
>
> reset-names:
> - minItems: 1
> - maxItems: 3
> + minItems: 2
The same.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 67+ messages in thread
* Re: [PATCH v2 20/30] dt-bindings: phy: qcom,qmp-usb: add missing child node schema
2022-07-07 13:47 ` [PATCH v2 20/30] dt-bindings: phy: qcom,qmp-usb: add missing child node schema Johan Hovold
@ 2022-07-14 9:24 ` Krzysztof Kozlowski
0 siblings, 0 replies; 67+ messages in thread
From: Krzysztof Kozlowski @ 2022-07-14 9:24 UTC (permalink / raw)
To: Johan Hovold, Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel
On 07/07/2022 15:47, Johan Hovold wrote:
> Add the missing the description of the PHY-provider child node which was
> ignored when converting to DT schema.
>
> Fixes: ccf51c1cedfd ("dt-bindings: phy: qcom,qmp: Convert QMP PHY bindings to yaml")
> Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 67+ messages in thread
* Re: [PATCH v2 21/30] dt-bindings: phy: qcom,qmp-usb: deprecate PIPE clock name
2022-07-07 13:47 ` [PATCH v2 21/30] dt-bindings: phy: qcom,qmp-usb: deprecate PIPE clock name Johan Hovold
@ 2022-07-14 9:24 ` Krzysztof Kozlowski
0 siblings, 0 replies; 67+ messages in thread
From: Krzysztof Kozlowski @ 2022-07-14 9:24 UTC (permalink / raw)
To: Johan Hovold, Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel
On 07/07/2022 15:47, Johan Hovold wrote:
> Deprecate the PHY node 'clock-names' property which specified that the
> PIPE clock name should have a bogus "lane" suffix.
>
> Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
> ---
> Documentation/devicetree/bindings/phy/qcom,qmp-usb-phy.yaml | 3 +--
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 67+ messages in thread
* Re: [PATCH v2 22/30] dt-bindings: phy: qcom,qmp-usb: add missing qcom,sc7180-qmp-usb3-phy schema
2022-07-07 13:47 ` [PATCH v2 22/30] dt-bindings: phy: qcom,qmp-usb: add missing qcom,sc7180-qmp-usb3-phy schema Johan Hovold
@ 2022-07-14 9:25 ` Krzysztof Kozlowski
0 siblings, 0 replies; 67+ messages in thread
From: Krzysztof Kozlowski @ 2022-07-14 9:25 UTC (permalink / raw)
To: Johan Hovold, Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel
On 07/07/2022 15:47, Johan Hovold wrote:
> The "qcom,sc7180-qmp-usb3-phy" compatible is apparently used to describe
> a combo PHY where only the USB part is used. Specifically, only a single
> reset is used.
>
> 4ad7d7eeed3a ("dt-bindings: phy: qcom,qmp-usb3-dp: Add support for SC7180")
> 94c34600b617 ("dt-bindings: phy: qcom,qmp-usb3-dp-phy: move usb3 compatibles back to qcom,qmp-phy.yaml")
> Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
> ---
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 67+ messages in thread
* Re: [PATCH v2 23/30] dt-bindings: phy: qcom,qmp-usb3-dp: fix bogus clock-cells property
2022-07-07 13:47 ` [PATCH v2 23/30] dt-bindings: phy: qcom,qmp-usb3-dp: fix bogus clock-cells property Johan Hovold
@ 2022-07-14 9:27 ` Krzysztof Kozlowski
0 siblings, 0 replies; 67+ messages in thread
From: Krzysztof Kozlowski @ 2022-07-14 9:27 UTC (permalink / raw)
To: Johan Hovold, Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel
On 07/07/2022 15:47, Johan Hovold wrote:
> The QMP PHY wrapper node is not a clock provider so drop the bogus
> '#clock-cells' property that was added when converting to DT schema.
>
> Fixes: 59351049ad15 ("dt-bindings: phy: qcom,qmp-usb3-dp: Add dt bindings for USB3 DP PHY")
> Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
> ---
> .../devicetree/bindings/phy/qcom,qmp-usb3-dp-phy.yaml | 5 -----
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 67+ messages in thread
* Re: [PATCH v2 24/30] dt-bindings: phy: qcom,qmp-usb3-dp: deprecate USB PIPE clock name
2022-07-07 13:47 ` [PATCH v2 24/30] dt-bindings: phy: qcom,qmp-usb3-dp: deprecate USB PIPE clock name Johan Hovold
@ 2022-07-14 9:27 ` Krzysztof Kozlowski
0 siblings, 0 replies; 67+ messages in thread
From: Krzysztof Kozlowski @ 2022-07-14 9:27 UTC (permalink / raw)
To: Johan Hovold, Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel
On 07/07/2022 15:47, Johan Hovold wrote:
> Deprecate the USB PHY node 'clock-names' property which specified that
> the PIPE clock name should have a bogus "lane" suffix.
>
> Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
> ---
> .../devicetree/bindings/phy/qcom,qmp-usb3-dp-phy.yaml | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 67+ messages in thread
* Re: [PATCH v2 25/30] phy: qcom-qmp-pcie: drop pipe clock lane suffix
2022-07-07 13:47 ` [PATCH v2 25/30] phy: qcom-qmp-pcie: drop pipe clock lane suffix Johan Hovold
@ 2022-07-14 9:28 ` Krzysztof Kozlowski
0 siblings, 0 replies; 67+ messages in thread
From: Krzysztof Kozlowski @ 2022-07-14 9:28 UTC (permalink / raw)
To: Johan Hovold, Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel
On 07/07/2022 15:47, Johan Hovold wrote:
> The pipe clock is defined in the "lane" node so there's no need to keep
> adding a redundant lane-number suffix to the clock name.
>
> Update driver to support the new binding where the pipe clock name has
> been deprecated by instead requesting the clock by index.
>
> Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 67+ messages in thread
* Re: [PATCH v2 26/30] phy: qcom-qmp-combo: drop unused lane reset
2022-07-07 13:47 ` [PATCH v2 26/30] phy: qcom-qmp-combo: drop unused lane reset Johan Hovold
@ 2022-07-14 9:29 ` Krzysztof Kozlowski
0 siblings, 0 replies; 67+ messages in thread
From: Krzysztof Kozlowski @ 2022-07-14 9:29 UTC (permalink / raw)
To: Johan Hovold, Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel
On 07/07/2022 15:47, Johan Hovold wrote:
> Drop the unused lane reset pointer which isn't used by any combo PHY.
>
> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
> Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
> ---
> drivers/phy/qualcomm/phy-qcom-qmp-combo.c | 2 --
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 67+ messages in thread
* Re: [PATCH v2 27/30] phy: qcom-qmp-combo: drop pipe clock lane suffix
2022-07-07 13:47 ` [PATCH v2 27/30] phy: qcom-qmp-combo: drop pipe clock lane suffix Johan Hovold
@ 2022-07-14 9:29 ` Krzysztof Kozlowski
0 siblings, 0 replies; 67+ messages in thread
From: Krzysztof Kozlowski @ 2022-07-14 9:29 UTC (permalink / raw)
To: Johan Hovold, Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel
On 07/07/2022 15:47, Johan Hovold wrote:
> The pipe clock is defined in the "lane" node so there's no need to keep
> adding a redundant lane-number suffix to the clock name.
>
> Update driver to support the new binding where the pipe clock name has
> been deprecated by instead requesting the clock by index.
>
> Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
> ---
> drivers/phy/qualcomm/phy-qcom-qmp-combo.c | 4 +---
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 67+ messages in thread
* Re: [PATCH v2 28/30] phy: qcom-qmp-pcie-msm8996: drop pipe clock lane suffix
2022-07-07 13:47 ` [PATCH v2 28/30] phy: qcom-qmp-pcie-msm8996: " Johan Hovold
@ 2022-07-14 9:29 ` Krzysztof Kozlowski
2022-07-14 9:30 ` Krzysztof Kozlowski
1 sibling, 0 replies; 67+ messages in thread
From: Krzysztof Kozlowski @ 2022-07-14 9:29 UTC (permalink / raw)
To: Johan Hovold, Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel
On 07/07/2022 15:47, Johan Hovold wrote:
> The pipe clock is defined in the "lane" node so there's no need to keep
> adding a redundant lane-number suffix to the clock name.
>
> Update driver to support the new binding where the pipe clock name has
> been deprecated by instead requesting the clock by index.
>
> Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
> ---
> drivers/phy/qualcomm/phy-qcom-qmp-pcie-msm8996.c | 4 +---
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 67+ messages in thread
* Re: [PATCH v2 28/30] phy: qcom-qmp-pcie-msm8996: drop pipe clock lane suffix
2022-07-07 13:47 ` [PATCH v2 28/30] phy: qcom-qmp-pcie-msm8996: " Johan Hovold
2022-07-14 9:29 ` Krzysztof Kozlowski
@ 2022-07-14 9:30 ` Krzysztof Kozlowski
2022-07-14 9:49 ` Johan Hovold
1 sibling, 1 reply; 67+ messages in thread
From: Krzysztof Kozlowski @ 2022-07-14 9:30 UTC (permalink / raw)
To: Johan Hovold, Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel
On 07/07/2022 15:47, Johan Hovold wrote:
> The pipe clock is defined in the "lane" node so there's no need to keep
> adding a redundant lane-number suffix to the clock name.
>
> Update driver to support the new binding where the pipe clock name has
> been deprecated by instead requesting the clock by index.
>
> Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
> ---
> drivers/phy/qualcomm/phy-qcom-qmp-pcie-msm8996.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-pcie-msm8996.c b/drivers/phy/qualcomm/phy-qcom-qmp-pcie-msm8996.c
> index 812d14afb5ec..af2f14a53b38 100644
> --- a/drivers/phy/qualcomm/phy-qcom-qmp-pcie-msm8996.c
> +++ b/drivers/phy/qualcomm/phy-qcom-qmp-pcie-msm8996.c
> @@ -872,7 +872,6 @@ int qcom_qmp_phy_pcie_msm8996_create(struct device *dev, struct device_node *np,
> struct qcom_qmp *qmp = dev_get_drvdata(dev);
> struct phy *generic_phy;
> struct qmp_phy *qphy;
> - char prop_name[MAX_PROP_NAME];
Wait, it looks like your patchset is not bisectable. Be sure each commit
compiles cleanly.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 67+ messages in thread
* Re: [PATCH v2 00/30] phy: qcom,qmp: fix dt-bindings and deprecate lane suffix
2022-07-14 8:12 ` [PATCH v2 00/30] phy: qcom,qmp: fix dt-bindings and deprecate " Johan Hovold
@ 2022-07-14 9:31 ` Krzysztof Kozlowski
2022-07-14 9:44 ` Johan Hovold
0 siblings, 1 reply; 67+ messages in thread
From: Krzysztof Kozlowski @ 2022-07-14 9:31 UTC (permalink / raw)
To: Johan Hovold, Vinod Koul
Cc: Rob Herring, Krzysztof Kozlowski, Dmitry Baryshkov, Andy Gross,
Bjorn Andersson, Kishon Vijay Abraham I, linux-arm-msm, linux-phy,
devicetree, linux-kernel
On 14/07/2022 10:12, Johan Hovold wrote:
> On Thu, Jul 07, 2022 at 03:46:55PM +0200, Johan Hovold wrote:
>> 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 clean up and fixes some issue with the current schema before
>> splitting it up in separate schemas for PCIe, UFS and USB and adding
>> missing parts like the child PHY provider nodes.
>>
>> 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 add support for the updated binding to the (recently
>> split up) PHY drivers. Included is also a related combo PHY cleanup.
>>
>> Johan
>>
>>
>> Changes in v2
>> - squash split + cleanup + example patches (Krzysztof)
>> - deprecate clock-names instead of dropping suffix (Krzysztof)
>> - deprecate reset-names instead of dropping suffix (Krzysztof)
>> - flatten child reg if/then schemas (Krzysztof)
>> - add back optional vddp-ref-clk to all bindings even though it likely
>> only applies to MSM8996/98 UFS (Krzysztof)
>> - add missing sc7180 schema to USB binding
>> - misc clean ups
>> - shorten or drop descriptions
>> - drop quotes around $id and $schema (Krzysztof)
>> - use maxItems with clock-output-names
>> - combine two USB clock+reset schemas
>> - add Reviewed-by/Acked-by tags
>
> Any further comments to this series?
>
> Vinod, I noticed there was a conflict when rebasing on linux-next due to
> commit 85d43a69db2d ("dt-bindings: phy: qcom,qmp: add IPQ8074 PCIe Gen3
> PHY binding").
>
I got few comments. Apologies for a slow review, I am a bit overloaded.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 67+ messages in thread
* Re: [PATCH v2 29/30] phy: qcom-qmp-pcie-msm8996: drop reset lane suffix
2022-07-07 13:47 ` [PATCH v2 29/30] phy: qcom-qmp-pcie-msm8996: drop reset " Johan Hovold
@ 2022-07-14 9:31 ` Krzysztof Kozlowski
0 siblings, 0 replies; 67+ messages in thread
From: Krzysztof Kozlowski @ 2022-07-14 9:31 UTC (permalink / raw)
To: Johan Hovold, Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel
On 07/07/2022 15:47, Johan Hovold wrote:
> The lane reset is defined in the "lane" node so there's no need to keep
> adding a redundant lane-number suffix to the reset name.
>
> Update driver to support the new binding where the "lane" reset name has
> been deprecated by instead requesting the reset by index.
>
> Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
> ---
> drivers/phy/qualcomm/phy-qcom-qmp-pcie-msm8996.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-pcie-msm8996.c b/drivers/phy/qualcomm/phy-qcom-qmp-pcie-msm8996.c
> index af2f14a53b38..1734fb01955a 100644
> --- a/drivers/phy/qualcomm/phy-qcom-qmp-pcie-msm8996.c
> +++ b/drivers/phy/qualcomm/phy-qcom-qmp-pcie-msm8996.c
> @@ -909,9 +909,7 @@ int qcom_qmp_phy_pcie_msm8996_create(struct device *dev, struct device_node *np,
> "failed to get lane%d pipe clock\n", id);
> }
>
> - /* Get lane reset, if any */
> - snprintf(prop_name, sizeof(prop_name), "lane%d", id);
> - qphy->lane_rst = of_reset_control_get_exclusive(np, prop_name);
I guess prop_name variable should be removed here.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 67+ messages in thread
* Re: [PATCH v2 30/30] phy: qcom-qmp-usb: drop pipe clock lane suffix
2022-07-07 13:47 ` [PATCH v2 30/30] phy: qcom-qmp-usb: drop pipe clock " Johan Hovold
@ 2022-07-14 9:31 ` Krzysztof Kozlowski
0 siblings, 0 replies; 67+ messages in thread
From: Krzysztof Kozlowski @ 2022-07-14 9:31 UTC (permalink / raw)
To: Johan Hovold, Vinod Koul, Rob Herring, Krzysztof Kozlowski
Cc: Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel
On 07/07/2022 15:47, Johan Hovold wrote:
> The pipe clock is defined in the "lane" node so there's no need to keep
> adding a redundant lane-number suffix to the clock name.
>
> Update driver to support the new binding where the pipe clock name has
> been deprecated by instead requesting the clock by index.
>
> Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 67+ messages in thread
* Re: [PATCH v2 00/30] phy: qcom,qmp: fix dt-bindings and deprecate lane suffix
2022-07-14 9:31 ` Krzysztof Kozlowski
@ 2022-07-14 9:44 ` Johan Hovold
0 siblings, 0 replies; 67+ messages in thread
From: Johan Hovold @ 2022-07-14 9:44 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Vinod Koul, Rob Herring, Krzysztof Kozlowski, Dmitry Baryshkov,
Andy Gross, Bjorn Andersson, Kishon Vijay Abraham I,
linux-arm-msm, linux-phy, devicetree, linux-kernel
On Thu, Jul 14, 2022 at 11:31:22AM +0200, Krzysztof Kozlowski wrote:
> On 14/07/2022 10:12, Johan Hovold wrote:
> > Any further comments to this series?
> >
> > Vinod, I noticed there was a conflict when rebasing on linux-next due to
> > commit 85d43a69db2d ("dt-bindings: phy: qcom,qmp: add IPQ8074 PCIe Gen3
> > PHY binding").
> >
>
> I got few comments. Apologies for a slow review, I am a bit overloaded.
Heh, no worries. Review within a week is awesome.
Thanks for taking another look.
Johan
^ permalink raw reply [flat|nested] 67+ messages in thread
* Re: [PATCH v2 28/30] phy: qcom-qmp-pcie-msm8996: drop pipe clock lane suffix
2022-07-14 9:30 ` Krzysztof Kozlowski
@ 2022-07-14 9:49 ` Johan Hovold
0 siblings, 0 replies; 67+ messages in thread
From: Johan Hovold @ 2022-07-14 9:49 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Johan Hovold, Vinod Koul, Rob Herring, Krzysztof Kozlowski,
Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel
On Thu, Jul 14, 2022 at 11:30:36AM +0200, Krzysztof Kozlowski wrote:
> On 07/07/2022 15:47, Johan Hovold wrote:
> > The pipe clock is defined in the "lane" node so there's no need to keep
> > adding a redundant lane-number suffix to the clock name.
> >
> > Update driver to support the new binding where the pipe clock name has
> > been deprecated by instead requesting the clock by index.
> >
> > Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
> > ---
> > drivers/phy/qualcomm/phy-qcom-qmp-pcie-msm8996.c | 4 +---
> > 1 file changed, 1 insertion(+), 3 deletions(-)
> >
> > diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-pcie-msm8996.c b/drivers/phy/qualcomm/phy-qcom-qmp-pcie-msm8996.c
> > index 812d14afb5ec..af2f14a53b38 100644
> > --- a/drivers/phy/qualcomm/phy-qcom-qmp-pcie-msm8996.c
> > +++ b/drivers/phy/qualcomm/phy-qcom-qmp-pcie-msm8996.c
> > @@ -872,7 +872,6 @@ int qcom_qmp_phy_pcie_msm8996_create(struct device *dev, struct device_node *np,
> > struct qcom_qmp *qmp = dev_get_drvdata(dev);
> > struct phy *generic_phy;
> > struct qmp_phy *qphy;
> > - char prop_name[MAX_PROP_NAME];
>
> Wait, it looks like your patchset is not bisectable. Be sure each commit
> compiles cleanly.
Ah, crap. I apparently fixed up the wrong commit when I noticed the
unused prop_name variable.
Will fix in v3.
Johan
^ permalink raw reply [flat|nested] 67+ messages in thread
* Re: [PATCH v2 03/30] dt-bindings: phy: qcom,qmp: drop redundant descriptions
2022-07-14 9:07 ` Krzysztof Kozlowski
@ 2022-07-14 10:00 ` Johan Hovold
2022-07-14 10:42 ` Krzysztof Kozlowski
0 siblings, 1 reply; 67+ messages in thread
From: Johan Hovold @ 2022-07-14 10:00 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Johan Hovold, Vinod Koul, Rob Herring, Krzysztof Kozlowski,
Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel
On Thu, Jul 14, 2022 at 11:07:21AM +0200, Krzysztof Kozlowski wrote:
> On 07/07/2022 15:46, Johan Hovold wrote:
> > Drop the redundant supply and clock descriptions which did not add much
> > information beyond what can be inferred from the corresponding resource
> > names.
> >
> > Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
>
>
> (...)
>
> > - const: ref
> > - const: refgen
> > resets:
> > - items:
> > - - description: reset of phy block.
> > + maxItems: 1
> > reset-names:
> > items:
> > - const: phy
> > @@ -376,11 +334,7 @@ allOf:
> > then:
> > properties:
> > clocks:
> > - items:
> > - - description: Phy aux clock.
> > - - description: 19.2 MHz ref clk source.
> > - - description: 19.2 MHz ref clk.
>
> Here and in other places - I think you loose information, because the
> frequency is not mentioned in clock name.
Right, but it is also arguable redundant information for the binding
(similar for the vdda-pll voltage).
I can add a comment after the name if you prefer that?
Johan
^ permalink raw reply [flat|nested] 67+ messages in thread
* Re: [PATCH v2 16/30] dt-bindings: phy: qcom,qmp-ufs: add missing SM8450 clock
2022-07-14 9:21 ` Krzysztof Kozlowski
@ 2022-07-14 10:07 ` Johan Hovold
2022-07-14 10:42 ` Krzysztof Kozlowski
0 siblings, 1 reply; 67+ messages in thread
From: Johan Hovold @ 2022-07-14 10:07 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Johan Hovold, Vinod Koul, Rob Herring, Krzysztof Kozlowski,
Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel
On Thu, Jul 14, 2022 at 11:21:52AM +0200, Krzysztof Kozlowski wrote:
> On 07/07/2022 15:47, Johan Hovold wrote:
> > Add the missing "qref" clock used by the SM8450 UFS QMP PHY to the
> > binding.
> >
> > Fixes: e04121ba1b08 ("dt-bindings: phy: qcom,qmp: Add SM8450 UFS phy compatible")
> > Fixes: 07fa917a335e ("arm64: dts: qcom: sm8450: add ufs nodes")
>
> The second fixes seems not appropriate here, because you are not fixing
> a DTS. A fix for DTS would be a fix for that one.
I wanted to highlight the fact the binding wasn't amended when the DTS
started using the new clock, which it should have. But sure, that would
have gone in a separate patch. I can replace the second Fixes with a
Link to the dts submission as a reference instead.
Johan
^ permalink raw reply [flat|nested] 67+ messages in thread
* Re: [PATCH v2 03/30] dt-bindings: phy: qcom,qmp: drop redundant descriptions
2022-07-14 10:00 ` Johan Hovold
@ 2022-07-14 10:42 ` Krzysztof Kozlowski
0 siblings, 0 replies; 67+ messages in thread
From: Krzysztof Kozlowski @ 2022-07-14 10:42 UTC (permalink / raw)
To: Johan Hovold
Cc: Johan Hovold, Vinod Koul, Rob Herring, Krzysztof Kozlowski,
Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel
On 14/07/2022 12:00, Johan Hovold wrote:
> On Thu, Jul 14, 2022 at 11:07:21AM +0200, Krzysztof Kozlowski wrote:
>> On 07/07/2022 15:46, Johan Hovold wrote:
>>> Drop the redundant supply and clock descriptions which did not add much
>>> information beyond what can be inferred from the corresponding resource
>>> names.
>>>
>>> Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
>>
>>
>> (...)
>>
>>> - const: ref
>>> - const: refgen
>>> resets:
>>> - items:
>>> - - description: reset of phy block.
>>> + maxItems: 1
>>> reset-names:
>>> items:
>>> - const: phy
>>> @@ -376,11 +334,7 @@ allOf:
>>> then:
>>> properties:
>>> clocks:
>>> - items:
>>> - - description: Phy aux clock.
>>> - - description: 19.2 MHz ref clk source.
>>> - - description: 19.2 MHz ref clk.
>>
>> Here and in other places - I think you loose information, because the
>> frequency is not mentioned in clock name.
>
> Right, but it is also arguable redundant information for the binding
> (similar for the vdda-pll voltage).
True.
>
> I can add a comment after the name if you prefer that?
Ah, skip it.
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 67+ messages in thread
* Re: [PATCH v2 16/30] dt-bindings: phy: qcom,qmp-ufs: add missing SM8450 clock
2022-07-14 10:07 ` Johan Hovold
@ 2022-07-14 10:42 ` Krzysztof Kozlowski
0 siblings, 0 replies; 67+ messages in thread
From: Krzysztof Kozlowski @ 2022-07-14 10:42 UTC (permalink / raw)
To: Johan Hovold
Cc: Johan Hovold, Vinod Koul, Rob Herring, Krzysztof Kozlowski,
Dmitry Baryshkov, Andy Gross, Bjorn Andersson,
Kishon Vijay Abraham I, linux-arm-msm, linux-phy, devicetree,
linux-kernel
On 14/07/2022 12:07, Johan Hovold wrote:
> On Thu, Jul 14, 2022 at 11:21:52AM +0200, Krzysztof Kozlowski wrote:
>> On 07/07/2022 15:47, Johan Hovold wrote:
>>> Add the missing "qref" clock used by the SM8450 UFS QMP PHY to the
>>> binding.
>>>
>>> Fixes: e04121ba1b08 ("dt-bindings: phy: qcom,qmp: Add SM8450 UFS phy compatible")
>>> Fixes: 07fa917a335e ("arm64: dts: qcom: sm8450: add ufs nodes")
>>
>> The second fixes seems not appropriate here, because you are not fixing
>> a DTS. A fix for DTS would be a fix for that one.
>
> I wanted to highlight the fact the binding wasn't amended when the DTS
> started using the new clock, which it should have. But sure, that would
> have gone in a separate patch. I can replace the second Fixes with a
> Link to the dts submission as a reference instead.
Yes, that or mentioning as "commit xxx ..." in msg would be better.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 67+ messages in thread
end of thread, other threads:[~2022-07-14 10:43 UTC | newest]
Thread overview: 67+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-07 13:46 [PATCH v2 00/30] phy: qcom,qmp: fix dt-bindings and deprecate lane suffix Johan Hovold
2022-07-07 13:46 ` [PATCH v2 01/30] dt-bindings: phy: qcom,qmp: fix bogus clock-cells property Johan Hovold
2022-07-07 13:46 ` [PATCH v2 02/30] dt-bindings: phy: qcom,qmp: sort compatible strings Johan Hovold
2022-07-07 13:46 ` [PATCH v2 03/30] dt-bindings: phy: qcom,qmp: drop redundant descriptions Johan Hovold
2022-07-14 9:07 ` Krzysztof Kozlowski
2022-07-14 10:00 ` Johan Hovold
2022-07-14 10:42 ` Krzysztof Kozlowski
2022-07-07 13:46 ` [PATCH v2 04/30] dt-bindings: phy: qcom,qmp: fix child node description Johan Hovold
2022-07-14 9:07 ` Krzysztof Kozlowski
2022-07-07 13:47 ` [PATCH v2 05/30] dt-bindings: phy: qcom,qmp: clean up descriptions Johan Hovold
2022-07-14 9:07 ` Krzysztof Kozlowski
2022-07-07 13:47 ` [PATCH v2 06/30] dt-bindings: phy: qcom,qmp: clean up example Johan Hovold
2022-07-07 13:47 ` [PATCH v2 07/30] dt-bindings: phy: qcom,qmp: drop child-node comment Johan Hovold
2022-07-07 13:47 ` [PATCH v2 08/30] dt-bindings: phy: add qcom,msm8996-qmp-pcie-phy schema Johan Hovold
2022-07-14 9:09 ` Krzysztof Kozlowski
2022-07-07 13:47 ` [PATCH v2 09/30] dt-bindings: phy: qcom,msm8996-qmp-pcie: add missing child node schema Johan Hovold
2022-07-14 9:10 ` Krzysztof Kozlowski
2022-07-14 9:21 ` Krzysztof Kozlowski
2022-07-07 13:47 ` [PATCH v2 10/30] dt-bindings: phy: qcom,msm8996-qmp-pcie: deprecate PIPE clock names Johan Hovold
2022-07-14 9:13 ` Krzysztof Kozlowski
2022-07-07 13:47 ` [PATCH v2 11/30] dt-bindings: phy: qcom,msm8996-qmp-pcie: deprecate reset names Johan Hovold
2022-07-14 9:13 ` Krzysztof Kozlowski
2022-07-07 13:47 ` [PATCH v2 12/30] dt-bindings: phy: add QMP PCIe PHY schema Johan Hovold
2022-07-14 9:15 ` Krzysztof Kozlowski
2022-07-07 13:47 ` [PATCH v2 13/30] dt-bindings: phy: qcom,qmp-pcie: add missing child node schema Johan Hovold
2022-07-14 9:15 ` Krzysztof Kozlowski
2022-07-07 13:47 ` [PATCH v2 14/30] dt-bindings: phy: qcom,qmp-pcie: deprecate PIPE clock name Johan Hovold
2022-07-14 9:18 ` Krzysztof Kozlowski
2022-07-07 13:47 ` [PATCH v2 15/30] dt-bindings: phy: add QMP UFS PHY schema Johan Hovold
2022-07-14 9:19 ` Krzysztof Kozlowski
2022-07-07 13:47 ` [PATCH v2 16/30] dt-bindings: phy: qcom,qmp-ufs: add missing SM8450 clock Johan Hovold
2022-07-14 9:21 ` Krzysztof Kozlowski
2022-07-14 10:07 ` Johan Hovold
2022-07-14 10:42 ` Krzysztof Kozlowski
2022-07-07 13:47 ` [PATCH v2 17/30] dt-bindings: phy: qcom,qmp-ufs: add missing SM8150 power domain Johan Hovold
2022-07-14 9:22 ` Krzysztof Kozlowski
2022-07-07 13:47 ` [PATCH v2 18/30] dt-bindings: phy: qcom,qmp-ufs: add missing child node schema Johan Hovold
2022-07-14 9:23 ` Krzysztof Kozlowski
2022-07-07 13:47 ` [PATCH v2 19/30] dt-bindings: phy: add QMP USB PHY schema Johan Hovold
2022-07-14 9:24 ` Krzysztof Kozlowski
2022-07-07 13:47 ` [PATCH v2 20/30] dt-bindings: phy: qcom,qmp-usb: add missing child node schema Johan Hovold
2022-07-14 9:24 ` Krzysztof Kozlowski
2022-07-07 13:47 ` [PATCH v2 21/30] dt-bindings: phy: qcom,qmp-usb: deprecate PIPE clock name Johan Hovold
2022-07-14 9:24 ` Krzysztof Kozlowski
2022-07-07 13:47 ` [PATCH v2 22/30] dt-bindings: phy: qcom,qmp-usb: add missing qcom,sc7180-qmp-usb3-phy schema Johan Hovold
2022-07-14 9:25 ` Krzysztof Kozlowski
2022-07-07 13:47 ` [PATCH v2 23/30] dt-bindings: phy: qcom,qmp-usb3-dp: fix bogus clock-cells property Johan Hovold
2022-07-14 9:27 ` Krzysztof Kozlowski
2022-07-07 13:47 ` [PATCH v2 24/30] dt-bindings: phy: qcom,qmp-usb3-dp: deprecate USB PIPE clock name Johan Hovold
2022-07-14 9:27 ` Krzysztof Kozlowski
2022-07-07 13:47 ` [PATCH v2 25/30] phy: qcom-qmp-pcie: drop pipe clock lane suffix Johan Hovold
2022-07-14 9:28 ` Krzysztof Kozlowski
2022-07-07 13:47 ` [PATCH v2 26/30] phy: qcom-qmp-combo: drop unused lane reset Johan Hovold
2022-07-14 9:29 ` Krzysztof Kozlowski
2022-07-07 13:47 ` [PATCH v2 27/30] phy: qcom-qmp-combo: drop pipe clock lane suffix Johan Hovold
2022-07-14 9:29 ` Krzysztof Kozlowski
2022-07-07 13:47 ` [PATCH v2 28/30] phy: qcom-qmp-pcie-msm8996: " Johan Hovold
2022-07-14 9:29 ` Krzysztof Kozlowski
2022-07-14 9:30 ` Krzysztof Kozlowski
2022-07-14 9:49 ` Johan Hovold
2022-07-07 13:47 ` [PATCH v2 29/30] phy: qcom-qmp-pcie-msm8996: drop reset " Johan Hovold
2022-07-14 9:31 ` Krzysztof Kozlowski
2022-07-07 13:47 ` [PATCH v2 30/30] phy: qcom-qmp-usb: drop pipe clock " Johan Hovold
2022-07-14 9:31 ` Krzysztof Kozlowski
2022-07-14 8:12 ` [PATCH v2 00/30] phy: qcom,qmp: fix dt-bindings and deprecate " Johan Hovold
2022-07-14 9:31 ` Krzysztof Kozlowski
2022-07-14 9:44 ` Johan Hovold
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).