diff mbox series

[v8,3/4] dt-bindings: ethernet-phy: add optional brr-mode flag

Message ID 20240619150359.311459-4-kamilh@axis.com (mailing list archive)
State Superseded
Delegated to: Netdev Maintainers
Headers show
Series net: phy: bcm5481x: add support for BroadR-Reach mode | expand

Checks

Context Check Description
netdev/series_format success Posting correctly formatted
netdev/tree_selection success Guessed tree name to be net-next
netdev/ynl success Generated files up to date; no warnings/errors; no diff in generated;
netdev/fixes_present success Fixes tag not required for -next series
netdev/header_inline success No static functions without inline keyword in header files
netdev/build_32bit success Errors and warnings before: 8 this patch: 8
netdev/build_tools success No tools touched, skip
netdev/cc_maintainers warning 1 maintainers not CCed: f.fainelli@gmail.com
netdev/build_clang success Errors and warnings before: 8 this patch: 8
netdev/verify_signedoff success Signed-off-by tag matches author and committer
netdev/deprecated_api success None detected
netdev/check_selftest success No net selftest shell script
netdev/verify_fixes success No Fixes tag
netdev/build_allmodconfig_warn success Errors and warnings before: 8 this patch: 8
netdev/checkpatch success total: 0 errors, 0 warnings, 0 checks, 13 lines checked
netdev/build_clang_rust success No Rust files in patch. Skipping build
netdev/kdoc success Errors and warnings before: 0 this patch: 0
netdev/source_inline success Was 0 now: 0
netdev/contest success net-next-2024-06-19--21-00 (tests: 657)

Commit Message

Kamil Horák (2N) June 19, 2024, 3:03 p.m. UTC
There is a group of PHY chips supporting BroadR-Reach link modes in
a manner allowing for more or less identical register usage as standard
Clause 22 PHY.
These chips support standard Ethernet link modes as well, however, the
circuitry is mutually exclusive and cannot be auto-detected.
The link modes in question are 100Base-T1 as defined in IEEE802.3bw,
based on Broadcom's 1BR-100 link mode, and newly defined 10Base-T1BRR
(1BR-10 in Broadcom documents).

Add optional brr-mode flag to switch the PHY to BroadR-Reach mode.

Signed-off-by: Kamil Horák - 2N <kamilh@axis.com>
---
 Documentation/devicetree/bindings/net/ethernet-phy.yaml | 7 +++++++
 1 file changed, 7 insertions(+)

Comments

Conor Dooley June 19, 2024, 5:36 p.m. UTC | #1
On Wed, Jun 19, 2024 at 05:03:58PM +0200, Kamil Horák - 2N wrote:
> There is a group of PHY chips supporting BroadR-Reach link modes in
> a manner allowing for more or less identical register usage as standard
> Clause 22 PHY.
> These chips support standard Ethernet link modes as well, however, the
> circuitry is mutually exclusive and cannot be auto-detected.
> The link modes in question are 100Base-T1 as defined in IEEE802.3bw,
> based on Broadcom's 1BR-100 link mode, and newly defined 10Base-T1BRR
> (1BR-10 in Broadcom documents).
> 
> Add optional brr-mode flag to switch the PHY to BroadR-Reach mode.
> 
> Signed-off-by: Kamil Horák - 2N <kamilh@axis.com>

Please fix your SoB and from addresses via your gitconfig as I told you
to in response to the off-list mail you sent me. You also dropped my Ack
without an explanation, why?

> ---
>  Documentation/devicetree/bindings/net/ethernet-phy.yaml | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/Documentation/devicetree/bindings/net/ethernet-phy.yaml b/Documentation/devicetree/bindings/net/ethernet-phy.yaml
> index 8fb2a6ee7e5b..0353ef98f2e1 100644
> --- a/Documentation/devicetree/bindings/net/ethernet-phy.yaml
> +++ b/Documentation/devicetree/bindings/net/ethernet-phy.yaml
> @@ -93,6 +93,13 @@ properties:
>        the turn around line low at end of the control phase of the
>        MDIO transaction.
>  
> +  brr-mode:
> +    $ref: /schemas/types.yaml#/definitions/flag
> +    description:
> +      Request the PHY to operate in BroadR-Reach mode. This means the
> +      PHY will use the BroadR-Reach protocol to communicate with the other
> +      end of the link, including LDS auto-negotiation if applicable.
> +
>    clocks:
>      maxItems: 1
>      description:
> -- 
> 2.39.2
>
Jakub Kicinski June 19, 2024, 11:38 p.m. UTC | #2
On Wed, 19 Jun 2024 18:36:16 +0100 Conor Dooley wrote:
> > Signed-off-by: Kamil Horák - 2N <kamilh@axis.com>  
> 
> Please fix your SoB and from addresses via your gitconfig as I told you
> to in response to the off-list mail you sent me. You also dropped my Ack
> without an explanation, why?

+1, possibly repeating what Conor already said but the common
format if 2N is your employer or sponsor of the work would be:

  Signed-off-by: Kamil Horák (2N) <kamilh@axis.com>
Conor Dooley June 20, 2024, 7:56 a.m. UTC | #3
On Wed, Jun 19, 2024 at 04:38:03PM -0700, Jakub Kicinski wrote:
> On Wed, 19 Jun 2024 18:36:16 +0100 Conor Dooley wrote:
> > > Signed-off-by: Kamil Horák - 2N <kamilh@axis.com>  
> > 
> > Please fix your SoB and from addresses via your gitconfig as I told you
> > to in response to the off-list mail you sent me. You also dropped my Ack
> > without an explanation, why?
> 
> +1, possibly repeating what Conor already said but the common
> format if 2N is your employer or sponsor of the work would be:

The explanation I was given was that Axis is the parent company of
2N.

>   Signed-off-by: Kamil Horák (2N) <kamilh@axis.com>  

> -- 
> pw-bot: cr

BTW Jakub, am I able to interact with the pw-bot, or is that limited to
maintainers/senior netdev reviewers? Been curious about that for a
while..
Andrew Lunn June 20, 2024, 12:59 p.m. UTC | #4
> BTW Jakub, am I able to interact with the pw-bot, or is that limited to
> maintainers/senior netdev reviewers? Been curious about that for a
> while..

https://www.kernel.org/doc/html/latest/process/maintainer-netdev.html#updating-patch-status

	Andrew
Jakub Kicinski June 20, 2024, 1:35 p.m. UTC | #5
On Thu, 20 Jun 2024 14:59:53 +0200 Andrew Lunn wrote:
> > BTW Jakub, am I able to interact with the pw-bot, or is that limited to
> > maintainers/senior netdev reviewers? Been curious about that for a
> > while..  
> 
> https://www.kernel.org/doc/html/latest/process/maintainer-netdev.html#updating-patch-status

One thing that may not be immediately obvious is that this is our local
netdev thing, so it will only work on netdev@ and bpf@.
We could try to convince Konstantin to run it for all pw instances, we
never tried.
Conor Dooley June 20, 2024, 1:59 p.m. UTC | #6
On Thu, Jun 20, 2024 at 06:35:32AM -0700, Jakub Kicinski wrote:
> On Thu, 20 Jun 2024 14:59:53 +0200 Andrew Lunn wrote:
> > > BTW Jakub, am I able to interact with the pw-bot, or is that limited to
> > > maintainers/senior netdev reviewers? Been curious about that for a
> > > while..  
> > 
> > https://www.kernel.org/doc/html/latest/process/maintainer-netdev.html#updating-patch-status

Hmm, thanks for the link Andrew. In theory I should be able to use it
then, I wonder if it is smart enough to detect that conor@kernel.org is
the same person as conor+dt@kernel.org.
I'll have to try it at some point and find out :)

> 
> One thing that may not be immediately obvious is that this is our local
> netdev thing, so it will only work on netdev@ and bpf@.
> We could try to convince Konstantin to run it for all pw instances, we
> never tried.

ngl, I'd love to have it on the riscv instance. Things are hectic for me
this month, but I might just ~harass~ask him about it after that..

Thanks,
Conor.
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/net/ethernet-phy.yaml b/Documentation/devicetree/bindings/net/ethernet-phy.yaml
index 8fb2a6ee7e5b..0353ef98f2e1 100644
--- a/Documentation/devicetree/bindings/net/ethernet-phy.yaml
+++ b/Documentation/devicetree/bindings/net/ethernet-phy.yaml
@@ -93,6 +93,13 @@  properties:
       the turn around line low at end of the control phase of the
       MDIO transaction.
 
+  brr-mode:
+    $ref: /schemas/types.yaml#/definitions/flag
+    description:
+      Request the PHY to operate in BroadR-Reach mode. This means the
+      PHY will use the BroadR-Reach protocol to communicate with the other
+      end of the link, including LDS auto-negotiation if applicable.
+
   clocks:
     maxItems: 1
     description: