From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: Luo Jie <quic_luoj@quicinc.com>,
andrew@lunn.ch, davem@davemloft.net, edumazet@google.com,
kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org,
krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org,
hkallweit1@gmail.com, linux@armlinux.org.uk, corbet@lwn.net,
p.zabel@pengutronix.de, f.fainelli@gmail.com
Cc: netdev@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org
Subject: Re: [PATCH v7 14/14] dt-bindings: net: ar803x: add qca8084 PHY propetry
Date: Fri, 15 Dec 2023 08:39:41 +0100 [thread overview]
Message-ID: <52400d96-6ce0-47af-8f25-0b95f9aa9bec@linaro.org> (raw)
In-Reply-To: <20231214094813.24690-15-quic_luoj@quicinc.com>
On 14/12/2023 10:48, Luo Jie wrote:
> The following properties are added for qca8084 PHY.
>
> 1. add the compatible string "ethernet-phy-id004d.d180" since
> the PHY device is not accessible during MDIO bus register.
> 2. add property "qcom,phy-addr-fixup" for customizing MDIO address.
Why? Commit msg must explain why, not "what".
> 3. add property "qcom,phy-work-mode" for specifying qca8084 PHY
> work mode.
Why?
> 4. add the initial clocks and resets.
Why only initial, not final?
>
> Signed-off-by: Luo Jie <quic_luoj@quicinc.com>
> ---
> .../devicetree/bindings/net/qca,ar803x.yaml | 158 +++++++++++++++++-
> 1 file changed, 155 insertions(+), 3 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/net/qca,ar803x.yaml b/Documentation/devicetree/bindings/net/qca,ar803x.yaml
> index 3acd09f0da86..febff039a44f 100644
> --- a/Documentation/devicetree/bindings/net/qca,ar803x.yaml
> +++ b/Documentation/devicetree/bindings/net/qca,ar803x.yaml
> @@ -14,9 +14,6 @@ maintainers:
> description: |
> Bindings for Qualcomm Atheros AR803x PHYs
>
> -allOf:
> - - $ref: ethernet-phy.yaml#
> -
> properties:
> qca,clk-out-frequency:
> description: Clock output frequency in Hertz.
> @@ -85,6 +82,161 @@ properties:
> $ref: /schemas/regulator/regulator.yaml
> unevaluatedProperties: false
>
> + qcom,phy-addr-fixup:
> + $ref: /schemas/types.yaml#/definitions/uint32-array
Why no constraints?
> + description:
> + MDIO address for 4 PHY devices and 3 PCS devices
Why do you need to change MMIO address?
> +
> + qcom,phy-work-mode:
> + description: PHY device work mode.
Your description copies property name. Tell us something we don't
know... like the meaning of the vcalues.
> + $ref: /schemas/types.yaml#/definitions/uint32
> + enum: [0, 1, 2, 3]
> +
> + clocks:
> + items:
> + - description: APB bridge clock
> + - description: AHB clock
> + - description: Security control clock
> + - description: TLMM clock
> + - description: TLMM AHB clock
> + - description: CNOC AHB clock
> + - description: MDIO AHB clock
> + - description: MDIO master AHB clock
> + - description: PCS0 system clock
> + - description: PCS1 system clock
> + - description: EPHY0 system clock
> + - description: EPHY1 system clock
> + - description: EPHY2 system clock
> + - description: EPHY3 system clock
> + description: PHY initial common clock configs
> +
> + clock-names:
> + items:
> + - const: apb_bridge
> + - const: ahb
> + - const: sec_ctrl_ahb
> + - const: tlmm
> + - const: tlmm_ahb
> + - const: cnoc_ahb
> + - const: mdio_ahb
> + - const: mdio_master_ahb
> + - const: srds0_sys
> + - const: srds1_sys
> + - const: gephy0_sys
> + - const: gephy1_sys
> + - const: gephy2_sys
> + - const: gephy3_sys
> +
> + resets:
> + items:
> + - description: PCS0 system reset
> + - description: PCS1 system reset
> + - description: EPHY0 system reset
> + - description: EPHY1 system reset
> + - description: EPHY2 system reset
> + - description: EPHY3 system reset
> + - description: EPHY0 software reset
> + - description: EPHY1 software reset
> + - description: EPHY2 software reset
> + - description: EPHY3 software reset
> + - description: Ethernet DSP reset
> + description: PHY initial common reset configs
> +
> + reset-names:
> + items:
> + - const: srds0_sys
> + - const: srds1_sys
> + - const: gephy0_sys
> + - const: gephy1_sys
> + - const: gephy2_sys
> + - const: gephy3_sys
> + - const: gephy0_soft
> + - const: gephy1_soft
> + - const: gephy2_soft
> + - const: gephy3_soft
> + - const: gephy_dsp
> +
> +allOf:
> + - $ref: ethernet-phy.yaml#
> +
> + - if:
> + properties:
> + compatible:
> + contains:
> + enum:
> + - ethernet-phy-id004d.d180
> + then:
> + properties:
> + clocks:
> + items:
> + - description: APB bridge clock
> + - description: AHB clock
> + - description: Security control clock
> + - description: TLMM clock
> + - description: TLMM AHB clock
> + - description: CNOC AHB clock
> + - description: MDIO AHB clock
> + - description: MDIO master AHB clock
> + - description: PCS0 system clock
> + - description: PCS1 system clock
> + - description: EPHY0 system clock
> + - description: EPHY1 system clock
> + - description: EPHY2 system clock
> + - description: EPHY3 system clock
> + clock-names:
> + items:
> + - const: apb_bridge
> + - const: ahb
> + - const: sec_ctrl_ahb
> + - const: tlmm
> + - const: tlmm_ahb
> + - const: cnoc_ahb
> + - const: mdio_ahb
> + - const: mdio_master_ahb
> + - const: srds0_sys
> + - const: srds1_sys
> + - const: gephy0_sys
> + - const: gephy1_sys
> + - const: gephy2_sys
> + - const: gephy3_sys
?!? Why do you duplicate properties?
> + resets:
> + items:
> + - description: PCS0 system reset
> + - description: PCS1 system reset
> + - description: EPHY0 system reset
> + - description: EPHY1 system reset
> + - description: EPHY2 system reset
> + - description: EPHY3 system reset
> + - description: EPHY0 software reset
> + - description: EPHY1 software reset
> + - description: EPHY2 software reset
> + - description: EPHY3 software reset
> + - description: Ethernet DSP reset
> + reset-names:
> + items:
> + - const: srds0_sys
> + - const: srds1_sys
> + - const: gephy0_sys
> + - const: gephy1_sys
> + - const: gephy2_sys
> + - const: gephy3_sys
> + - const: gephy0_soft
> + - const: gephy1_soft
> + - const: gephy2_soft
> + - const: gephy3_soft
> + - const: gephy_dsp
> + required:
> + - qcom,phy-addr-fixup
> + - qcom,phy-work-mode
> + - clocks
> + - clock-names
> + - resets
> + - reset-names
> + else:
> + properties:
> + qcom,phy-addr-fixup: false
> + qcom,phy-work-mode: false
And what about clcoks and resets for other variants? Your patch now
defined them for all variants without any explanation in commit msg.
> +
> unevaluatedProperties: false
>
> examples:
Best regards,
Krzysztof
prev parent reply other threads:[~2023-12-15 7:39 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-14 9:47 [PATCH v7 00/14] add qca8084 ethernet phy driver Luo Jie
2023-12-14 9:48 ` [PATCH v7 01/14] net: phy: introduce core support for phy-mode = "10g-qxgmii" Luo Jie
2023-12-14 10:54 ` Andrew Lunn
2023-12-14 16:53 ` Russell King (Oracle)
2023-12-14 9:48 ` [PATCH v7 02/14] dt-bindings: net: ethernet-controller: add 10g-qxgmii mode Luo Jie
2023-12-14 10:54 ` Andrew Lunn
2023-12-14 9:48 ` [PATCH v7 03/14] net: phy: at803x: add QCA8084 ethernet phy support Luo Jie
2023-12-14 11:01 ` Andrew Lunn
2023-12-15 6:29 ` Jie Luo
2023-12-14 9:48 ` [PATCH v7 04/14] net: phy: at803x: add the function phydev_id_is_qca808x Luo Jie
2023-12-14 9:48 ` [PATCH v7 05/14] net: phy: at803x: Add qca8084_config_init function Luo Jie
2023-12-14 9:48 ` [PATCH v7 06/14] net: phy: at803x: add qca8084_link_change_notify Luo Jie
2023-12-14 9:48 ` [PATCH v7 07/14] net: phy: at803x: add the possible_interfaces Luo Jie
2023-12-14 9:48 ` [PATCH v7 08/14] net: phy: at803x: add qca8084 switch registe access Luo Jie
2023-12-14 9:48 ` [PATCH v7 09/14] net: phy: at803x: set MDIO address of qca8084 PHY Luo Jie
2023-12-14 9:48 ` [PATCH v7 10/14] net: phy: at803x: parse qca8084 clocks and resets Luo Jie
2023-12-14 9:48 ` [PATCH v7 11/14] net: phy: at803x: add qca808x initial config sequence Luo Jie
2023-12-14 9:48 ` [PATCH v7 12/14] net: phy: at803x: configure qca8084 common clocks Luo Jie
2023-12-14 9:48 ` [PATCH v7 13/14] net: phy: at803x: configure qca8084 work mode Luo Jie
2023-12-14 9:48 ` [PATCH v7 14/14] dt-bindings: net: ar803x: add qca8084 PHY propetry Luo Jie
2023-12-15 7:39 ` Krzysztof Kozlowski [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52400d96-6ce0-47af-8f25-0b95f9aa9bec@linaro.org \
--to=krzysztof.kozlowski@linaro.org \
--cc=andrew@lunn.ch \
--cc=conor+dt@kernel.org \
--cc=corbet@lwn.net \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=edumazet@google.com \
--cc=f.fainelli@gmail.com \
--cc=hkallweit1@gmail.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=kuba@kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=netdev@vger.kernel.org \
--cc=p.zabel@pengutronix.de \
--cc=pabeni@redhat.com \
--cc=quic_luoj@quicinc.com \
--cc=robh+dt@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®