From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
To: Biao Huang <biao.huang@mediatek.com>,
Rob Herring <robh+dt@kernel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Matthias Brugger <matthias.bgg@gmail.com>
Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org,
macpaul.lin@mediatek.com
Subject: Re: [PATCH] arm64: dts: mt8195: Add Ethernet controller
Date: Tue, 18 Oct 2022 08:51:29 -0400 [thread overview]
Message-ID: <37fff2b8-a798-dea3-c010-714a2bac695f@linaro.org> (raw)
In-Reply-To: <b5d18b4b631cb19d435f37ccacd296a2282c2a1a.camel@mediatek.com>
On 18/10/2022 02:37, Biao Huang wrote:
> Dear Krzysztof,
> Thanks for your comments!
>
> On Mon, 2022-10-17 at 22:01 -0400, Krzysztof Kozlowski wrote:
>> On 17/10/2022 05:58, Biao Huang wrote:
>>> Add Ethernet controller node for mt8195.
>>>
>>> Signed-off-by: Biao Huang <biao.huang@mediatek.com>
>>> ---
>>> arch/arm64/boot/dts/mediatek/mt8195-demo.dts | 88
>>> ++++++++++++++++++++
>>> arch/arm64/boot/dts/mediatek/mt8195.dtsi | 87
>>> +++++++++++++++++++
>>> 2 files changed, 175 insertions(+)
>>>
>>> diff --git a/arch/arm64/boot/dts/mediatek/mt8195-demo.dts
>>> b/arch/arm64/boot/dts/mediatek/mt8195-demo.dts
>>> index 4fbd99eb496a..02e04f82a4ae 100644
>>> --- a/arch/arm64/boot/dts/mediatek/mt8195-demo.dts
>>> +++ b/arch/arm64/boot/dts/mediatek/mt8195-demo.dts
>>> @@ -258,6 +258,72 @@ &mt6359_vsram_others_ldo_reg {
>>> };
>>>
>>> &pio {
>>> + eth_default: eth_default {
>>
>> No underscores in node names. Please also be sure your patch does not
>> bring new warnings with `dtbs_check` (lack of suffix above could mean
>> it
>> brings...)
> OK, I'll fix the underscores issue in next send.
> As to "lack of suffix" issue, do you mean I should write it like:
> eth-default: eth-default@0 {
I don't know whether you should have here suffix or not - please check
your bindings. Several pinctrl bindings require suffixes (or prefixes),
thus I asked.
BTW, In the label you must use underscore.
> ...
> }
> If yes, other nodes in current file don't have such suffix.
> e.g.
> gpio_keys_pins: gpio-keys-pins
>
> Should I keep unified style with other nodes?
Check what bindings are requiring.
>>
>>> + txd_pins {
>>
(...)
>>> +
>>> + eth: ethernet@11021000 {
>>> + compatible = "mediatek,mt8195-gmac",
>>> "snps,dwmac-5.10a";
>>> + reg = <0 0x11021000 0 0x4000>;
>>> + interrupts = <GIC_SPI 716 IRQ_TYPE_LEVEL_HIGH
>>> 0>;
>>> + interrupt-names = "macirq";
>>> + mac-address = [00 55 7b b5 7d f7];
>>
>> How is this property of a SoC? Are you saying now that all MT8195
>> SoCs
>> have the same MAC address?
> The mac-address here is taken as a default mac address in eth driver
> rather than a randome one.
> Actually, there will be a tool to customize eth mac address (e.g
> through "ifconfig eth0 hw ether xx:xx:xx:xx:xx:xx"), so every
> MT8195 SoCs will get their specified mac address in real product.
So this means this is not one MAC address for all SoCs, so this does not
belong to DTSI. Actually it doesn't belong to DTS either. Look how
others are doing...
Best regards,
Krzysztof
next prev parent reply other threads:[~2022-10-18 12:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-17 9:58 [PATCH] arm64: dts: mt8195: Add Ethernet controller Biao Huang
2022-10-18 2:01 ` Krzysztof Kozlowski
2022-10-18 6:37 ` Biao Huang
2022-10-18 12:51 ` Krzysztof Kozlowski [this message]
2022-10-19 8:37 ` 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=37fff2b8-a798-dea3-c010-714a2bac695f@linaro.org \
--to=krzysztof.kozlowski@linaro.org \
--cc=biao.huang@mediatek.com \
--cc=devicetree@vger.kernel.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=macpaul.lin@mediatek.com \
--cc=matthias.bgg@gmail.com \
--cc=robh+dt@kernel.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).