linux-amlogic.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: martin.blumenstingl@googlemail.com (Martin Blumenstingl)
To: linus-amlogic@lists.infradead.org
Subject: [PATCH v2 2/2] ARM: dts: meson8b-odroidc1: ethernet support
Date: Sun, 28 Jan 2018 21:26:34 +0100	[thread overview]
Message-ID: <CAFBinCABGQSPVPGw3O0xOU6SCCKMrNaF9wDAi9ieA7gjmsih4w@mail.gmail.com> (raw)
In-Reply-To: <e0edec83100c6f76136721dd05ffe4fab8653ca4.1516326105.git.ingrassia@epigenesys.com>

On Fri, Jan 19, 2018 at 2:49 AM, Emiliano Ingrassia
<ingrassia@epigenesys.com> wrote:
> The Odroid-C1+ board is equipped with an RTL8211F ethernet PHY
> which supports 10/100/1000 Mbps ethernet.
> The PHY reset and interrupt lines are controlled by the SoC via
> two GPIO lines (GPIOH_4 and GPIOH_3 respectively).
> The PHY energy efficient ethernet (eee) mode is marked as broken
> using "eee-broken-1000t" because, during tests, high packet losses
> were experienced without it.
>
> Signed-off-by: Emiliano Ingrassia <ingrassia@epigenesys.com>
Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>

> ---
>  arch/arm/boot/dts/meson8b-odroidc1.dts | 30 ++++++++++++++++++++++++++++++
>  1 file changed, 30 insertions(+)
>
> diff --git a/arch/arm/boot/dts/meson8b-odroidc1.dts b/arch/arm/boot/dts/meson8b-odroidc1.dts
> index 9ff6ca4e20d0..d5e83051bb54 100644
> --- a/arch/arm/boot/dts/meson8b-odroidc1.dts
> +++ b/arch/arm/boot/dts/meson8b-odroidc1.dts
> @@ -99,3 +99,33 @@
>  &usb1 {
>         status = "okay";
>  };
> +
> +&ethmac {
> +       status = "okay";
> +
> +       snps,reset-gpio = <&gpio GPIOH_4 GPIO_ACTIVE_HIGH>;
> +       snps,reset-active-low;
> +       snps,reset-delays-us = <0 10000 30000>;
> +
> +       pinctrl-0 = <&eth_rgmii_pins>;
> +       pinctrl-names = "default";
> +
> +       phy-mode = "rgmii";
> +       phy-handle = <&eth_phy>;
> +       amlogic,tx-delay-ns = <4>;
> +
> +       mdio {
> +               compatible = "snps,dwmac-mdio";
> +               #address-cells = <1>;
> +               #size-cells = <0>;
> +
> +               /* Realtek RTL8211F (0x001cc916) */
> +               eth_phy: ethernet-phy at 0 {
> +                       reg = <0>;
> +                       eee-broken-1000t;
> +                       interrupt-parent = <&gpio_intc>;
> +                       /* GPIOH_3 */
> +                       interrupts = <17 IRQ_TYPE_LEVEL_LOW>;
> +               };
> +       };
> +};
> --
> 2.15.1
>

  parent reply	other threads:[~2018-01-28 20:26 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-19  1:47 [PATCH v2 0/2] meson8b-odroidc1: ethernet support Emiliano Ingrassia
2018-01-19  1:48 ` [PATCH v2 1/2] ARM: dts: meson8b: extend ethernet controller description Emiliano Ingrassia
2018-01-25  2:18   ` Linus Lüssing
2018-01-28 20:27   ` Martin Blumenstingl
2018-01-19  1:49 ` [PATCH v2 2/2] ARM: dts: meson8b-odroidc1: ethernet support Emiliano Ingrassia
2018-01-25  2:18   ` Linus Lüssing
2018-01-28 16:28     ` Emiliano Ingrassia
2018-01-28 20:26   ` Martin Blumenstingl [this message]
2018-01-31  0:38 ` [PATCH v2 0/2] " Kevin Hilman

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=CAFBinCABGQSPVPGw3O0xOU6SCCKMrNaF9wDAi9ieA7gjmsih4w@mail.gmail.com \
    --to=martin.blumenstingl@googlemail.com \
    --cc=linus-amlogic@lists.infradead.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;
as well as URLs for NNTP newsgroup(s).