[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <98960024-7dbc-91a3-75de-90b529637916@linaro.org>
Date: Wed, 7 Jun 2023 20:31:50 +0200
From: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
To: Varadarajan Narayanan <quic_varada@...cinc.com>, agross@...nel.org,
andersson@...nel.org, konrad.dybcio@...aro.org, vkoul@...nel.org,
kishon@...nel.org, robh+dt@...nel.org,
krzysztof.kozlowski+dt@...aro.org, conor+dt@...nel.org,
gregkh@...uxfoundation.org, catalin.marinas@....com,
will@...nel.org, mturquette@...libre.com, sboyd@...nel.org,
p.zabel@...gutronix.de, arnd@...db.de, geert+renesas@...der.be,
neil.armstrong@...aro.org, nfraprado@...labora.com,
broonie@...nel.org, rafal@...ecki.pl, quic_srichara@...cinc.com,
quic_varada@...cinc.org, quic_wcheng@...cinc.com,
linux-arm-msm@...r.kernel.org, linux-phy@...ts.infradead.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-usb@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-clk@...r.kernel.org
Subject: Re: [PATCH 2/9] dt-bindings: phy: qcom,m31: Document qcom,m31 USB phy
On 07/06/2023 12:56, Varadarajan Narayanan wrote:
> Document the M31 USB2 phy present in IPQ5332
Full stop.
>
> Signed-off-by: Sricharan Ramabadhran <quic_srichara@...cinc.com>
> Signed-off-by: Varadarajan Narayanan <quic_varada@...cinc.com>
> ---
> .../devicetree/bindings/phy/qcom,m31.yaml | 69 ++++++++++++++++++++++
> 1 file changed, 69 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/phy/qcom,m31.yaml
>
> diff --git a/Documentation/devicetree/bindings/phy/qcom,m31.yaml b/Documentation/devicetree/bindings/phy/qcom,m31.yaml
> new file mode 100644
> index 0000000..8ad4ba4
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/phy/qcom,m31.yaml
> @@ -0,0 +1,69 @@
> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> +
Drop stray blank lines.
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/phy/qcom,m31.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Qualcomm M31 USB PHY
What is M31?
> +
> +maintainers:
> + - Sricharan Ramabadhran <quic_srichara@...cinc.com>
> + - Varadarajan Narayanan <quic_varada@...cinc.org>
> +
> +description:
> + This file contains documentation for the USB M31 PHY found in Qualcomm
Drop redundant parts ("This file contains documentation for the").
> + IPQ5018, IPQ5332 SoCs.
> +
> +properties:
> + compatible:
> + oneOf:
That's not oneOf.
> + - items:
No items.
> + - enum:
> + - qcom,m31-usb-hsphy
I am confused what's this. If m31 is coming from some IP block provider,
then you are using wrong vendor prefix.
https://www.m31tech.com/download_file/M31_USB.pdf
> + - qcom,ipq5332-m31-usb-hsphy
This confuses me even more. IPQ m31?
> +
> + reg:
> + description:
> + Offset and length of the M31 PHY register set
Drop description, obvious.
> + maxItems: 2
> +
> + reg-names:
> + items:
> + - const: m31usb_phy_base
> + - const: qscratch_base
Drop "_base" from both.
> +
> + phy_type:
> + oneOf:
> + - items:
> + - enum:
> + - utmi
> + - ulpi
This does not belong to phy, but to USB node.
> +
> + resets:
> + maxItems: 1
> + description:
> + List of phandles and reset pairs, one for each entry in reset-names.
Drop useless description.
> +
> + reset-names:
> + items:
> + - const:
> + usb2_phy_reset
Drop entire reset-names.
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + #include <dt-bindings/clock/qcom,ipq5332-gcc.h>
> + hs_m31phy_0: hs_m31phy@...0 {
Node names should be generic. See also explanation and list of examples
in DT specification:
https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation
Also, no underscores in node names.
> + compatible = "qcom,m31-usb-hsphy";
> + reg = <0x5b000 0x3000>,
This is not what your unit address is saying.
> + <0x08af8800 0x400>;
Align it.
> + reg-names = "m31usb_phy_base",
> + "qscratch_base";
Align it.
> + phy_type = "utmi";
> + resets = <&gcc GCC_QUSB2_0_PHY_BCR>;
> + reset-names = "usb2_phy_reset";
> +
> + status = "ok";
Drop.
> + };
Best regards,
Krzysztof
Powered by blists - more mailing lists