* [PATCH RFC net-next 0/2] Add en8811h phy driver and devicetree binding doc
@ 2023-12-16 19:43 Eric Woudstra
2023-12-16 19:43 ` [PATCH RFC net-next 1/2] Add en8811h bindings documentation yaml Eric Woudstra
0 siblings, 1 reply; 7+ messages in thread
From: Eric Woudstra @ 2023-12-16 19:43 UTC (permalink / raw)
To: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, Andrew Lunn,
Heiner Kallweit, Russell King, Matthias Brugger,
AngeloGioacchino Del Regno, Frank Wunderlich, Daniel Golle,
Lucien Jheng, Zhi-Jun You
Cc: netdev, devicetree, Eric Woudstra
Add the Airoha EN8811H 2.5 Gigabit PHY.
The phy supports 100/1000/2500 Mbps with auto negotiotion only.
The driver uses two firmware files, which are added to linux-firmware already.
This patch series adds the driver and the devicetree binding documentation.
Eric Woudstra (2):
Add en8811h bindings documentation yaml
Add the Airoha EN8811H PHY driver
.../bindings/net/airoha,en8811h.yaml | 42 +
drivers/net/phy/Kconfig | 5 +
drivers/net/phy/Makefile | 1 +
drivers/net/phy/air_en8811h.c | 1044 +++++++++++++++++
4 files changed, 1092 insertions(+)
create mode 100644 Documentation/devicetree/bindings/net/airoha,en8811h.yaml
create mode 100644 drivers/net/phy/air_en8811h.c
--
2.42.1
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH RFC net-next 1/2] Add en8811h bindings documentation yaml
2023-12-16 19:43 [PATCH RFC net-next 0/2] Add en8811h phy driver and devicetree binding doc Eric Woudstra
@ 2023-12-16 19:43 ` Eric Woudstra
2023-12-16 19:57 ` Andrew Lunn
2023-12-18 8:45 ` Krzysztof Kozlowski
0 siblings, 2 replies; 7+ messages in thread
From: Eric Woudstra @ 2023-12-16 19:43 UTC (permalink / raw)
To: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, Andrew Lunn,
Heiner Kallweit, Russell King, Matthias Brugger,
AngeloGioacchino Del Regno, Frank Wunderlich, Daniel Golle,
Lucien Jheng, Zhi-Jun You
Cc: netdev, devicetree, Eric Woudstra
The en8811h phy can be set with serdes polarity reversed on rx and/or tx.
Signed-off-by: Eric Woudstra <ericwouds@gmail.com>
---
.../bindings/net/airoha,en8811h.yaml | 42 +++++++++++++++++++
1 file changed, 42 insertions(+)
create mode 100644 Documentation/devicetree/bindings/net/airoha,en8811h.yaml
diff --git a/Documentation/devicetree/bindings/net/airoha,en8811h.yaml b/Documentation/devicetree/bindings/net/airoha,en8811h.yaml
new file mode 100644
index 000000000000..96febd8ed6fa
--- /dev/null
+++ b/Documentation/devicetree/bindings/net/airoha,en8811h.yaml
@@ -0,0 +1,42 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/net/airoha,en8811h.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Airoha EN8811H PHY
+
+maintainers:
+ - Someone <someone@somemail.com>
+
+description:
+ Bindings for Airoha EN8811H PHY
+
+allOf:
+ - $ref: ethernet-phy.yaml#
+
+properties:
+ airoha,rx-pol-reverse:
+ type: boolean
+ description:
+ Reverse rx polarity of SERDES.
+
+
+ airoha,tx-pol-reverse:
+ type: boolean
+ description:
+ Reverse tx polarity of SERDES.
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ mdio {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ ethphy1: ethernet-phy@1 {
+ reg = <1>;
+ airoha,rx-pol-reverse;
+ };
+ };
--
2.42.1
^ permalink raw reply related [flat|nested] 7+ messages in thread* Re: [PATCH RFC net-next 1/2] Add en8811h bindings documentation yaml
2023-12-16 19:43 ` [PATCH RFC net-next 1/2] Add en8811h bindings documentation yaml Eric Woudstra
@ 2023-12-16 19:57 ` Andrew Lunn
2023-12-16 20:05 ` Eric Woudstra
2023-12-18 8:45 ` Krzysztof Kozlowski
1 sibling, 1 reply; 7+ messages in thread
From: Andrew Lunn @ 2023-12-16 19:57 UTC (permalink / raw)
To: Eric Woudstra
Cc: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, Heiner Kallweit,
Russell King, Matthias Brugger, AngeloGioacchino Del Regno,
Frank Wunderlich, Daniel Golle, Lucien Jheng, Zhi-Jun You, netdev,
devicetree
On Sat, Dec 16, 2023 at 08:43:17PM +0100, Eric Woudstra wrote:
> The en8811h phy can be set with serdes polarity reversed on rx and/or tx.
>
> Signed-off-by: Eric Woudstra <ericwouds@gmail.com>
> ---
> .../bindings/net/airoha,en8811h.yaml | 42 +++++++++++++++++++
> 1 file changed, 42 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/net/airoha,en8811h.yaml
>
> diff --git a/Documentation/devicetree/bindings/net/airoha,en8811h.yaml b/Documentation/devicetree/bindings/net/airoha,en8811h.yaml
> new file mode 100644
> index 000000000000..96febd8ed6fa
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/net/airoha,en8811h.yaml
> @@ -0,0 +1,42 @@
> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/net/airoha,en8811h.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Airoha EN8811H PHY
> +
> +maintainers:
> + - Someone <someone@somemail.com>
> +
> +description:
> + Bindings for Airoha EN8811H PHY
> +
> +allOf:
> + - $ref: ethernet-phy.yaml#
> +
> +properties:
> + airoha,rx-pol-reverse:
> + type: boolean
> + description:
> + Reverse rx polarity of SERDES.
> +
> +
> + airoha,tx-pol-reverse:
> + type: boolean
> + description:
> + Reverse tx polarity of SERDES.
Is this to deal with wiring up the SERDES backwards? Is there a more
detailed description in the data sheet?
Andrew
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH RFC net-next 1/2] Add en8811h bindings documentation yaml
2023-12-16 19:57 ` Andrew Lunn
@ 2023-12-16 20:05 ` Eric Woudstra
0 siblings, 0 replies; 7+ messages in thread
From: Eric Woudstra @ 2023-12-16 20:05 UTC (permalink / raw)
To: Andrew Lunn
Cc: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, Heiner Kallweit,
Russell King, Matthias Brugger, AngeloGioacchino Del Regno,
Frank Wunderlich, Daniel Golle, Lucien Jheng, Zhi-Jun You, netdev,
devicetree
>
> Is this to deal with wiring up the SERDES backwards? Is there a more
> detailed description in the data sheet?
>
Sadly, I have not received the datasheet. All comes from studying different versions of the driver.
On the BananiPi-R3 Mini the RX pair is reversed:
phy14: ethernet-phy@14 {
reg = <14>;
interrupts-extended = <&pio 48 IRQ_TYPE_EDGE_FALLING>;
reset-gpios = <&pio 49 GPIO_ACTIVE_LOW>;
reset-assert-us = <10000>;
reset-deassert-us = <20000>;
phy-mode = "2500base-x";
full-duplex;
pause;
airoha,rx-pol-reverse;
leds {
#address-cells = <1>;
#size-cells = <0>;
led@0 { /* en8811_a_gpio5 */
reg = <0>;
color = <LED_COLOR_ID_YELLOW>;
function = LED_FUNCTION_LAN;
function-enumerator = <1>;
default-state = "keep";
linux,default-trigger = "netdev";
};
led@1 { /* en8811_a_gpio4 */
reg = <1>;
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_LAN;
function-enumerator = <2>;
default-state = "keep";
linux,default-trigger = "netdev";
};
};
};
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH RFC net-next 1/2] Add en8811h bindings documentation yaml
2023-12-16 19:43 ` [PATCH RFC net-next 1/2] Add en8811h bindings documentation yaml Eric Woudstra
2023-12-16 19:57 ` Andrew Lunn
@ 2023-12-18 8:45 ` Krzysztof Kozlowski
1 sibling, 0 replies; 7+ messages in thread
From: Krzysztof Kozlowski @ 2023-12-18 8:45 UTC (permalink / raw)
To: Eric Woudstra, David S. Miller, Eric Dumazet, Jakub Kicinski,
Paolo Abeni, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Andrew Lunn, Heiner Kallweit, Russell King, Matthias Brugger,
AngeloGioacchino Del Regno, Frank Wunderlich, Daniel Golle,
Lucien Jheng, Zhi-Jun You
Cc: netdev, devicetree
On 16/12/2023 20:43, Eric Woudstra wrote:
> The en8811h phy can be set with serdes polarity reversed on rx and/or tx.
>
> Signed-off-by: Eric Woudstra <ericwouds@gmail.com>
> ---
Why duplicated patchsets? Nothing improved here.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH RFC net-next 1/2] Add en8811h bindings documentation yaml
@ 2023-12-16 19:44 Eric Woudstra
2023-12-18 8:44 ` Krzysztof Kozlowski
0 siblings, 1 reply; 7+ messages in thread
From: Eric Woudstra @ 2023-12-16 19:44 UTC (permalink / raw)
To: David S. Miller, Eric Dumazet, Jakub Kicinski, Paolo Abeni,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, Andrew Lunn,
Heiner Kallweit, Russell King, Matthias Brugger,
AngeloGioacchino Del Regno, Frank Wunderlich, Daniel Golle,
Lucien Jheng, Zhi-Jun You
Cc: netdev, devicetree, Eric Woudstra
The en8811h phy can be set with serdes polarity reversed on rx and/or tx.
Signed-off-by: Eric Woudstra <ericwouds@gmail.com>
---
.../bindings/net/airoha,en8811h.yaml | 42 +++++++++++++++++++
1 file changed, 42 insertions(+)
create mode 100644 Documentation/devicetree/bindings/net/airoha,en8811h.yaml
diff --git a/Documentation/devicetree/bindings/net/airoha,en8811h.yaml b/Documentation/devicetree/bindings/net/airoha,en8811h.yaml
new file mode 100644
index 000000000000..96febd8ed6fa
--- /dev/null
+++ b/Documentation/devicetree/bindings/net/airoha,en8811h.yaml
@@ -0,0 +1,42 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/net/airoha,en8811h.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Airoha EN8811H PHY
+
+maintainers:
+ - Someone <someone@somemail.com>
+
+description:
+ Bindings for Airoha EN8811H PHY
+
+allOf:
+ - $ref: ethernet-phy.yaml#
+
+properties:
+ airoha,rx-pol-reverse:
+ type: boolean
+ description:
+ Reverse rx polarity of SERDES.
+
+
+ airoha,tx-pol-reverse:
+ type: boolean
+ description:
+ Reverse tx polarity of SERDES.
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ mdio {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ ethphy1: ethernet-phy@1 {
+ reg = <1>;
+ airoha,rx-pol-reverse;
+ };
+ };
--
2.42.1
^ permalink raw reply related [flat|nested] 7+ messages in thread* Re: [PATCH RFC net-next 1/2] Add en8811h bindings documentation yaml
2023-12-16 19:44 Eric Woudstra
@ 2023-12-18 8:44 ` Krzysztof Kozlowski
0 siblings, 0 replies; 7+ messages in thread
From: Krzysztof Kozlowski @ 2023-12-18 8:44 UTC (permalink / raw)
To: Eric Woudstra, David S. Miller, Eric Dumazet, Jakub Kicinski,
Paolo Abeni, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Andrew Lunn, Heiner Kallweit, Russell King, Matthias Brugger,
AngeloGioacchino Del Regno, Frank Wunderlich, Daniel Golle,
Lucien Jheng, Zhi-Jun You
Cc: netdev, devicetree
On 16/12/2023 20:44, Eric Woudstra wrote:
> The en8811h phy can be set with serdes polarity reversed on rx and/or tx.
Please use subject prefixes matching the subsystem. You can get them for
example with `git log --oneline -- DIRECTORY_OR_FILE` on the directory
your patch is touching.
A nit, subject: drop second/last, redundant "bindings documentation
yaml". The "dt-bindings" prefix is already stating that these are
bindings. Quite redundant/useless subject.
>
> Signed-off-by: Eric Woudstra <ericwouds@gmail.com>
> ---
> .../bindings/net/airoha,en8811h.yaml | 42 +++++++++++++++++++
> 1 file changed, 42 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/net/airoha,en8811h.yaml
>
> diff --git a/Documentation/devicetree/bindings/net/airoha,en8811h.yaml b/Documentation/devicetree/bindings/net/airoha,en8811h.yaml
> new file mode 100644
> index 000000000000..96febd8ed6fa
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/net/airoha,en8811h.yaml
> @@ -0,0 +1,42 @@
> +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/net/airoha,en8811h.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Airoha EN8811H PHY
> +
> +maintainers:
> + - Someone <someone@somemail.com>
> +
> +description:
> + Bindings for Airoha EN8811H PHY
Drop "Bindings for" and instead describe the hardware. Don't copy the
title, what's the point in this?
> +
> +allOf:
> + - $ref: ethernet-phy.yaml#
> +
> +properties:
> + airoha,rx-pol-reverse:
> + type: boolean
> + description:
> + Reverse rx polarity of SERDES.
> +
> +
No, that won't work. Your schema is not being applied. Look at patches
on the mailing list for the phys.
Why do I see multiple patchsets of this?
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2023-12-18 8:45 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-16 19:43 [PATCH RFC net-next 0/2] Add en8811h phy driver and devicetree binding doc Eric Woudstra
2023-12-16 19:43 ` [PATCH RFC net-next 1/2] Add en8811h bindings documentation yaml Eric Woudstra
2023-12-16 19:57 ` Andrew Lunn
2023-12-16 20:05 ` Eric Woudstra
2023-12-18 8:45 ` Krzysztof Kozlowski
-- strict thread matches above, loose matches on Subject: below --
2023-12-16 19:44 Eric Woudstra
2023-12-18 8:44 ` Krzysztof Kozlowski
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).