From: Andrew Lunn <andrew@lunn.ch>
To: Biao Huang <biao.huang@mediatek.com>
Cc: davem@davemloft.net, robh+dt@kernel.org,
honghui.zhang@mediatek.com, yt.shen@mediatek.com,
liguo.zhang@mediatek.com, mark.rutland@arm.com,
sean.wang@mediatek.com, nelson.chang@mediatek.com,
matthias.bgg@gmail.com, netdev@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org, joabreu@synopsys.com
Subject: Re: [PATCH 1/2] net:stmmac: dwmac-mediatek: add support for mt2712
Date: Mon, 29 Oct 2018 13:27:31 +0100 [thread overview]
Message-ID: <20181029122731.GA9174@lunn.ch> (raw)
In-Reply-To: <1540782294-27721-2-git-send-email-biao.huang@mediatek.com>
> +static int mt2712_config_dt(struct mediatek_dwmac_plat_data *plat)
> +{
> + u32 mac_timings[4];
> +
> + plat->peri_regmap = syscon_regmap_lookup_by_compatible("mediatek,mt2712-pericfg");
> + if (IS_ERR(plat->peri_regmap)) {
> + dev_err(plat->dev, "Failed to get pericfg syscon\n");
> + return PTR_ERR(plat->peri_regmap);
> + }
> +
> + if (!of_property_read_u32_array(plat->np, "mac-delay", mac_timings,
> + ARRAY_SIZE(mac_timings))) {
> + plat->mac_delay.tx_delay = mac_timings[0];
> + plat->mac_delay.rx_delay = mac_timings[1];
> + plat->mac_delay.tx_inv = mac_timings[2];
> + plat->mac_delay.rx_inv = mac_timings[3];
> + }
> +
> + plat->fine_tune = of_property_read_bool(plat->np, "fine-tune");
> +
> + plat->rmii_rxc = of_property_read_bool(plat->np, "rmii-rxc");
Please add document for these properties in the binding.
Ideally, you should reuse the binding that some of the other stmmac
glue layer uses. e.g. there is already allwinner,tx-delay-ps,
allwinner,rx-delay-ps.
Thanks
Andrew
WARNING: multiple messages have this Message-ID (diff)
From: andrew@lunn.ch (Andrew Lunn)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/2] net:stmmac: dwmac-mediatek: add support for mt2712
Date: Mon, 29 Oct 2018 13:27:31 +0100 [thread overview]
Message-ID: <20181029122731.GA9174@lunn.ch> (raw)
In-Reply-To: <1540782294-27721-2-git-send-email-biao.huang@mediatek.com>
> +static int mt2712_config_dt(struct mediatek_dwmac_plat_data *plat)
> +{
> + u32 mac_timings[4];
> +
> + plat->peri_regmap = syscon_regmap_lookup_by_compatible("mediatek,mt2712-pericfg");
> + if (IS_ERR(plat->peri_regmap)) {
> + dev_err(plat->dev, "Failed to get pericfg syscon\n");
> + return PTR_ERR(plat->peri_regmap);
> + }
> +
> + if (!of_property_read_u32_array(plat->np, "mac-delay", mac_timings,
> + ARRAY_SIZE(mac_timings))) {
> + plat->mac_delay.tx_delay = mac_timings[0];
> + plat->mac_delay.rx_delay = mac_timings[1];
> + plat->mac_delay.tx_inv = mac_timings[2];
> + plat->mac_delay.rx_inv = mac_timings[3];
> + }
> +
> + plat->fine_tune = of_property_read_bool(plat->np, "fine-tune");
> +
> + plat->rmii_rxc = of_property_read_bool(plat->np, "rmii-rxc");
Please add document for these properties in the binding.
Ideally, you should reuse the binding that some of the other stmmac
glue layer uses. e.g. there is already allwinner,tx-delay-ps,
allwinner,rx-delay-ps.
Thanks
Andrew
next prev parent reply other threads:[~2018-10-29 12:27 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-29 3:04 [v2, PATCH 0/2] add Ethernet driver support for mt2712 Biao Huang
2018-10-29 3:04 ` Biao Huang
2018-10-29 3:04 ` Biao Huang
2018-10-29 3:04 ` [PATCH 1/2] net:stmmac: dwmac-mediatek: add " Biao Huang
2018-10-29 3:04 ` Biao Huang
2018-10-29 3:04 ` Biao Huang
2018-10-29 10:08 ` Corentin Labbe
2018-10-29 10:08 ` Corentin Labbe
2018-10-30 7:16 ` biao huang
2018-10-30 7:16 ` biao huang
2018-10-30 7:16 ` biao huang
2018-10-30 11:56 ` Andrew Lunn
2018-10-30 11:56 ` Andrew Lunn
2018-10-29 12:27 ` Andrew Lunn [this message]
2018-10-29 12:27 ` Andrew Lunn
2018-10-30 7:11 ` biao huang
2018-10-30 7:11 ` biao huang
2018-10-30 7:11 ` biao huang
2018-10-29 3:04 ` [PATCH 2/2] dt-binding: mediatek-dwmac: add binding document for MediaTek MT2712 DWMAC Biao Huang
2018-10-29 3:04 ` Biao Huang
2018-10-29 3:04 ` Biao Huang
2018-11-12 16:22 ` Rob Herring
2018-11-12 16:22 ` Rob Herring
2018-11-16 6:58 ` biao huang
2018-11-16 6:58 ` biao huang
2018-11-16 6:58 ` biao huang
2018-10-29 3:32 ` [v2, PATCH 0/2] add Ethernet driver support for mt2712 biao huang
2018-10-29 3:32 ` biao huang
2018-10-29 3:32 ` biao huang
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=20181029122731.GA9174@lunn.ch \
--to=andrew@lunn.ch \
--cc=biao.huang@mediatek.com \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=honghui.zhang@mediatek.com \
--cc=joabreu@synopsys.com \
--cc=liguo.zhang@mediatek.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=mark.rutland@arm.com \
--cc=matthias.bgg@gmail.com \
--cc=nelson.chang@mediatek.com \
--cc=netdev@vger.kernel.org \
--cc=robh+dt@kernel.org \
--cc=sean.wang@mediatek.com \
--cc=yt.shen@mediatek.com \
/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.