All of lore.kernel.org
 help / color / mirror / Atom feed
From: "André Przywara" <andre.przywara@arm.com>
To: u-boot@lists.denx.de
Subject: [PATCH v1 5/7] arm: dts: s700: add node for ethernet controller
Date: Tue, 12 May 2020 15:18:33 +0100	[thread overview]
Message-ID: <17165fd0-fd21-8262-91e7-b8c347818e86@arm.com> (raw)
In-Reply-To: <1589034315-19722-6-git-send-email-amittomer25@gmail.com>

On 09/05/2020 15:25, Amit Singh Tomar wrote:
> This patch adds node for ethernet controller found on Action Semi OWL
> S700 SoC.
> 
> Since, there is no upstream Linux binding exist for S700 ethernet
> controller, Changes are put in u-boot specific dtsi file.

But that should not be the S700 SoC .dtsi, instead the cubieboard .dts
file, since you specify the PHY mode in here (which is board specific).

> Signed-off-by: Amit Singh Tomar <amittomer25@gmail.com>
> ---
>  arch/arm/dts/s700-u-boot.dtsi | 13 +++++++++++++
>  1 file changed, 13 insertions(+)
> 
> diff --git a/arch/arm/dts/s700-u-boot.dtsi b/arch/arm/dts/s700-u-boot.dtsi
> index a527cccc75f2..1b2768272c62 100644
> --- a/arch/arm/dts/s700-u-boot.dtsi
> +++ b/arch/arm/dts/s700-u-boot.dtsi
> @@ -6,6 +6,19 @@
>  /{
>  	soc {
>  		u-boot,dm-pre-reloc;
> +
> +		gmac:  ethernet at e0220000 {
> +			compatible = "actions,s700-ethernet";
> +			reg = <0 0xe0220000 0 0x2000>;
> +			interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
> +			interrupt-names = "macirq";
> +			local-mac-address = [ 00 18 fe 66 66 66 ];

Is there another solution to that? Maybe put that in the environment
instead? Or generate this randomly or ideally by hashing some serial number?

Cheers,
Andre.

> +			clocks = <&cmu CLK_ETHERNET>, <&cmu CLK_RMII_REF>;
> +			clock-names = "ethernet", "rmii_ref";
> +			phy-mode = "rmii";
> +			status = "okay";
> +                };
> +
>  	};
>  };
>  
> 

  reply	other threads:[~2020-05-12 14:18 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-09 14:25 [PATCH v1 0/7] add Ethernet support for S700 Amit Singh Tomar
2020-05-09 14:25 ` [PATCH v1 1/7] clk: actions: Add Ethernet clocks Amit Singh Tomar
2020-07-08  3:02   ` Tom Rini
2020-05-09 14:25 ` [PATCH v1 2/7] net: phy: realtek: Add support for RTL8201F PHY module Amit Singh Tomar
2020-07-08  3:02   ` Tom Rini
2020-05-09 14:25 ` [PATCH v1 3/7] net: phy: realtek: Introduce PHY_RTL8201F_S700_RMII_TIMINGS to adjust rx/tx timings Amit Singh Tomar
2020-07-08  3:02   ` Tom Rini
2020-05-09 14:25 ` [PATCH v1 4/7] net: designware: s700: Add glue code for S700 mac Amit Singh Tomar
2020-07-08  3:03   ` Tom Rini
2020-05-09 14:25 ` [PATCH v1 5/7] arm: dts: s700: add node for ethernet controller Amit Singh Tomar
2020-05-12 14:18   ` André Przywara [this message]
2020-05-12 14:25     ` Tom Rini
2020-05-12 14:42       ` Amit Tomer
2020-05-12 14:53         ` Tom Rini
2020-05-12 14:53       ` André Przywara
2020-05-12 15:09         ` Tom Rini
2020-05-12 16:14           ` Amit Tomer
2020-05-12 16:39           ` André Przywara
2020-05-12 19:59             ` Tom Rini
2020-05-12 14:37     ` Amit Tomer
2020-05-12 14:56       ` André Przywara
2020-07-08  3:03   ` Tom Rini
2020-05-09 14:25 ` [PATCH v1 6/7] owl: Kconfig: Enable DM eth for OWL platform Amit Singh Tomar
2020-07-08  3:03   ` Tom Rini
2020-05-09 14:25 ` [PATCH v1 7/7] configs: Enable mac and phy configs Amit Singh Tomar
2020-07-08  3:03   ` Tom Rini

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=17165fd0-fd21-8262-91e7-b8c347818e86@arm.com \
    --to=andre.przywara@arm.com \
    --cc=u-boot@lists.denx.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.