All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kever Yang <kever.yang@rock-chips.com>
To: u-boot@lists.denx.de
Subject: [PATCH 2/3] arm: dts: Add mac node for rk3308 at dtsi level
Date: Thu, 5 Dec 2019 23:34:49 +0800	[thread overview]
Message-ID: <67ebc67d-ca6b-10a3-5f33-2568172ac0b9@rock-chips.com> (raw)
In-Reply-To: <20191126013951.17065-2-david.wu@rock-chips.com>


On 2019/11/26 上午9:39, David Wu wrote:
> The rk3308 only support RMII mode, and if it is output clock
> mode, better to use ref_clk pin with drive strength 12ma.
>
> Signed-off-by: David Wu <david.wu@rock-chips.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>

Thanks,
- Kever
> ---
>   arch/arm/dts/rk3308.dtsi | 22 ++++++++++++++++++++++
>   1 file changed, 22 insertions(+)
>
> diff --git a/arch/arm/dts/rk3308.dtsi b/arch/arm/dts/rk3308.dtsi
> index 0eeec165d4..a5c0b72ae0 100644
> --- a/arch/arm/dts/rk3308.dtsi
> +++ b/arch/arm/dts/rk3308.dtsi
> @@ -627,6 +627,28 @@
>   		status = "disabled";
>   	};
>   
> +	mac: ethernet at ff4e0000 {
> +		compatible = "rockchip,rk3308-mac";
> +		reg = <0x0 0xff4e0000 0x0 0x10000>;
> +		rockchip,grf = <&grf>;
> +		interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
> +		interrupt-names = "macirq";
> +		clocks = <&cru SCLK_MAC>, <&cru SCLK_MAC_RX_TX>,
> +			 <&cru SCLK_MAC_RX_TX>, <&cru SCLK_MAC_REF>,
> +			 <&cru SCLK_MAC>, <&cru ACLK_MAC>,
> +			 <&cru PCLK_MAC>, <&cru SCLK_MAC_RMII>;
> +		clock-names = "stmmaceth", "mac_clk_rx",
> +			      "mac_clk_tx", "clk_mac_ref",
> +			      "clk_mac_refout", "aclk_mac",
> +			      "pclk_mac", "clk_mac_speed";
> +		phy-mode = "rmii";
> +		pinctrl-names = "default";
> +		pinctrl-0 = <&rmii_pins &mac_refclk_12ma>;
> +		resets = <&cru SRST_MAC_A>;
> +		reset-names = "stmmaceth";
> +		status = "disabled";
> +	};
> +
>   	cru: clock-controller at ff500000 {
>   		compatible = "rockchip,rk3308-cru";
>   		reg = <0x0 0xff500000 0x0 0x1000>;

  parent reply	other threads:[~2019-12-05 15:34 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-26  1:39 [U-Boot] [PATCH 1/3] net: gmac_rockchip: Add support for rk3308 David Wu
2019-11-26  1:39 ` [U-Boot] [PATCH 2/3] arm: dts: Add mac node for rk3308 at dtsi level David Wu
2019-11-27  6:23   ` Kever Yang
2019-12-03  3:30     ` David Wu
2019-12-05 15:34   ` Kever Yang [this message]
2019-11-26  1:39 ` [U-Boot] [PATCH 3/3] dts: rk3308: Enable ethernet function supported for Firefly ROC_RK3308_CC David Wu
2019-12-05 15:34   ` Kever Yang
2019-12-01 14:01 ` [U-Boot] [PATCH 1/3] net: gmac_rockchip: Add support for rk3308 Kever Yang

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=67ebc67d-ca6b-10a3-5f33-2568172ac0b9@rock-chips.com \
    --to=kever.yang@rock-chips.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.