public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Maxime Ripard <maxime.ripard@bootlin.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 4/5] sunxi: R40: add gigabit ethernet devicetree node
Date: Thu, 19 Apr 2018 10:40:50 +0200	[thread overview]
Message-ID: <20180419084050.vmqimfdvojdm3ox6@flea> (raw)
In-Reply-To: <20180417134235.10502-4-lothar.felten@gmail.com>

On Tue, Apr 17, 2018 at 03:42:34PM +0200, Lothar Felten wrote:
> Add a device tree node for the Allwinner R40/V40 CPU.
> The syscon node is required by the gmac driver.
> 
> Signed-off-by: Lothar Felten <lothar.felten@gmail.com>
> ---
>  arch/arm/dts/sun8i-r40.dtsi | 28 ++++++++++++++++++++++++++++
>  1 file changed, 28 insertions(+)
> 
> diff --git a/arch/arm/dts/sun8i-r40.dtsi b/arch/arm/dts/sun8i-r40.dtsi
> index ee22f6eb3a..93bf811014 100644
> --- a/arch/arm/dts/sun8i-r40.dtsi
> +++ b/arch/arm/dts/sun8i-r40.dtsi
> @@ -114,6 +114,12 @@
>  		#size-cells = <1>;
>  		ranges;
>  
> +		syscon: syscon at 1c00000 {
> +			compatible = "allwinner,sun8i-r40-system-controller",
> +				"syscon";
> +			reg = <0x01c00000 0x1000>;
> +		};

As far as I understood it, the GMAC configuration register is not in
the system controller on the R40, but in the clock controller.

> +
>  		pio: pinctrl at 1c20800 {
>  			compatible = "allwinner,sun8i-r40-pinctrl";
>  			reg = <0x01c20800 0x400>;
> @@ -168,6 +174,28 @@
>  			#size-cells = <0>;
>  		};
>  
> +		gmac: ethernet at 01c50000 {
> +			compatible = "allwinner,sun8i-h3-emac";
> +			syscon = <&syscon>;
> +			reg = <0x01c50000 0x2000>;
> +			interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
> +			interrupt-names = "macirq";
> +			clocks = <&osc24M>, <&osc24M>;
> +			clock-names = "stmmaceth", "allwinner_gmac_tx";
> +			#address-cells = <1>;
> +			#size-cells = <0>;
> +			pinctrl-names = "default";
> +			pinctrl-0 = <&gmac_pins_rgmii>;
> +			phy-mode = "rgmii";
> +			status = "disabled";
> +
> +			mdio: mdio {
> +				#address-cells = <1>;
> +				#size-cells = <0>;
> +				compatible = "snps,dwmac-mdio";
> +			};
> +		};
> +

And I guess this is just some temporary binding while waiting for
"real" ones to land in Linux?

Maxime

-- 
Maxime Ripard, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180419/cf721dae/attachment.sig>

  reply	other threads:[~2018-04-19  8:40 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-17 13:42 [U-Boot] [PATCH v2 1/5] sunxi: R40: add gigabit ethernet clocks Lothar Felten
2018-04-17 13:42 ` [U-Boot] [PATCH v2 2/5] sunxi: R40: add gigabit ethernet reset Lothar Felten
2018-04-19  8:35   ` Maxime Ripard
2018-04-17 13:42 ` [U-Boot] [PATCH v2 3/5] sunxi: R40: add gigabit ethernet gpio pinmux Lothar Felten
2018-04-19  8:35   ` Maxime Ripard
2018-04-17 13:42 ` [U-Boot] [PATCH v2 4/5] sunxi: R40: add gigabit ethernet devicetree node Lothar Felten
2018-04-19  8:40   ` Maxime Ripard [this message]
2018-04-17 13:42 ` [U-Boot] [PATCH v2 5/5] configs: Bananapi_M2_Ultra: enable gigabit on the Bananapi M2U Lothar Felten
2018-04-19  8:41   ` Maxime Ripard
2018-04-23 17:39     ` Lothar Felten
2018-04-19  8:34 ` [U-Boot] [PATCH v2 1/5] sunxi: R40: add gigabit ethernet clocks Maxime Ripard

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=20180419084050.vmqimfdvojdm3ox6@flea \
    --to=maxime.ripard@bootlin.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox