From: Krzysztof Kozlowski <krzk@kernel.org>
To: Chris Packham <Chris.Packham@alliedtelesis.co.nz>
Cc: "lee@kernel.org" <lee@kernel.org>,
"robh@kernel.org" <robh@kernel.org>,
"krzk+dt@kernel.org" <krzk+dt@kernel.org>,
"conor+dt@kernel.org" <conor+dt@kernel.org>,
"andrew+netdev@lunn.ch" <andrew+netdev@lunn.ch>,
"davem@davemloft.net" <davem@davemloft.net>,
"edumazet@google.com" <edumazet@google.com>,
"kuba@kernel.org" <kuba@kernel.org>,
"pabeni@redhat.com" <pabeni@redhat.com>,
"tsbogend@alpha.franken.de" <tsbogend@alpha.franken.de>,
"hkallweit1@gmail.com" <hkallweit1@gmail.com>,
"linux@armlinux.org.uk" <linux@armlinux.org.uk>,
"sander@svanheule.net" <sander@svanheule.net>,
"markus.stockhausen@gmx.de" <markus.stockhausen@gmx.de>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"linux-mips@vger.kernel.org" <linux-mips@vger.kernel.org>
Subject: Re: [PATCH v4 2/4] dt-bindings: mfd: Add MDIO interface to rtl9301-switch
Date: Fri, 31 Jan 2025 08:26:41 +0100 [thread overview]
Message-ID: <3e020ca6-025e-4a88-9aaa-a432d8aa668d@kernel.org> (raw)
In-Reply-To: <db76d5ab-3eda-439d-8b92-c0423d1e39c8@alliedtelesis.co.nz>
On 22/01/2025 21:53, Chris Packham wrote:
>>> };
>>> +
>>> + mdio-controller {
>> No, no resources here, no unit address. Look at other nodes - they have
>> the resource, the address. Mixing such nodes is clear indication this is
>> not correct hardware description and you do this only for Linux.
>>
>> Fold child device into parent.
>
> In this particular case all the mdio stuff is actually contained to a
> range starting at offset 0xca00. I dropped it because it was simpler in
> the driver to use the full 16-bit address rather than trying to use
> offsets from the base address that didn't correspond to the datasheet.
> As you've highlighted that's making the dt-binding impose driver
> specifics so would adding back `mdio-controller@ca00` and `reg = <0xca00
> 0x200>;` be OK even if the driver doesn't actually use them?
If this matches the hardware, then yes.
Best regards,
Krzysztof
next prev parent reply other threads:[~2025-01-31 7:26 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-20 4:02 [PATCH v4 0/4] RTL9300 MDIO driver Chris Packham
2025-01-20 4:02 ` [PATCH v4 1/4] dt-bindings: net: Add Realtek MDIO controller Chris Packham
2025-01-22 8:12 ` Krzysztof Kozlowski
2025-01-23 20:45 ` Chris Packham
2025-01-23 22:08 ` Andrew Lunn
2025-01-23 23:40 ` Chris Packham
2025-01-20 4:02 ` [PATCH v4 2/4] dt-bindings: mfd: Add MDIO interface to rtl9301-switch Chris Packham
2025-01-22 8:14 ` Krzysztof Kozlowski
2025-01-22 20:53 ` Chris Packham
2025-01-31 7:26 ` Krzysztof Kozlowski [this message]
2025-01-20 4:02 ` [PATCH v4 3/4] mips: dts: realtek: Add MDIO controller Chris Packham
2025-01-20 4:02 ` [PATCH v4 4/4] net: mdio: Add RTL9300 MDIO driver Chris Packham
2025-01-20 10:28 ` Sander Vanheule
2025-01-20 20:32 ` Chris Packham
2025-01-22 21:47 ` Andrew Lunn
2025-01-22 23:02 ` Chris Packham
2025-01-23 3:41 ` Andrew Lunn
2025-01-23 3:47 ` Chris Packham
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=3e020ca6-025e-4a88-9aaa-a432d8aa668d@kernel.org \
--to=krzk@kernel.org \
--cc=Chris.Packham@alliedtelesis.co.nz \
--cc=andrew+netdev@lunn.ch \
--cc=conor+dt@kernel.org \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=edumazet@google.com \
--cc=hkallweit1@gmail.com \
--cc=krzk+dt@kernel.org \
--cc=kuba@kernel.org \
--cc=lee@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=markus.stockhausen@gmx.de \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=robh@kernel.org \
--cc=sander@svanheule.net \
--cc=tsbogend@alpha.franken.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;
as well as URLs for NNTP newsgroup(s).